@oneuptime/common 10.7.2 → 10.8.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/Models/DatabaseModels/CloudResource.ts +846 -0
- package/Models/DatabaseModels/CloudResourceInstance.ts +276 -0
- package/Models/DatabaseModels/CloudResourceLabelRule.ts +510 -0
- package/Models/DatabaseModels/CloudResourceOwnerRule.ts +592 -0
- package/Models/DatabaseModels/CloudResourceOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/CloudResourceOwnerUser.ts +486 -0
- package/Models/DatabaseModels/Host.ts +209 -0
- package/Models/DatabaseModels/Index.ts +36 -0
- package/Models/DatabaseModels/RumApplication.ts +731 -0
- package/Models/DatabaseModels/RumApplicationClient.ts +229 -0
- package/Models/DatabaseModels/RumApplicationLabelRule.ts +510 -0
- package/Models/DatabaseModels/RumApplicationOwnerRule.ts +592 -0
- package/Models/DatabaseModels/RumApplicationOwnerTeam.ts +486 -0
- package/Models/DatabaseModels/RumApplicationOwnerUser.ts +485 -0
- package/Models/DatabaseModels/ServerlessFunction.ts +881 -0
- package/Models/DatabaseModels/ServerlessFunctionInstance.ts +212 -0
- package/Models/DatabaseModels/ServerlessFunctionLabelRule.ts +510 -0
- package/Models/DatabaseModels/ServerlessFunctionOwnerRule.ts +592 -0
- package/Models/DatabaseModels/ServerlessFunctionOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/ServerlessFunctionOwnerUser.ts +486 -0
- package/Models/DatabaseModels/Service.ts +268 -0
- package/Models/DatabaseModels/TelemetryException.ts +15 -1
- package/Models/DatabaseModels/WorkflowLog.ts +52 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780931746908-AddResumeStateToWorkflowLog.ts +21 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780931863719-AddTelemetryResourceMetadataColumns.ts +108 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780933132562-AddServerlessFunctionTables.ts +205 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780935387827-AddCloudResourceTables.ts +195 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780936579718-AddRumApplicationTables.ts +202 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780938407319-AddServerlessFunctionRuleTables.ts +156 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780940721814-AddCloudResourceRuleTables.ts +149 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780940998002-AddRumApplicationRuleTables.ts +149 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780941762204-AddTelemetryResourceInventoryTables.ts +95 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780985763463-AddRumApplicationSdkLanguage.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1780987192743-RecastCloudResourcesByEnvironment.ts +30 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +22 -0
- package/Server/Infrastructure/Queue.ts +11 -0
- package/Server/Services/CloudResourceInstanceService.ts +76 -0
- package/Server/Services/CloudResourceLabelRuleEngineService.ts +175 -0
- package/Server/Services/CloudResourceLabelRuleService.ts +14 -0
- package/Server/Services/CloudResourceOwnerRuleEngineService.ts +192 -0
- package/Server/Services/CloudResourceOwnerRuleService.ts +14 -0
- package/Server/Services/CloudResourceOwnerTeamService.ts +10 -0
- package/Server/Services/CloudResourceOwnerUserService.ts +10 -0
- package/Server/Services/CloudResourceService.ts +342 -0
- package/Server/Services/ExceptionAggregationService.ts +3 -0
- package/Server/Services/HostService.ts +42 -0
- package/Server/Services/LogAggregationService.ts +3 -0
- package/Server/Services/MetricAggregationService.ts +3 -0
- package/Server/Services/OpenTelemetryIngestService.ts +148 -1
- package/Server/Services/RumApplicationClientService.ts +69 -0
- package/Server/Services/RumApplicationLabelRuleEngineService.ts +175 -0
- package/Server/Services/RumApplicationLabelRuleService.ts +14 -0
- package/Server/Services/RumApplicationOwnerRuleEngineService.ts +192 -0
- package/Server/Services/RumApplicationOwnerRuleService.ts +14 -0
- package/Server/Services/RumApplicationOwnerTeamService.ts +10 -0
- package/Server/Services/RumApplicationOwnerUserService.ts +10 -0
- package/Server/Services/RumApplicationService.ts +301 -0
- package/Server/Services/ServerlessFunctionInstanceService.ts +61 -0
- package/Server/Services/ServerlessFunctionLabelRuleEngineService.ts +182 -0
- package/Server/Services/ServerlessFunctionLabelRuleService.ts +14 -0
- package/Server/Services/ServerlessFunctionOwnerRuleEngineService.ts +199 -0
- package/Server/Services/ServerlessFunctionOwnerRuleService.ts +14 -0
- package/Server/Services/ServerlessFunctionOwnerTeamService.ts +10 -0
- package/Server/Services/ServerlessFunctionOwnerUserService.ts +10 -0
- package/Server/Services/ServerlessFunctionService.ts +351 -0
- package/Server/Services/ServiceService.ts +95 -8
- package/Server/Services/TraceAggregationService.ts +3 -0
- package/Server/Types/Database/Permissions/OwnerTableRegistry.ts +39 -0
- package/Server/Types/Workflow/ComponentCode.ts +9 -0
- package/Server/Types/Workflow/Components/Index.ts +2 -0
- package/Server/Types/Workflow/Components/Sleep.ts +105 -0
- package/Server/Types/Workflow/Workflow.ts +6 -0
- package/Server/Utils/Telemetry/ResourceFacetResolver.ts +150 -0
- package/Types/Permission.ts +692 -1
- package/Types/Telemetry/ServiceType.ts +3 -0
- package/Types/Workflow/ComponentID.ts +1 -0
- package/Types/Workflow/Components/Sleep.ts +71 -0
- package/Types/Workflow/Components.ts +2 -0
- package/Types/Workflow/WorkflowStatus.ts +1 -0
- package/UI/Components/BulkUpdate/BulkLabelActions.tsx +159 -32
- package/UI/Components/Navbar/NavBar.tsx +72 -123
- package/UI/Components/Navbar/NavBarMenuModal.tsx +642 -0
- package/UI/Components/Workflow/WorkflowStatus.tsx +3 -0
- package/build/dist/Models/DatabaseModels/CloudResource.js +871 -0
- package/build/dist/Models/DatabaseModels/CloudResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CloudResourceInstance.js +300 -0
- package/build/dist/Models/DatabaseModels/CloudResourceInstance.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CloudResourceLabelRule.js +520 -0
- package/build/dist/Models/DatabaseModels/CloudResourceLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CloudResourceOwnerRule.js +601 -0
- package/build/dist/Models/DatabaseModels/CloudResourceOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CloudResourceOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/CloudResourceOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CloudResourceOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/CloudResourceOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Host.js +215 -0
- package/build/dist/Models/DatabaseModels/Host.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +36 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/RumApplication.js +751 -0
- package/build/dist/Models/DatabaseModels/RumApplication.js.map +1 -0
- package/build/dist/Models/DatabaseModels/RumApplicationClient.js +252 -0
- package/build/dist/Models/DatabaseModels/RumApplicationClient.js.map +1 -0
- package/build/dist/Models/DatabaseModels/RumApplicationLabelRule.js +520 -0
- package/build/dist/Models/DatabaseModels/RumApplicationLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/RumApplicationOwnerRule.js +601 -0
- package/build/dist/Models/DatabaseModels/RumApplicationOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/RumApplicationOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/RumApplicationOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/RumApplicationOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/RumApplicationOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunction.js +908 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunction.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionInstance.js +234 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionInstance.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionLabelRule.js +520 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionOwnerRule.js +601 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunctionOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Service.js +276 -0
- package/build/dist/Models/DatabaseModels/Service.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +12 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -1
- package/build/dist/Models/DatabaseModels/WorkflowLog.js +53 -0
- package/build/dist/Models/DatabaseModels/WorkflowLog.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780931746908-AddResumeStateToWorkflowLog.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780931746908-AddResumeStateToWorkflowLog.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780931863719-AddTelemetryResourceMetadataColumns.js +53 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780931863719-AddTelemetryResourceMetadataColumns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780933132562-AddServerlessFunctionTables.js +82 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780933132562-AddServerlessFunctionTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780935387827-AddCloudResourceTables.js +82 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780935387827-AddCloudResourceTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780936579718-AddRumApplicationTables.js +83 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780936579718-AddRumApplicationTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780938407319-AddServerlessFunctionRuleTables.js +67 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780938407319-AddServerlessFunctionRuleTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780940721814-AddCloudResourceRuleTables.js +60 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780940721814-AddCloudResourceRuleTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780940998002-AddRumApplicationRuleTables.js +60 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780940998002-AddRumApplicationRuleTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780941762204-AddTelemetryResourceInventoryTables.js +45 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780941762204-AddTelemetryResourceInventoryTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780985763463-AddRumApplicationSdkLanguage.js +18 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780985763463-AddRumApplicationSdkLanguage.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780987192743-RecastCloudResourcesByEnvironment.js +27 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1780987192743-RecastCloudResourcesByEnvironment.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +3 -0
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Services/CloudResourceInstanceService.js +76 -0
- package/build/dist/Server/Services/CloudResourceInstanceService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceLabelRuleEngineService.js +160 -0
- package/build/dist/Server/Services/CloudResourceLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceLabelRuleService.js +13 -0
- package/build/dist/Server/Services/CloudResourceLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceOwnerRuleEngineService.js +179 -0
- package/build/dist/Server/Services/CloudResourceOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/CloudResourceOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/CloudResourceOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceOwnerUserService.js +9 -0
- package/build/dist/Server/Services/CloudResourceOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceService.js +287 -0
- package/build/dist/Server/Services/CloudResourceService.js.map +1 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js +3 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js.map +1 -1
- package/build/dist/Server/Services/HostService.js +29 -1
- package/build/dist/Server/Services/HostService.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +3 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +3 -0
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +98 -2
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/RumApplicationClientService.js +70 -0
- package/build/dist/Server/Services/RumApplicationClientService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationLabelRuleEngineService.js +160 -0
- package/build/dist/Server/Services/RumApplicationLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationLabelRuleService.js +13 -0
- package/build/dist/Server/Services/RumApplicationLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationOwnerRuleEngineService.js +179 -0
- package/build/dist/Server/Services/RumApplicationOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/RumApplicationOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/RumApplicationOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationOwnerUserService.js +9 -0
- package/build/dist/Server/Services/RumApplicationOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationService.js +259 -0
- package/build/dist/Server/Services/RumApplicationService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionInstanceService.js +64 -0
- package/build/dist/Server/Services/ServerlessFunctionInstanceService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionLabelRuleEngineService.js +160 -0
- package/build/dist/Server/Services/ServerlessFunctionLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionLabelRuleService.js +13 -0
- package/build/dist/Server/Services/ServerlessFunctionLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerRuleEngineService.js +179 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerUserService.js +9 -0
- package/build/dist/Server/Services/ServerlessFunctionOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/ServerlessFunctionService.js +299 -0
- package/build/dist/Server/Services/ServerlessFunctionService.js.map +1 -0
- package/build/dist/Server/Services/ServiceService.js +63 -7
- package/build/dist/Server/Services/ServiceService.js.map +1 -1
- package/build/dist/Server/Services/TraceAggregationService.js +3 -0
- package/build/dist/Server/Services/TraceAggregationService.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js +39 -0
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js.map +1 -1
- package/build/dist/Server/Types/Workflow/ComponentCode.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Index.js +2 -0
- package/build/dist/Server/Types/Workflow/Components/Index.js.map +1 -1
- package/build/dist/Server/Types/Workflow/Components/Sleep.js +85 -0
- package/build/dist/Server/Types/Workflow/Components/Sleep.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js +90 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js.map +1 -1
- package/build/dist/Types/Permission.js +609 -1
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Telemetry/ServiceType.js +3 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/Types/Workflow/ComponentID.js +1 -0
- package/build/dist/Types/Workflow/ComponentID.js.map +1 -1
- package/build/dist/Types/Workflow/Components/Sleep.js +64 -0
- package/build/dist/Types/Workflow/Components/Sleep.js.map +1 -0
- package/build/dist/Types/Workflow/Components.js +2 -0
- package/build/dist/Types/Workflow/Components.js.map +1 -1
- package/build/dist/Types/Workflow/WorkflowStatus.js +1 -0
- package/build/dist/Types/Workflow/WorkflowStatus.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkLabelActions.js +113 -19
- package/build/dist/UI/Components/BulkUpdate/BulkLabelActions.js.map +1 -1
- package/build/dist/UI/Components/Navbar/NavBar.js +34 -66
- package/build/dist/UI/Components/Navbar/NavBar.js.map +1 -1
- package/build/dist/UI/Components/Navbar/NavBarMenuModal.js +412 -0
- package/build/dist/UI/Components/Navbar/NavBarMenuModal.js.map +1 -0
- package/build/dist/UI/Components/Workflow/WorkflowStatus.js +3 -0
- package/build/dist/UI/Components/Workflow/WorkflowStatus.js.map +1 -1
- package/package.json +1 -1
- package/UI/Components/Navbar/NavBarMenu.tsx +0 -183
- package/UI/Components/Navbar/NavBarMenuItem.tsx +0 -146
- package/build/dist/UI/Components/Navbar/NavBarMenu.js +0 -82
- package/build/dist/UI/Components/Navbar/NavBarMenu.js.map +0 -1
- package/build/dist/UI/Components/Navbar/NavBarMenuItem.js +0 -109
- package/build/dist/UI/Components/Navbar/NavBarMenuItem.js.map +0 -1
|
@@ -15,6 +15,9 @@ var ServiceType;
|
|
|
15
15
|
ServiceType["Host"] = "Host";
|
|
16
16
|
ServiceType["DockerHost"] = "DockerHost";
|
|
17
17
|
ServiceType["KubernetesCluster"] = "KubernetesCluster";
|
|
18
|
+
ServiceType["ServerlessFunction"] = "ServerlessFunction";
|
|
19
|
+
ServiceType["CloudResource"] = "CloudResource";
|
|
20
|
+
ServiceType["RealUserMonitor"] = "RealUserMonitor";
|
|
18
21
|
/*
|
|
19
22
|
* Telemetry that arrived without an OTel service.name and with no
|
|
20
23
|
* host / docker / k8s resource signal. Instead of synthesising a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceType.js","sourceRoot":"","sources":["../../../../Types/Telemetry/ServiceType.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,IAAK,
|
|
1
|
+
{"version":3,"file":"ServiceType.js","sourceRoot":"","sources":["../../../../Types/Telemetry/ServiceType.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,IAAK,WAqBJ;AArBD,WAAK,WAAW;IACd,8CAA+B,CAAA;IAC/B,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4BAAa,CAAA;IACb,wCAAyB,CAAA;IACzB,sDAAuC,CAAA;IACvC,wDAAyC,CAAA;IACzC,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC;;;;;;;;OAQG;IACH,kCAAmB,CAAA;AACrB,CAAC,EArBI,WAAW,KAAX,WAAW,QAqBf;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -20,6 +20,7 @@ var ComponentID;
|
|
|
20
20
|
ComponentID["SendEmail"] = "send-email";
|
|
21
21
|
ComponentID["IfElse"] = "if-else";
|
|
22
22
|
ComponentID["WorkflowRun"] = "workflow-run";
|
|
23
|
+
ComponentID["Sleep"] = "sleep";
|
|
23
24
|
})(ComponentID || (ComponentID = {}));
|
|
24
25
|
export default ComponentID;
|
|
25
26
|
//# sourceMappingURL=ComponentID.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentID.js","sourceRoot":"","sources":["../../../../Types/Workflow/ComponentID.ts"],"names":[],"mappings":"AAAA,IAAK,
|
|
1
|
+
{"version":3,"file":"ComponentID.js","sourceRoot":"","sources":["../../../../Types/Workflow/ComponentID.ts"],"names":[],"mappings":"AAAA,IAAK,WAsBJ;AAtBD,WAAK,WAAW;IACd,kCAAmB,CAAA;IACnB,0BAAW,CAAA;IACX,0EAA2D,CAAA;IAC3D,6FAA8E,CAAA;IAC9E,8EAA+D,CAAA;IAC/D,0EAA2D,CAAA;IAC3D,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,gCAAiB,CAAA;IACjB,0CAA2B,CAAA;IAC3B,0CAA2B,CAAA;IAC3B,uCAAwB,CAAA;IACxB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,mCAAoB,CAAA;IACpB,uCAAwB,CAAA;IACxB,qCAAsB,CAAA;IACtB,uCAAwB,CAAA;IACxB,iCAAkB,CAAA;IAClB,2CAA4B,CAAA;IAC5B,8BAAe,CAAA;AACjB,CAAC,EAtBI,WAAW,KAAX,WAAW,QAsBf;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import IconProp from "../../Icon/IconProp";
|
|
2
|
+
import ComponentID from "../ComponentID";
|
|
3
|
+
import { ComponentInputType, ComponentType, } from "./../Component";
|
|
4
|
+
const components = [
|
|
5
|
+
{
|
|
6
|
+
id: ComponentID.Sleep,
|
|
7
|
+
title: "Sleep",
|
|
8
|
+
category: "Utils",
|
|
9
|
+
description: "Pause the workflow for a specified duration, then continue with the next steps. The workflow is suspended while sleeping and does not consume a worker — it resumes automatically when the sleep is over.",
|
|
10
|
+
iconProp: IconProp.Clock,
|
|
11
|
+
componentType: ComponentType.Component,
|
|
12
|
+
arguments: [
|
|
13
|
+
{
|
|
14
|
+
type: ComponentInputType.Number,
|
|
15
|
+
name: "Days",
|
|
16
|
+
description: "Number of days to sleep. Optional. Defaults to 0.",
|
|
17
|
+
required: false,
|
|
18
|
+
id: "days",
|
|
19
|
+
placeholder: "0",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: ComponentInputType.Number,
|
|
23
|
+
name: "Hours",
|
|
24
|
+
description: "Number of hours to sleep. Optional. Defaults to 0.",
|
|
25
|
+
required: false,
|
|
26
|
+
id: "hours",
|
|
27
|
+
placeholder: "0",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: ComponentInputType.Number,
|
|
31
|
+
name: "Minutes",
|
|
32
|
+
description: "Number of minutes to sleep. Optional. Defaults to 0.",
|
|
33
|
+
required: false,
|
|
34
|
+
id: "minutes",
|
|
35
|
+
placeholder: "0",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: ComponentInputType.Number,
|
|
39
|
+
name: "Seconds",
|
|
40
|
+
description: "Number of seconds to sleep. Optional. Defaults to 0.",
|
|
41
|
+
required: false,
|
|
42
|
+
id: "seconds",
|
|
43
|
+
placeholder: "0",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
returnValues: [],
|
|
47
|
+
inPorts: [
|
|
48
|
+
{
|
|
49
|
+
title: "In",
|
|
50
|
+
description: "Please connect components to this port for this component to work.",
|
|
51
|
+
id: "in",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
outPorts: [
|
|
55
|
+
{
|
|
56
|
+
title: "Out",
|
|
57
|
+
description: "Connect components to this port to run them after the sleep is over.",
|
|
58
|
+
id: "out",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
export default components;
|
|
64
|
+
//# sourceMappingURL=Sleep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sleep.js","sourceRoot":"","sources":["../../../../../Types/Workflow/Components/Sleep.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAA0B,EACxB,kBAAkB,EAClB,aAAa,GACd,MAAM,gBAAgB,CAAC;AAExB,MAAM,UAAU,GAA6B;IAC3C;QACE,EAAE,EAAE,WAAW,CAAC,KAAK;QACrB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,OAAO;QACjB,WAAW,EACT,2MAA2M;QAC7M,QAAQ,EAAE,QAAQ,CAAC,KAAK;QACxB,aAAa,EAAE,aAAa,CAAC,SAAS;QACtC,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,kBAAkB,CAAC,MAAM;gBAC/B,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,mDAAmD;gBAChE,QAAQ,EAAE,KAAK;gBACf,EAAE,EAAE,MAAM;gBACV,WAAW,EAAE,GAAG;aACjB;YACD;gBACE,IAAI,EAAE,kBAAkB,CAAC,MAAM;gBAC/B,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,oDAAoD;gBACjE,QAAQ,EAAE,KAAK;gBACf,EAAE,EAAE,OAAO;gBACX,WAAW,EAAE,GAAG;aACjB;YACD;gBACE,IAAI,EAAE,kBAAkB,CAAC,MAAM;gBAC/B,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,sDAAsD;gBACnE,QAAQ,EAAE,KAAK;gBACf,EAAE,EAAE,SAAS;gBACb,WAAW,EAAE,GAAG;aACjB;YACD;gBACE,IAAI,EAAE,kBAAkB,CAAC,MAAM;gBAC/B,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,sDAAsD;gBACnE,QAAQ,EAAE,KAAK;gBACf,EAAE,EAAE,SAAS;gBACb,WAAW,EAAE,GAAG;aACjB;SACF;QACD,YAAY,EAAE,EAAE;QAChB,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,IAAI;gBACX,WAAW,EACT,oEAAoE;gBACtE,EAAE,EAAE,IAAI;aACT;SACF;QACD,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,KAAK;gBACZ,WAAW,EACT,sEAAsE;gBACxE,EAAE,EAAE,KAAK;aACV;SACF;KACF;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -10,6 +10,7 @@ import ManualComponents from "./Components/Manual";
|
|
|
10
10
|
import MicrosoftTeamsComponents from "./Components/MicrosoftTeams";
|
|
11
11
|
import ScheduleComponents from "./Components/Schedule";
|
|
12
12
|
import SlackComponents from "./Components/Slack";
|
|
13
|
+
import SleepComponents from "./Components/Sleep";
|
|
13
14
|
import TelegramComponents from "./Components/Telegram";
|
|
14
15
|
import WebhookComponents from "./Components/Webhook";
|
|
15
16
|
import WorkflowComponents from "./Components/Workflow";
|
|
@@ -28,6 +29,7 @@ const components = [
|
|
|
28
29
|
...WorkflowComponents,
|
|
29
30
|
...ManualComponents,
|
|
30
31
|
...MicrosoftTeamsComponents,
|
|
32
|
+
...SleepComponents,
|
|
31
33
|
];
|
|
32
34
|
export default components;
|
|
33
35
|
export const Categories = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Components.js","sourceRoot":"","sources":["../../../../Types/Workflow/Components.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAExC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,mBAAmB,MAAM,wBAAwB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QACzE,IAAI,EAAE,QAAQ,CAAC,WAAW;KAC3B;IACD;QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,QAAQ,CAAC,SAAS;KACzB;IACD;QACE,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,mCAAmC;QAChD,IAAI,EAAE,QAAQ,CAAC,IAAI;KACpB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,QAAQ,CAAC,IAAI;KACpB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,QAAQ,CAAC,KAAK;KACrB;IACD;QACE,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,QAAQ,CAAC,KAAK;KACrB;IACD;QACE,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,QAAQ,CAAC,MAAM;KACtB;CACF,CAAC"}
|
|
@@ -2,6 +2,7 @@ var WorkflowStatus;
|
|
|
2
2
|
(function (WorkflowStatus) {
|
|
3
3
|
WorkflowStatus["Scheduled"] = "Scheduled";
|
|
4
4
|
WorkflowStatus["Running"] = "Running";
|
|
5
|
+
WorkflowStatus["Waiting"] = "Waiting";
|
|
5
6
|
WorkflowStatus["Success"] = "Success";
|
|
6
7
|
WorkflowStatus["Error"] = "Error";
|
|
7
8
|
WorkflowStatus["Timeout"] = "Timeout";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowStatus.js","sourceRoot":"","sources":["../../../../Types/Workflow/WorkflowStatus.ts"],"names":[],"mappings":"AAAA,IAAK,
|
|
1
|
+
{"version":3,"file":"WorkflowStatus.js","sourceRoot":"","sources":["../../../../Types/Workflow/WorkflowStatus.ts"],"names":[],"mappings":"AAAA,IAAK,cAQJ;AARD,WAAK,cAAc;IACjB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mEAAiD,CAAA;AACnD,CAAC,EARI,cAAc,KAAd,cAAc,QAQlB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -4,11 +4,13 @@ import BadDataException from "../../../Types/Exception/BadDataException";
|
|
|
4
4
|
import IconProp from "../../../Types/Icon/IconProp";
|
|
5
5
|
import { LIMIT_PER_PROJECT } from "../../../Types/Database/LimitMax";
|
|
6
6
|
import SortOrder from "../../../Types/BaseDatabase/SortOrder";
|
|
7
|
+
import Includes from "../../../Types/BaseDatabase/Includes";
|
|
7
8
|
import API from "../../Utils/API/API";
|
|
8
9
|
import ModelAPI from "../../Utils/ModelAPI/ModelAPI";
|
|
9
10
|
import ProjectUtil from "../../Utils/Project";
|
|
10
11
|
import { ButtonStyleType } from "../Button/Button";
|
|
11
12
|
import BasicFormModal from "../FormModal/BasicFormModal";
|
|
13
|
+
import Modal from "../Modal/Modal";
|
|
12
14
|
import FormFieldSchemaType from "../Forms/Types/FormFieldSchemaType";
|
|
13
15
|
/**
|
|
14
16
|
* Reusable hook that provides "Add Labels" and "Remove Labels" bulk actions
|
|
@@ -25,6 +27,13 @@ function useBulkLabelActions(config) {
|
|
|
25
27
|
const [showAddModal, setShowAddModal] = useState(false);
|
|
26
28
|
const [showRemoveModal, setShowRemoveModal] = useState(false);
|
|
27
29
|
const [bulkActionProps, setBulkActionProps] = useState(null);
|
|
30
|
+
/*
|
|
31
|
+
* For "Remove Labels" we only want to offer labels that are actually
|
|
32
|
+
* attached to the selected items (not every label in the project). These
|
|
33
|
+
* are computed from the selected items each time the remove modal opens.
|
|
34
|
+
*/
|
|
35
|
+
const [removeLabelDropdownOptions, setRemoveLabelDropdownOptions] = useState([]);
|
|
36
|
+
const [isLoadingRemoveLabels, setIsLoadingRemoveLabels] = useState(false);
|
|
28
37
|
useEffect(() => {
|
|
29
38
|
const fetchLabels = async () => {
|
|
30
39
|
try {
|
|
@@ -138,12 +147,90 @@ function useBulkLabelActions(config) {
|
|
|
138
147
|
onBulkActionEnd();
|
|
139
148
|
setBulkActionProps(null);
|
|
140
149
|
};
|
|
150
|
+
/*
|
|
151
|
+
* Build the dropdown options for the "Remove Labels" modal from only the
|
|
152
|
+
* labels actually attached to the selected items. We fetch the selected
|
|
153
|
+
* items (by id) with their labels and take the de-duplicated union, so the
|
|
154
|
+
* modal offers only labels that can really be removed instead of every
|
|
155
|
+
* label in the project.
|
|
156
|
+
*/
|
|
157
|
+
const loadLabelsForSelectedItems = async (items) => {
|
|
158
|
+
var _a;
|
|
159
|
+
setIsLoadingRemoveLabels(true);
|
|
160
|
+
try {
|
|
161
|
+
const itemIds = items
|
|
162
|
+
.map((item) => {
|
|
163
|
+
var _a;
|
|
164
|
+
return ((_a = item.id) === null || _a === void 0 ? void 0 : _a.toString()) || "";
|
|
165
|
+
})
|
|
166
|
+
.filter((id) => {
|
|
167
|
+
return id.length > 0;
|
|
168
|
+
});
|
|
169
|
+
if (itemIds.length === 0) {
|
|
170
|
+
setRemoveLabelDropdownOptions([]);
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
const result = await ModelAPI.getList({
|
|
174
|
+
modelType: config.modelType,
|
|
175
|
+
query: {
|
|
176
|
+
_id: new Includes(itemIds),
|
|
177
|
+
},
|
|
178
|
+
limit: LIMIT_PER_PROJECT,
|
|
179
|
+
skip: 0,
|
|
180
|
+
select: {
|
|
181
|
+
labels: {
|
|
182
|
+
_id: true,
|
|
183
|
+
name: true,
|
|
184
|
+
color: true,
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
sort: {},
|
|
188
|
+
});
|
|
189
|
+
// Union of labels across all selected items, de-duplicated by id.
|
|
190
|
+
const labelById = new Map();
|
|
191
|
+
for (const item of result.data) {
|
|
192
|
+
const itemLabels = item.labels || [];
|
|
193
|
+
for (const label of itemLabels) {
|
|
194
|
+
const id = ((_a = label._id) === null || _a === void 0 ? void 0 : _a.toString()) || "";
|
|
195
|
+
if (id.length > 0) {
|
|
196
|
+
labelById.set(id, label);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const options = Array.from(labelById.values()).map((label) => {
|
|
201
|
+
var _a;
|
|
202
|
+
const option = {
|
|
203
|
+
label: label.name || "",
|
|
204
|
+
value: ((_a = label._id) === null || _a === void 0 ? void 0 : _a.toString()) || "",
|
|
205
|
+
};
|
|
206
|
+
if (label.color) {
|
|
207
|
+
option.color = label.color;
|
|
208
|
+
}
|
|
209
|
+
return option;
|
|
210
|
+
});
|
|
211
|
+
options.sort((a, b) => {
|
|
212
|
+
return a.label.localeCompare(b.label);
|
|
213
|
+
});
|
|
214
|
+
setRemoveLabelDropdownOptions(options);
|
|
215
|
+
}
|
|
216
|
+
catch (_b) {
|
|
217
|
+
// on error, show no options rather than every label in the project
|
|
218
|
+
setRemoveLabelDropdownOptions([]);
|
|
219
|
+
}
|
|
220
|
+
finally {
|
|
221
|
+
setIsLoadingRemoveLabels(false);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
141
224
|
const labelDropdownOptions = labels.map((label) => {
|
|
142
225
|
var _a;
|
|
143
|
-
|
|
226
|
+
const option = {
|
|
144
227
|
label: label.name || "",
|
|
145
228
|
value: ((_a = label._id) === null || _a === void 0 ? void 0 : _a.toString()) || "",
|
|
146
229
|
};
|
|
230
|
+
if (label.color) {
|
|
231
|
+
option.color = label.color;
|
|
232
|
+
}
|
|
233
|
+
return option;
|
|
147
234
|
});
|
|
148
235
|
const addLabelsAction = {
|
|
149
236
|
title: "Add Labels",
|
|
@@ -160,9 +247,17 @@ function useBulkLabelActions(config) {
|
|
|
160
247
|
icon: IconProp.Close,
|
|
161
248
|
onClick: async (actionProps) => {
|
|
162
249
|
setBulkActionProps(actionProps);
|
|
250
|
+
setRemoveLabelDropdownOptions([]);
|
|
163
251
|
setShowRemoveModal(true);
|
|
252
|
+
await loadLabelsForSelectedItems(actionProps.items);
|
|
164
253
|
},
|
|
165
254
|
};
|
|
255
|
+
const closeRemoveModal = () => {
|
|
256
|
+
setShowRemoveModal(false);
|
|
257
|
+
setBulkActionProps(null);
|
|
258
|
+
setRemoveLabelDropdownOptions([]);
|
|
259
|
+
};
|
|
260
|
+
const hasNoLabelsToRemove = !isLoadingRemoveLabels && removeLabelDropdownOptions.length === 0;
|
|
166
261
|
const modals = (React.createElement(React.Fragment, null,
|
|
167
262
|
showAddModal && (React.createElement(BasicFormModal, { title: "Add Labels", description: "Select labels to add to the selected items. Labels already attached to an item will be preserved.", onClose: () => {
|
|
168
263
|
setShowAddModal(false);
|
|
@@ -183,25 +278,24 @@ function useBulkLabelActions(config) {
|
|
|
183
278
|
},
|
|
184
279
|
],
|
|
185
280
|
} })),
|
|
186
|
-
showRemoveModal &&
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
281
|
+
showRemoveModal &&
|
|
282
|
+
(hasNoLabelsToRemove ? (React.createElement(Modal, { title: "No Labels to Remove", description: "The selected items don't have any labels to remove.", icon: IconProp.Label, onClose: closeRemoveModal, closeButtonText: "Close" },
|
|
283
|
+
React.createElement(React.Fragment, null))) : (React.createElement(BasicFormModal, { title: "Remove Labels", description: "Select labels to remove from the selected items. Only labels currently applied to the selected items are shown.", isLoading: isLoadingRemoveLabels, onClose: closeRemoveModal, submitButtonText: "Remove Labels", onSubmit: async (formData) => {
|
|
284
|
+
await applyLabels(formData.labelIds || [], "remove");
|
|
285
|
+
}, formProps: {
|
|
286
|
+
fields: [
|
|
287
|
+
{
|
|
288
|
+
field: {
|
|
289
|
+
labelIds: true,
|
|
290
|
+
},
|
|
291
|
+
title: "Select Labels",
|
|
292
|
+
description: "These labels will be removed from each selected item.",
|
|
293
|
+
fieldType: FormFieldSchemaType.MultiSelectDropdown,
|
|
294
|
+
required: true,
|
|
295
|
+
dropdownOptions: removeLabelDropdownOptions,
|
|
196
296
|
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
fieldType: FormFieldSchemaType.MultiSelectDropdown,
|
|
200
|
-
required: true,
|
|
201
|
-
dropdownOptions: labelDropdownOptions,
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
} }))));
|
|
297
|
+
],
|
|
298
|
+
} })))));
|
|
205
299
|
return {
|
|
206
300
|
bulkActions: [addLabelsAction, removeLabelsAction],
|
|
207
301
|
modals: modals,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulkLabelActions.js","sourceRoot":"","sources":["../../../../../UI/Components/BulkUpdate/BulkLabelActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,MAAM,sCAAsC,CAAC;AACzD,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,QAAQ,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,SAAS,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"BulkLabelActions.js","sourceRoot":"","sources":["../../../../../UI/Components/BulkUpdate/BulkLabelActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,MAAM,sCAAsC,CAAC;AACzD,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,QAAQ,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,SAAS,MAAM,uCAAuC,CAAC;AAE9D,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAE5D,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,QAAQ,MAAM,+BAA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AEvB,yCAAK,CACC,CACT,CAAC,CAAC,CAAC,CACF,oBAAC,cAAc,IACb,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,iHAAiH,EAC7H,SAAS,EAAE,qBAAqB,EAChC,OAAO,EAAE,gBAAgB,EACzB,gBAAgB,EAAC,eAAe,EAChC,QAAQ,EAAE,KAAK,EAAE,QAAqC,EAAE,EAAE;oBACxD,MAAM,WAAW,CAAC,QAAQ,CAAC,QAAQ,IAAI,EAAE,EAAE,QAAQ,CAAC,CAAC;gBACvD,CAAC,EACD,SAAS,EAAE;oBACT,MAAM,EAAE;wBACN;4BACE,KAAK,EAAE;gCACL,QAAQ,EAAE,IAAI;6BACf;4BACD,KAAK,EAAE,eAAe;4BACtB,WAAW,EACT,uDAAuD;4BACzD,SAAS,EAAE,mBAAmB,CAAC,mBAAmB;4BAClD,QAAQ,EAAE,IAAI;4BACd,eAAe,EAAE,0BAA0B;yBAC5C;qBACF;iBACF,GACD,CACH,CAAC,CACH,CACJ,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;QAClD,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import React, { useState, useEffect,
|
|
1
|
+
import React, { useState, useEffect, } from "react";
|
|
2
2
|
import IconProp from "../../../Types/Icon/IconProp";
|
|
3
3
|
import NavBarItem from "./NavBarItem";
|
|
4
|
-
import
|
|
5
|
-
import NavBarMenuItem from "./NavBarMenuItem";
|
|
4
|
+
import NavBarMenuModal from "./NavBarMenuModal";
|
|
6
5
|
import Button, { ButtonStyleType } from "../Button/Button";
|
|
7
6
|
import Navigation from "../../Utils/Navigation";
|
|
8
7
|
import useComponentOutsideClick from "../../Types/UseComponentOutsideClick";
|
|
9
8
|
import Icon, { ThickProp } from "../Icon/Icon";
|
|
10
9
|
const Navbar = (props) => {
|
|
11
|
-
var _a, _b, _c
|
|
10
|
+
var _a, _b, _c;
|
|
12
11
|
const [isMobile, setIsMobile] = useState(false);
|
|
13
12
|
const [isMobileMenuVisible, setIsMobileMenuVisible] = useState(false);
|
|
14
13
|
const [isMoreMenuVisible, setIsMoreMenuVisible] = useState(false);
|
|
15
|
-
const [moreMenuTimeout, setMoreMenuTimeout] = useState(null);
|
|
16
|
-
const suppressShowRef = useRef(false);
|
|
17
14
|
// Use the existing outside click hook for mobile menu
|
|
18
15
|
const { ref: mobileMenuRef, isComponentVisible: isMobileMenuOpen, setIsComponentVisible: setIsMobileMenuOpen, } = useComponentOutsideClick(false);
|
|
19
16
|
// Sync local state with hook state
|
|
@@ -31,36 +28,27 @@ const Navbar = (props) => {
|
|
|
31
28
|
return window.removeEventListener("resize", checkMobile);
|
|
32
29
|
};
|
|
33
30
|
}, []);
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
// Open/close the products menu with Cmd/Ctrl + K from anywhere.
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
const handleGlobalKeyDown = (event) => {
|
|
34
|
+
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
setIsMoreMenuVisible((visible) => {
|
|
37
|
+
return !visible;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
document.addEventListener("keydown", handleGlobalKeyDown);
|
|
42
|
+
return () => {
|
|
43
|
+
document.removeEventListener("keydown", handleGlobalKeyDown);
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
// More menu open/close.
|
|
47
|
+
const openMoreMenu = () => {
|
|
48
|
+
setIsMoreMenuVisible(true);
|
|
44
49
|
};
|
|
45
|
-
const
|
|
46
|
-
if (moreMenuTimeout) {
|
|
47
|
-
clearTimeout(moreMenuTimeout);
|
|
48
|
-
setMoreMenuTimeout(null);
|
|
49
|
-
}
|
|
50
|
+
const closeMoreMenu = () => {
|
|
50
51
|
setIsMoreMenuVisible(false);
|
|
51
|
-
suppressShowRef.current = true;
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
suppressShowRef.current = false;
|
|
54
|
-
}, 300);
|
|
55
|
-
};
|
|
56
|
-
const showMoreMenu = () => {
|
|
57
|
-
if (suppressShowRef.current) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (moreMenuTimeout) {
|
|
61
|
-
clearTimeout(moreMenuTimeout);
|
|
62
|
-
}
|
|
63
|
-
setIsMoreMenuVisible(true);
|
|
64
52
|
};
|
|
65
53
|
// Legacy support: if children are provided, render the old way
|
|
66
54
|
if (props.children) {
|
|
@@ -133,25 +121,6 @@ const Navbar = (props) => {
|
|
|
133
121
|
const routeToCheck = item.activeRoute || item.route;
|
|
134
122
|
return Navigation.isStartWith(routeToCheck);
|
|
135
123
|
});
|
|
136
|
-
// Group items by category for the menu
|
|
137
|
-
const categories = new Map();
|
|
138
|
-
(_c = props.moreMenuItems) === null || _c === void 0 ? void 0 : _c.forEach((item) => {
|
|
139
|
-
const cat = item.category || "Other";
|
|
140
|
-
if (!categories.has(cat)) {
|
|
141
|
-
categories.set(cat, []);
|
|
142
|
-
}
|
|
143
|
-
categories.get(cat).push(item);
|
|
144
|
-
});
|
|
145
|
-
// Convert to sections array for NavBarMenu
|
|
146
|
-
const sections = [];
|
|
147
|
-
categories.forEach((items, category) => {
|
|
148
|
-
sections.push({
|
|
149
|
-
title: category,
|
|
150
|
-
items: items.map((item) => {
|
|
151
|
-
return (React.createElement(NavBarMenuItem, { key: item.title, title: item.title, description: item.description, route: item.route, icon: item.icon, iconColor: item.iconColor, onClick: forceHideMoreMenu }));
|
|
152
|
-
}),
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
124
|
/*
|
|
156
125
|
* Find Home item from navItems. Match by id so this keeps working when the
|
|
157
126
|
* title is translated to a non-English language.
|
|
@@ -168,28 +137,27 @@ const Navbar = (props) => {
|
|
|
168
137
|
homeItem && (React.createElement(NavBarItem, { key: homeItem.id, id: homeItem.id, title: homeItem.title, icon: homeItem.icon, activeRoute: homeItem.activeRoute, route: homeItem.route, exact: true })),
|
|
169
138
|
activeMoreItem && (React.createElement(React.Fragment, null,
|
|
170
139
|
React.createElement("span", { className: "text-gray-400 mx-1" }, "/"),
|
|
171
|
-
React.createElement("
|
|
172
|
-
React.createElement(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
React.createElement(Icon, { icon: IconProp.ChevronDown, className: "ml-1.5 h-3 w-3 text-gray-500" })),
|
|
176
|
-
isMoreMenuVisible && (React.createElement(NavBarMenu, { sections: sections, footer: props.moreMenuFooter }))))),
|
|
140
|
+
React.createElement("button", { onClick: openMoreMenu, className: "group bg-gray-100 text-gray-900 hover:bg-gray-200 rounded-md py-2 px-3 inline-flex items-center text-sm font-medium transition-colors cursor-pointer" },
|
|
141
|
+
React.createElement(Icon, { icon: activeMoreItem.icon, className: "mr-1.5 h-4 w-4 transition-transform duration-150 group-hover:scale-110", thick: ThickProp.Thick }),
|
|
142
|
+
React.createElement("span", null, activeMoreItem.title),
|
|
143
|
+
React.createElement(Icon, { icon: IconProp.ChevronDown, className: `ml-1.5 h-3 w-3 text-gray-500 transition-transform duration-200 ${isMoreMenuVisible ? "rotate-180" : ""}` })))),
|
|
177
144
|
!activeMoreItem &&
|
|
178
145
|
props.moreMenuItems &&
|
|
179
146
|
props.moreMenuItems.length > 0 && (React.createElement(React.Fragment, null,
|
|
180
147
|
React.createElement("span", { className: "text-gray-400 mx-1" }, "/"),
|
|
181
|
-
React.createElement("
|
|
182
|
-
React.createElement(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
React.createElement(Icon, { icon: IconProp.ChevronDown, className: "ml-1.5 h-3 w-3 text-gray-400" })),
|
|
186
|
-
isMoreMenuVisible && (React.createElement(NavBarMenu, { sections: sections, footer: props.moreMenuFooter })))))),
|
|
148
|
+
React.createElement("button", { onClick: openMoreMenu, className: "group text-gray-500 hover:bg-gray-50 hover:text-gray-900 rounded-md py-2 px-3 inline-flex items-center text-sm font-medium transition-colors cursor-pointer" },
|
|
149
|
+
React.createElement(Icon, { icon: IconProp.Squares, className: "mr-1.5 h-4 w-4 transition-transform duration-150 group-hover:scale-110 group-hover:text-indigo-600", thick: ThickProp.Thick }),
|
|
150
|
+
React.createElement("span", null, props.moreMenuTitle || "Products"),
|
|
151
|
+
React.createElement(Icon, { icon: IconProp.ChevronDown, className: `ml-1.5 h-3 w-3 text-gray-400 transition-transform duration-200 ${isMoreMenuVisible ? "rotate-180" : ""}` }))))),
|
|
187
152
|
otherNavItems.map((item) => {
|
|
188
153
|
var _a;
|
|
189
154
|
return (React.createElement(NavBarItem, { key: item.id, id: item.id, title: item.title, icon: item.icon, activeRoute: item.activeRoute, route: item.route, exact: (_a = item.exact) !== null && _a !== void 0 ? _a : false }));
|
|
190
155
|
})),
|
|
191
156
|
props.rightElement && (React.createElement("div", { className: className },
|
|
192
|
-
React.createElement(NavBarItem, { title: props.rightElement.title, icon: props.rightElement.icon, route: props.rightElement.route, activeRoute: props.rightElement.activeRoute, exact: (
|
|
157
|
+
React.createElement(NavBarItem, { title: props.rightElement.title, icon: props.rightElement.icon, route: props.rightElement.route, activeRoute: props.rightElement.activeRoute, exact: (_c = props.rightElement.exact) !== null && _c !== void 0 ? _c : false }))),
|
|
158
|
+
isMoreMenuVisible &&
|
|
159
|
+
props.moreMenuItems &&
|
|
160
|
+
props.moreMenuItems.length > 0 && (React.createElement(NavBarMenuModal, { items: props.moreMenuItems, footer: props.moreMenuFooter, searchPlaceholder: props.moreMenuSearchPlaceholder, noResultsText: props.moreMenuNoResultsText, keyboardHint: props.moreMenuKeyboardHint, recentLabel: props.moreMenuRecentLabel, onClose: closeMoreMenu }))));
|
|
193
161
|
};
|
|
194
162
|
export default Navbar;
|
|
195
163
|
//# sourceMappingURL=NavBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../../UI/Components/Navbar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,QAAQ,EACR,SAAS,
|
|
1
|
+
{"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../../UI/Components/Navbar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,QAAQ,EACR,SAAS,GACV,MAAM,OAAO,CAAC;AAGf,OAAO,QAAQ,MAAM,8BAA8B,CAAC;AACpD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,MAAM,EAAE,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAyC/C,MAAM,MAAM,GAAsC,CAChD,KAAqB,EACP,EAAE;;IAChB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACzD,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GACjD,QAAQ,CAAU,KAAK,CAAC,CAAC;IAC3B,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAE3E,sDAAsD;IACtD,MAAM,EACJ,GAAG,EAAE,aAAa,EAClB,kBAAkB,EAAE,gBAAgB,EACpC,qBAAqB,EAAE,mBAAmB,GAC3C,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAEpC,mCAAmC;IACnC,SAAS,CAAC,GAAG,EAAE;QACb,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CA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