@pega/cosmos-react-build 5.0.0-dev.4.7 → 5.0.0-dev.4.8
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/package.json +4 -4
- package/lib/components/AppShell/AppShell.d.ts +0 -6
- package/lib/components/AppShell/AppShell.d.ts.map +0 -1
- package/lib/components/AppShell/AppShell.js +0 -58
- package/lib/components/AppShell/AppShell.js.map +0 -1
- package/lib/components/AppShell/AppShell.styles.d.ts +0 -17
- package/lib/components/AppShell/AppShell.styles.d.ts.map +0 -1
- package/lib/components/AppShell/AppShell.styles.js +0 -269
- package/lib/components/AppShell/AppShell.styles.js.map +0 -1
- package/lib/components/AppShell/AppShell.types.d.ts +0 -72
- package/lib/components/AppShell/AppShell.types.d.ts.map +0 -1
- package/lib/components/AppShell/AppShell.types.js +0 -2
- package/lib/components/AppShell/AppShell.types.js.map +0 -1
- package/lib/components/AppShell/AppShellContext.d.ts +0 -5
- package/lib/components/AppShell/AppShellContext.d.ts.map +0 -1
- package/lib/components/AppShell/AppShellContext.js +0 -8
- package/lib/components/AppShell/AppShellContext.js.map +0 -1
- package/lib/components/AppShell/Header/AppHeader.d.ts +0 -6
- package/lib/components/AppShell/Header/AppHeader.d.ts.map +0 -1
- package/lib/components/AppShell/Header/AppHeader.js +0 -73
- package/lib/components/AppShell/Header/AppHeader.js.map +0 -1
- package/lib/components/AppShell/Header/AppHeader.styles.d.ts +0 -13
- package/lib/components/AppShell/Header/AppHeader.styles.d.ts.map +0 -1
- package/lib/components/AppShell/Header/AppHeader.styles.js +0 -158
- package/lib/components/AppShell/Header/AppHeader.styles.js.map +0 -1
- package/lib/components/AppShell/Header/AppHeader.types.d.ts +0 -33
- package/lib/components/AppShell/Header/AppHeader.types.d.ts.map +0 -1
- package/lib/components/AppShell/Header/AppHeader.types.js +0 -2
- package/lib/components/AppShell/Header/AppHeader.types.js.map +0 -1
- package/lib/components/AppShell/Header/BranchButton.d.ts +0 -20
- package/lib/components/AppShell/Header/BranchButton.d.ts.map +0 -1
- package/lib/components/AppShell/Header/BranchButton.js +0 -91
- package/lib/components/AppShell/Header/BranchButton.js.map +0 -1
- package/lib/components/AppShell/NavigationList.d.ts +0 -6
- package/lib/components/AppShell/NavigationList.d.ts.map +0 -1
- package/lib/components/AppShell/NavigationList.js +0 -97
- package/lib/components/AppShell/NavigationList.js.map +0 -1
- package/lib/components/AppShell/index.d.ts +0 -5
- package/lib/components/AppShell/index.d.ts.map +0 -1
- package/lib/components/AppShell/index.js +0 -2
- package/lib/components/AppShell/index.js.map +0 -1
- package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts +0 -10
- package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts.map +0 -1
- package/lib/components/DynamicContentEditor/DynamicContentEditor.js +0 -239
- package/lib/components/DynamicContentEditor/DynamicContentEditor.js.map +0 -1
- package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts +0 -23
- package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts.map +0 -1
- package/lib/components/DynamicContentEditor/DynamicContentEditor.types.js +0 -2
- package/lib/components/DynamicContentEditor/DynamicContentEditor.types.js.map +0 -1
- package/lib/components/DynamicContentEditor/PegaCustomElement.d.ts +0 -329
- package/lib/components/DynamicContentEditor/PegaCustomElement.d.ts.map +0 -1
- package/lib/components/DynamicContentEditor/PegaCustomElement.js +0 -23
- package/lib/components/DynamicContentEditor/PegaCustomElement.js.map +0 -1
- package/lib/components/DynamicContentEditor/index.d.ts +0 -3
- package/lib/components/DynamicContentEditor/index.d.ts.map +0 -1
- package/lib/components/DynamicContentEditor/index.js +0 -2
- package/lib/components/DynamicContentEditor/index.js.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.d.ts +0 -8
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js +0 -176
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.d.ts +0 -10
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js +0 -530
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts +0 -36
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.js +0 -2
- package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.js.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.d.ts +0 -13
- package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.js +0 -51
- package/lib/components/ExpressionBuilder/CodeEditor/getCodeSuggestions.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilder.d.ts +0 -6
- package/lib/components/ExpressionBuilder/ExpressionBuilder.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilder.js +0 -51
- package/lib/components/ExpressionBuilder/ExpressionBuilder.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.d.ts +0 -14
- package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.js +0 -81
- package/lib/components/ExpressionBuilder/ExpressionBuilder.styles.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilder.types.d.ts +0 -74
- package/lib/components/ExpressionBuilder/ExpressionBuilder.types.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilder.types.js +0 -2
- package/lib/components/ExpressionBuilder/ExpressionBuilder.types.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilderContext.d.ts +0 -7
- package/lib/components/ExpressionBuilder/ExpressionBuilderContext.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionBuilderContext.js +0 -6
- package/lib/components/ExpressionBuilder/ExpressionBuilderContext.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionDetails.d.ts +0 -6
- package/lib/components/ExpressionBuilder/ExpressionDetails.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionDetails.js +0 -12
- package/lib/components/ExpressionBuilder/ExpressionDetails.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionItem.d.ts +0 -6
- package/lib/components/ExpressionBuilder/ExpressionItem.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionItem.js +0 -39
- package/lib/components/ExpressionBuilder/ExpressionItem.js.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionList.d.ts +0 -6
- package/lib/components/ExpressionBuilder/ExpressionList.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/ExpressionList.js +0 -32
- package/lib/components/ExpressionBuilder/ExpressionList.js.map +0 -1
- package/lib/components/ExpressionBuilder/index.d.ts +0 -8
- package/lib/components/ExpressionBuilder/index.d.ts.map +0 -1
- package/lib/components/ExpressionBuilder/index.js +0 -6
- package/lib/components/ExpressionBuilder/index.js.map +0 -1
- package/lib/components/FlowModeller/AddNode.d.ts +0 -18
- package/lib/components/FlowModeller/AddNode.d.ts.map +0 -1
- package/lib/components/FlowModeller/AddNode.js +0 -86
- package/lib/components/FlowModeller/AddNode.js.map +0 -1
- package/lib/components/FlowModeller/Connector.d.ts +0 -7
- package/lib/components/FlowModeller/Connector.d.ts.map +0 -1
- package/lib/components/FlowModeller/Connector.js +0 -69
- package/lib/components/FlowModeller/Connector.js.map +0 -1
- package/lib/components/FlowModeller/DeletePopover.d.ts +0 -19
- package/lib/components/FlowModeller/DeletePopover.d.ts.map +0 -1
- package/lib/components/FlowModeller/DeletePopover.js +0 -136
- package/lib/components/FlowModeller/DeletePopover.js.map +0 -1
- package/lib/components/FlowModeller/FlowModeller.d.ts +0 -5
- package/lib/components/FlowModeller/FlowModeller.d.ts.map +0 -1
- package/lib/components/FlowModeller/FlowModeller.js +0 -317
- package/lib/components/FlowModeller/FlowModeller.js.map +0 -1
- package/lib/components/FlowModeller/FlowModeller.types.d.ts +0 -27
- package/lib/components/FlowModeller/FlowModeller.types.d.ts.map +0 -1
- package/lib/components/FlowModeller/FlowModeller.types.js +0 -2
- package/lib/components/FlowModeller/FlowModeller.types.js.map +0 -1
- package/lib/components/FlowModeller/FlowModellerContext.d.ts +0 -11
- package/lib/components/FlowModeller/FlowModellerContext.d.ts.map +0 -1
- package/lib/components/FlowModeller/FlowModellerContext.js +0 -8
- package/lib/components/FlowModeller/FlowModellerContext.js.map +0 -1
- package/lib/components/FlowModeller/Node/Node.types.d.ts +0 -75
- package/lib/components/FlowModeller/Node/Node.types.d.ts.map +0 -1
- package/lib/components/FlowModeller/Node/Node.types.js +0 -27
- package/lib/components/FlowModeller/Node/Node.types.js.map +0 -1
- package/lib/components/FlowModeller/Node/NodeTemplate.styles.d.ts +0 -21
- package/lib/components/FlowModeller/Node/NodeTemplate.styles.d.ts.map +0 -1
- package/lib/components/FlowModeller/Node/NodeTemplate.styles.js +0 -151
- package/lib/components/FlowModeller/Node/NodeTemplate.styles.js.map +0 -1
- package/lib/components/FlowModeller/Node/NodeTemplates.d.ts +0 -6
- package/lib/components/FlowModeller/Node/NodeTemplates.d.ts.map +0 -1
- package/lib/components/FlowModeller/Node/NodeTemplates.js +0 -70
- package/lib/components/FlowModeller/Node/NodeTemplates.js.map +0 -1
- package/lib/components/FlowModeller/Node.d.ts +0 -5
- package/lib/components/FlowModeller/Node.d.ts.map +0 -1
- package/lib/components/FlowModeller/Node.js +0 -22
- package/lib/components/FlowModeller/Node.js.map +0 -1
- package/lib/components/FlowModeller/Renderer/Renderer.d.ts +0 -5
- package/lib/components/FlowModeller/Renderer/Renderer.d.ts.map +0 -1
- package/lib/components/FlowModeller/Renderer/Renderer.js +0 -48
- package/lib/components/FlowModeller/Renderer/Renderer.js.map +0 -1
- package/lib/components/FlowModeller/Renderer/Renderer.types.d.ts +0 -18
- package/lib/components/FlowModeller/Renderer/Renderer.types.d.ts.map +0 -1
- package/lib/components/FlowModeller/Renderer/Renderer.types.js +0 -2
- package/lib/components/FlowModeller/Renderer/Renderer.types.js.map +0 -1
- package/lib/components/FlowModeller/Renderer/Utils/Graph.d.ts +0 -59
- package/lib/components/FlowModeller/Renderer/Utils/Graph.d.ts.map +0 -1
- package/lib/components/FlowModeller/Renderer/Utils/Graph.js +0 -258
- package/lib/components/FlowModeller/Renderer/Utils/Graph.js.map +0 -1
- package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.d.ts +0 -36
- package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.d.ts.map +0 -1
- package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js +0 -120
- package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js.map +0 -1
- package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.d.ts +0 -27
- package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.d.ts.map +0 -1
- package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.js +0 -172
- package/lib/components/FlowModeller/Renderer/Utils/GraphTraversal.js.map +0 -1
- package/lib/components/FlowModeller/Utils/addNodeUtils.d.ts +0 -17
- package/lib/components/FlowModeller/Utils/addNodeUtils.d.ts.map +0 -1
- package/lib/components/FlowModeller/Utils/addNodeUtils.js +0 -141
- package/lib/components/FlowModeller/Utils/addNodeUtils.js.map +0 -1
- package/lib/components/FlowModeller/Utils/deleteNodeUtils.d.ts +0 -30
- package/lib/components/FlowModeller/Utils/deleteNodeUtils.d.ts.map +0 -1
- package/lib/components/FlowModeller/Utils/deleteNodeUtils.js +0 -81
- package/lib/components/FlowModeller/Utils/deleteNodeUtils.js.map +0 -1
- package/lib/components/FlowModeller/helper.d.ts +0 -39
- package/lib/components/FlowModeller/helper.d.ts.map +0 -1
- package/lib/components/FlowModeller/helper.js +0 -198
- package/lib/components/FlowModeller/helper.js.map +0 -1
- package/lib/components/FlowModeller/index.d.ts +0 -20
- package/lib/components/FlowModeller/index.d.ts.map +0 -1
- package/lib/components/FlowModeller/index.js +0 -12
- package/lib/components/FlowModeller/index.js.map +0 -1
- package/lib/components/ItemLibrary/ItemLibrary.d.ts +0 -25
- package/lib/components/ItemLibrary/ItemLibrary.d.ts.map +0 -1
- package/lib/components/ItemLibrary/ItemLibrary.js +0 -62
- package/lib/components/ItemLibrary/ItemLibrary.js.map +0 -1
- package/lib/components/ItemLibrary/index.d.ts +0 -3
- package/lib/components/ItemLibrary/index.d.ts.map +0 -1
- package/lib/components/ItemLibrary/index.js +0 -3
- package/lib/components/ItemLibrary/index.js.map +0 -1
- package/lib/components/LifeCycle/Category.d.ts +0 -15
- package/lib/components/LifeCycle/Category.d.ts.map +0 -1
- package/lib/components/LifeCycle/Category.js +0 -104
- package/lib/components/LifeCycle/Category.js.map +0 -1
- package/lib/components/LifeCycle/LifeCycle.d.ts +0 -6
- package/lib/components/LifeCycle/LifeCycle.d.ts.map +0 -1
- package/lib/components/LifeCycle/LifeCycle.js +0 -77
- package/lib/components/LifeCycle/LifeCycle.js.map +0 -1
- package/lib/components/LifeCycle/LifeCycle.types.d.ts +0 -154
- package/lib/components/LifeCycle/LifeCycle.types.d.ts.map +0 -1
- package/lib/components/LifeCycle/LifeCycle.types.js +0 -79
- package/lib/components/LifeCycle/LifeCycle.types.js.map +0 -1
- package/lib/components/LifeCycle/LifeCycleContext.d.ts +0 -9
- package/lib/components/LifeCycle/LifeCycleContext.d.ts.map +0 -1
- package/lib/components/LifeCycle/LifeCycleContext.js +0 -7
- package/lib/components/LifeCycle/LifeCycleContext.js.map +0 -1
- package/lib/components/LifeCycle/LifeCycleList.d.ts +0 -30
- package/lib/components/LifeCycle/LifeCycleList.d.ts.map +0 -1
- package/lib/components/LifeCycle/LifeCycleList.js +0 -68
- package/lib/components/LifeCycle/LifeCycleList.js.map +0 -1
- package/lib/components/LifeCycle/Stage.d.ts +0 -29
- package/lib/components/LifeCycle/Stage.d.ts.map +0 -1
- package/lib/components/LifeCycle/Stage.js +0 -232
- package/lib/components/LifeCycle/Stage.js.map +0 -1
- package/lib/components/LifeCycle/Step.d.ts +0 -40
- package/lib/components/LifeCycle/Step.d.ts.map +0 -1
- package/lib/components/LifeCycle/Step.js +0 -170
- package/lib/components/LifeCycle/Step.js.map +0 -1
- package/lib/components/LifeCycle/Task.d.ts +0 -34
- package/lib/components/LifeCycle/Task.d.ts.map +0 -1
- package/lib/components/LifeCycle/Task.js +0 -158
- package/lib/components/LifeCycle/Task.js.map +0 -1
- package/lib/components/LifeCycle/index.d.ts +0 -3
- package/lib/components/LifeCycle/index.d.ts.map +0 -1
- package/lib/components/LifeCycle/index.js +0 -2
- package/lib/components/LifeCycle/index.js.map +0 -1
- package/lib/components/MobileBuildSummary/MobileBuildSummary.d.ts +0 -8
- package/lib/components/MobileBuildSummary/MobileBuildSummary.d.ts.map +0 -1
- package/lib/components/MobileBuildSummary/MobileBuildSummary.js +0 -33
- package/lib/components/MobileBuildSummary/MobileBuildSummary.js.map +0 -1
- package/lib/components/MobileBuildSummary/MobileBuildSummary.types.d.ts +0 -31
- package/lib/components/MobileBuildSummary/MobileBuildSummary.types.d.ts.map +0 -1
- package/lib/components/MobileBuildSummary/MobileBuildSummary.types.js +0 -2
- package/lib/components/MobileBuildSummary/MobileBuildSummary.types.js.map +0 -1
- package/lib/components/MobileBuildSummary/index.d.ts +0 -3
- package/lib/components/MobileBuildSummary/index.d.ts.map +0 -1
- package/lib/components/MobileBuildSummary/index.js +0 -2
- package/lib/components/MobileBuildSummary/index.js.map +0 -1
- package/lib/components/ObjectPreview/ObjectPreview.d.ts +0 -16
- package/lib/components/ObjectPreview/ObjectPreview.d.ts.map +0 -1
- package/lib/components/ObjectPreview/ObjectPreview.js +0 -25
- package/lib/components/ObjectPreview/ObjectPreview.js.map +0 -1
- package/lib/components/ObjectPreview/index.d.ts +0 -3
- package/lib/components/ObjectPreview/index.d.ts.map +0 -1
- package/lib/components/ObjectPreview/index.js +0 -3
- package/lib/components/ObjectPreview/index.js.map +0 -1
- package/lib/components/ObjectSelect/ObjectPicker.d.ts +0 -15
- package/lib/components/ObjectSelect/ObjectPicker.d.ts.map +0 -1
- package/lib/components/ObjectSelect/ObjectPicker.js +0 -40
- package/lib/components/ObjectSelect/ObjectPicker.js.map +0 -1
- package/lib/components/ObjectSelect/ObjectSelect.d.ts +0 -32
- package/lib/components/ObjectSelect/ObjectSelect.d.ts.map +0 -1
- package/lib/components/ObjectSelect/ObjectSelect.js +0 -41
- package/lib/components/ObjectSelect/ObjectSelect.js.map +0 -1
- package/lib/components/ObjectSelect/ObjectSummary.d.ts +0 -32
- package/lib/components/ObjectSelect/ObjectSummary.d.ts.map +0 -1
- package/lib/components/ObjectSelect/ObjectSummary.js +0 -81
- package/lib/components/ObjectSelect/ObjectSummary.js.map +0 -1
- package/lib/components/ObjectSelect/index.d.ts +0 -3
- package/lib/components/ObjectSelect/index.d.ts.map +0 -1
- package/lib/components/ObjectSelect/index.js +0 -2
- package/lib/components/ObjectSelect/index.js.map +0 -1
- package/lib/components/ObjectSelect/useCreateModal.d.ts +0 -32
- package/lib/components/ObjectSelect/useCreateModal.d.ts.map +0 -1
- package/lib/components/ObjectSelect/useCreateModal.js +0 -60
- package/lib/components/ObjectSelect/useCreateModal.js.map +0 -1
- package/lib/components/PageBanner/PageBanner.d.ts +0 -22
- package/lib/components/PageBanner/PageBanner.d.ts.map +0 -1
- package/lib/components/PageBanner/PageBanner.js +0 -59
- package/lib/components/PageBanner/PageBanner.js.map +0 -1
- package/lib/components/PageBanner/index.d.ts +0 -3
- package/lib/components/PageBanner/index.d.ts.map +0 -1
- package/lib/components/PageBanner/index.js +0 -2
- package/lib/components/PageBanner/index.js.map +0 -1
- package/lib/components/PageTemplates/GalleryPage.d.ts +0 -23
- package/lib/components/PageTemplates/GalleryPage.d.ts.map +0 -1
- package/lib/components/PageTemplates/GalleryPage.js +0 -47
- package/lib/components/PageTemplates/GalleryPage.js.map +0 -1
- package/lib/components/PageTemplates/PageTemplates.d.ts +0 -27
- package/lib/components/PageTemplates/PageTemplates.d.ts.map +0 -1
- package/lib/components/PageTemplates/PageTemplates.js +0 -72
- package/lib/components/PageTemplates/PageTemplates.js.map +0 -1
- package/lib/components/PageTemplates/ShowcasePage.d.ts +0 -16
- package/lib/components/PageTemplates/ShowcasePage.d.ts.map +0 -1
- package/lib/components/PageTemplates/ShowcasePage.js +0 -29
- package/lib/components/PageTemplates/ShowcasePage.js.map +0 -1
- package/lib/components/PageTemplates/index.d.ts +0 -6
- package/lib/components/PageTemplates/index.d.ts.map +0 -1
- package/lib/components/PageTemplates/index.js +0 -4
- package/lib/components/PageTemplates/index.js.map +0 -1
- package/lib/components/SummaryCard/SummaryCard.d.ts +0 -15
- package/lib/components/SummaryCard/SummaryCard.d.ts.map +0 -1
- package/lib/components/SummaryCard/SummaryCard.js +0 -27
- package/lib/components/SummaryCard/SummaryCard.js.map +0 -1
- package/lib/components/SummaryCard/index.d.ts +0 -3
- package/lib/components/SummaryCard/index.d.ts.map +0 -1
- package/lib/components/SummaryCard/index.js +0 -3
- package/lib/components/SummaryCard/index.js.map +0 -1
- package/lib/components/Workbench/ConfigurationPanel.d.ts +0 -5
- package/lib/components/Workbench/ConfigurationPanel.d.ts.map +0 -1
- package/lib/components/Workbench/ConfigurationPanel.js +0 -10
- package/lib/components/Workbench/ConfigurationPanel.js.map +0 -1
- package/lib/components/Workbench/Toolbar.d.ts +0 -10
- package/lib/components/Workbench/Toolbar.d.ts.map +0 -1
- package/lib/components/Workbench/Toolbar.js +0 -14
- package/lib/components/Workbench/Toolbar.js.map +0 -1
- package/lib/components/Workbench/UtilityPanel.d.ts +0 -7
- package/lib/components/Workbench/UtilityPanel.d.ts.map +0 -1
- package/lib/components/Workbench/UtilityPanel.js +0 -12
- package/lib/components/Workbench/UtilityPanel.js.map +0 -1
- package/lib/components/Workbench/Workbench.d.ts +0 -6
- package/lib/components/Workbench/Workbench.d.ts.map +0 -1
- package/lib/components/Workbench/Workbench.js +0 -23
- package/lib/components/Workbench/Workbench.js.map +0 -1
- package/lib/components/Workbench/Workbench.styles.d.ts +0 -10
- package/lib/components/Workbench/Workbench.styles.d.ts.map +0 -1
- package/lib/components/Workbench/Workbench.styles.js +0 -75
- package/lib/components/Workbench/Workbench.styles.js.map +0 -1
- package/lib/components/Workbench/Workbench.types.d.ts +0 -47
- package/lib/components/Workbench/Workbench.types.d.ts.map +0 -1
- package/lib/components/Workbench/Workbench.types.js +0 -2
- package/lib/components/Workbench/Workbench.types.js.map +0 -1
- package/lib/components/Workbench/index.d.ts +0 -2
- package/lib/components/Workbench/index.d.ts.map +0 -1
- package/lib/components/Workbench/index.js +0 -2
- package/lib/components/Workbench/index.js.map +0 -1
- package/lib/index.d.ts +0 -23
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -24
- package/lib/index.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -2
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/utils.d.ts +0 -14
- package/lib/utils/utils.d.ts.map +0 -1
- package/lib/utils/utils.js +0 -13
- package/lib/utils/utils.js.map +0 -1
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useRef, useEffect, useState } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { Editor } from '@pega/cosmos-react-rte';
|
|
5
|
-
import { Button, defaultThemeProp, Menu, menuHelpers, Modal, Popover, StyledPopover, useModalManager, useConsolidatedRef, useI18n, useUID } from '@pega/cosmos-react-core';
|
|
6
|
-
import { getKeyCommand } from '@pega/cosmos-react-rte/lib/components/RichTextEditor/Toolbar/utils';
|
|
7
|
-
import { pegaReferenceElementStyle, createPegaReferenceElement } from './PegaCustomElement';
|
|
8
|
-
const StyledDynamicContentEditor = styled.div ``;
|
|
9
|
-
export const StyledSearchPopover = styled(StyledPopover) `
|
|
10
|
-
min-width: 20rem;
|
|
11
|
-
`;
|
|
12
|
-
StyledDynamicContentEditor.defaultProps = defaultThemeProp;
|
|
13
|
-
const DynamicContentEditor = forwardRef(function DynamicContentEditor({ form: { dynamicContentPicker, onSubmit }, onActiveFieldChange, label, toolbar, fieldItems, defaultValue, onBlur, ...restProps }, ref) {
|
|
14
|
-
const menuID = useUID();
|
|
15
|
-
const { create } = useModalManager();
|
|
16
|
-
const t = useI18n();
|
|
17
|
-
const modalMethods = useRef();
|
|
18
|
-
const [editor, setEditor] = useState();
|
|
19
|
-
const [bookmark, setBookmark] = useState();
|
|
20
|
-
const [fieldMenuItems, setFieldMenuItems] = useState(fieldItems || []);
|
|
21
|
-
const [currentElementId, setCurrentElementId] = useState('');
|
|
22
|
-
const [currentElementContent, setCurrentElementContent] = useState('');
|
|
23
|
-
const [currentCursorPosition, setCurrentCursorPosition] = useState({
|
|
24
|
-
bottom: 0,
|
|
25
|
-
height: 0,
|
|
26
|
-
left: 0,
|
|
27
|
-
right: 0,
|
|
28
|
-
top: 0,
|
|
29
|
-
width: 0,
|
|
30
|
-
x: 0,
|
|
31
|
-
y: 0,
|
|
32
|
-
toJSON: () => { }
|
|
33
|
-
});
|
|
34
|
-
const [showFieldsPopover, setShowFieldsPopover] = useState(false);
|
|
35
|
-
const fieldPopoverRef = useRef(null);
|
|
36
|
-
const editorRef = useConsolidatedRef(ref);
|
|
37
|
-
const tooltip = getKeyCommand(navigator.appVersion.includes('Mac'), ({ ctrl }) => `${t('rte_insert_field')} (${ctrl}/)`);
|
|
38
|
-
const insertField = (field) => {
|
|
39
|
-
if (!editor)
|
|
40
|
-
return;
|
|
41
|
-
const fieldContent = `<pega-reference role="button" contenteditable="false" data-rule-type='field' data-rule-id=${field.id}>${field.text}</pega-reference>`;
|
|
42
|
-
if (bookmark) {
|
|
43
|
-
editor.selection.moveToBookmark(bookmark);
|
|
44
|
-
editor.selection.setContent(fieldContent);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
editor.insertContent(fieldContent);
|
|
48
|
-
}
|
|
49
|
-
modalMethods.current?.dismiss();
|
|
50
|
-
};
|
|
51
|
-
const modalProps = {
|
|
52
|
-
children: dynamicContentPicker,
|
|
53
|
-
heading: t('rte_insert_field'),
|
|
54
|
-
actions: (_jsxs(_Fragment, { children: [_jsx(Button, { variant: 'secondary', onClick: () => modalMethods.current?.dismiss(), children: t('cancel') }), _jsx(Button, { variant: 'primary', onClick: () => onSubmit(insertField), children: t('submit') })] })),
|
|
55
|
-
center: true,
|
|
56
|
-
onAfterClose: () => {
|
|
57
|
-
setBookmark(undefined);
|
|
58
|
-
setCurrentElementId('');
|
|
59
|
-
setCurrentElementContent('');
|
|
60
|
-
onActiveFieldChange({ id: '', text: '' });
|
|
61
|
-
},
|
|
62
|
-
onBeforeOpen: () => {
|
|
63
|
-
if (currentElementId) {
|
|
64
|
-
onActiveFieldChange({ id: currentElementId, text: currentElementContent });
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
const findAndRenameField = (fieldId) => {
|
|
69
|
-
if (!editor || !fieldMenuItems)
|
|
70
|
-
return;
|
|
71
|
-
const selectedRange = editor.selection.getRng();
|
|
72
|
-
const endOffset = selectedRange.endOffset;
|
|
73
|
-
const stringToSearch = selectedRange.commonAncestorContainer.nodeValue?.slice(0, endOffset);
|
|
74
|
-
if (stringToSearch === undefined)
|
|
75
|
-
return;
|
|
76
|
-
const splitSearch = stringToSearch.split(' ');
|
|
77
|
-
const fieldString = splitSearch[splitSearch.length - 1];
|
|
78
|
-
const range = editor.getDoc().createRange();
|
|
79
|
-
const startPos = stringToSearch.lastIndexOf(fieldString);
|
|
80
|
-
const endPos = startPos + fieldString.length;
|
|
81
|
-
range.setStart(selectedRange.commonAncestorContainer, startPos);
|
|
82
|
-
range.setEnd(selectedRange.commonAncestorContainer, endPos);
|
|
83
|
-
editor.getDoc().getSelection()?.removeAllRanges();
|
|
84
|
-
editor.getDoc().getSelection()?.addRange(range);
|
|
85
|
-
const selectedField = menuHelpers.getItem(fieldMenuItems, fieldId);
|
|
86
|
-
if (selectedField) {
|
|
87
|
-
editor.selection.setContent(`<pega-reference role="button" contenteditable="false" data-rule-type="field" data-rule-id=".${selectedField.id}">${selectedField.primary}</pega-reference>`);
|
|
88
|
-
setShowFieldsPopover(false);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
const hidePopover = () => {
|
|
92
|
-
if (fieldPopoverRef)
|
|
93
|
-
setShowFieldsPopover(false);
|
|
94
|
-
};
|
|
95
|
-
const filterFieldMenu = (searchString) => {
|
|
96
|
-
setShowFieldsPopover(true);
|
|
97
|
-
setFieldMenuItems(fieldItems || []);
|
|
98
|
-
if (/\s/.test(searchString)) {
|
|
99
|
-
setShowFieldsPopover(false);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
if (searchString && fieldMenuItems) {
|
|
103
|
-
const newFieldMenuItems = menuHelpers
|
|
104
|
-
.flatten(fieldMenuItems)
|
|
105
|
-
.filter(({ primary }) => primary.toLowerCase().startsWith(searchString.toLocaleLowerCase()));
|
|
106
|
-
if (newFieldMenuItems) {
|
|
107
|
-
setShowFieldsPopover(true);
|
|
108
|
-
setFieldMenuItems(newFieldMenuItems);
|
|
109
|
-
}
|
|
110
|
-
else
|
|
111
|
-
setShowFieldsPopover(false);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
const updateBookmarkAndCurrentElement = (editorSelection) => {
|
|
115
|
-
const targetEl = editorSelection.getNode();
|
|
116
|
-
const fieldId = targetEl.getAttribute('data-rule-id');
|
|
117
|
-
const fieldValue = targetEl.innerText;
|
|
118
|
-
setBookmark(editorSelection.getBookmark());
|
|
119
|
-
setCurrentElementId(fieldId || '');
|
|
120
|
-
setCurrentElementContent(fieldValue);
|
|
121
|
-
};
|
|
122
|
-
const handleElementClick = ({ target }) => {
|
|
123
|
-
if (editor && target && target.tagName === 'PEGA-REFERENCE') {
|
|
124
|
-
updateBookmarkAndCurrentElement(editor.selection);
|
|
125
|
-
}
|
|
126
|
-
hidePopover();
|
|
127
|
-
};
|
|
128
|
-
const onInsertField = (incEditor) => {
|
|
129
|
-
const targetEl = incEditor.selection.getNode();
|
|
130
|
-
if (targetEl.tagName === 'PEGA-REFERENCE') {
|
|
131
|
-
updateBookmarkAndCurrentElement(incEditor.selection);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
modalMethods.current = create(Modal, modalProps);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
const isPegaRefActive = (incEditor) => {
|
|
138
|
-
const targetEl = incEditor.selection.getNode();
|
|
139
|
-
return targetEl.tagName === 'PEGA-REFERENCE';
|
|
140
|
-
};
|
|
141
|
-
const fieldSelectionPopover = (_jsx(Popover, { show: showFieldsPopover, strategy: 'fixed', ref: fieldPopoverRef, target: {
|
|
142
|
-
getBoundingClientRect() {
|
|
143
|
-
return currentCursorPosition;
|
|
144
|
-
}
|
|
145
|
-
}, modifiers: [
|
|
146
|
-
{
|
|
147
|
-
name: 'offset',
|
|
148
|
-
options: {
|
|
149
|
-
offset: () => {
|
|
150
|
-
const iframe = editorRef.current?.element?.querySelector('iframe');
|
|
151
|
-
const iframeRect = iframe?.getBoundingClientRect();
|
|
152
|
-
const x = iframeRect?.x ?? 0;
|
|
153
|
-
const y = iframeRect?.y ?? 0;
|
|
154
|
-
return [x, y];
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
], placement: 'bottom-start', children: fieldMenuItems && (_jsx(Menu, { id: menuID, items: fieldMenuItems, as: StyledSearchPopover, focusControlEl: editor?.getBody() || undefined, mode: 'action', onItemClick: findAndRenameField, variant: 'drill-down' })) }));
|
|
159
|
-
useEffect(() => {
|
|
160
|
-
if (currentElementId && currentElementContent)
|
|
161
|
-
modalMethods.current = create(Modal, modalProps);
|
|
162
|
-
}, [currentElementId, currentElementContent]);
|
|
163
|
-
useEffect(() => {
|
|
164
|
-
editor?.getDoc().addEventListener('click', handleElementClick);
|
|
165
|
-
return () => {
|
|
166
|
-
editor?.getDoc().removeEventListener('click', handleElementClick);
|
|
167
|
-
};
|
|
168
|
-
}, [editor, editorRef.current]);
|
|
169
|
-
useEffect(() => {
|
|
170
|
-
if (modalMethods.current) {
|
|
171
|
-
modalMethods.current.update(modalProps);
|
|
172
|
-
}
|
|
173
|
-
}, [modalProps]);
|
|
174
|
-
const onEditorChange = (formEditor) => {
|
|
175
|
-
if (formEditor) {
|
|
176
|
-
const targetEl = formEditor.selection.getBoundingClientRect();
|
|
177
|
-
const { left = 0, top = 0 } = targetEl ?? {};
|
|
178
|
-
setCurrentCursorPosition({
|
|
179
|
-
...formEditor.selection.getBoundingClientRect(),
|
|
180
|
-
x: left,
|
|
181
|
-
y: top,
|
|
182
|
-
toJSON: () => { }
|
|
183
|
-
});
|
|
184
|
-
if (formEditor.selection.isCollapsed()) {
|
|
185
|
-
// get the full line string
|
|
186
|
-
const selectedRange = formEditor.selection.getRng();
|
|
187
|
-
const endOffset = selectedRange.endOffset;
|
|
188
|
-
const stringToSearch = selectedRange.commonAncestorContainer.nodeValue?.slice(0, endOffset);
|
|
189
|
-
const fieldString = stringToSearch?.split(' ')[stringToSearch.split(' ').length - 1];
|
|
190
|
-
if (fieldString?.startsWith('@') &&
|
|
191
|
-
fieldString.indexOf('@') === fieldString.lastIndexOf('@')) {
|
|
192
|
-
filterFieldMenu(fieldString.slice(1));
|
|
193
|
-
}
|
|
194
|
-
else
|
|
195
|
-
setShowFieldsPopover(false);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
const onKeyDown = event => {
|
|
200
|
-
if ((event?.key === 'Enter' ||
|
|
201
|
-
event?.key === 'ArrowLeft' ||
|
|
202
|
-
event?.key === 'ArrowRight' ||
|
|
203
|
-
event?.key === 'ArrowDown' ||
|
|
204
|
-
event?.key === 'ArrowUp') &&
|
|
205
|
-
!!fieldPopoverRef.current) {
|
|
206
|
-
event?.preventDefault();
|
|
207
|
-
}
|
|
208
|
-
if (event?.key === 'Escape' && !!fieldPopoverRef.current) {
|
|
209
|
-
hidePopover();
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
return (_jsx(Editor, { ref: editorRef, ...restProps, label: label, toolbar: toolbar, customComponents: [
|
|
213
|
-
{
|
|
214
|
-
createCustomElement: createPegaReferenceElement,
|
|
215
|
-
name: 'pega-reference',
|
|
216
|
-
extensionAttributes: ['contenteditable'],
|
|
217
|
-
style: pegaReferenceElementStyle
|
|
218
|
-
}
|
|
219
|
-
], customActions: [
|
|
220
|
-
{
|
|
221
|
-
icon: 'code',
|
|
222
|
-
text: tooltip,
|
|
223
|
-
onMouseDown: () => {
|
|
224
|
-
modalMethods.current = create(Modal, modalProps);
|
|
225
|
-
},
|
|
226
|
-
active: isPegaRefActive,
|
|
227
|
-
shortcut: {
|
|
228
|
-
pattern: 'meta+191',
|
|
229
|
-
description: tooltip,
|
|
230
|
-
command: onInsertField
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
], onInit: setEditor, onChange: onEditorChange, onBlur: () => {
|
|
234
|
-
onBlur?.();
|
|
235
|
-
hidePopover();
|
|
236
|
-
}, onKeyDown: onKeyDown, defaultValue: defaultValue, children: fieldSelectionPopover }));
|
|
237
|
-
});
|
|
238
|
-
export default DynamicContentEditor;
|
|
239
|
-
//# sourceMappingURL=DynamicContentEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicContentEditor.js","sourceRoot":"","sources":["../../../src/components/DynamicContentEditor/DynamicContentEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC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CAAC;SACf;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,MAAM,IACL,GAAG,EAAE,SAAS,KACV,SAAS,EACb,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE;YAChB;gBACE,mBAAmB,EAAE,0BAA0B;gBAC/C,IAAI,EAAE,gBAAgB;gBACtB,mBAAmB,EAAE,CAAC,iBAAiB,CAAC;gBACxC,KAAK,EAAE,yBAAyB;aACjC;SACF,EACD,aAAa,EAAE;YACb;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,GAAG,EAAE;oBAChB,YAAY,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;gBACnD,CAAC;gBACD,MAAM,EAAE,eAAe;gBACvB,QAAQ,EAAE;oBACR,OAAO,EAAE,UAAU;oBACnB,WAAW,EAAE,OAAO;oBACpB,OAAO,EAAE,aAAa;iBACvB;aACF;SACF,EACD,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,GAAG,EAAE;YACX,MAAM,EAAE,EAAE,CAAC;YACX,WAAW,EAAE,CAAC;QAChB,CAAC,EACD,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,YAEzB,qBAAqB,GACf,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEL,eAAe,oBAAoB,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, PropsWithoutRef, useRef, useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { Bookmark, Editor as TinyMCEEditor, EditorSelection } from 'tinymce';\n\nimport { Editor, EditorProps } from '@pega/cosmos-react-rte';\nimport {\n Button,\n defaultThemeProp,\n ForwardProps,\n Menu,\n menuHelpers,\n MenuProps,\n Modal,\n ModalMethods,\n Popover,\n PropsWithDefaults,\n StyledPopover,\n useModalManager,\n useConsolidatedRef,\n useI18n,\n useUID\n} from '@pega/cosmos-react-core';\nimport { getKeyCommand } from '@pega/cosmos-react-rte/lib/components/RichTextEditor/Toolbar/utils';\n\nimport { DynamicContentEditorProps, ItemType } from './DynamicContentEditor.types';\nimport { pegaReferenceElementStyle, createPegaReferenceElement } from './PegaCustomElement';\n\ntype DynamicContentEditorPropsWithDefaults = PropsWithDefaults<DynamicContentEditorProps>;\n\nconst StyledDynamicContentEditor = styled.div<DynamicContentEditorPropsWithDefaults>``;\n\nexport const StyledSearchPopover = styled(StyledPopover)`\n min-width: 20rem;\n`;\n\nStyledDynamicContentEditor.defaultProps = defaultThemeProp;\n\nconst DynamicContentEditor: FunctionComponent<DynamicContentEditorProps & ForwardProps> =\n forwardRef(function DynamicContentEditor(\n {\n form: { dynamicContentPicker, onSubmit },\n onActiveFieldChange,\n label,\n toolbar,\n fieldItems,\n defaultValue,\n onBlur,\n ...restProps\n }: PropsWithoutRef<DynamicContentEditorProps>,\n ref: DynamicContentEditorProps['ref']\n ) {\n const menuID = useUID();\n const { create } = useModalManager();\n const t = useI18n();\n\n const modalMethods = useRef<ModalMethods>();\n const [editor, setEditor] = useState<TinyMCEEditor | undefined>();\n const [bookmark, setBookmark] = useState<Bookmark | undefined>();\n const [fieldMenuItems, setFieldMenuItems] = useState<MenuProps['items']>(fieldItems || []);\n const [currentElementId, setCurrentElementId] = useState('');\n const [currentElementContent, setCurrentElementContent] = useState('');\n const [currentCursorPosition, setCurrentCursorPosition] = useState({\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n toJSON: () => {}\n });\n const [showFieldsPopover, setShowFieldsPopover] = useState<boolean>(false);\n\n const fieldPopoverRef = useRef<HTMLDivElement>(null);\n const editorRef = useConsolidatedRef(ref);\n\n const tooltip = getKeyCommand(\n navigator.appVersion.includes('Mac'),\n ({ ctrl }) => `${t('rte_insert_field')} (${ctrl}/)`\n );\n\n const insertField = (field: ItemType) => {\n if (!editor) return;\n\n const fieldContent = `<pega-reference role=\"button\" contenteditable=\"false\" data-rule-type='field' data-rule-id=${field.id}>${field.text}</pega-reference>`;\n if (bookmark) {\n editor.selection.moveToBookmark(bookmark);\n editor.selection.setContent(fieldContent);\n } else {\n editor.insertContent(fieldContent);\n }\n\n modalMethods.current?.dismiss();\n };\n\n const modalProps = {\n children: dynamicContentPicker,\n heading: t('rte_insert_field'),\n actions: (\n <>\n <Button variant='secondary' onClick={() => modalMethods.current?.dismiss()}>\n {t('cancel')}\n </Button>\n <Button variant='primary' onClick={() => onSubmit(insertField)}>\n {t('submit')}\n </Button>\n </>\n ),\n center: true,\n onAfterClose: () => {\n setBookmark(undefined);\n setCurrentElementId('');\n setCurrentElementContent('');\n onActiveFieldChange({ id: '', text: '' });\n },\n onBeforeOpen: () => {\n if (currentElementId) {\n onActiveFieldChange({ id: currentElementId, text: currentElementContent });\n }\n }\n };\n\n const findAndRenameField = (fieldId: string) => {\n if (!editor || !fieldMenuItems) return;\n\n const selectedRange = editor.selection.getRng();\n const endOffset = selectedRange.endOffset;\n const stringToSearch = selectedRange.commonAncestorContainer.nodeValue?.slice(0, endOffset);\n if (stringToSearch === undefined) return;\n\n const splitSearch = stringToSearch.split(' ');\n const fieldString = splitSearch[splitSearch.length - 1];\n const range = editor.getDoc().createRange();\n\n const startPos = stringToSearch.lastIndexOf(fieldString);\n const endPos = startPos + fieldString.length;\n range.setStart(selectedRange.commonAncestorContainer, startPos);\n range.setEnd(selectedRange.commonAncestorContainer, endPos);\n editor.getDoc().getSelection()?.removeAllRanges();\n editor.getDoc().getSelection()?.addRange(range);\n\n const selectedField = menuHelpers.getItem(fieldMenuItems, fieldId);\n if (selectedField) {\n editor.selection.setContent(\n `<pega-reference role=\"button\" contenteditable=\"false\" data-rule-type=\"field\" data-rule-id=\".${selectedField.id}\">${selectedField.primary}</pega-reference>`\n );\n setShowFieldsPopover(false);\n }\n };\n\n const hidePopover = () => {\n if (fieldPopoverRef) setShowFieldsPopover(false);\n };\n\n const filterFieldMenu = (searchString: string) => {\n setShowFieldsPopover(true);\n setFieldMenuItems(fieldItems || []);\n if (/\\s/.test(searchString)) {\n setShowFieldsPopover(false);\n return;\n }\n if (searchString && fieldMenuItems) {\n const newFieldMenuItems: MenuProps['items'] = menuHelpers\n .flatten(fieldMenuItems)\n .filter(({ primary }) =>\n primary.toLowerCase().startsWith(searchString.toLocaleLowerCase())\n );\n if (newFieldMenuItems) {\n setShowFieldsPopover(true);\n setFieldMenuItems(newFieldMenuItems);\n } else setShowFieldsPopover(false);\n }\n };\n\n const updateBookmarkAndCurrentElement = (editorSelection: EditorSelection) => {\n const targetEl = editorSelection.getNode() as HTMLElement;\n const fieldId = targetEl.getAttribute('data-rule-id');\n const fieldValue = targetEl.innerText;\n setBookmark(editorSelection.getBookmark());\n setCurrentElementId(fieldId || '');\n setCurrentElementContent(fieldValue);\n };\n\n const handleElementClick = ({ target }: MouseEvent) => {\n if (editor && target && (target as HTMLElement).tagName === 'PEGA-REFERENCE') {\n updateBookmarkAndCurrentElement(editor.selection);\n }\n hidePopover();\n };\n\n const onInsertField = (incEditor: TinyMCEEditor) => {\n const targetEl = incEditor.selection.getNode();\n if (targetEl.tagName === 'PEGA-REFERENCE') {\n updateBookmarkAndCurrentElement(incEditor.selection);\n } else {\n modalMethods.current = create(Modal, modalProps);\n }\n };\n\n const isPegaRefActive = (incEditor: TinyMCEEditor) => {\n const targetEl = incEditor.selection.getNode();\n return targetEl.tagName === 'PEGA-REFERENCE';\n };\n\n const fieldSelectionPopover = (\n <Popover\n show={showFieldsPopover}\n strategy='fixed'\n ref={fieldPopoverRef}\n target={{\n getBoundingClientRect() {\n return currentCursorPosition;\n }\n }}\n modifiers={[\n {\n name: 'offset',\n options: {\n offset: () => {\n const iframe = editorRef.current?.element?.querySelector('iframe');\n const iframeRect = iframe?.getBoundingClientRect();\n const x = iframeRect?.x ?? 0;\n const y = iframeRect?.y ?? 0;\n return [x, y];\n }\n }\n }\n ]}\n placement='bottom-start'\n >\n {fieldMenuItems && (\n <Menu\n id={menuID}\n items={fieldMenuItems}\n as={StyledSearchPopover}\n focusControlEl={editor?.getBody() || undefined}\n mode='action'\n onItemClick={findAndRenameField}\n variant='drill-down'\n />\n )}\n </Popover>\n );\n\n useEffect(() => {\n if (currentElementId && currentElementContent)\n modalMethods.current = create(Modal, modalProps);\n }, [currentElementId, currentElementContent]);\n\n useEffect(() => {\n editor?.getDoc().addEventListener('click', handleElementClick);\n return () => {\n editor?.getDoc().removeEventListener('click', handleElementClick);\n };\n }, [editor, editorRef.current]);\n\n useEffect(() => {\n if (modalMethods.current) {\n modalMethods.current.update(modalProps);\n }\n }, [modalProps]);\n\n const onEditorChange: EditorProps['onChange'] = (formEditor?: TinyMCEEditor) => {\n if (formEditor) {\n const targetEl = formEditor.selection.getBoundingClientRect();\n const { left = 0, top = 0 } = targetEl ?? {};\n setCurrentCursorPosition({\n ...formEditor.selection.getBoundingClientRect(),\n x: left,\n y: top,\n toJSON: () => {}\n });\n\n if (formEditor.selection.isCollapsed()) {\n // get the full line string\n const selectedRange = formEditor.selection.getRng();\n const endOffset = selectedRange.endOffset;\n const stringToSearch = selectedRange.commonAncestorContainer.nodeValue?.slice(\n 0,\n endOffset\n );\n const fieldString = stringToSearch?.split(' ')[stringToSearch.split(' ').length - 1];\n if (\n fieldString?.startsWith('@') &&\n fieldString.indexOf('@') === fieldString.lastIndexOf('@')\n ) {\n filterFieldMenu(fieldString.slice(1));\n } else setShowFieldsPopover(false);\n }\n }\n };\n\n const onKeyDown: EditorProps['onKeyDown'] = event => {\n if (\n (event?.key === 'Enter' ||\n event?.key === 'ArrowLeft' ||\n event?.key === 'ArrowRight' ||\n event?.key === 'ArrowDown' ||\n event?.key === 'ArrowUp') &&\n !!fieldPopoverRef.current\n ) {\n event?.preventDefault();\n }\n if (event?.key === 'Escape' && !!fieldPopoverRef.current) {\n hidePopover();\n }\n };\n\n return (\n <Editor\n ref={editorRef}\n {...restProps}\n label={label}\n toolbar={toolbar}\n customComponents={[\n {\n createCustomElement: createPegaReferenceElement,\n name: 'pega-reference',\n extensionAttributes: ['contenteditable'],\n style: pegaReferenceElementStyle\n }\n ]}\n customActions={[\n {\n icon: 'code',\n text: tooltip,\n onMouseDown: () => {\n modalMethods.current = create(Modal, modalProps);\n },\n active: isPegaRefActive,\n shortcut: {\n pattern: 'meta+191',\n description: tooltip,\n command: onInsertField\n }\n }\n ]}\n onInit={setEditor}\n onChange={onEditorChange}\n onBlur={() => {\n onBlur?.();\n hidePopover();\n }}\n onKeyDown={onKeyDown}\n defaultValue={defaultValue}\n >\n {fieldSelectionPopover}\n </Editor>\n );\n });\n\nexport default DynamicContentEditor;\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { EditorProps } from '@pega/cosmos-react-rte';
|
|
3
|
-
import { MenuProps } from '@pega/cosmos-react-core/lib/components/Menu/Menu.types';
|
|
4
|
-
export type ItemType = {
|
|
5
|
-
id: string;
|
|
6
|
-
text: string;
|
|
7
|
-
};
|
|
8
|
-
export interface DynamicContentEditorProps extends EditorProps {
|
|
9
|
-
/** Insert field form */
|
|
10
|
-
form: {
|
|
11
|
-
onSubmit: (insertField: (selectedField: ItemType) => void) => void;
|
|
12
|
-
dynamicContentPicker: ReactNode;
|
|
13
|
-
};
|
|
14
|
-
onActiveFieldChange: (field: ItemType) => void;
|
|
15
|
-
/** Property selection array */
|
|
16
|
-
fieldItems?: MenuProps['items'];
|
|
17
|
-
defaultValue?: string;
|
|
18
|
-
onBlur?: () => void;
|
|
19
|
-
}
|
|
20
|
-
export interface DynamicContentEditorContextProps extends DynamicContentEditorProps {
|
|
21
|
-
updateProperties?: (selectedfield: ItemType) => void;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=DynamicContentEditor.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicContentEditor.types.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicContentEditor/DynamicContentEditor.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAC;AAEnF,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,wBAAwB;IACxB,IAAI,EAAE;QACJ,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,QAAQ,KAAK,IAAI,KAAK,IAAI,CAAC;QACnE,oBAAoB,EAAE,SAAS,CAAC;KACjC,CAAC;IACF,mBAAmB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC/C,+BAA+B;IAC/B,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,gCAAiC,SAAQ,yBAAyB;IACjF,gBAAgB,CAAC,EAAE,CAAC,aAAa,EAAE,QAAQ,KAAK,IAAI,CAAC;CACtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicContentEditor.types.js","sourceRoot":"","sources":["../../../src/components/DynamicContentEditor/DynamicContentEditor.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ReactNode } from 'react';\n\nimport { EditorProps } from '@pega/cosmos-react-rte';\nimport { MenuProps } from '@pega/cosmos-react-core/lib/components/Menu/Menu.types';\n\nexport type ItemType = {\n id: string;\n text: string;\n};\n\nexport interface DynamicContentEditorProps extends EditorProps {\n /** Insert field form */\n form: {\n onSubmit: (insertField: (selectedField: ItemType) => void) => void;\n dynamicContentPicker: ReactNode;\n };\n onActiveFieldChange: (field: ItemType) => void;\n /** Property selection array */\n fieldItems?: MenuProps['items'];\n defaultValue?: string;\n onBlur?: () => void;\n}\n\nexport interface DynamicContentEditorContextProps extends DynamicContentEditorProps {\n updateProperties?: (selectedfield: ItemType) => void;\n}\n"]}
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
export declare const pegaReferenceElementStyle = "pega-reference {\n color:#076bc9;\n cursor:pointer;\n}\npega-reference:hover{\n text-decoration:underline;\n}\npega-reference::before{\n content: '['\n}\npega-reference::after{\n content: ']'\n}";
|
|
2
|
-
export declare const createPegaReferenceElement: (win: typeof globalThis) => {
|
|
3
|
-
new (): {
|
|
4
|
-
connectedCallback(): void;
|
|
5
|
-
accessKey: string;
|
|
6
|
-
readonly accessKeyLabel: string;
|
|
7
|
-
autocapitalize: string;
|
|
8
|
-
dir: string;
|
|
9
|
-
draggable: boolean;
|
|
10
|
-
hidden: boolean;
|
|
11
|
-
inert: boolean;
|
|
12
|
-
innerText: string;
|
|
13
|
-
lang: string;
|
|
14
|
-
readonly offsetHeight: number;
|
|
15
|
-
readonly offsetLeft: number;
|
|
16
|
-
readonly offsetParent: Element | null;
|
|
17
|
-
readonly offsetTop: number;
|
|
18
|
-
readonly offsetWidth: number;
|
|
19
|
-
outerText: string;
|
|
20
|
-
popover: string | null;
|
|
21
|
-
spellcheck: boolean;
|
|
22
|
-
title: string;
|
|
23
|
-
translate: boolean;
|
|
24
|
-
attachInternals(): ElementInternals;
|
|
25
|
-
click(): void;
|
|
26
|
-
hidePopover(): void;
|
|
27
|
-
showPopover(): void;
|
|
28
|
-
togglePopover(force?: boolean | undefined): void;
|
|
29
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
30
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
31
|
-
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
32
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
33
|
-
readonly attributes: NamedNodeMap;
|
|
34
|
-
readonly classList: DOMTokenList;
|
|
35
|
-
className: string;
|
|
36
|
-
readonly clientHeight: number;
|
|
37
|
-
readonly clientLeft: number;
|
|
38
|
-
readonly clientTop: number;
|
|
39
|
-
readonly clientWidth: number;
|
|
40
|
-
id: string;
|
|
41
|
-
readonly localName: string;
|
|
42
|
-
readonly namespaceURI: string | null;
|
|
43
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
44
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
45
|
-
outerHTML: string;
|
|
46
|
-
readonly ownerDocument: Document;
|
|
47
|
-
readonly part: DOMTokenList;
|
|
48
|
-
readonly prefix: string | null;
|
|
49
|
-
readonly scrollHeight: number;
|
|
50
|
-
scrollLeft: number;
|
|
51
|
-
scrollTop: number;
|
|
52
|
-
readonly scrollWidth: number;
|
|
53
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
54
|
-
slot: string;
|
|
55
|
-
readonly tagName: string;
|
|
56
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
57
|
-
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
58
|
-
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
59
|
-
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
60
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
61
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
62
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
63
|
-
getAttribute(qualifiedName: string): string | null;
|
|
64
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
65
|
-
getAttributeNames(): string[];
|
|
66
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
67
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
68
|
-
getBoundingClientRect(): DOMRect;
|
|
69
|
-
getClientRects(): DOMRectList;
|
|
70
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
71
|
-
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
72
|
-
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
73
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
74
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
75
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
76
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
77
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
78
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
79
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
80
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
81
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
82
|
-
hasAttributes(): boolean;
|
|
83
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
84
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
85
|
-
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
86
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
87
|
-
matches(selectors: string): boolean;
|
|
88
|
-
releasePointerCapture(pointerId: number): void;
|
|
89
|
-
removeAttribute(qualifiedName: string): void;
|
|
90
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
91
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
92
|
-
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
93
|
-
requestPointerLock(): void;
|
|
94
|
-
scroll(options?: ScrollToOptions | undefined): void;
|
|
95
|
-
scroll(x: number, y: number): void;
|
|
96
|
-
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
97
|
-
scrollBy(x: number, y: number): void;
|
|
98
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
99
|
-
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
100
|
-
scrollTo(x: number, y: number): void;
|
|
101
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
102
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
103
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
104
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
105
|
-
setPointerCapture(pointerId: number): void;
|
|
106
|
-
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
107
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
108
|
-
readonly baseURI: string;
|
|
109
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
110
|
-
readonly firstChild: ChildNode | null;
|
|
111
|
-
readonly isConnected: boolean;
|
|
112
|
-
readonly lastChild: ChildNode | null;
|
|
113
|
-
readonly nextSibling: ChildNode | null;
|
|
114
|
-
readonly nodeName: string;
|
|
115
|
-
readonly nodeType: number;
|
|
116
|
-
nodeValue: string | null;
|
|
117
|
-
readonly parentElement: HTMLElement | null;
|
|
118
|
-
readonly parentNode: ParentNode | null;
|
|
119
|
-
readonly previousSibling: ChildNode | null;
|
|
120
|
-
textContent: string | null;
|
|
121
|
-
appendChild<T extends Node>(node: T): T;
|
|
122
|
-
cloneNode(deep?: boolean | undefined): Node;
|
|
123
|
-
compareDocumentPosition(other: Node): number;
|
|
124
|
-
contains(other: Node | null): boolean;
|
|
125
|
-
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
126
|
-
hasChildNodes(): boolean;
|
|
127
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
128
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
129
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
130
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
131
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
132
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
133
|
-
normalize(): void;
|
|
134
|
-
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
135
|
-
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
136
|
-
readonly ELEMENT_NODE: 1;
|
|
137
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
138
|
-
readonly TEXT_NODE: 3;
|
|
139
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
140
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
141
|
-
readonly ENTITY_NODE: 6;
|
|
142
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
143
|
-
readonly COMMENT_NODE: 8;
|
|
144
|
-
readonly DOCUMENT_NODE: 9;
|
|
145
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
146
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
147
|
-
readonly NOTATION_NODE: 12;
|
|
148
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
149
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
150
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
151
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
152
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
153
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
154
|
-
dispatchEvent(event: Event): boolean;
|
|
155
|
-
ariaAtomic: string | null;
|
|
156
|
-
ariaAutoComplete: string | null;
|
|
157
|
-
ariaBusy: string | null;
|
|
158
|
-
ariaChecked: string | null;
|
|
159
|
-
ariaColCount: string | null;
|
|
160
|
-
ariaColIndex: string | null;
|
|
161
|
-
ariaColSpan: string | null;
|
|
162
|
-
ariaCurrent: string | null;
|
|
163
|
-
ariaDisabled: string | null;
|
|
164
|
-
ariaExpanded: string | null;
|
|
165
|
-
ariaHasPopup: string | null;
|
|
166
|
-
ariaHidden: string | null;
|
|
167
|
-
ariaInvalid: string | null;
|
|
168
|
-
ariaKeyShortcuts: string | null;
|
|
169
|
-
ariaLabel: string | null;
|
|
170
|
-
ariaLevel: string | null;
|
|
171
|
-
ariaLive: string | null;
|
|
172
|
-
ariaModal: string | null;
|
|
173
|
-
ariaMultiLine: string | null;
|
|
174
|
-
ariaMultiSelectable: string | null;
|
|
175
|
-
ariaOrientation: string | null;
|
|
176
|
-
ariaPlaceholder: string | null;
|
|
177
|
-
ariaPosInSet: string | null;
|
|
178
|
-
ariaPressed: string | null;
|
|
179
|
-
ariaReadOnly: string | null;
|
|
180
|
-
ariaRequired: string | null;
|
|
181
|
-
ariaRoleDescription: string | null;
|
|
182
|
-
ariaRowCount: string | null;
|
|
183
|
-
ariaRowIndex: string | null;
|
|
184
|
-
ariaRowSpan: string | null;
|
|
185
|
-
ariaSelected: string | null;
|
|
186
|
-
ariaSetSize: string | null;
|
|
187
|
-
ariaSort: string | null;
|
|
188
|
-
ariaValueMax: string | null;
|
|
189
|
-
ariaValueMin: string | null;
|
|
190
|
-
ariaValueNow: string | null;
|
|
191
|
-
ariaValueText: string | null;
|
|
192
|
-
role: string | null;
|
|
193
|
-
animate(keyframes: PropertyIndexedKeyframes | Keyframe[] | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
194
|
-
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
195
|
-
after(...nodes: (string | Node)[]): void;
|
|
196
|
-
before(...nodes: (string | Node)[]): void;
|
|
197
|
-
remove(): void;
|
|
198
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
|
199
|
-
innerHTML: string;
|
|
200
|
-
readonly nextElementSibling: Element | null;
|
|
201
|
-
readonly previousElementSibling: Element | null;
|
|
202
|
-
readonly childElementCount: number;
|
|
203
|
-
readonly children: HTMLCollection;
|
|
204
|
-
readonly firstElementChild: Element | null;
|
|
205
|
-
readonly lastElementChild: Element | null;
|
|
206
|
-
append(...nodes: (string | Node)[]): void;
|
|
207
|
-
prepend(...nodes: (string | Node)[]): void;
|
|
208
|
-
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
209
|
-
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
210
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
211
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
212
|
-
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
213
|
-
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
214
|
-
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
215
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
216
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
217
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
218
|
-
replaceChildren(...nodes: (string | Node)[]): void;
|
|
219
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
220
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
221
|
-
readonly style: CSSStyleDeclaration;
|
|
222
|
-
contentEditable: string;
|
|
223
|
-
enterKeyHint: string;
|
|
224
|
-
inputMode: string;
|
|
225
|
-
readonly isContentEditable: boolean;
|
|
226
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
227
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
228
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
229
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
230
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
231
|
-
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
232
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
233
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
234
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
235
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
236
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
237
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
238
|
-
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
239
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
240
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
241
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
242
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
243
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
244
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
245
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
246
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
247
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
248
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
249
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
250
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
251
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
252
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
253
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
254
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
-
onerror: OnErrorEventHandler;
|
|
256
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
257
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
258
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
259
|
-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
260
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
262
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
263
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
264
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
269
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
270
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
271
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
272
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
273
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
274
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
275
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
276
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
277
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
281
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
282
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
283
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
284
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
285
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
286
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
287
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
288
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
289
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
292
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
293
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
294
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
295
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
296
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
297
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
298
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
299
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
300
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
301
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
303
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
304
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
-
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
307
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
308
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
309
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
310
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
311
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
312
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
313
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
314
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
320
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
321
|
-
autofocus: boolean;
|
|
322
|
-
readonly dataset: DOMStringMap;
|
|
323
|
-
nonce?: string | undefined;
|
|
324
|
-
tabIndex: number;
|
|
325
|
-
blur(): void;
|
|
326
|
-
focus(options?: FocusOptions | undefined): void;
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
//# sourceMappingURL=PegaCustomElement.d.ts.map
|