@memberjunction/ng-dashboards 5.11.0 → 5.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AI/components/agents/agent-configuration.component.d.ts +34 -2
- package/dist/AI/components/agents/agent-configuration.component.d.ts.map +1 -1
- package/dist/AI/components/agents/agent-configuration.component.js +586 -223
- package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
- package/dist/AI/components/agents/agent-editor.component.js +2 -2
- package/dist/AI/components/agents/agent-filter-panel.component.d.ts +8 -0
- package/dist/AI/components/agents/agent-filter-panel.component.d.ts.map +1 -1
- package/dist/AI/components/agents/agent-filter-panel.component.js +85 -52
- package/dist/AI/components/agents/agent-filter-panel.component.js.map +1 -1
- package/dist/AI/components/charts/performance-heatmap.component.d.ts +1 -0
- package/dist/AI/components/charts/performance-heatmap.component.d.ts.map +1 -1
- package/dist/AI/components/charts/performance-heatmap.component.js +27 -5
- package/dist/AI/components/charts/performance-heatmap.component.js.map +1 -1
- package/dist/AI/components/charts/time-series-chart.component.d.ts +5 -0
- package/dist/AI/components/charts/time-series-chart.component.d.ts.map +1 -1
- package/dist/AI/components/charts/time-series-chart.component.js +23 -8
- package/dist/AI/components/charts/time-series-chart.component.js.map +1 -1
- package/dist/AI/components/execution-monitoring.component.js +2 -2
- package/dist/AI/components/execution-monitoring.component.js.map +1 -1
- package/dist/AI/components/models/model-management.component.js +2 -2
- package/dist/AI/components/prompts/model-prompt-priority-matrix.component.js +2 -2
- package/dist/AI/components/prompts/prompt-filter-panel.component.js +2 -2
- package/dist/AI/components/prompts/prompt-management.component.js +3 -3
- package/dist/AI/components/prompts/prompt-management.component.js.map +1 -1
- package/dist/AI/components/prompts/prompt-version-control.component.js +2 -2
- package/dist/AI/components/requests/agent-requests-resource.component.d.ts +83 -0
- package/dist/AI/components/requests/agent-requests-resource.component.d.ts.map +1 -0
- package/dist/AI/components/requests/agent-requests-resource.component.js +547 -0
- package/dist/AI/components/requests/agent-requests-resource.component.js.map +1 -0
- package/dist/AI/components/system/system-config-filter-panel.component.js +2 -2
- package/dist/AI/components/system/system-configuration.component.js +2 -2
- package/dist/AI/components/widgets/kpi-card.component.js +7 -7
- package/dist/AI/components/widgets/kpi-card.component.js.map +1 -1
- package/dist/AI/components/widgets/live-execution-widget.component.d.ts.map +1 -1
- package/dist/AI/components/widgets/live-execution-widget.component.js +6 -6
- package/dist/AI/components/widgets/live-execution-widget.component.js.map +1 -1
- package/dist/AI/index.d.ts +1 -0
- package/dist/AI/index.d.ts.map +1 -1
- package/dist/AI/index.js +2 -0
- package/dist/AI/index.js.map +1 -1
- package/dist/APIKeys/api-applications-panel.component.js +3 -3
- package/dist/APIKeys/api-applications-panel.component.js.map +1 -1
- package/dist/APIKeys/api-key-create-dialog.component.js +3 -3
- package/dist/APIKeys/api-key-create-dialog.component.js.map +1 -1
- package/dist/APIKeys/api-key-edit-panel.component.js +1 -1
- package/dist/APIKeys/api-key-edit-panel.component.js.map +1 -1
- package/dist/APIKeys/api-key-list.component.js +3 -3
- package/dist/APIKeys/api-key-list.component.js.map +1 -1
- package/dist/APIKeys/api-keys-resource.component.js +1 -1
- package/dist/APIKeys/api-keys-resource.component.js.map +1 -1
- package/dist/APIKeys/api-scopes-panel.component.js +2 -2
- package/dist/APIKeys/api-usage-panel.component.js +2 -2
- package/dist/Actions/components/actions-overview.component.js +2 -2
- package/dist/Actions/components/execution-monitoring.component.js +2 -2
- package/dist/Actions/components/explorer/action-breadcrumb.component.js +2 -2
- package/dist/Actions/components/explorer/action-card.component.js +2 -2
- package/dist/Actions/components/explorer/action-explorer.component.js +2 -2
- package/dist/Actions/components/explorer/action-list-item.component.js +2 -2
- package/dist/Actions/components/explorer/action-toolbar.component.js +2 -2
- package/dist/Actions/components/explorer/action-tree-panel.component.js +2 -2
- package/dist/Actions/components/explorer/new-action-panel.component.js +2 -2
- package/dist/Actions/components/explorer/new-action-panel.component.js.map +1 -1
- package/dist/Actions/components/explorer/new-category-panel.component.js +2 -2
- package/dist/Actions/components/explorer/new-category-panel.component.js.map +1 -1
- package/dist/Communication/communication-dashboard.component.js +2 -2
- package/dist/Communication/communication-logs-resource.component.d.ts.map +1 -1
- package/dist/Communication/communication-logs-resource.component.js +3 -3
- package/dist/Communication/communication-logs-resource.component.js.map +1 -1
- package/dist/Communication/communication-monitor-resource.component.d.ts.map +1 -1
- package/dist/Communication/communication-monitor-resource.component.js +5 -5
- package/dist/Communication/communication-monitor-resource.component.js.map +1 -1
- package/dist/Communication/communication-providers-resource.component.d.ts.map +1 -1
- package/dist/Communication/communication-providers-resource.component.js +3 -3
- package/dist/Communication/communication-providers-resource.component.js.map +1 -1
- package/dist/Communication/communication-runs-resource.component.d.ts.map +1 -1
- package/dist/Communication/communication-runs-resource.component.js +3 -3
- package/dist/Communication/communication-runs-resource.component.js.map +1 -1
- package/dist/Communication/communication-templates-resource.component.js +2 -2
- package/dist/Communication/communication-templates-resource.component.js.map +1 -1
- package/dist/ComponentStudio/component-studio-dashboard.component.js +2 -2
- package/dist/ComponentStudio/components/ai-assistant/ai-assistant-panel.component.js +2 -2
- package/dist/ComponentStudio/components/artifact-load-dialog.component.js +2 -2
- package/dist/ComponentStudio/components/artifact-selection-dialog.component.js +2 -2
- package/dist/ComponentStudio/components/browser/component-browser.component.js +2 -2
- package/dist/ComponentStudio/components/editors/code-editor-panel.component.js +2 -2
- package/dist/ComponentStudio/components/editors/code-editor-panel.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/data-requirements-editor.component.js +2 -2
- package/dist/ComponentStudio/components/editors/data-requirements-editor.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/requirements-editor.component.js +2 -2
- package/dist/ComponentStudio/components/editors/requirements-editor.component.js.map +1 -1
- package/dist/ComponentStudio/components/editors/spec-editor.component.js +2 -2
- package/dist/ComponentStudio/components/editors/spec-editor.component.js.map +1 -1
- package/dist/ComponentStudio/components/new-component-dialog/new-component-dialog.component.js +2 -2
- package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.js +2 -2
- package/dist/ComponentStudio/components/save-version-dialog/save-version-dialog.component.js.map +1 -1
- package/dist/ComponentStudio/components/text-import-dialog.component.js +2 -2
- package/dist/ComponentStudio/components/text-import-dialog.component.js.map +1 -1
- package/dist/ComponentStudio/components/workspace/component-preview.component.js +2 -2
- package/dist/ComponentStudio/components/workspace/editor-tabs.component.js +2 -2
- package/dist/ComponentStudio/components/workspace/editor-tabs.component.js.map +1 -1
- package/dist/Credentials/components/credentials-audit-resource.component.js +9 -9
- package/dist/Credentials/components/credentials-audit-resource.component.js.map +1 -1
- package/dist/Credentials/components/credentials-categories-resource.component.d.ts.map +1 -1
- package/dist/Credentials/components/credentials-categories-resource.component.js +11 -3
- package/dist/Credentials/components/credentials-categories-resource.component.js.map +1 -1
- package/dist/Credentials/components/credentials-list-resource.component.js +2 -2
- package/dist/Credentials/components/credentials-overview-resource.component.d.ts.map +1 -1
- package/dist/Credentials/components/credentials-overview-resource.component.js +12 -11
- package/dist/Credentials/components/credentials-overview-resource.component.js.map +1 -1
- package/dist/Credentials/components/credentials-types-resource.component.js +9 -9
- package/dist/Credentials/components/credentials-types-resource.component.js.map +1 -1
- package/dist/Credentials/credentials-dashboard.component.js +2 -2
- package/dist/DashboardBrowser/dashboard-browser-resource.component.js +2 -2
- package/dist/DashboardBrowser/dashboard-share-dialog.component.js +2 -2
- package/dist/DataExplorer/components/filter-dialog/filter-dialog.component.js +2 -2
- package/dist/DataExplorer/components/navigation-panel/navigation-panel.component.js +2 -2
- package/dist/DataExplorer/components/view-selector/view-selector.component.js +2 -2
- package/dist/DataExplorer/data-explorer-dashboard.component.js +4 -4
- package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
- package/dist/Home/home-dashboard.component.js +2 -2
- package/dist/Integration/components/activity/activity.component.d.ts +1 -1
- package/dist/Integration/components/activity/activity.component.d.ts.map +1 -1
- package/dist/Integration/components/activity/activity.component.js +5 -5
- package/dist/Integration/components/activity/activity.component.js.map +1 -1
- package/dist/Integration/components/connections/connections.component.d.ts +31 -2
- package/dist/Integration/components/connections/connections.component.d.ts.map +1 -1
- package/dist/Integration/components/connections/connections.component.js +753 -412
- package/dist/Integration/components/connections/connections.component.js.map +1 -1
- package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js +3 -3
- package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js.map +1 -1
- package/dist/Integration/components/overview/overview.component.d.ts +0 -1
- package/dist/Integration/components/overview/overview.component.d.ts.map +1 -1
- package/dist/Integration/components/overview/overview.component.js +3 -6
- package/dist/Integration/components/overview/overview.component.js.map +1 -1
- package/dist/Integration/components/pipelines/pipelines.component.js +3 -3
- package/dist/Integration/components/pipelines/pipelines.component.js.map +1 -1
- package/dist/Integration/components/schedules/schedules.component.d.ts +20 -0
- package/dist/Integration/components/schedules/schedules.component.d.ts.map +1 -1
- package/dist/Integration/components/schedules/schedules.component.js +97 -5
- package/dist/Integration/components/schedules/schedules.component.js.map +1 -1
- package/dist/Integration/components/visual-editor/visual-editor.component.js +2 -2
- package/dist/Integration/components/widgets/integration-card.component.d.ts.map +1 -1
- package/dist/Integration/components/widgets/integration-card.component.js +5 -1
- package/dist/Integration/components/widgets/integration-card.component.js.map +1 -1
- package/dist/Integration/components/widgets/run-history-panel.component.js +2 -2
- package/dist/Integration/components/widgets/run-history-panel.component.js.map +1 -1
- package/dist/Integration/integration.module.d.ts +2 -1
- package/dist/Integration/integration.module.d.ts.map +1 -1
- package/dist/Integration/integration.module.js +7 -3
- package/dist/Integration/integration.module.js.map +1 -1
- package/dist/Integration/services/integration-data.service.d.ts +27 -2
- package/dist/Integration/services/integration-data.service.d.ts.map +1 -1
- package/dist/Integration/services/integration-data.service.js +107 -4
- package/dist/Integration/services/integration-data.service.js.map +1 -1
- package/dist/Lists/components/lists-browse-resource.component.js +2 -2
- package/dist/Lists/components/lists-browse-resource.component.js.map +1 -1
- package/dist/Lists/components/lists-categories-resource.component.js +2 -2
- package/dist/Lists/components/lists-categories-resource.component.js.map +1 -1
- package/dist/Lists/components/lists-my-lists-resource.component.js +2 -2
- package/dist/Lists/components/lists-my-lists-resource.component.js.map +1 -1
- package/dist/Lists/components/lists-operations-resource.component.js +2 -2
- package/dist/Lists/components/lists-operations-resource.component.js.map +1 -1
- package/dist/Lists/components/venn-diagram/venn-diagram.component.js +3 -3
- package/dist/Lists/components/venn-diagram/venn-diagram.component.js.map +1 -1
- package/dist/MCP/components/mcp-connection-dialog.component.js +2 -2
- package/dist/MCP/components/mcp-log-detail-panel.component.js +2 -2
- package/dist/MCP/components/mcp-log-detail-panel.component.js.map +1 -1
- package/dist/MCP/components/mcp-server-dialog.component.js +2 -2
- package/dist/MCP/components/mcp-test-tool-dialog.component.js +2 -2
- package/dist/MCP/components/mcp-test-tool-dialog.component.js.map +1 -1
- package/dist/MCP/mcp-dashboard.component.js +2 -2
- package/dist/MCP/mcp-filter-panel.component.js +2 -2
- package/dist/QueryBrowser/query-browser-resource.component.js +7 -7
- package/dist/QueryBrowser/query-browser-resource.component.js.map +1 -1
- package/dist/Scheduling/components/index.d.ts +0 -1
- package/dist/Scheduling/components/index.d.ts.map +1 -1
- package/dist/Scheduling/components/index.js +0 -1
- package/dist/Scheduling/components/index.js.map +1 -1
- package/dist/Scheduling/components/scheduling-activity.component.js +2 -2
- package/dist/Scheduling/components/scheduling-jobs.component.d.ts +6 -9
- package/dist/Scheduling/components/scheduling-jobs.component.d.ts.map +1 -1
- package/dist/Scheduling/components/scheduling-jobs.component.js +118 -110
- package/dist/Scheduling/components/scheduling-jobs.component.js.map +1 -1
- package/dist/Scheduling/components/scheduling-overview.component.js +3 -3
- package/dist/Scheduling/components/scheduling-overview.component.js.map +1 -1
- package/dist/Scheduling/scheduling-dashboard.component.js +2 -2
- package/dist/SystemDiagnostics/system-diagnostics.component.js +4 -4
- package/dist/SystemDiagnostics/system-diagnostics.component.js.map +1 -1
- package/dist/Testing/components/testing-analytics.component.js +2 -2
- package/dist/Testing/components/testing-analytics.component.js.map +1 -1
- package/dist/Testing/components/testing-dashboard-tab.component.js +4 -4
- package/dist/Testing/components/testing-dashboard-tab.component.js.map +1 -1
- package/dist/Testing/components/testing-explorer.component.js +2 -2
- package/dist/Testing/components/testing-explorer.component.js.map +1 -1
- package/dist/Testing/components/testing-review.component.d.ts.map +1 -1
- package/dist/Testing/components/testing-review.component.js +5 -5
- package/dist/Testing/components/testing-review.component.js.map +1 -1
- package/dist/Testing/components/testing-runs.component.js +2 -2
- package/dist/Testing/components/testing-runs.component.js.map +1 -1
- package/dist/Testing/components/widgets/oracle-breakdown-table.component.js +2 -2
- package/dist/Testing/components/widgets/oracle-breakdown-table.component.js.map +1 -1
- package/dist/Testing/components/widgets/suite-tree.component.js +4 -4
- package/dist/Testing/components/widgets/suite-tree.component.js.map +1 -1
- package/dist/Testing/components/widgets/test-run-detail-panel.component.js +2 -2
- package/dist/Testing/components/widgets/test-run-detail-panel.component.js.map +1 -1
- package/dist/Testing/testing-dashboard.component.js +2 -2
- package/dist/VersionHistory/components/diff-resource.component.js +2 -2
- package/dist/VersionHistory/components/graph-resource.component.js +2 -2
- package/dist/VersionHistory/components/labels-resource.component.js +3 -3
- package/dist/VersionHistory/components/labels-resource.component.js.map +1 -1
- package/dist/VersionHistory/components/restore-resource.component.js +3 -3
- package/dist/VersionHistory/components/restore-resource.component.js.map +1 -1
- package/dist/__tests__/integration-data-service.test.js +1 -0
- package/dist/__tests__/integration-data-service.test.js.map +1 -1
- package/dist/module.d.ts +52 -49
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +25 -6
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +1 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +42 -40
- package/dist/Scheduling/components/job-slideout.component.d.ts +0 -45
- package/dist/Scheduling/components/job-slideout.component.d.ts.map +0 -1
- package/dist/Scheduling/components/job-slideout.component.js +0 -459
- package/dist/Scheduling/components/job-slideout.component.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-data.service.js","sourceRoot":"","sources":["../../../src/Integration/services/integration-data.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AASpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAEL,wBAAwB,EACxB,mBAAmB,EAQpB,MAAM,sCAAsC,CAAC;;AAgL9C,oFAAoF;AACpF,MAAM,oBAAoB,GAA6C;IACrE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACrD,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,yBAAyB,EAAE;IAC3D,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACnD,EAAE,OAAO,EAAE,2BAA2B,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACxE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACjD,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,wBAAwB,EAAE;IAC9D,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACnD,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACnD,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACrD,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACzD,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACzD,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACrD,EAAE,OA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qual } from '@memberjunction/global';\nimport {\n MJCompanyIntegrationEntityMapEntity,\n MJCompanyIntegrationFieldMapEntity,\n MJCompanyIntegrationEntity,\n MJIntegrationEntity,\n MJIntegrationSourceTypeEntity,\n MJCompanyIntegrationSyncWatermarkEntity,\n} from '@memberjunction/core-entities';\nimport { IntegrationEngineBase } from '@memberjunction/integration-engine-base';\nimport {\n GraphQLDataProvider,\n GraphQLIntegrationClient,\n GraphQLActionClient,\n DiscoveredObjectResult,\n DiscoveredFieldResult,\n DiscoveryResult,\n ConnectionTestGraphQLResult,\n SchemaPreviewObjectInput,\n SchemaPreviewResult,\n DefaultConfigResult\n} from '@memberjunction/graphql-dataprovider';\n\n/**\n * Simple row types for read-only data loaded via ResultType: 'simple'\n */\nexport interface IntegrationRow {\n ID: string;\n Name: string;\n IsActive: boolean | null;\n LastRunID: string | null;\n LastRunStartedAt: string | null;\n LastRunEndedAt: string | null;\n Company: string;\n Integration: string;\n DriverClassName: string | null;\n}\n\nexport interface IntegrationRunRow {\n ID: string;\n CompanyIntegrationID: string;\n StartedAt: string | null;\n EndedAt: string | null;\n TotalRecords: number;\n Status: 'Failed' | 'In Progress' | 'Pending' | 'Success';\n ErrorLog: string | null;\n Integration: string;\n Company: string;\n RunByUser: string;\n}\n\nexport interface SourceTypeRow {\n ID: string;\n Name: string;\n Description: string | null;\n DriverClass: string;\n IconClass: string | null;\n Status: 'Active' | 'Inactive';\n}\n\nexport interface EntityMapRow {\n ID: string;\n CompanyIntegrationID: string;\n ExternalObjectName: string;\n ExternalObjectLabel: string | null;\n EntityID: string;\n SyncDirection: 'Bidirectional' | 'Pull' | 'Push';\n SyncEnabled: boolean;\n MatchStrategy: string | null;\n ConflictResolution: 'DestWins' | 'Manual' | 'MostRecent' | 'SourceWins';\n Priority: number;\n DeleteBehavior: 'DoNothing' | 'HardDelete' | 'SoftDelete';\n Status: 'Active' | 'Inactive';\n Entity: string;\n}\n\nexport interface FieldMapRow {\n ID: string;\n EntityMapID: string;\n SourceFieldName: string;\n SourceFieldLabel: string | null;\n DestinationFieldName: string;\n DestinationFieldLabel: string | null;\n Direction: 'Both' | 'DestToSource' | 'SourceToDest';\n TransformPipeline: string | null;\n IsKeyField: boolean;\n IsRequired: boolean;\n DefaultValue: string | null;\n Priority: number;\n Status: 'Active' | 'Inactive';\n}\n\n/** Aggregated per-entity stats for a run (computed client-side from raw detail records) */\nexport interface RunDetailRow {\n EntityID: string;\n Entity: string;\n RecordsProcessed: number;\n RecordsCreated: number;\n RecordsUpdated: number;\n RecordsDeleted: number;\n RecordsErrored: number;\n RecordsSkipped: number;\n}\n\n/** Raw record from MJ: Company Integration Run Details (one row per record operation) */\ninterface RawRunDetailRecord {\n ID: string;\n CompanyIntegrationRunID: string;\n EntityID: string;\n RecordID: string;\n Action: string;\n IsSuccess: boolean;\n Entity: string;\n}\n\n/** Master integration definition (e.g., \"HubSpot\", \"Salesforce\") */\nexport interface IntegrationDefinitionRow {\n ID: string;\n Name: string;\n Description: string | null;\n ClassName: string | null;\n ImportPath: string | null;\n NavigationBaseURL: string | null;\n BatchMaxRequestCount: number;\n BatchRequestWaitTime: number;\n CredentialTypeID: string | null;\n SourceTypeID: string | null;\n}\n\n/** Aggregated summary for a single integration, used by the Control Tower UI */\nexport interface IntegrationSummary {\n Integration: MJCompanyIntegrationEntity;\n SourceType: MJIntegrationSourceTypeEntity | null;\n LatestRun: IntegrationRunRow | null;\n RecentRuns: IntegrationRunRow[];\n StatusColor: 'green' | 'amber' | 'red' | 'gray';\n RelativeTime: string;\n TotalRecordsSyncedToday: number;\n TotalErrors: number;\n DurationMs: number | null;\n}\n\n/** KPI data for the Control Tower top strip */\nexport interface IntegrationKPIs {\n TotalIntegrations: number;\n ActiveSyncs: number;\n RecordsSyncedToday: number;\n ErrorRate: number;\n AverageSyncDurationMs: number | null;\n}\n\n/** Activity feed item for the Control Tower bottom section */\nexport interface ActivityFeedItem {\n RunID: string;\n IntegrationName: string;\n Status: 'Failed' | 'In Progress' | 'Pending' | 'Success';\n StatusColor: 'amber' | 'green' | 'red';\n StartedAt: string | null;\n RelativeTime: string;\n TotalRecords: number;\n RunByUser: string;\n}\n\n/** Daily record count for the bar chart */\nexport interface DailyRecordCount {\n Date: string;\n Label: string;\n Records: number;\n}\n\n/** Schedule row for the Schedules component (includes new scheduling fields) */\nexport interface ScheduleRow {\n ID: string;\n Name: string;\n Integration: string;\n Company: string;\n IsActive: boolean | null;\n ScheduleEnabled: boolean;\n ScheduleType: 'Manual' | 'Interval' | 'Cron';\n ScheduleIntervalMinutes: number | null;\n CronExpression: string | null;\n NextScheduledRunAt: string | null;\n LastScheduledRunAt: string | null;\n IsLocked: boolean;\n LockedAt: string | null;\n}\n\n/** Watermark row for the Activity detail panel */\nexport interface WatermarkRow {\n ID: string;\n EntityMapID: string;\n WatermarkType: string;\n WatermarkValue: string | null;\n Direction: 'Pull' | 'Push';\n EntityMap: string;\n}\n\n/** Shared icon resolution map for integration names to Font Awesome icon classes */\nconst INTEGRATION_ICON_MAP: Array<{ Pattern: RegExp; Icon: string }> = [\n { Pattern: /hubspot/i, Icon: 'fa-brands fa-hubspot' },\n { Pattern: /salesforce/i, Icon: 'fa-brands fa-salesforce' },\n { Pattern: /google/i, Icon: 'fa-brands fa-google' },\n { Pattern: /microsoft|dynamics|azure/i, Icon: 'fa-brands fa-microsoft' },\n { Pattern: /slack/i, Icon: 'fa-brands fa-slack' },\n { Pattern: /jira|atlassian/i, Icon: 'fa-brands fa-atlassian' },\n { Pattern: /github/i, Icon: 'fa-brands fa-github' },\n { Pattern: /stripe/i, Icon: 'fa-brands fa-stripe' },\n { Pattern: /shopify/i, Icon: 'fa-brands fa-shopify' },\n { Pattern: /mailchimp/i, Icon: 'fa-brands fa-mailchimp' },\n { Pattern: /wordpress/i, Icon: 'fa-brands fa-wordpress' },\n { Pattern: /dropbox/i, Icon: 'fa-brands fa-dropbox' },\n { Pattern: /csv|file|import/i, Icon: 'fa-solid fa-file-csv' },\n { Pattern: /postgres|mysql|sql|database|db/i, Icon: 'fa-solid fa-database' },\n { Pattern: /api|rest|graphql/i, Icon: 'fa-solid fa-code' },\n { Pattern: /member|membership/i, Icon: 'fa-solid fa-users' },\n { Pattern: /email|mail/i, Icon: 'fa-solid fa-envelope' },\n { Pattern: /calendar|event/i, Icon: 'fa-solid fa-calendar' }\n];\n\n/** Resolve an integration name to a Font Awesome icon class */\nexport function ResolveIntegrationIcon(name: string): string {\n const match = INTEGRATION_ICON_MAP.find(m => m.Pattern.test(name));\n return match ? match.Icon : 'fa-solid fa-plug';\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class IntegrationDataService {\n\n async LoadIntegrationSummaries(provider?: IRunViewProvider | null): Promise<IntegrationSummary[]> {\n const engine = IntegrationEngineBase.Instance;\n const rv = this.createRunView(provider);\n\n // Engine provides cached metadata; only runs are dynamic and need a RunView call\n const [, runsResult] = await Promise.all([\n engine.Config(false),\n rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: '',\n OrderBy: 'StartedAt DESC',\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n })\n ]);\n\n const integrations = engine.CompanyIntegrations;\n const runs = runsResult.Results;\n const sourceTypes = engine.SourceTypes;\n\n return integrations.map(integration => this.buildSummary(integration, runs, sourceTypes));\n }\n\n async LoadEntityMaps(companyIntegrationID: string, _provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationEntityMapEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.GetEntityMapsForCompanyIntegration(companyIntegrationID);\n }\n\n async LoadFieldMaps(entityMapID: string, _provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationFieldMapEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.GetFieldMapsForEntityMap(entityMapID);\n }\n\n async LoadRunHistory(companyIntegrationID: string, limit: number = 10, provider?: IRunViewProvider | null): Promise<IntegrationRunRow[]> {\n const rv = this.createRunView(provider);\n const result = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: `CompanyIntegrationID='${companyIntegrationID}'`,\n OrderBy: 'StartedAt DESC',\n MaxRows: limit,\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n });\n return result.Results;\n }\n\n async LoadRunDetails(runID: string, provider?: IRunViewProvider | null): Promise<RunDetailRow[]> {\n const rv = this.createRunView(provider);\n const result = await rv.RunView<RawRunDetailRecord>({\n EntityName: 'MJ: Company Integration Run Details',\n ExtraFilter: `CompanyIntegrationRunID='${runID}'`,\n OrderBy: 'Entity',\n Fields: ['ID', 'CompanyIntegrationRunID', 'EntityID', 'RecordID',\n 'Action', 'IsSuccess', 'Entity'],\n ResultType: 'simple'\n });\n return this.aggregateRunDetails(result.Results);\n }\n\n /** Aggregate raw per-record detail rows into per-entity summary rows */\n private aggregateRunDetails(rawRecords: RawRunDetailRecord[]): RunDetailRow[] {\n const entityMap = new Map<string, RunDetailRow>();\n\n for (const rec of rawRecords) {\n const key = rec.EntityID.toLowerCase();\n let row = entityMap.get(key);\n if (!row) {\n row = {\n EntityID: rec.EntityID,\n Entity: rec.Entity,\n RecordsProcessed: 0,\n RecordsCreated: 0,\n RecordsUpdated: 0,\n RecordsDeleted: 0,\n RecordsErrored: 0,\n RecordsSkipped: 0\n };\n entityMap.set(key, row);\n }\n\n row.RecordsProcessed++;\n\n if (!rec.IsSuccess) {\n row.RecordsErrored++;\n } else {\n const action = (rec.Action ?? '').toUpperCase();\n if (action === 'INSERT' || action === 'CREATE') {\n row.RecordsCreated++;\n } else if (action === 'UPDATE') {\n row.RecordsUpdated++;\n } else if (action === 'DELETE') {\n row.RecordsDeleted++;\n } else if (action === 'SKIP' || action === 'SKIPPED') {\n row.RecordsSkipped++;\n }\n }\n }\n\n return Array.from(entityMap.values()).sort((a, b) => a.Entity.localeCompare(b.Entity));\n }\n\n async LoadIntegrationDefinitions(_provider?: IRunViewProvider | null): Promise<MJIntegrationEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.Integrations;\n }\n\n async LoadSourceTypes(_provider?: IRunViewProvider | null): Promise<MJIntegrationSourceTypeEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.SourceTypes.filter(st => st.Status === 'Active');\n }\n\n async LoadRecentRuns(limit: number = 20, provider?: IRunViewProvider | null): Promise<ActivityFeedItem[]> {\n const rv = this.createRunView(provider);\n const result = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: '',\n OrderBy: 'StartedAt DESC',\n MaxRows: limit,\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n });\n return result.Results.map(run => this.buildActivityFeedItem(run));\n }\n\n async LoadDailyRecordCounts(days: number = 7, provider?: IRunViewProvider | null): Promise<DailyRecordCount[]> {\n const rv = this.createRunView(provider);\n const cutoffDate = new Date();\n cutoffDate.setDate(cutoffDate.getDate() - days);\n const cutoffStr = cutoffDate.toISOString().split('T')[0];\n\n const result = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: `StartedAt >= '${cutoffStr}'`,\n OrderBy: 'StartedAt ASC',\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n });\n\n return this.aggregateDailyCounts(result.Results, days);\n }\n\n ComputeKPIs(summaries: IntegrationSummary[]): IntegrationKPIs {\n const totalIntegrations = summaries.length;\n const activeSyncs = summaries.filter(\n s => s.LatestRun?.Status === 'In Progress' || s.LatestRun?.Status === 'Pending'\n ).length;\n const recordsSyncedToday = summaries.reduce((acc, s) => acc + s.TotalRecordsSyncedToday, 0);\n\n const totalRuns = summaries.reduce((acc, s) => acc + s.RecentRuns.length, 0);\n const totalErrors = summaries.reduce((acc, s) => acc + s.TotalErrors, 0);\n const errorRate = totalRuns > 0 ? (totalErrors / totalRuns) * 100 : 0;\n\n const durationsMs = summaries\n .filter(s => s.DurationMs != null)\n .map(s => s.DurationMs as number);\n const averageSyncDurationMs = durationsMs.length > 0\n ? durationsMs.reduce((a, b) => a + b, 0) / durationsMs.length\n : null;\n\n return {\n TotalIntegrations: totalIntegrations,\n ActiveSyncs: activeSyncs,\n RecordsSyncedToday: recordsSyncedToday,\n ErrorRate: Math.round(errorRate * 10) / 10,\n AverageSyncDurationMs: averageSyncDurationMs\n };\n }\n\n FormatDuration(ms: number | null): string {\n if (ms == null) return '--';\n const totalSeconds = Math.floor(ms / 1000);\n if (totalSeconds < 60) return `${totalSeconds}s`;\n const minutes = Math.floor(totalSeconds / 60);\n const seconds = totalSeconds % 60;\n if (minutes < 60) return `${minutes}m ${seconds}s`;\n const hours = Math.floor(minutes / 60);\n const remainingMinutes = minutes % 60;\n return `${hours}h ${remainingMinutes}m`;\n }\n\n ComputeRelativeTime(dateStr: string | null): string {\n return this.computeRelativeTime(dateStr);\n }\n\n // --- Entity Map CRUD ---\n\n async CreateEntityMap(params: {\n CompanyIntegrationID: string;\n ExternalObjectName: string;\n ExternalObjectLabel?: string;\n EntityID: string;\n SyncDirection?: 'Pull' | 'Push' | 'Bidirectional';\n ConflictResolution?: 'SourceWins' | 'DestWins' | 'MostRecent' | 'Manual';\n Priority?: number;\n DeleteBehavior?: 'SoftDelete' | 'DoNothing' | 'HardDelete';\n }): Promise<MJCompanyIntegrationEntityMapEntity | null> {\n const md = new Metadata();\n const em = await md.GetEntityObject<MJCompanyIntegrationEntityMapEntity>('MJ: Company Integration Entity Maps');\n em.NewRecord();\n em.CompanyIntegrationID = params.CompanyIntegrationID;\n em.ExternalObjectName = params.ExternalObjectName;\n if (params.ExternalObjectLabel) em.ExternalObjectLabel = params.ExternalObjectLabel;\n em.EntityID = params.EntityID;\n em.SyncDirection = params.SyncDirection ?? 'Pull';\n em.ConflictResolution = params.ConflictResolution ?? 'SourceWins';\n em.Priority = params.Priority ?? 0;\n em.DeleteBehavior = params.DeleteBehavior ?? 'SoftDelete';\n em.Status = 'Active';\n em.SyncEnabled = true;\n\n const saved = await em.Save();\n if (!saved) {\n console.error('[IntegrationDataService] Failed to create entity map:', em.LatestResult?.CompleteMessage);\n return null;\n }\n return em;\n }\n\n async DeleteEntityMap(entityMapID: string): Promise<boolean> {\n const md = new Metadata();\n const em = await md.GetEntityObject<MJCompanyIntegrationEntityMapEntity>('MJ: Company Integration Entity Maps');\n await em.Load(entityMapID);\n return em.Delete();\n }\n\n async ToggleEntityMapEnabled(entityMapID: string, enabled: boolean): Promise<boolean> {\n const md = new Metadata();\n const em = await md.GetEntityObject<MJCompanyIntegrationEntityMapEntity>('MJ: Company Integration Entity Maps');\n await em.Load(entityMapID);\n em.SyncEnabled = enabled;\n return em.Save();\n }\n\n // --- Field Map CRUD ---\n\n async CreateFieldMap(params: {\n EntityMapID: string;\n SourceFieldName: string;\n SourceFieldLabel?: string;\n DestinationFieldName: string;\n DestinationFieldLabel?: string;\n IsKeyField?: boolean;\n IsRequired?: boolean;\n Direction?: 'SourceToDest' | 'DestToSource' | 'Both';\n TransformPipeline?: string | null;\n Priority?: number;\n }): Promise<MJCompanyIntegrationFieldMapEntity | null> {\n const md = new Metadata();\n const fm = await md.GetEntityObject<MJCompanyIntegrationFieldMapEntity>('MJ: Company Integration Field Maps');\n fm.NewRecord();\n fm.EntityMapID = params.EntityMapID;\n fm.SourceFieldName = params.SourceFieldName;\n if (params.SourceFieldLabel) fm.SourceFieldLabel = params.SourceFieldLabel;\n fm.DestinationFieldName = params.DestinationFieldName;\n if (params.DestinationFieldLabel) fm.DestinationFieldLabel = params.DestinationFieldLabel;\n fm.IsKeyField = params.IsKeyField ?? false;\n fm.IsRequired = params.IsRequired ?? false;\n fm.Direction = params.Direction ?? 'SourceToDest';\n if (params.TransformPipeline !== undefined) fm.TransformPipeline = params.TransformPipeline;\n fm.Status = 'Active';\n fm.Priority = params.Priority ?? 0;\n\n const saved = await fm.Save();\n if (!saved) {\n console.error('[IntegrationDataService] Failed to create field map:', fm.LatestResult?.CompleteMessage);\n return null;\n }\n return fm;\n }\n\n async DeleteFieldMap(fieldMapID: string): Promise<boolean> {\n const md = new Metadata();\n const fm = await md.GetEntityObject<MJCompanyIntegrationFieldMapEntity>('MJ: Company Integration Field Maps');\n await fm.Load(fieldMapID);\n return fm.Delete();\n }\n\n async UpdateFieldMap(fieldMapID: string, updates: {\n SourceFieldName?: string;\n DestinationFieldName?: string;\n IsKeyField?: boolean;\n IsRequired?: boolean;\n Direction?: 'SourceToDest' | 'DestToSource' | 'Both';\n Status?: 'Active' | 'Inactive';\n TransformPipeline?: string | null;\n }): Promise<boolean> {\n const md = new Metadata();\n const fm = await md.GetEntityObject<MJCompanyIntegrationFieldMapEntity>('MJ: Company Integration Field Maps');\n await fm.Load(fieldMapID);\n if (updates.SourceFieldName !== undefined) fm.SourceFieldName = updates.SourceFieldName;\n if (updates.DestinationFieldName !== undefined) fm.DestinationFieldName = updates.DestinationFieldName;\n if (updates.IsKeyField !== undefined) fm.IsKeyField = updates.IsKeyField;\n if (updates.IsRequired !== undefined) fm.IsRequired = updates.IsRequired;\n if (updates.Direction !== undefined) fm.Direction = updates.Direction;\n if (updates.Status !== undefined) fm.Status = updates.Status;\n if (updates.TransformPipeline !== undefined) fm.TransformPipeline = updates.TransformPipeline;\n return fm.Save();\n }\n\n /** Load available MJ entities for mapping target selection */\n async LoadMJEntities(_provider?: IRunViewProvider | null): Promise<Array<{ ID: string; Name: string }>> {\n const md = new Metadata();\n return md.Entities\n .map(e => ({ ID: e.ID, Name: e.Name }))\n .sort((a, b) => a.Name.localeCompare(b.Name));\n }\n\n /** Load entity fields for a given entity (for field mapping destination picker) */\n async LoadEntityFields(entityID: string, _provider?: IRunViewProvider | null): Promise<Array<{ ID: string; Name: string; Type: string; IsRequired: boolean }>> {\n const md = new Metadata();\n const entity = md.Entities.find(e => UUIDsEqual(e.ID, entityID));\n if (!entity) return [];\n return entity.Fields\n .sort((a, b) => a.Sequence - b.Sequence)\n .map(f => ({ ID: f.ID, Name: f.Name, Type: f.Type, IsRequired: !f.AllowsNull }));\n }\n\n // --- Discovery (via GraphQL) ---\n\n /** Discover external objects available for a company integration */\n async DiscoverObjects(companyIntegrationID: string): Promise<DiscoveryResult<DiscoveredObjectResult[]>> {\n const client = this.getIntegrationClient();\n return client.DiscoverObjects(companyIntegrationID);\n }\n\n /** Discover fields on a specific external object */\n async DiscoverFields(companyIntegrationID: string, objectName: string): Promise<DiscoveryResult<DiscoveredFieldResult[]>> {\n const client = this.getIntegrationClient();\n return client.DiscoverFields(companyIntegrationID, objectName);\n }\n\n /** Generate DDL preview for creating tables from discovered objects */\n async SchemaPreview(\n companyIntegrationID: string,\n objects: SchemaPreviewObjectInput[],\n platform: string = 'sqlserver'\n ): Promise<SchemaPreviewResult> {\n const client = this.getIntegrationClient();\n return client.SchemaPreview(companyIntegrationID, objects, platform);\n }\n\n /** Get the connector's default configuration for quick setup */\n async GetDefaultConfig(companyIntegrationID: string): Promise<DefaultConfigResult> {\n const client = this.getIntegrationClient();\n return client.GetDefaultConfig(companyIntegrationID);\n }\n\n /** Test connection to the external system */\n async TestConnection(companyIntegrationID: string): Promise<ConnectionTestGraphQLResult> {\n const client = this.getIntegrationClient();\n return client.TestConnection(companyIntegrationID);\n }\n\n /** Preview source data from the external system via connector's FetchChanges */\n async PreviewSourceData(\n companyIntegrationID: string,\n objectName: string,\n limit: number = 5\n ): Promise<Array<Record<string, string | number | boolean | null>>> {\n const client = this.getIntegrationClient();\n const result = await client.PreviewData(companyIntegrationID, objectName, limit);\n if (!result.Success || !result.Records) {\n console.warn('[IntegrationDataService] PreviewSourceData failed:', result.Message);\n return [];\n }\n return result.Records.map(r => {\n try {\n return JSON.parse(r.Data) as Record<string, string | number | boolean | null>;\n } catch {\n return { _raw: r.Data } as Record<string, string | number | boolean | null>;\n }\n });\n }\n\n /** Preview destination data by loading a few records from the target entity */\n async PreviewDestinationData(\n entityID: string,\n limit: number = 5,\n provider?: IRunViewProvider | null\n ): Promise<Array<Record<string, string | number | boolean | null>>> {\n const md = new Metadata();\n const entityInfo = md.Entities.find(e => UUIDsEqual(e.ID, entityID));\n if (!entityInfo) return [];\n\n // Load first N fields (skip internal __mj fields) to keep preview compact\n const fields = entityInfo.Fields\n .filter(f => !f.Name.startsWith('__mj'))\n .slice(0, 8)\n .map(f => f.Name);\n\n const rv = this.createRunView(provider);\n const result = await rv.RunView<Record<string, string | number | boolean | null>>({\n EntityName: entityInfo.Name,\n ExtraFilter: '',\n OrderBy: `${fields[0]} ASC`,\n MaxRows: limit,\n Fields: fields,\n ResultType: 'simple'\n });\n return result.Results;\n }\n\n /** Get a count of records in the destination MJ entity */\n async GetDestinationRecordCount(\n entityID: string,\n provider?: IRunViewProvider | null\n ): Promise<number> {\n const md = new Metadata();\n const entityInfo = md.Entities.find(e => UUIDsEqual(e.ID, entityID));\n if (!entityInfo) return 0;\n\n const rv = this.createRunView(provider);\n const result = await rv.RunView<{ TotalCount: number }>({\n EntityName: entityInfo.Name,\n ExtraFilter: '',\n Fields: [entityInfo.FirstPrimaryKey?.Name ?? 'ID'],\n ResultType: 'simple'\n });\n return result.TotalRowCount ?? result.Results.length;\n }\n\n /** Get the most recent run that touched a given entity */\n async GetLastSyncForEntity(\n companyIntegrationID: string,\n entityID: string,\n provider?: IRunViewProvider | null\n ): Promise<{ StartedAt: string | null; EndedAt: string | null; Status: string; TotalRecords: number } | null> {\n const rv = this.createRunView(provider);\n // Get runs for this integration, most recent first\n const runsResult = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: `CompanyIntegrationID='${companyIntegrationID}'`,\n OrderBy: 'StartedAt DESC',\n MaxRows: 5,\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords', 'Status'],\n ResultType: 'simple'\n });\n if (runsResult.Results.length === 0) return null;\n\n // Check each run's details to find one that touched this entity\n for (const run of runsResult.Results) {\n const detailResult = await rv.RunView<{ EntityID: string }>({\n EntityName: 'MJ: Company Integration Run Details',\n ExtraFilter: `CompanyIntegrationRunID='${run.ID}' AND EntityID='${entityID}'`,\n MaxRows: 1,\n Fields: ['EntityID'],\n ResultType: 'simple'\n });\n if (detailResult.Results.length > 0) {\n return {\n StartedAt: run.StartedAt,\n EndedAt: run.EndedAt,\n Status: run.Status,\n TotalRecords: run.TotalRecords\n };\n }\n }\n // No run touched this entity — return the most recent run anyway as context\n const latest = runsResult.Results[0];\n return {\n StartedAt: latest.StartedAt,\n EndedAt: latest.EndedAt,\n Status: latest.Status,\n TotalRecords: latest.TotalRecords\n };\n }\n\n /** Run an integration sync via the \"Run Integration Sync\" action */\n async RunSync(companyIntegrationID: string): Promise<{ Success: boolean; Message: string }> {\n const actionID = await this.lookupActionID('Run Integration Sync');\n if (!actionID) {\n return {\n Success: false,\n Message: 'Action \"Run Integration Sync\" not found. Ensure the action is registered.'\n };\n }\n\n const provider = Metadata.Provider as GraphQLDataProvider;\n const actionClient = new GraphQLActionClient(provider);\n const result = await actionClient.RunAction(actionID, [\n { Name: 'CompanyIntegrationID', Value: companyIntegrationID, Type: 'Input' }\n ]);\n return { Success: result.Success, Message: result.Message ?? '' };\n }\n\n /** Load schedule data for all company integrations (includes new scheduling fields) */\n async LoadSchedules(_provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.CompanyIntegrations;\n }\n\n /** Load sync watermarks for a specific company integration's entity maps */\n async LoadWatermarks(companyIntegrationID: string, _provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationSyncWatermarkEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n const entityMaps = IntegrationEngineBase.Instance.GetEntityMapsForCompanyIntegration(companyIntegrationID);\n if (entityMaps.length === 0) return [];\n\n const mapIDSet = new Set(entityMaps.map(em => em.ID.toLowerCase()));\n return IntegrationEngineBase.Instance.Watermarks.filter(w => mapIDSet.has(w.EntityMapID.toLowerCase()));\n }\n\n /** Load entity map count per company integration (used by Overview cards) */\n async LoadEntityMapCounts(_provider?: IRunViewProvider | null): Promise<Map<string, number>> {\n await IntegrationEngineBase.Instance.Config(false);\n const counts = new Map<string, number>();\n for (const em of IntegrationEngineBase.Instance.EntityMaps) {\n if (em.SyncEnabled) {\n const key = em.CompanyIntegrationID.toLowerCase();\n counts.set(key, (counts.get(key) ?? 0) + 1);\n }\n }\n return counts;\n }\n\n private async lookupActionID(actionName: string): Promise<string | null> {\n const rv = new RunView();\n const result = await rv.RunView<{ ID: string }>({\n EntityName: 'MJ: Actions',\n ExtraFilter: `Name='${actionName}'`,\n Fields: ['ID'],\n MaxRows: 1,\n ResultType: 'simple'\n });\n return result.Results.length > 0 ? result.Results[0].ID : null;\n }\n\n private getIntegrationClient(): GraphQLIntegrationClient {\n const provider = Metadata.Provider as GraphQLDataProvider;\n return new GraphQLIntegrationClient(provider);\n }\n\n private createRunView(provider?: IRunViewProvider | null): RunView {\n return new RunView(provider ?? null);\n }\n\n private buildSummary(\n integration: MJCompanyIntegrationEntity,\n allRuns: IntegrationRunRow[],\n sourceTypes: MJIntegrationSourceTypeEntity[]\n ): IntegrationSummary {\n const integrationRuns = allRuns.filter(r => UUIDsEqual(r.CompanyIntegrationID, integration.ID));\n const latestRun = integrationRuns.length > 0 ? integrationRuns[0] : null;\n const recentRuns = integrationRuns.slice(0, 5);\n const statusColor = this.computeStatusColor(latestRun, integration.IsActive);\n const relativeTime = this.computeRelativeTime(latestRun?.StartedAt ?? null);\n const totalRecordsSyncedToday = this.computeRecordsSyncedToday(integrationRuns);\n const totalErrors = integrationRuns.filter(r => r.Status === 'Failed').length;\n const durationMs = this.computeDuration(latestRun);\n const sourceType = this.resolveSourceType(integration, sourceTypes);\n\n return {\n Integration: integration,\n SourceType: sourceType,\n LatestRun: latestRun,\n RecentRuns: recentRuns,\n StatusColor: statusColor,\n RelativeTime: relativeTime,\n TotalRecordsSyncedToday: totalRecordsSyncedToday,\n TotalErrors: totalErrors,\n DurationMs: durationMs\n };\n }\n\n private resolveSourceType(\n integration: MJCompanyIntegrationEntity,\n sourceTypes: MJIntegrationSourceTypeEntity[]\n ): MJIntegrationSourceTypeEntity | null {\n if (!integration.SourceTypeID) return null;\n return sourceTypes.find(st => UUIDsEqual(st.ID, integration.SourceTypeID)) ?? null;\n }\n\n private buildActivityFeedItem(run: IntegrationRunRow): ActivityFeedItem {\n return {\n RunID: run.ID,\n IntegrationName: run.Integration,\n Status: run.Status,\n StatusColor: this.runStatusColor(run),\n StartedAt: run.StartedAt,\n RelativeTime: this.computeRelativeTime(run.StartedAt),\n TotalRecords: run.TotalRecords,\n RunByUser: run.RunByUser\n };\n }\n\n private runStatusColor(run: IntegrationRunRow): 'amber' | 'green' | 'red' {\n if (run.Status === 'Failed') return 'red';\n if (run.Status === 'Success') return 'green';\n return 'amber';\n }\n\n private computeRecordsSyncedToday(runs: IntegrationRunRow[]): number {\n const todayStart = new Date();\n todayStart.setHours(0, 0, 0, 0);\n return runs\n .filter(r => r.StartedAt && new Date(r.StartedAt) >= todayStart)\n .reduce((acc, r) => acc + r.TotalRecords, 0);\n }\n\n private computeDuration(run: IntegrationRunRow | null): number | null {\n if (!run?.StartedAt || !run?.EndedAt) return null;\n return new Date(run.EndedAt).getTime() - new Date(run.StartedAt).getTime();\n }\n\n private aggregateDailyCounts(runs: IntegrationRunRow[], days: number): DailyRecordCount[] {\n const result: DailyRecordCount[] = [];\n const today = new Date();\n\n for (let i = days - 1; i >= 0; i--) {\n const date = new Date(today);\n date.setDate(date.getDate() - i);\n const dateStr = date.toISOString().split('T')[0];\n const label = date.toLocaleDateString(undefined, { weekday: 'short' });\n\n const dayRecords = runs\n .filter(r => r.StartedAt && r.StartedAt.startsWith(dateStr))\n .reduce((acc, r) => acc + r.TotalRecords, 0);\n\n result.push({ Date: dateStr, Label: label, Records: dayRecords });\n }\n return result;\n }\n\n private computeStatusColor(\n latestRun: IntegrationRunRow | null,\n isActive: boolean | null\n ): 'green' | 'amber' | 'red' | 'gray' {\n if (!isActive) return 'gray';\n if (!latestRun) return 'gray';\n if (latestRun.Status === 'Failed') return 'red';\n if (latestRun.Status === 'In Progress' || latestRun.Status === 'Pending') return 'amber';\n if (latestRun.Status === 'Success') {\n return this.isStale(latestRun.StartedAt) ? 'amber' : 'green';\n }\n return 'gray';\n }\n\n private isStale(startedAt: string | null): boolean {\n if (!startedAt) return true;\n const runDate = new Date(startedAt);\n const hoursAgo = (Date.now() - runDate.getTime()) / (1000 * 60 * 60);\n return hoursAgo > 24;\n }\n\n private computeRelativeTime(dateStr: string | null): string {\n if (!dateStr) return 'Never run';\n const date = new Date(dateStr);\n const diffMs = Date.now() - date.getTime();\n const diffMinutes = Math.floor(diffMs / (1000 * 60));\n\n if (diffMinutes < 1) return 'Just now';\n if (diffMinutes < 60) return `${diffMinutes}m ago`;\n const diffHours = Math.floor(diffMinutes / 60);\n if (diffHours < 24) return `${diffHours}h ago`;\n const diffDays = Math.floor(diffHours / 24);\n if (diffDays < 30) return `${diffDays}d ago`;\n return date.toLocaleDateString();\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"integration-data.service.js","sourceRoot":"","sources":["../../../src/Integration/services/integration-data.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AASpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAA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from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport {\n MJCompanyIntegrationEntityMapEntity,\n MJCompanyIntegrationFieldMapEntity,\n MJCompanyIntegrationEntity,\n MJIntegrationEntity,\n MJIntegrationSourceTypeEntity,\n MJCompanyIntegrationSyncWatermarkEntity,\n} from '@memberjunction/core-entities';\nimport { IntegrationEngineBase } from '@memberjunction/integration-engine-base';\nimport {\n GraphQLDataProvider,\n GraphQLIntegrationClient,\n GraphQLActionClient,\n DiscoveredObjectResult,\n DiscoveredFieldResult,\n DiscoveryResult,\n ConnectionTestGraphQLResult,\n SchemaPreviewObjectInput,\n SchemaPreviewResult,\n DefaultConfigResult\n} from '@memberjunction/graphql-dataprovider';\n\n/**\n * Simple row types for read-only data loaded via ResultType: 'simple'\n */\nexport interface IntegrationRow {\n ID: string;\n Name: string;\n IsActive: boolean | null;\n LastRunID: string | null;\n LastRunStartedAt: string | null;\n LastRunEndedAt: string | null;\n Company: string;\n Integration: string;\n DriverClassName: string | null;\n}\n\nexport interface IntegrationRunRow {\n ID: string;\n CompanyIntegrationID: string;\n StartedAt: string | null;\n EndedAt: string | null;\n TotalRecords: number;\n Status: 'Failed' | 'In Progress' | 'Pending' | 'Success';\n ErrorLog: string | null;\n Integration: string;\n Company: string;\n RunByUser: string;\n}\n\nexport interface SourceTypeRow {\n ID: string;\n Name: string;\n Description: string | null;\n DriverClass: string;\n IconClass: string | null;\n Status: 'Active' | 'Inactive';\n}\n\nexport interface EntityMapRow {\n ID: string;\n CompanyIntegrationID: string;\n ExternalObjectName: string;\n ExternalObjectLabel: string | null;\n EntityID: string;\n SyncDirection: 'Bidirectional' | 'Pull' | 'Push';\n SyncEnabled: boolean;\n MatchStrategy: string | null;\n ConflictResolution: 'DestWins' | 'Manual' | 'MostRecent' | 'SourceWins';\n Priority: number;\n DeleteBehavior: 'DoNothing' | 'HardDelete' | 'SoftDelete';\n Status: 'Active' | 'Inactive';\n Entity: string;\n}\n\nexport interface FieldMapRow {\n ID: string;\n EntityMapID: string;\n SourceFieldName: string;\n SourceFieldLabel: string | null;\n DestinationFieldName: string;\n DestinationFieldLabel: string | null;\n Direction: 'Both' | 'DestToSource' | 'SourceToDest';\n TransformPipeline: string | null;\n IsKeyField: boolean;\n IsRequired: boolean;\n DefaultValue: string | null;\n Priority: number;\n Status: 'Active' | 'Inactive';\n}\n\n/** Aggregated per-entity stats for a run (computed client-side from raw detail records) */\nexport interface RunDetailRow {\n EntityID: string;\n Entity: string;\n RecordsProcessed: number;\n RecordsCreated: number;\n RecordsUpdated: number;\n RecordsDeleted: number;\n RecordsErrored: number;\n RecordsSkipped: number;\n}\n\n/** Raw record from MJ: Company Integration Run Details (one row per record operation) */\ninterface RawRunDetailRecord {\n ID: string;\n CompanyIntegrationRunID: string;\n EntityID: string;\n RecordID: string;\n Action: string;\n IsSuccess: boolean;\n Entity: string;\n}\n\n/** Master integration definition (e.g., \"HubSpot\", \"Salesforce\") */\nexport interface IntegrationDefinitionRow {\n ID: string;\n Name: string;\n Description: string | null;\n ClassName: string | null;\n ImportPath: string | null;\n NavigationBaseURL: string | null;\n BatchMaxRequestCount: number;\n BatchRequestWaitTime: number;\n CredentialTypeID: string | null;\n SourceTypeID: string | null;\n}\n\n/** Aggregated summary for a single integration, used by the Control Tower UI */\nexport interface IntegrationSummary {\n Integration: MJCompanyIntegrationEntity;\n SourceType: MJIntegrationSourceTypeEntity | null;\n /** Icon from the Integration entity — FA class, URL, or base64 */\n Icon: string | null;\n LatestRun: IntegrationRunRow | null;\n RecentRuns: IntegrationRunRow[];\n StatusColor: 'green' | 'amber' | 'red' | 'gray';\n RelativeTime: string;\n TotalRecordsSyncedToday: number;\n TotalErrors: number;\n DurationMs: number | null;\n}\n\n/** KPI data for the Control Tower top strip */\nexport interface IntegrationKPIs {\n TotalIntegrations: number;\n ActiveSyncs: number;\n RecordsSyncedToday: number;\n ErrorRate: number;\n AverageSyncDurationMs: number | null;\n}\n\n/** Activity feed item for the Control Tower bottom section */\nexport interface ActivityFeedItem {\n RunID: string;\n IntegrationName: string;\n Status: 'Failed' | 'In Progress' | 'Pending' | 'Success';\n StatusColor: 'amber' | 'green' | 'red';\n StartedAt: string | null;\n RelativeTime: string;\n TotalRecords: number;\n RunByUser: string;\n}\n\n/** Daily record count for the bar chart */\nexport interface DailyRecordCount {\n Date: string;\n Label: string;\n Records: number;\n}\n\n/** Schedule row for the Schedules component (includes new scheduling fields) */\nexport interface ScheduleRow {\n ID: string;\n Name: string;\n Integration: string;\n Company: string;\n IsActive: boolean | null;\n ScheduleEnabled: boolean;\n ScheduleType: 'Manual' | 'Interval' | 'Cron';\n ScheduleIntervalMinutes: number | null;\n CronExpression: string | null;\n NextScheduledRunAt: string | null;\n LastScheduledRunAt: string | null;\n IsLocked: boolean;\n LockedAt: string | null;\n}\n\n/** Watermark row for the Activity detail panel */\nexport interface WatermarkRow {\n ID: string;\n EntityMapID: string;\n WatermarkType: string;\n WatermarkValue: string | null;\n Direction: 'Pull' | 'Push';\n EntityMap: string;\n}\n\n/** Shared icon resolution map for integration names to Font Awesome icon classes */\nconst INTEGRATION_ICON_MAP: Array<{ Pattern: RegExp; Icon: string }> = [\n { Pattern: /hubspot/i, Icon: 'fa-brands fa-hubspot' },\n { Pattern: /salesforce/i, Icon: 'fa-brands fa-salesforce' },\n { Pattern: /google/i, Icon: 'fa-brands fa-google' },\n { Pattern: /microsoft|dynamics|azure/i, Icon: 'fa-brands fa-microsoft' },\n { Pattern: /slack/i, Icon: 'fa-brands fa-slack' },\n { Pattern: /jira|atlassian/i, Icon: 'fa-brands fa-atlassian' },\n { Pattern: /github/i, Icon: 'fa-brands fa-github' },\n { Pattern: /stripe/i, Icon: 'fa-brands fa-stripe' },\n { Pattern: /shopify/i, Icon: 'fa-brands fa-shopify' },\n { Pattern: /mailchimp/i, Icon: 'fa-brands fa-mailchimp' },\n { Pattern: /wordpress/i, Icon: 'fa-brands fa-wordpress' },\n { Pattern: /dropbox/i, Icon: 'fa-brands fa-dropbox' },\n { Pattern: /csv|file|import/i, Icon: 'fa-solid fa-file-csv' },\n { Pattern: /postgres|mysql|sql|database|db/i, Icon: 'fa-solid fa-database' },\n { Pattern: /api|rest|graphql/i, Icon: 'fa-solid fa-code' },\n { Pattern: /member|membership/i, Icon: 'fa-solid fa-users' },\n { Pattern: /email|mail/i, Icon: 'fa-solid fa-envelope' },\n { Pattern: /calendar|event/i, Icon: 'fa-solid fa-calendar' }\n];\n\n/**\n * Resolve an integration icon. Checks the entity's Icon field first (supports\n * Font Awesome classes, URLs, and base64), then falls back to pattern-based\n * name matching, then to a generic plug icon.\n */\nexport function ResolveIntegrationIcon(name: string, entityIcon?: string | null): string {\n // If the Integration entity has an Icon value that looks like a FA class, use it directly\n if (entityIcon && entityIcon.startsWith('fa-')) {\n return entityIcon;\n }\n // Fall back to pattern-based name matching\n const match = INTEGRATION_ICON_MAP.find(m => m.Pattern.test(name));\n return match ? match.Icon : 'fa-solid fa-plug';\n}\n\n/**\n * Check if the Icon field contains an image URL or base64 data URI\n * (as opposed to a Font Awesome class). Used by templates to decide\n * whether to render an <i> or an <img>.\n */\nexport function IsImageIcon(icon: string | null | undefined): boolean {\n if (!icon) return false;\n return icon.startsWith('http') || icon.startsWith('data:') || icon.startsWith('/');\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class IntegrationDataService {\n\n async LoadIntegrationSummaries(provider?: IRunViewProvider | null): Promise<IntegrationSummary[]> {\n const engine = IntegrationEngineBase.Instance;\n const rv = this.createRunView(provider);\n\n // Engine provides cached metadata; only runs are dynamic and need a RunView call\n const [, runsResult] = await Promise.all([\n engine.Config(false),\n rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: '',\n OrderBy: 'StartedAt DESC',\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n })\n ]);\n\n const integrations = engine.CompanyIntegrations;\n const runs = runsResult.Results;\n const sourceTypes = engine.SourceTypes;\n\n const integrationDefs = engine.Integrations;\n return integrations.map(integration => this.buildSummary(integration, runs, sourceTypes, integrationDefs));\n }\n\n async LoadEntityMaps(companyIntegrationID: string, _provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationEntityMapEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.GetEntityMapsForCompanyIntegration(companyIntegrationID);\n }\n\n async LoadFieldMaps(entityMapID: string, _provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationFieldMapEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.GetFieldMapsForEntityMap(entityMapID);\n }\n\n async LoadRunHistory(companyIntegrationID: string, limit: number = 10, provider?: IRunViewProvider | null): Promise<IntegrationRunRow[]> {\n const rv = this.createRunView(provider);\n const result = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: `CompanyIntegrationID='${companyIntegrationID}'`,\n OrderBy: 'StartedAt DESC',\n MaxRows: limit,\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n });\n return result.Results;\n }\n\n async LoadRunDetails(runID: string, provider?: IRunViewProvider | null): Promise<RunDetailRow[]> {\n const rv = this.createRunView(provider);\n const result = await rv.RunView<RawRunDetailRecord>({\n EntityName: 'MJ: Company Integration Run Details',\n ExtraFilter: `CompanyIntegrationRunID='${runID}'`,\n OrderBy: 'Entity',\n Fields: ['ID', 'CompanyIntegrationRunID', 'EntityID', 'RecordID',\n 'Action', 'IsSuccess', 'Entity'],\n ResultType: 'simple'\n });\n return this.aggregateRunDetails(result.Results);\n }\n\n /** Aggregate raw per-record detail rows into per-entity summary rows */\n private aggregateRunDetails(rawRecords: RawRunDetailRecord[]): RunDetailRow[] {\n const entityMap = new Map<string, RunDetailRow>();\n\n for (const rec of rawRecords) {\n const key = rec.EntityID.toLowerCase();\n let row = entityMap.get(key);\n if (!row) {\n row = {\n EntityID: rec.EntityID,\n Entity: rec.Entity,\n RecordsProcessed: 0,\n RecordsCreated: 0,\n RecordsUpdated: 0,\n RecordsDeleted: 0,\n RecordsErrored: 0,\n RecordsSkipped: 0\n };\n entityMap.set(key, row);\n }\n\n row.RecordsProcessed++;\n\n if (!rec.IsSuccess) {\n row.RecordsErrored++;\n } else {\n const action = (rec.Action ?? '').toUpperCase();\n if (action === 'INSERT' || action === 'CREATE') {\n row.RecordsCreated++;\n } else if (action === 'UPDATE') {\n row.RecordsUpdated++;\n } else if (action === 'DELETE') {\n row.RecordsDeleted++;\n } else if (action === 'SKIP' || action === 'SKIPPED') {\n row.RecordsSkipped++;\n }\n }\n }\n\n return Array.from(entityMap.values()).sort((a, b) => a.Entity.localeCompare(b.Entity));\n }\n\n async LoadIntegrationDefinitions(_provider?: IRunViewProvider | null): Promise<MJIntegrationEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.Integrations;\n }\n\n async LoadSourceTypes(_provider?: IRunViewProvider | null): Promise<MJIntegrationSourceTypeEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.SourceTypes.filter(st => st.Status === 'Active');\n }\n\n async LoadRecentRuns(limit: number = 20, provider?: IRunViewProvider | null): Promise<ActivityFeedItem[]> {\n const rv = this.createRunView(provider);\n const result = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: '',\n OrderBy: 'StartedAt DESC',\n MaxRows: limit,\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n });\n return result.Results.map(run => this.buildActivityFeedItem(run));\n }\n\n async LoadDailyRecordCounts(days: number = 7, provider?: IRunViewProvider | null): Promise<DailyRecordCount[]> {\n const rv = this.createRunView(provider);\n const cutoffDate = new Date();\n cutoffDate.setDate(cutoffDate.getDate() - days);\n const cutoffStr = cutoffDate.toISOString().split('T')[0];\n\n const result = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: `StartedAt >= '${cutoffStr}'`,\n OrderBy: 'StartedAt ASC',\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords',\n 'Status', 'ErrorLog', 'Integration', 'Company', 'RunByUser'],\n ResultType: 'simple'\n });\n\n return this.aggregateDailyCounts(result.Results, days);\n }\n\n ComputeKPIs(summaries: IntegrationSummary[]): IntegrationKPIs {\n const totalIntegrations = summaries.length;\n const activeSyncs = summaries.filter(\n s => s.LatestRun?.Status === 'In Progress' || s.LatestRun?.Status === 'Pending'\n ).length;\n const recordsSyncedToday = summaries.reduce((acc, s) => acc + s.TotalRecordsSyncedToday, 0);\n\n const totalRuns = summaries.reduce((acc, s) => acc + s.RecentRuns.length, 0);\n const totalErrors = summaries.reduce((acc, s) => acc + s.TotalErrors, 0);\n const errorRate = totalRuns > 0 ? (totalErrors / totalRuns) * 100 : 0;\n\n const durationsMs = summaries\n .filter(s => s.DurationMs != null)\n .map(s => s.DurationMs as number);\n const averageSyncDurationMs = durationsMs.length > 0\n ? durationsMs.reduce((a, b) => a + b, 0) / durationsMs.length\n : null;\n\n return {\n TotalIntegrations: totalIntegrations,\n ActiveSyncs: activeSyncs,\n RecordsSyncedToday: recordsSyncedToday,\n ErrorRate: Math.round(errorRate * 10) / 10,\n AverageSyncDurationMs: averageSyncDurationMs\n };\n }\n\n FormatDuration(ms: number | null): string {\n if (ms == null) return '--';\n const totalSeconds = Math.floor(ms / 1000);\n if (totalSeconds < 60) return `${totalSeconds}s`;\n const minutes = Math.floor(totalSeconds / 60);\n const seconds = totalSeconds % 60;\n if (minutes < 60) return `${minutes}m ${seconds}s`;\n const hours = Math.floor(minutes / 60);\n const remainingMinutes = minutes % 60;\n return `${hours}h ${remainingMinutes}m`;\n }\n\n ComputeRelativeTime(dateStr: string | null): string {\n return this.computeRelativeTime(dateStr);\n }\n\n // --- Entity Map CRUD ---\n\n async CreateEntityMap(params: {\n CompanyIntegrationID: string;\n ExternalObjectName: string;\n ExternalObjectLabel?: string;\n EntityID: string;\n SyncDirection?: 'Pull' | 'Push' | 'Bidirectional';\n ConflictResolution?: 'SourceWins' | 'DestWins' | 'MostRecent' | 'Manual';\n Priority?: number;\n DeleteBehavior?: 'SoftDelete' | 'DoNothing' | 'HardDelete';\n }): Promise<MJCompanyIntegrationEntityMapEntity | null> {\n const md = new Metadata();\n const em = await md.GetEntityObject<MJCompanyIntegrationEntityMapEntity>('MJ: Company Integration Entity Maps');\n em.NewRecord();\n em.CompanyIntegrationID = params.CompanyIntegrationID;\n em.ExternalObjectName = params.ExternalObjectName;\n if (params.ExternalObjectLabel) em.ExternalObjectLabel = params.ExternalObjectLabel;\n em.EntityID = params.EntityID;\n em.SyncDirection = params.SyncDirection ?? 'Pull';\n em.ConflictResolution = params.ConflictResolution ?? 'SourceWins';\n em.Priority = params.Priority ?? 0;\n em.DeleteBehavior = params.DeleteBehavior ?? 'SoftDelete';\n em.Status = 'Active';\n em.SyncEnabled = true;\n\n const saved = await em.Save();\n if (!saved) {\n console.error('[IntegrationDataService] Failed to create entity map:', em.LatestResult?.CompleteMessage);\n return null;\n }\n return em;\n }\n\n async DeleteEntityMap(entityMapID: string): Promise<boolean> {\n const md = new Metadata();\n const em = await md.GetEntityObject<MJCompanyIntegrationEntityMapEntity>('MJ: Company Integration Entity Maps');\n await em.Load(entityMapID);\n return em.Delete();\n }\n\n async ToggleEntityMapEnabled(entityMapID: string, enabled: boolean): Promise<boolean> {\n const md = new Metadata();\n const em = await md.GetEntityObject<MJCompanyIntegrationEntityMapEntity>('MJ: Company Integration Entity Maps');\n await em.Load(entityMapID);\n em.SyncEnabled = enabled;\n return em.Save();\n }\n\n // --- Field Map CRUD ---\n\n async CreateFieldMap(params: {\n EntityMapID: string;\n SourceFieldName: string;\n SourceFieldLabel?: string;\n DestinationFieldName: string;\n DestinationFieldLabel?: string;\n IsKeyField?: boolean;\n IsRequired?: boolean;\n Direction?: 'SourceToDest' | 'DestToSource' | 'Both';\n TransformPipeline?: string | null;\n Priority?: number;\n }): Promise<MJCompanyIntegrationFieldMapEntity | null> {\n const md = new Metadata();\n const fm = await md.GetEntityObject<MJCompanyIntegrationFieldMapEntity>('MJ: Company Integration Field Maps');\n fm.NewRecord();\n fm.EntityMapID = params.EntityMapID;\n fm.SourceFieldName = params.SourceFieldName;\n if (params.SourceFieldLabel) fm.SourceFieldLabel = params.SourceFieldLabel;\n fm.DestinationFieldName = params.DestinationFieldName;\n if (params.DestinationFieldLabel) fm.DestinationFieldLabel = params.DestinationFieldLabel;\n fm.IsKeyField = params.IsKeyField ?? false;\n fm.IsRequired = params.IsRequired ?? false;\n fm.Direction = params.Direction ?? 'SourceToDest';\n if (params.TransformPipeline !== undefined) fm.TransformPipeline = params.TransformPipeline;\n fm.Status = 'Active';\n fm.Priority = params.Priority ?? 0;\n\n const saved = await fm.Save();\n if (!saved) {\n console.error('[IntegrationDataService] Failed to create field map:', fm.LatestResult?.CompleteMessage);\n return null;\n }\n return fm;\n }\n\n async DeleteFieldMap(fieldMapID: string): Promise<boolean> {\n const md = new Metadata();\n const fm = await md.GetEntityObject<MJCompanyIntegrationFieldMapEntity>('MJ: Company Integration Field Maps');\n await fm.Load(fieldMapID);\n return fm.Delete();\n }\n\n async UpdateFieldMap(fieldMapID: string, updates: {\n SourceFieldName?: string;\n DestinationFieldName?: string;\n IsKeyField?: boolean;\n IsRequired?: boolean;\n Direction?: 'SourceToDest' | 'DestToSource' | 'Both';\n Status?: 'Active' | 'Inactive';\n TransformPipeline?: string | null;\n }): Promise<boolean> {\n const md = new Metadata();\n const fm = await md.GetEntityObject<MJCompanyIntegrationFieldMapEntity>('MJ: Company Integration Field Maps');\n await fm.Load(fieldMapID);\n if (updates.SourceFieldName !== undefined) fm.SourceFieldName = updates.SourceFieldName;\n if (updates.DestinationFieldName !== undefined) fm.DestinationFieldName = updates.DestinationFieldName;\n if (updates.IsKeyField !== undefined) fm.IsKeyField = updates.IsKeyField;\n if (updates.IsRequired !== undefined) fm.IsRequired = updates.IsRequired;\n if (updates.Direction !== undefined) fm.Direction = updates.Direction;\n if (updates.Status !== undefined) fm.Status = updates.Status;\n if (updates.TransformPipeline !== undefined) fm.TransformPipeline = updates.TransformPipeline;\n return fm.Save();\n }\n\n /** Load available MJ entities for mapping target selection */\n async LoadMJEntities(_provider?: IRunViewProvider | null): Promise<Array<{ ID: string; Name: string }>> {\n const md = new Metadata();\n return md.Entities\n .map(e => ({ ID: e.ID, Name: e.Name }))\n .sort((a, b) => a.Name.localeCompare(b.Name));\n }\n\n /** Load entity fields for a given entity (for field mapping destination picker) */\n async LoadEntityFields(entityID: string, _provider?: IRunViewProvider | null): Promise<Array<{ ID: string; Name: string; Type: string; IsRequired: boolean }>> {\n const md = new Metadata();\n const entity = md.Entities.find(e => UUIDsEqual(e.ID, entityID));\n if (!entity) return [];\n return entity.Fields\n .sort((a, b) => a.Sequence - b.Sequence)\n .map(f => ({ ID: f.ID, Name: f.Name, Type: f.Type, IsRequired: !f.AllowsNull }));\n }\n\n // --- Discovery (via GraphQL) ---\n\n /** Discover external objects available for a company integration */\n async DiscoverObjects(companyIntegrationID: string): Promise<DiscoveryResult<DiscoveredObjectResult[]>> {\n const client = this.getIntegrationClient();\n return client.DiscoverObjects(companyIntegrationID);\n }\n\n /** Discover fields on a specific external object */\n async DiscoverFields(companyIntegrationID: string, objectName: string): Promise<DiscoveryResult<DiscoveredFieldResult[]>> {\n const client = this.getIntegrationClient();\n return client.DiscoverFields(companyIntegrationID, objectName);\n }\n\n /** Generate DDL preview for creating tables from discovered objects */\n async SchemaPreview(\n companyIntegrationID: string,\n objects: SchemaPreviewObjectInput[],\n platform: string = 'sqlserver'\n ): Promise<SchemaPreviewResult> {\n const client = this.getIntegrationClient();\n return client.SchemaPreview(companyIntegrationID, objects, platform);\n }\n\n /** Get the connector's default configuration for quick setup */\n async GetDefaultConfig(companyIntegrationID: string): Promise<DefaultConfigResult> {\n const client = this.getIntegrationClient();\n return client.GetDefaultConfig(companyIntegrationID);\n }\n\n /** Test connection to the external system */\n async TestConnection(companyIntegrationID: string): Promise<ConnectionTestGraphQLResult> {\n const client = this.getIntegrationClient();\n return client.TestConnection(companyIntegrationID);\n }\n\n /** Preview source data from the external system via connector's FetchChanges */\n async PreviewSourceData(\n companyIntegrationID: string,\n objectName: string,\n limit: number = 5\n ): Promise<Array<Record<string, string | number | boolean | null>>> {\n const client = this.getIntegrationClient();\n const result = await client.PreviewData(companyIntegrationID, objectName, limit);\n if (!result.Success || !result.Records) {\n console.warn('[IntegrationDataService] PreviewSourceData failed:', result.Message);\n return [];\n }\n return result.Records.map(r => {\n try {\n return JSON.parse(r.Data) as Record<string, string | number | boolean | null>;\n } catch {\n return { _raw: r.Data } as Record<string, string | number | boolean | null>;\n }\n });\n }\n\n /** Preview destination data by loading a few records from the target entity */\n async PreviewDestinationData(\n entityID: string,\n limit: number = 5,\n provider?: IRunViewProvider | null\n ): Promise<Array<Record<string, string | number | boolean | null>>> {\n const md = new Metadata();\n const entityInfo = md.Entities.find(e => UUIDsEqual(e.ID, entityID));\n if (!entityInfo) return [];\n\n // Load first N fields (skip internal __mj fields) to keep preview compact\n const fields = entityInfo.Fields\n .filter(f => !f.Name.startsWith('__mj'))\n .slice(0, 8)\n .map(f => f.Name);\n\n const rv = this.createRunView(provider);\n const result = await rv.RunView<Record<string, string | number | boolean | null>>({\n EntityName: entityInfo.Name,\n ExtraFilter: '',\n OrderBy: `${fields[0]} ASC`,\n MaxRows: limit,\n Fields: fields,\n ResultType: 'simple'\n });\n return result.Results;\n }\n\n /** Get a count of records in the destination MJ entity */\n async GetDestinationRecordCount(\n entityID: string,\n provider?: IRunViewProvider | null\n ): Promise<number> {\n const md = new Metadata();\n const entityInfo = md.Entities.find(e => UUIDsEqual(e.ID, entityID));\n if (!entityInfo) return 0;\n\n const rv = this.createRunView(provider);\n const result = await rv.RunView<{ TotalCount: number }>({\n EntityName: entityInfo.Name,\n ExtraFilter: '',\n Fields: [entityInfo.FirstPrimaryKey?.Name ?? 'ID'],\n ResultType: 'simple'\n });\n return result.TotalRowCount ?? result.Results.length;\n }\n\n /** Get the most recent run that touched a given entity */\n async GetLastSyncForEntity(\n companyIntegrationID: string,\n entityID: string,\n provider?: IRunViewProvider | null\n ): Promise<{ StartedAt: string | null; EndedAt: string | null; Status: string; TotalRecords: number } | null> {\n const rv = this.createRunView(provider);\n // Get runs for this integration, most recent first\n const runsResult = await rv.RunView<IntegrationRunRow>({\n EntityName: 'MJ: Company Integration Runs',\n ExtraFilter: `CompanyIntegrationID='${companyIntegrationID}'`,\n OrderBy: 'StartedAt DESC',\n MaxRows: 5,\n Fields: ['ID', 'CompanyIntegrationID', 'StartedAt', 'EndedAt', 'TotalRecords', 'Status'],\n ResultType: 'simple'\n });\n if (runsResult.Results.length === 0) return null;\n\n // Check each run's details to find one that touched this entity\n for (const run of runsResult.Results) {\n const detailResult = await rv.RunView<{ EntityID: string }>({\n EntityName: 'MJ: Company Integration Run Details',\n ExtraFilter: `CompanyIntegrationRunID='${run.ID}' AND EntityID='${entityID}'`,\n MaxRows: 1,\n Fields: ['EntityID'],\n ResultType: 'simple'\n });\n if (detailResult.Results.length > 0) {\n return {\n StartedAt: run.StartedAt,\n EndedAt: run.EndedAt,\n Status: run.Status,\n TotalRecords: run.TotalRecords\n };\n }\n }\n // No run touched this entity — return the most recent run anyway as context\n const latest = runsResult.Results[0];\n return {\n StartedAt: latest.StartedAt,\n EndedAt: latest.EndedAt,\n Status: latest.Status,\n TotalRecords: latest.TotalRecords\n };\n }\n\n /** Run an integration sync via the \"Run Integration Sync\" action */\n async RunSync(companyIntegrationID: string): Promise<{ Success: boolean; Message: string }> {\n const actionID = await this.lookupActionID('Run Integration Sync');\n if (!actionID) {\n return {\n Success: false,\n Message: 'Action \"Run Integration Sync\" not found. Ensure the action is registered.'\n };\n }\n\n const provider = Metadata.Provider as GraphQLDataProvider;\n const actionClient = new GraphQLActionClient(provider);\n const result = await actionClient.RunAction(actionID, [\n { Name: 'CompanyIntegrationID', Value: companyIntegrationID, Type: 'Input' }\n ]);\n return { Success: result.Success, Message: result.Message ?? '' };\n }\n\n /** Load schedule data for all company integrations (includes new scheduling fields) */\n async LoadSchedules(_provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n return IntegrationEngineBase.Instance.CompanyIntegrations;\n }\n\n /** Load sync watermarks for a specific company integration's entity maps */\n async LoadWatermarks(companyIntegrationID: string, _provider?: IRunViewProvider | null): Promise<MJCompanyIntegrationSyncWatermarkEntity[]> {\n await IntegrationEngineBase.Instance.Config(false);\n const entityMaps = IntegrationEngineBase.Instance.GetEntityMapsForCompanyIntegration(companyIntegrationID);\n if (entityMaps.length === 0) return [];\n\n const mapIDSet = new Set(entityMaps.map(em => em.ID.toLowerCase()));\n return IntegrationEngineBase.Instance.Watermarks.filter(w => mapIDSet.has(w.EntityMapID.toLowerCase()));\n }\n\n /**\n * Auto-map all entities in a given schema to a company integration.\n * For each entity in the schema that doesn't already have an entity map,\n * creates an entity map (ExternalObjectName = BaseTable) and 1:1 field maps\n * for every non-system column. Returns the count of maps created.\n */\n async AutoMapSchema(\n companyIntegrationID: string,\n schemaName: string,\n direction: 'Pull' | 'Push' | 'Bidirectional' = 'Pull'\n ): Promise<{ EntityMapsCreated: number; FieldMapsCreated: number; Errors: string[] }> {\n const md = new Metadata();\n const errors: string[] = [];\n\n // Get entities in the target schema\n const schemaEntities = md.Entities.filter(\n e => e.SchemaName.toLowerCase() === schemaName.toLowerCase()\n );\n if (schemaEntities.length === 0) {\n return { EntityMapsCreated: 0, FieldMapsCreated: 0, Errors: [`No entities found in schema \"${schemaName}\"`] };\n }\n\n // Load existing entity maps to avoid duplicates\n const existingMaps = await this.LoadEntityMaps(companyIntegrationID);\n const existingEntityIDs = new Set(existingMaps.map(m => m.ID.toLowerCase()));\n\n // Build a set of entity IDs that already have maps (by EntityID)\n const mappedEntityIDs = new Set<string>();\n for (const em of existingMaps) {\n mappedEntityIDs.add((em as unknown as { EntityID: string }).EntityID?.toLowerCase() ?? '');\n }\n // Also load full map data to check EntityID\n const engine = IntegrationEngineBase.Instance;\n await engine.Config(false);\n const allMaps = engine.GetEntityMapsForCompanyIntegration(companyIntegrationID);\n for (const em of allMaps) {\n mappedEntityIDs.add(em.EntityID.toLowerCase());\n }\n\n let entityMapsCreated = 0;\n let fieldMapsCreated = 0;\n\n for (const entity of schemaEntities) {\n // Skip if already mapped\n if (mappedEntityIDs.has(entity.ID.toLowerCase())) continue;\n\n // Create entity map\n const entityMap = await this.CreateEntityMap({\n CompanyIntegrationID: companyIntegrationID,\n ExternalObjectName: entity.BaseTable,\n EntityID: entity.ID,\n SyncDirection: direction\n });\n\n if (!entityMap) {\n errors.push(`Failed to create entity map for ${entity.Name}`);\n continue;\n }\n entityMapsCreated++;\n\n // Create 1:1 field maps for all non-system fields\n const fields = entity.Fields.filter(\n f => !f.Name.startsWith('__mj')\n );\n\n for (const field of fields) {\n const isKey = field.Name.toLowerCase() === 'uuid' || field.IsPrimaryKey;\n const fm = await this.CreateFieldMap({\n EntityMapID: entityMap.ID,\n SourceFieldName: field.Name,\n DestinationFieldName: field.Name,\n IsKeyField: isKey,\n IsRequired: isKey,\n Direction: direction === 'Bidirectional' ? 'Both' : 'SourceToDest'\n });\n if (fm) {\n fieldMapsCreated++;\n } else {\n errors.push(`Failed to create field map for ${entity.Name}.${field.Name}`);\n }\n }\n }\n\n return { EntityMapsCreated: entityMapsCreated, FieldMapsCreated: fieldMapsCreated, Errors: errors };\n }\n\n /** Load available schemas (for auto-map schema picker) */\n LoadSchemas(): string[] {\n const md = new Metadata();\n const schemas = new Set<string>();\n for (const entity of md.Entities) {\n if (entity.SchemaName) schemas.add(entity.SchemaName);\n }\n return Array.from(schemas).sort();\n }\n\n /** Load entity map count per company integration (used by Overview cards) */\n async LoadEntityMapCounts(_provider?: IRunViewProvider | null): Promise<Map<string, number>> {\n await IntegrationEngineBase.Instance.Config(false);\n const counts = new Map<string, number>();\n for (const em of IntegrationEngineBase.Instance.EntityMaps) {\n if (em.SyncEnabled) {\n const key = em.CompanyIntegrationID.toLowerCase();\n counts.set(key, (counts.get(key) ?? 0) + 1);\n }\n }\n return counts;\n }\n\n private async lookupActionID(actionName: string): Promise<string | null> {\n const rv = new RunView();\n const result = await rv.RunView<{ ID: string }>({\n EntityName: 'MJ: Actions',\n ExtraFilter: `Name='${actionName}'`,\n Fields: ['ID'],\n MaxRows: 1,\n ResultType: 'simple'\n });\n return result.Results.length > 0 ? result.Results[0].ID : null;\n }\n\n private getIntegrationClient(): GraphQLIntegrationClient {\n const provider = Metadata.Provider as GraphQLDataProvider;\n return new GraphQLIntegrationClient(provider);\n }\n\n private createRunView(provider?: IRunViewProvider | null): RunView {\n return new RunView(provider ?? null);\n }\n\n private buildSummary(\n integration: MJCompanyIntegrationEntity,\n allRuns: IntegrationRunRow[],\n sourceTypes: MJIntegrationSourceTypeEntity[],\n integrationDefs: MJIntegrationEntity[]\n ): IntegrationSummary {\n const integrationRuns = allRuns.filter(r => UUIDsEqual(r.CompanyIntegrationID, integration.ID));\n const latestRun = integrationRuns.length > 0 ? integrationRuns[0] : null;\n const recentRuns = integrationRuns.slice(0, 5);\n const statusColor = this.computeStatusColor(latestRun, integration.IsActive);\n const relativeTime = this.computeRelativeTime(latestRun?.StartedAt ?? null);\n const totalRecordsSyncedToday = this.computeRecordsSyncedToday(integrationRuns);\n const totalErrors = integrationRuns.filter(r => r.Status === 'Failed').length;\n const durationMs = this.computeDuration(latestRun);\n const sourceType = this.resolveSourceType(integration, sourceTypes);\n const integrationName = integration.Integration ?? '';\n const def = integrationDefs.find(d => d.Name === integrationName);\n const icon = (def?.Get('Icon') as string | null) ?? null;\n\n return {\n Integration: integration,\n SourceType: sourceType,\n Icon: icon,\n LatestRun: latestRun,\n RecentRuns: recentRuns,\n StatusColor: statusColor,\n RelativeTime: relativeTime,\n TotalRecordsSyncedToday: totalRecordsSyncedToday,\n TotalErrors: totalErrors,\n DurationMs: durationMs\n };\n }\n\n private resolveSourceType(\n integration: MJCompanyIntegrationEntity,\n sourceTypes: MJIntegrationSourceTypeEntity[]\n ): MJIntegrationSourceTypeEntity | null {\n if (!integration.SourceTypeID) return null;\n return sourceTypes.find(st => UUIDsEqual(st.ID, integration.SourceTypeID)) ?? null;\n }\n\n private buildActivityFeedItem(run: IntegrationRunRow): ActivityFeedItem {\n return {\n RunID: run.ID,\n IntegrationName: run.Integration,\n Status: run.Status,\n StatusColor: this.runStatusColor(run),\n StartedAt: run.StartedAt,\n RelativeTime: this.computeRelativeTime(run.StartedAt),\n TotalRecords: run.TotalRecords,\n RunByUser: run.RunByUser\n };\n }\n\n private runStatusColor(run: IntegrationRunRow): 'amber' | 'green' | 'red' {\n if (run.Status === 'Failed') return 'red';\n if (run.Status === 'Success') return 'green';\n return 'amber';\n }\n\n private computeRecordsSyncedToday(runs: IntegrationRunRow[]): number {\n const todayStart = new Date();\n todayStart.setHours(0, 0, 0, 0);\n return runs\n .filter(r => r.StartedAt && new Date(r.StartedAt) >= todayStart)\n .reduce((acc, r) => acc + r.TotalRecords, 0);\n }\n\n private computeDuration(run: IntegrationRunRow | null): number | null {\n if (!run?.StartedAt || !run?.EndedAt) return null;\n return new Date(run.EndedAt).getTime() - new Date(run.StartedAt).getTime();\n }\n\n private aggregateDailyCounts(runs: IntegrationRunRow[], days: number): DailyRecordCount[] {\n const result: DailyRecordCount[] = [];\n const today = new Date();\n\n for (let i = days - 1; i >= 0; i--) {\n const date = new Date(today);\n date.setDate(date.getDate() - i);\n const dateStr = date.toISOString().split('T')[0];\n const label = date.toLocaleDateString(undefined, { weekday: 'short' });\n\n const dayRecords = runs\n .filter(r => r.StartedAt && r.StartedAt.startsWith(dateStr))\n .reduce((acc, r) => acc + r.TotalRecords, 0);\n\n result.push({ Date: dateStr, Label: label, Records: dayRecords });\n }\n return result;\n }\n\n private computeStatusColor(\n latestRun: IntegrationRunRow | null,\n isActive: boolean | null\n ): 'green' | 'amber' | 'red' | 'gray' {\n if (!isActive) return 'gray';\n if (!latestRun) return 'gray';\n if (latestRun.Status === 'Failed') return 'red';\n if (latestRun.Status === 'In Progress' || latestRun.Status === 'Pending') return 'amber';\n if (latestRun.Status === 'Success') {\n return this.isStale(latestRun.StartedAt) ? 'amber' : 'green';\n }\n return 'gray';\n }\n\n private isStale(startedAt: string | null): boolean {\n if (!startedAt) return true;\n const runDate = new Date(startedAt);\n const hoursAgo = (Date.now() - runDate.getTime()) / (1000 * 60 * 60);\n return hoursAgo > 24;\n }\n\n private computeRelativeTime(dateStr: string | null): string {\n if (!dateStr) return 'Never run';\n const date = new Date(dateStr);\n const diffMs = Date.now() - date.getTime();\n const diffMinutes = Math.floor(diffMs / (1000 * 60));\n\n if (diffMinutes < 1) return 'Just now';\n if (diffMinutes < 60) return `${diffMinutes}m ago`;\n const diffHours = Math.floor(diffMinutes / 60);\n if (diffHours < 24) return `${diffHours}h ago`;\n const diffDays = Math.floor(diffHours / 24);\n if (diffDays < 30) return `${diffDays}d ago`;\n return date.toLocaleDateString();\n }\n}\n"]}
|
|
@@ -1499,7 +1499,7 @@ let ListsBrowseResource = class ListsBrowseResource extends BaseResourceComponen
|
|
|
1499
1499
|
i0.ɵɵconditional(ctx.shareDialogConfig ? 43 : -1);
|
|
1500
1500
|
i0.ɵɵadvance();
|
|
1501
1501
|
i0.ɵɵconditional(ctx.showEntityDropdown && !ctx.editingList ? 44 : -1);
|
|
1502
|
-
} }, dependencies: [i4.NgTemplateOutlet, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i5.SelectControlValueAccessor, i5.NgControlStatus, i5.NgModel, i6.LoadingComponent, i3.ListShareDialogComponent], styles: ["\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .lists-browse-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: #f5f7fa;\n overflow: hidden;\n }\n\n /* Header */\n .browse-header {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px 24px;\n background: white;\n border-bottom: 1px solid #e0e0e0;\n flex-shrink: 0;\n }\n\n .header-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header-title {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .header-title i {\n font-size: 24px;\n color: #2196F3;\n }\n\n .header-title h2 {\n margin: 0;\n font-size: 20px;\n font-weight: 600;\n color: #333;\n }\n\n .header-actions {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .search-box {\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 200px;\n max-width: 300px;\n }\n\n .search-box i.fa-search {\n position: absolute;\n left: 12px;\n color: #999;\n }\n\n .search-box input {\n padding: 8px 36px;\n border: 1px solid #ddd;\n border-radius: 20px;\n font-size: 14px;\n width: 100%;\n transition: border-color 0.2s, box-shadow 0.2s;\n }\n\n .search-box input:focus {\n outline: none;\n border-color: #2196F3;\n box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);\n }\n\n .clear-search {\n position: absolute;\n right: 8px;\n background: none;\n border: none;\n color: #999;\n cursor: pointer;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .filter-group label {\n font-size: 13px;\n color: #666;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #ddd;\n border-radius: 6px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n min-width: 120px;\n }\n\n .filter-select:focus {\n outline: none;\n border-color: #2196F3;\n box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);\n }\n\n .sort-select {\n min-width: 140px;\n }\n\n .view-toggle-group {\n display: flex;\n border: 1px solid #ddd;\n border-radius: 6px;\n overflow: hidden;\n }\n\n .view-toggle {\n padding: 8px 12px;\n background: white;\n border: none;\n border-right: 1px solid #ddd;\n color: #666;\n cursor: pointer;\n transition: all 0.2s;\n }\n\n .view-toggle:last-child {\n border-right: none;\n }\n\n .view-toggle:hover {\n background: #f5f5f5;\n }\n\n .view-toggle.active {\n background: #2196F3;\n color: white;\n }\n\n .btn-create {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 16px;\n background: #2196F3;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-create:hover {\n background: #1976D2;\n }\n\n /* Loading */\n .loading-container {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n }\n\n /* Empty State */\n .empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n padding: 48px 40px;\n text-align: center;\n max-width: 480px;\n margin: 0 auto;\n }\n\n .empty-state-icon-wrapper {\n position: relative;\n margin-bottom: 24px;\n }\n\n .empty-state-icon-wrapper .icon-bg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);\n }\n\n .empty-state-icon-wrapper > i {\n position: relative;\n font-size: 56px;\n color: #2196F3;\n z-index: 1;\n }\n\n .empty-state-icon-wrapper.search > i {\n font-size: 48px;\n color: #9e9e9e;\n }\n\n .empty-state h3 {\n margin: 0 0 12px;\n font-size: 22px;\n font-weight: 600;\n color: #333;\n }\n\n .empty-state p {\n margin: 0 0 8px;\n color: #666;\n font-size: 15px;\n line-height: 1.5;\n }\n\n .empty-state p:last-of-type {\n margin-bottom: 24px;\n }\n\n .empty-hint {\n color: #999 !important;\n font-size: 13px !important;\n }\n\n .empty-state-features {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-bottom: 28px;\n text-align: left;\n }\n\n .feature-item {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n color: #555;\n }\n\n .feature-item i {\n font-size: 14px !important;\n color: #4CAF50 !important;\n }\n\n .btn-create-large {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 14px 28px;\n background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);\n }\n\n .btn-create-large:hover {\n background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);\n }\n\n .btn-clear {\n padding: 10px 20px;\n background: #f0f0f0;\n border: none;\n border-radius: 6px;\n color: #666;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-clear:hover {\n background: #e0e0e0;\n }\n\n /* Content */\n .browse-content {\n flex: 1;\n overflow-y: auto;\n padding: 16px 24px;\n }\n\n .results-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .result-count {\n font-size: 14px;\n color: #666;\n }\n\n .sort-options {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .sort-options label {\n font-size: 13px;\n color: #666;\n }\n\n /* Table View */\n .lists-table {\n background: white;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 1px 3px rgba(0,0,0,0.08);\n }\n\n .lists-table table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .lists-table th {\n text-align: left;\n padding: 12px 16px;\n font-size: 12px;\n font-weight: 600;\n color: #666;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n background: #fafafa;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .lists-table td {\n padding: 12px 16px;\n border-bottom: 1px solid #f0f0f0;\n font-size: 14px;\n color: #333;\n }\n\n .list-row {\n cursor: pointer;\n transition: background 0.15s;\n outline: none;\n }\n\n .list-row:hover {\n background: #f5f5f5;\n }\n\n .list-row:focus {\n background: #e8f4fd;\n }\n\n .list-row:focus-visible {\n background: #e3f2fd;\n box-shadow: inset 3px 0 0 #2196F3;\n }\n\n .list-row:last-child td {\n border-bottom: none;\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n .col-name { width: 30%; }\n .col-entity { width: 15%; }\n .col-items { width: 8%; text-align: center; }\n .col-sharing { width: 8%; text-align: center; }\n .col-owner { width: 14%; }\n .col-updated { width: 15%; }\n .col-actions { width: 10%; text-align: right; }\n\n /* Sharing indicators */\n .sharing-indicator {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: #2196F3;\n font-size: 13px;\n }\n\n .sharing-indicator i {\n font-size: 14px;\n }\n\n .share-count {\n font-weight: 500;\n }\n\n .sharing-private {\n color: #999;\n font-size: 13px;\n }\n\n .sharing-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: #e3f2fd;\n border-radius: 50%;\n color: #2196F3;\n font-size: 11px;\n }\n\n .card-footer-right {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .name-cell {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .list-icon {\n width: 36px;\n height: 36px;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 14px;\n flex-shrink: 0;\n }\n\n .name-content {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .list-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .list-desc {\n font-size: 12px;\n color: #999;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .entity-badge {\n display: inline-block;\n padding: 2px 8px;\n background: #e8f4fd;\n border-radius: 4px;\n font-size: 12px;\n color: #1976D2;\n }\n\n .owner-name {\n color: #666;\n }\n\n .owner-name.is-me {\n color: #2196F3;\n font-weight: 500;\n }\n\n .action-btn {\n background: none;\n border: none;\n padding: 6px 10px;\n color: #999;\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.15s;\n }\n\n .action-btn:hover {\n background: #e0e0e0;\n color: #666;\n }\n\n /* Card View */\n .lists-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 16px;\n }\n\n .list-card {\n background: white;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0,0,0,0.08);\n overflow: hidden;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s, outline 0.1s;\n outline: 2px solid transparent;\n }\n\n .list-card:hover {\n transform: translateY(-2px);\n box-shadow: 0 4px 12px rgba(0,0,0,0.12);\n }\n\n .list-card:focus {\n outline: 2px solid #2196F3;\n outline-offset: 2px;\n }\n\n .list-card:focus:not(:focus-visible) {\n outline: none;\n }\n\n .list-card:focus-visible {\n outline: 2px solid #2196F3;\n outline-offset: 2px;\n }\n\n .card-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding: 16px 16px 0;\n }\n\n .card-icon {\n width: 40px;\n height: 40px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 18px;\n }\n\n .menu-btn {\n background: none;\n border: none;\n padding: 4px 8px;\n color: #999;\n cursor: pointer;\n border-radius: 4px;\n }\n\n .menu-btn:hover {\n background: #f5f5f5;\n color: #666;\n }\n\n .card-body {\n padding: 12px 16px;\n }\n\n .card-title {\n margin: 0 0 4px;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n }\n\n .card-description {\n margin: 0 0 12px;\n font-size: 13px;\n color: #666;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .card-meta {\n display: flex;\n gap: 16px;\n }\n\n .meta-item {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: #999;\n }\n\n .card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n border-top: 1px solid #f0f0f0;\n background: #fafafa;\n }\n\n .owner-tag {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: #666;\n }\n\n .owner-tag.is-me {\n color: #2196F3;\n }\n\n .date-info {\n font-size: 12px;\n color: #999;\n }\n\n /* Hierarchy View */\n .category-tree {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .category-section {\n background: white;\n border-radius: 8px;\n overflow: hidden;\n }\n\n .category-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .category-header:hover {\n background: #f5f5f5;\n }\n\n .category-header i:first-child {\n width: 16px;\n text-align: center;\n color: #999;\n }\n\n .category-header .fa-folder,\n .category-header .fa-folder-open {\n color: #ffc107;\n }\n\n .category-header.uncategorized .fa-inbox {\n color: #999;\n }\n\n .category-name {\n flex: 1;\n font-weight: 500;\n color: #333;\n }\n\n .category-count {\n font-size: 12px;\n color: #999;\n background: #f0f0f0;\n padding: 2px 8px;\n border-radius: 10px;\n }\n\n .category-lists {\n border-top: 1px solid #f0f0f0;\n }\n\n .hierarchy-row {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 16px 12px 40px;\n cursor: pointer;\n transition: background 0.2s;\n outline: none;\n }\n\n .hierarchy-row:hover {\n background: #f5f5f5;\n }\n\n .hierarchy-row:focus {\n background: #e3f2fd;\n }\n\n .hierarchy-row:focus-visible {\n background: #e3f2fd;\n box-shadow: inset 3px 0 0 #2196F3;\n }\n\n .list-info {\n flex: 1;\n min-width: 0;\n }\n\n .list-meta {\n font-size: 12px;\n color: #999;\n }\n\n .list-actions {\n display: flex;\n gap: 4px;\n opacity: 0;\n transition: opacity 0.2s;\n }\n\n .hierarchy-row:hover .list-actions {\n opacity: 1;\n }\n\n /* Context Menu */\n .context-menu-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n }\n\n .context-menu {\n position: fixed;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 16px rgba(0,0,0,0.15);\n min-width: 160px;\n padding: 4px 0;\n z-index: 1000;\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 10px 16px;\n background: none;\n border: none;\n text-align: left;\n font-size: 14px;\n color: #333;\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .menu-item:hover {\n background: #f5f5f5;\n }\n\n .menu-item.danger {\n color: #d32f2f;\n }\n\n .menu-item.danger:hover {\n background: #ffebee;\n }\n\n .menu-divider {\n height: 1px;\n background: #e0e0e0;\n margin: 4px 0;\n }\n\n /* Modal Styles */\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n }\n\n .modal-dialog {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: white;\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);\n width: 500px;\n max-width: 90vw;\n max-height: 90vh;\n overflow: hidden;\n z-index: 1001;\n }\n\n .confirm-dialog {\n width: 400px;\n }\n\n .modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 20px;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #333;\n }\n\n .modal-close {\n background: none;\n border: none;\n padding: 4px 8px;\n color: #999;\n cursor: pointer;\n border-radius: 4px;\n }\n\n .modal-close:hover {\n background: #f0f0f0;\n color: #666;\n }\n\n .modal-body {\n padding: 20px;\n max-height: 60vh;\n overflow-y: auto;\n }\n\n .modal-body p {\n margin: 0 0 8px;\n color: #333;\n }\n\n .warning-text {\n color: #d32f2f !important;\n font-size: 13px;\n }\n\n .modal-footer {\n display: flex;\n gap: 12px;\n padding: 16px 20px;\n border-top: 1px solid #e0e0e0;\n background: #fafafa;\n }\n\n .btn-primary {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: #2196F3;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-primary:hover:not(:disabled) {\n background: #1976D2;\n }\n\n .btn-primary:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .btn-secondary {\n padding: 10px 20px;\n background: white;\n color: #666;\n border: 1px solid #ddd;\n border-radius: 6px;\n font-size: 14px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-secondary:hover:not(:disabled) {\n background: #f5f5f5;\n }\n\n .btn-danger {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: #d32f2f;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-danger:hover:not(:disabled) {\n background: #c62828;\n }\n\n /* Form Styles */\n .form-group {\n margin-bottom: 16px;\n }\n\n .form-group:last-child {\n margin-bottom: 0;\n }\n\n .form-group label {\n display: block;\n margin-bottom: 6px;\n font-size: 13px;\n font-weight: 500;\n color: #666;\n }\n\n .form-input {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid #ddd;\n border-radius: 6px;\n font-size: 14px;\n transition: border-color 0.2s, box-shadow 0.2s;\n box-sizing: border-box;\n }\n\n .form-input:focus {\n outline: none;\n border-color: #2196F3;\n box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);\n }\n\n .form-input:disabled {\n background: #f5f5f5;\n color: #999;\n }\n\n textarea.form-input {\n resize: vertical;\n min-height: 80px;\n }\n\n select.form-input {\n cursor: pointer;\n }\n\n .custom-select-wrapper {\n position: relative;\n }\n\n /* Portal Dropdown */\n .entity-dropdown-portal {\n position: fixed;\n z-index: 10002;\n }\n\n .entity-dropdown-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n }\n\n .entity-dropdown-content {\n max-height: 200px;\n overflow-y: auto;\n background: white;\n border: 1px solid #ddd;\n border-radius: 6px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);\n }\n\n .entity-dropdown-content.open-above {\n position: absolute;\n bottom: 0;\n }\n\n .dropdown-item {\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.15s;\n font-size: 14px;\n color: #333;\n }\n\n .dropdown-item:hover {\n background: #e3f2fd;\n }\n\n .dropdown-item:first-child {\n border-radius: 6px 6px 0 0;\n }\n\n .dropdown-item:last-child {\n border-radius: 0 0 6px 6px;\n }\n\n .dropdown-empty {\n padding: 10px 12px;\n color: #999;\n font-style: italic;\n }\n\n /* Responsive */\n @media (max-width: 768px) {\n .header-row {\n flex-direction: column;\n gap: 12px;\n align-items: stretch;\n }\n\n .btn-create {\n width: 100%;\n justify-content: center;\n }\n\n .header-actions {\n flex-direction: column;\n align-items: stretch;\n }\n\n .search-box {\n max-width: none;\n }\n\n .filter-group {\n width: 100%;\n }\n\n .filter-select {\n flex: 1;\n width: 100%;\n }\n\n .view-toggle-group {\n justify-content: center;\n }\n\n .lists-table {\n overflow-x: auto;\n }\n\n .col-entity, .col-items, .col-updated {\n display: none;\n }\n\n .lists-grid {\n grid-template-columns: 1fr;\n }\n\n .modal-dialog {\n width: 95vw;\n }\n }\n "], encapsulation: 2 });
|
|
1502
|
+
} }, dependencies: [i4.NgTemplateOutlet, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i5.SelectControlValueAccessor, i5.NgControlStatus, i5.NgModel, i6.LoadingComponent, i3.ListShareDialogComponent], styles: ["\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .lists-browse-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: var(--mj-bg-surface);\n overflow: hidden;\n }\n\n /* Header */\n .browse-header {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px 24px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n }\n\n .header-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header-title {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .header-title i {\n font-size: 24px;\n color: var(--mj-brand-primary);\n }\n\n .header-title h2 {\n margin: 0;\n font-size: 20px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .header-actions {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .search-box {\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 200px;\n max-width: 300px;\n }\n\n .search-box i.fa-search {\n position: absolute;\n left: 12px;\n color: var(--mj-text-muted);\n }\n\n .search-box input {\n padding: 8px 36px;\n border: 1px solid var(--mj-border-default);\n border-radius: 20px;\n font-size: 14px;\n width: 100%;\n transition: border-color 0.2s, box-shadow 0.2s;\n }\n\n .search-box input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n }\n\n .clear-search {\n position: absolute;\n right: 8px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .filter-group label {\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 14px;\n background: var(--mj-bg-surface-card);\n cursor: pointer;\n min-width: 120px;\n }\n\n .filter-select:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n }\n\n .sort-select {\n min-width: 140px;\n }\n\n .view-toggle-group {\n display: flex;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n overflow: hidden;\n }\n\n .view-toggle {\n padding: 8px 12px;\n background: var(--mj-bg-surface-card);\n border: none;\n border-right: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: all 0.2s;\n }\n\n .view-toggle:last-child {\n border-right: none;\n }\n\n .view-toggle:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .view-toggle.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n }\n\n .btn-create {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 16px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-create:hover {\n background: var(--mj-brand-primary-hover);\n }\n\n /* Loading */\n .loading-container {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n }\n\n /* Empty State */\n .empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n padding: 48px 40px;\n text-align: center;\n max-width: 480px;\n margin: 0 auto;\n }\n\n .empty-state-icon-wrapper {\n position: relative;\n margin-bottom: 24px;\n }\n\n .empty-state-icon-wrapper .icon-bg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n }\n\n .empty-state-icon-wrapper > i {\n position: relative;\n font-size: 56px;\n color: var(--mj-brand-primary);\n z-index: 1;\n }\n\n .empty-state-icon-wrapper.search > i {\n font-size: 48px;\n color: var(--mj-text-disabled);\n }\n\n .empty-state h3 {\n margin: 0 0 12px;\n font-size: 22px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .empty-state p {\n margin: 0 0 8px;\n color: var(--mj-text-secondary);\n font-size: 15px;\n line-height: 1.5;\n }\n\n .empty-state p:last-of-type {\n margin-bottom: 24px;\n }\n\n .empty-hint {\n color: var(--mj-text-muted) !important;\n font-size: 13px !important;\n }\n\n .empty-state-features {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-bottom: 28px;\n text-align: left;\n }\n\n .feature-item {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n color: var(--mj-text-secondary);\n }\n\n .feature-item i {\n font-size: 14px !important;\n color: var(--mj-status-success) !important;\n }\n\n .btn-create-large {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 14px 28px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 8px;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n }\n\n .btn-create-large:hover {\n background: var(--mj-brand-primary-hover);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n }\n\n .btn-clear {\n padding: 10px 20px;\n background: var(--mj-bg-surface-sunken);\n border: none;\n border-radius: 6px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-clear:hover {\n background: var(--mj-border-default);\n }\n\n /* Content */\n .browse-content {\n flex: 1;\n overflow-y: auto;\n padding: 16px 24px;\n }\n\n .results-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .result-count {\n font-size: 14px;\n color: var(--mj-text-secondary);\n }\n\n .sort-options {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .sort-options label {\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n /* Table View */\n .lists-table {\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n overflow: hidden;\n box-shadow: var(--mj-shadow-sm);\n }\n\n .lists-table table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .lists-table th {\n text-align: left;\n padding: 12px 16px;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n background: var(--mj-bg-surface-sunken);\n border-bottom: 1px solid var(--mj-border-default);\n }\n\n .lists-table td {\n padding: 12px 16px;\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 14px;\n color: var(--mj-text-primary);\n }\n\n .list-row {\n cursor: pointer;\n transition: background 0.15s;\n outline: none;\n }\n\n .list-row:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .list-row:focus {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n }\n\n .list-row:focus-visible {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n box-shadow: inset 3px 0 0 var(--mj-brand-primary);\n }\n\n .list-row:last-child td {\n border-bottom: none;\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n .col-name { width: 30%; }\n .col-entity { width: 15%; }\n .col-items { width: 8%; text-align: center; }\n .col-sharing { width: 8%; text-align: center; }\n .col-owner { width: 14%; }\n .col-updated { width: 15%; }\n .col-actions { width: 10%; text-align: right; }\n\n /* Sharing indicators */\n .sharing-indicator {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--mj-brand-primary);\n font-size: 13px;\n }\n\n .sharing-indicator i {\n font-size: 14px;\n }\n\n .share-count {\n font-weight: 500;\n }\n\n .sharing-private {\n color: var(--mj-text-muted);\n font-size: 13px;\n }\n\n .sharing-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n border-radius: 50%;\n color: var(--mj-brand-primary);\n font-size: 11px;\n }\n\n .card-footer-right {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .name-cell {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .list-icon {\n width: 36px;\n height: 36px;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 14px;\n flex-shrink: 0;\n }\n\n .name-content {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .list-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .list-desc {\n font-size: 12px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .entity-badge {\n display: inline-block;\n padding: 2px 8px;\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n border-radius: 4px;\n font-size: 12px;\n color: var(--mj-brand-primary-hover);\n }\n\n .owner-name {\n color: var(--mj-text-secondary);\n }\n\n .owner-name.is-me {\n color: var(--mj-brand-primary);\n font-weight: 500;\n }\n\n .action-btn {\n background: none;\n border: none;\n padding: 6px 10px;\n color: var(--mj-text-muted);\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.15s;\n }\n\n .action-btn:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-secondary);\n }\n\n /* Card View */\n .lists-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 16px;\n }\n\n .list-card {\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-sm);\n overflow: hidden;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s, outline 0.1s;\n outline: 2px solid transparent;\n }\n\n .list-card:hover {\n transform: translateY(-2px);\n box-shadow: var(--mj-shadow-md);\n }\n\n .list-card:focus {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n }\n\n .list-card:focus:not(:focus-visible) {\n outline: none;\n }\n\n .list-card:focus-visible {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n }\n\n .card-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding: 16px 16px 0;\n }\n\n .card-icon {\n width: 40px;\n height: 40px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 18px;\n }\n\n .menu-btn {\n background: none;\n border: none;\n padding: 4px 8px;\n color: var(--mj-text-muted);\n cursor: pointer;\n border-radius: 4px;\n }\n\n .menu-btn:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n }\n\n .card-body {\n padding: 12px 16px;\n }\n\n .card-title {\n margin: 0 0 4px;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .card-description {\n margin: 0 0 12px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .card-meta {\n display: flex;\n gap: 16px;\n }\n\n .meta-item {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n }\n\n .owner-tag {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n }\n\n .owner-tag.is-me {\n color: var(--mj-brand-primary);\n }\n\n .date-info {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n /* Hierarchy View */\n .category-tree {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .category-section {\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n overflow: hidden;\n }\n\n .category-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .category-header:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .category-header i:first-child {\n width: 16px;\n text-align: center;\n color: var(--mj-text-muted);\n }\n\n .category-header .fa-folder,\n .category-header .fa-folder-open {\n color: var(--mj-status-warning);\n }\n\n .category-header.uncategorized .fa-inbox {\n color: var(--mj-text-muted);\n }\n\n .category-name {\n flex: 1;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n\n .category-count {\n font-size: 12px;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-sunken);\n padding: 2px 8px;\n border-radius: 10px;\n }\n\n .category-lists {\n border-top: 1px solid var(--mj-border-default);\n }\n\n .hierarchy-row {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 16px 12px 40px;\n cursor: pointer;\n transition: background 0.2s;\n outline: none;\n }\n\n .hierarchy-row:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .hierarchy-row:focus {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n }\n\n .hierarchy-row:focus-visible {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n box-shadow: inset 3px 0 0 var(--mj-brand-primary);\n }\n\n .list-info {\n flex: 1;\n min-width: 0;\n }\n\n .list-meta {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .list-actions {\n display: flex;\n gap: 4px;\n opacity: 0;\n transition: opacity 0.2s;\n }\n\n .hierarchy-row:hover .list-actions {\n opacity: 1;\n }\n\n /* Context Menu */\n .context-menu-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n }\n\n .context-menu {\n position: fixed;\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-md);\n min-width: 160px;\n padding: 4px 0;\n z-index: 1000;\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 10px 16px;\n background: none;\n border: none;\n text-align: left;\n font-size: 14px;\n color: var(--mj-text-primary);\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .menu-item:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .menu-item.danger {\n color: var(--mj-status-error);\n }\n\n .menu-item.danger:hover {\n background: color-mix(in srgb, var(--mj-status-error) 15%, var(--mj-bg-surface));\n }\n\n .menu-divider {\n height: 1px;\n background: var(--mj-border-default);\n margin: 4px 0;\n }\n\n /* Modal Styles */\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--mj-bg-overlay);\n z-index: 1000;\n }\n\n .modal-dialog {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: var(--mj-bg-surface-card);\n border-radius: 12px;\n box-shadow: var(--mj-shadow-lg);\n width: 500px;\n max-width: 90vw;\n max-height: 90vh;\n overflow: hidden;\n z-index: 1001;\n }\n\n .confirm-dialog {\n width: 400px;\n }\n\n .modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .modal-close {\n background: none;\n border: none;\n padding: 4px 8px;\n color: var(--mj-text-muted);\n cursor: pointer;\n border-radius: 4px;\n }\n\n .modal-close:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n }\n\n .modal-body {\n padding: 20px;\n max-height: 60vh;\n overflow-y: auto;\n }\n\n .modal-body p {\n margin: 0 0 8px;\n color: var(--mj-text-primary);\n }\n\n .warning-text {\n color: var(--mj-status-error) !important;\n font-size: 13px;\n }\n\n .modal-footer {\n display: flex;\n gap: 12px;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n }\n\n .btn-primary {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover);\n }\n\n .btn-primary:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .btn-secondary {\n padding: 10px 20px;\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 14px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n }\n\n .btn-danger {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-danger:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-status-error) 85%, black);\n }\n\n /* Form Styles */\n .form-group {\n margin-bottom: 16px;\n }\n\n .form-group:last-child {\n margin-bottom: 0;\n }\n\n .form-group label {\n display: block;\n margin-bottom: 6px;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n }\n\n .form-input {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 14px;\n transition: border-color 0.2s, box-shadow 0.2s;\n box-sizing: border-box;\n }\n\n .form-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n }\n\n .form-input:disabled {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n }\n\n textarea.form-input {\n resize: vertical;\n min-height: 80px;\n }\n\n select.form-input {\n cursor: pointer;\n }\n\n .custom-select-wrapper {\n position: relative;\n }\n\n /* Portal Dropdown */\n .entity-dropdown-portal {\n position: fixed;\n z-index: 10002;\n }\n\n .entity-dropdown-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n }\n\n .entity-dropdown-content {\n max-height: 200px;\n overflow-y: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n box-shadow: var(--mj-shadow-md);\n }\n\n .entity-dropdown-content.open-above {\n position: absolute;\n bottom: 0;\n }\n\n .dropdown-item {\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.15s;\n font-size: 14px;\n color: var(--mj-text-primary);\n }\n\n .dropdown-item:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n }\n\n .dropdown-item:first-child {\n border-radius: 6px 6px 0 0;\n }\n\n .dropdown-item:last-child {\n border-radius: 0 0 6px 6px;\n }\n\n .dropdown-empty {\n padding: 10px 12px;\n color: var(--mj-text-muted);\n font-style: italic;\n }\n\n /* Responsive */\n @media (max-width: 768px) {\n .header-row {\n flex-direction: column;\n gap: 12px;\n align-items: stretch;\n }\n\n .btn-create {\n width: 100%;\n justify-content: center;\n }\n\n .header-actions {\n flex-direction: column;\n align-items: stretch;\n }\n\n .search-box {\n max-width: none;\n }\n\n .filter-group {\n width: 100%;\n }\n\n .filter-select {\n flex: 1;\n width: 100%;\n }\n\n .view-toggle-group {\n justify-content: center;\n }\n\n .lists-table {\n overflow-x: auto;\n }\n\n .col-entity, .col-items, .col-updated {\n display: none;\n }\n\n .lists-grid {\n grid-template-columns: 1fr;\n }\n\n .modal-dialog {\n width: 95vw;\n }\n }\n "], encapsulation: 2 });
|
|
1503
1503
|
};
|
|
1504
1504
|
ListsBrowseResource = __decorate([
|
|
1505
1505
|
RegisterClass(BaseResourceComponent, 'ListsBrowseResource')
|
|
@@ -2040,7 +2040,7 @@ export { ListsBrowseResource };
|
|
|
2040
2040
|
</div>
|
|
2041
2041
|
}
|
|
2042
2042
|
</div>
|
|
2043
|
-
`, encapsulation: ViewEncapsulation.None, styles: ["\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .lists-browse-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: #f5f7fa;\n overflow: hidden;\n }\n\n /* Header */\n .browse-header {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px 24px;\n background: white;\n border-bottom: 1px solid #e0e0e0;\n flex-shrink: 0;\n }\n\n .header-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header-title {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .header-title i {\n font-size: 24px;\n color: #2196F3;\n }\n\n .header-title h2 {\n margin: 0;\n font-size: 20px;\n font-weight: 600;\n color: #333;\n }\n\n .header-actions {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .search-box {\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 200px;\n max-width: 300px;\n }\n\n .search-box i.fa-search {\n position: absolute;\n left: 12px;\n color: #999;\n }\n\n .search-box input {\n padding: 8px 36px;\n border: 1px solid #ddd;\n border-radius: 20px;\n font-size: 14px;\n width: 100%;\n transition: border-color 0.2s, box-shadow 0.2s;\n }\n\n .search-box input:focus {\n outline: none;\n border-color: #2196F3;\n box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);\n }\n\n .clear-search {\n position: absolute;\n right: 8px;\n background: none;\n border: none;\n color: #999;\n cursor: pointer;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .filter-group label {\n font-size: 13px;\n color: #666;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #ddd;\n border-radius: 6px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n min-width: 120px;\n }\n\n .filter-select:focus {\n outline: none;\n border-color: #2196F3;\n box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);\n }\n\n .sort-select {\n min-width: 140px;\n }\n\n .view-toggle-group {\n display: flex;\n border: 1px solid #ddd;\n border-radius: 6px;\n overflow: hidden;\n }\n\n .view-toggle {\n padding: 8px 12px;\n background: white;\n border: none;\n border-right: 1px solid #ddd;\n color: #666;\n cursor: pointer;\n transition: all 0.2s;\n }\n\n .view-toggle:last-child {\n border-right: none;\n }\n\n .view-toggle:hover {\n background: #f5f5f5;\n }\n\n .view-toggle.active {\n background: #2196F3;\n color: white;\n }\n\n .btn-create {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 16px;\n background: #2196F3;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-create:hover {\n background: #1976D2;\n }\n\n /* Loading */\n .loading-container {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n }\n\n /* Empty State */\n .empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n padding: 48px 40px;\n text-align: center;\n max-width: 480px;\n margin: 0 auto;\n }\n\n .empty-state-icon-wrapper {\n position: relative;\n margin-bottom: 24px;\n }\n\n .empty-state-icon-wrapper .icon-bg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);\n }\n\n .empty-state-icon-wrapper > i {\n position: relative;\n font-size: 56px;\n color: #2196F3;\n z-index: 1;\n }\n\n .empty-state-icon-wrapper.search > i {\n font-size: 48px;\n color: #9e9e9e;\n }\n\n .empty-state h3 {\n margin: 0 0 12px;\n font-size: 22px;\n font-weight: 600;\n color: #333;\n }\n\n .empty-state p {\n margin: 0 0 8px;\n color: #666;\n font-size: 15px;\n line-height: 1.5;\n }\n\n .empty-state p:last-of-type {\n margin-bottom: 24px;\n }\n\n .empty-hint {\n color: #999 !important;\n font-size: 13px !important;\n }\n\n .empty-state-features {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-bottom: 28px;\n text-align: left;\n }\n\n .feature-item {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n color: #555;\n }\n\n .feature-item i {\n font-size: 14px !important;\n color: #4CAF50 !important;\n }\n\n .btn-create-large {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 14px 28px;\n background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);\n }\n\n .btn-create-large:hover {\n background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);\n }\n\n .btn-clear {\n padding: 10px 20px;\n background: #f0f0f0;\n border: none;\n border-radius: 6px;\n color: #666;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-clear:hover {\n background: #e0e0e0;\n }\n\n /* Content */\n .browse-content {\n flex: 1;\n overflow-y: auto;\n padding: 16px 24px;\n }\n\n .results-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .result-count {\n font-size: 14px;\n color: #666;\n }\n\n .sort-options {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .sort-options label {\n font-size: 13px;\n color: #666;\n }\n\n /* Table View */\n .lists-table {\n background: white;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 1px 3px rgba(0,0,0,0.08);\n }\n\n .lists-table table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .lists-table th {\n text-align: left;\n padding: 12px 16px;\n font-size: 12px;\n font-weight: 600;\n color: #666;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n background: #fafafa;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .lists-table td {\n padding: 12px 16px;\n border-bottom: 1px solid #f0f0f0;\n font-size: 14px;\n color: #333;\n }\n\n .list-row {\n cursor: pointer;\n transition: background 0.15s;\n outline: none;\n }\n\n .list-row:hover {\n background: #f5f5f5;\n }\n\n .list-row:focus {\n background: #e8f4fd;\n }\n\n .list-row:focus-visible {\n background: #e3f2fd;\n box-shadow: inset 3px 0 0 #2196F3;\n }\n\n .list-row:last-child td {\n border-bottom: none;\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n .col-name { width: 30%; }\n .col-entity { width: 15%; }\n .col-items { width: 8%; text-align: center; }\n .col-sharing { width: 8%; text-align: center; }\n .col-owner { width: 14%; }\n .col-updated { width: 15%; }\n .col-actions { width: 10%; text-align: right; }\n\n /* Sharing indicators */\n .sharing-indicator {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: #2196F3;\n font-size: 13px;\n }\n\n .sharing-indicator i {\n font-size: 14px;\n }\n\n .share-count {\n font-weight: 500;\n }\n\n .sharing-private {\n color: #999;\n font-size: 13px;\n }\n\n .sharing-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: #e3f2fd;\n border-radius: 50%;\n color: #2196F3;\n font-size: 11px;\n }\n\n .card-footer-right {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .name-cell {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .list-icon {\n width: 36px;\n height: 36px;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 14px;\n flex-shrink: 0;\n }\n\n .name-content {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .list-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .list-desc {\n font-size: 12px;\n color: #999;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .entity-badge {\n display: inline-block;\n padding: 2px 8px;\n background: #e8f4fd;\n border-radius: 4px;\n font-size: 12px;\n color: #1976D2;\n }\n\n .owner-name {\n color: #666;\n }\n\n .owner-name.is-me {\n color: #2196F3;\n font-weight: 500;\n }\n\n .action-btn {\n background: none;\n border: none;\n padding: 6px 10px;\n color: #999;\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.15s;\n }\n\n .action-btn:hover {\n background: #e0e0e0;\n color: #666;\n }\n\n /* Card View */\n .lists-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 16px;\n }\n\n .list-card {\n background: white;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0,0,0,0.08);\n overflow: hidden;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s, outline 0.1s;\n outline: 2px solid transparent;\n }\n\n .list-card:hover {\n transform: translateY(-2px);\n box-shadow: 0 4px 12px rgba(0,0,0,0.12);\n }\n\n .list-card:focus {\n outline: 2px solid #2196F3;\n outline-offset: 2px;\n }\n\n .list-card:focus:not(:focus-visible) {\n outline: none;\n }\n\n .list-card:focus-visible {\n outline: 2px solid #2196F3;\n outline-offset: 2px;\n }\n\n .card-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding: 16px 16px 0;\n }\n\n .card-icon {\n width: 40px;\n height: 40px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 18px;\n }\n\n .menu-btn {\n background: none;\n border: none;\n padding: 4px 8px;\n color: #999;\n cursor: pointer;\n border-radius: 4px;\n }\n\n .menu-btn:hover {\n background: #f5f5f5;\n color: #666;\n }\n\n .card-body {\n padding: 12px 16px;\n }\n\n .card-title {\n margin: 0 0 4px;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n }\n\n .card-description {\n margin: 0 0 12px;\n font-size: 13px;\n color: #666;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .card-meta {\n display: flex;\n gap: 16px;\n }\n\n .meta-item {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: #999;\n }\n\n .card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n border-top: 1px solid #f0f0f0;\n background: #fafafa;\n }\n\n .owner-tag {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: #666;\n }\n\n .owner-tag.is-me {\n color: #2196F3;\n }\n\n .date-info {\n font-size: 12px;\n color: #999;\n }\n\n /* Hierarchy View */\n .category-tree {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .category-section {\n background: white;\n border-radius: 8px;\n overflow: hidden;\n }\n\n .category-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .category-header:hover {\n background: #f5f5f5;\n }\n\n .category-header i:first-child {\n width: 16px;\n text-align: center;\n color: #999;\n }\n\n .category-header .fa-folder,\n .category-header .fa-folder-open {\n color: #ffc107;\n }\n\n .category-header.uncategorized .fa-inbox {\n color: #999;\n }\n\n .category-name {\n flex: 1;\n font-weight: 500;\n color: #333;\n }\n\n .category-count {\n font-size: 12px;\n color: #999;\n background: #f0f0f0;\n padding: 2px 8px;\n border-radius: 10px;\n }\n\n .category-lists {\n border-top: 1px solid #f0f0f0;\n }\n\n .hierarchy-row {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 16px 12px 40px;\n cursor: pointer;\n transition: background 0.2s;\n outline: none;\n }\n\n .hierarchy-row:hover {\n background: #f5f5f5;\n }\n\n .hierarchy-row:focus {\n background: #e3f2fd;\n }\n\n .hierarchy-row:focus-visible {\n background: #e3f2fd;\n box-shadow: inset 3px 0 0 #2196F3;\n }\n\n .list-info {\n flex: 1;\n min-width: 0;\n }\n\n .list-meta {\n font-size: 12px;\n color: #999;\n }\n\n .list-actions {\n display: flex;\n gap: 4px;\n opacity: 0;\n transition: opacity 0.2s;\n }\n\n .hierarchy-row:hover .list-actions {\n opacity: 1;\n }\n\n /* Context Menu */\n .context-menu-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n }\n\n .context-menu {\n position: fixed;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 16px rgba(0,0,0,0.15);\n min-width: 160px;\n padding: 4px 0;\n z-index: 1000;\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 10px 16px;\n background: none;\n border: none;\n text-align: left;\n font-size: 14px;\n color: #333;\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .menu-item:hover {\n background: #f5f5f5;\n }\n\n .menu-item.danger {\n color: #d32f2f;\n }\n\n .menu-item.danger:hover {\n background: #ffebee;\n }\n\n .menu-divider {\n height: 1px;\n background: #e0e0e0;\n margin: 4px 0;\n }\n\n /* Modal Styles */\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n }\n\n .modal-dialog {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: white;\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);\n width: 500px;\n max-width: 90vw;\n max-height: 90vh;\n overflow: hidden;\n z-index: 1001;\n }\n\n .confirm-dialog {\n width: 400px;\n }\n\n .modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 20px;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #333;\n }\n\n .modal-close {\n background: none;\n border: none;\n padding: 4px 8px;\n color: #999;\n cursor: pointer;\n border-radius: 4px;\n }\n\n .modal-close:hover {\n background: #f0f0f0;\n color: #666;\n }\n\n .modal-body {\n padding: 20px;\n max-height: 60vh;\n overflow-y: auto;\n }\n\n .modal-body p {\n margin: 0 0 8px;\n color: #333;\n }\n\n .warning-text {\n color: #d32f2f !important;\n font-size: 13px;\n }\n\n .modal-footer {\n display: flex;\n gap: 12px;\n padding: 16px 20px;\n border-top: 1px solid #e0e0e0;\n background: #fafafa;\n }\n\n .btn-primary {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: #2196F3;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-primary:hover:not(:disabled) {\n background: #1976D2;\n }\n\n .btn-primary:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .btn-secondary {\n padding: 10px 20px;\n background: white;\n color: #666;\n border: 1px solid #ddd;\n border-radius: 6px;\n font-size: 14px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-secondary:hover:not(:disabled) {\n background: #f5f5f5;\n }\n\n .btn-danger {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: #d32f2f;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-danger:hover:not(:disabled) {\n background: #c62828;\n }\n\n /* Form Styles */\n .form-group {\n margin-bottom: 16px;\n }\n\n .form-group:last-child {\n margin-bottom: 0;\n }\n\n .form-group label {\n display: block;\n margin-bottom: 6px;\n font-size: 13px;\n font-weight: 500;\n color: #666;\n }\n\n .form-input {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid #ddd;\n border-radius: 6px;\n font-size: 14px;\n transition: border-color 0.2s, box-shadow 0.2s;\n box-sizing: border-box;\n }\n\n .form-input:focus {\n outline: none;\n border-color: #2196F3;\n box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);\n }\n\n .form-input:disabled {\n background: #f5f5f5;\n color: #999;\n }\n\n textarea.form-input {\n resize: vertical;\n min-height: 80px;\n }\n\n select.form-input {\n cursor: pointer;\n }\n\n .custom-select-wrapper {\n position: relative;\n }\n\n /* Portal Dropdown */\n .entity-dropdown-portal {\n position: fixed;\n z-index: 10002;\n }\n\n .entity-dropdown-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n }\n\n .entity-dropdown-content {\n max-height: 200px;\n overflow-y: auto;\n background: white;\n border: 1px solid #ddd;\n border-radius: 6px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);\n }\n\n .entity-dropdown-content.open-above {\n position: absolute;\n bottom: 0;\n }\n\n .dropdown-item {\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.15s;\n font-size: 14px;\n color: #333;\n }\n\n .dropdown-item:hover {\n background: #e3f2fd;\n }\n\n .dropdown-item:first-child {\n border-radius: 6px 6px 0 0;\n }\n\n .dropdown-item:last-child {\n border-radius: 0 0 6px 6px;\n }\n\n .dropdown-empty {\n padding: 10px 12px;\n color: #999;\n font-style: italic;\n }\n\n /* Responsive */\n @media (max-width: 768px) {\n .header-row {\n flex-direction: column;\n gap: 12px;\n align-items: stretch;\n }\n\n .btn-create {\n width: 100%;\n justify-content: center;\n }\n\n .header-actions {\n flex-direction: column;\n align-items: stretch;\n }\n\n .search-box {\n max-width: none;\n }\n\n .filter-group {\n width: 100%;\n }\n\n .filter-select {\n flex: 1;\n width: 100%;\n }\n\n .view-toggle-group {\n justify-content: center;\n }\n\n .lists-table {\n overflow-x: auto;\n }\n\n .col-entity, .col-items, .col-updated {\n display: none;\n }\n\n .lists-grid {\n grid-template-columns: 1fr;\n }\n\n .modal-dialog {\n width: 95vw;\n }\n }\n "] }]
|
|
2043
|
+
`, encapsulation: ViewEncapsulation.None, styles: ["\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .lists-browse-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: var(--mj-bg-surface);\n overflow: hidden;\n }\n\n /* Header */\n .browse-header {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px 24px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n }\n\n .header-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header-title {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .header-title i {\n font-size: 24px;\n color: var(--mj-brand-primary);\n }\n\n .header-title h2 {\n margin: 0;\n font-size: 20px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .header-actions {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .search-box {\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 200px;\n max-width: 300px;\n }\n\n .search-box i.fa-search {\n position: absolute;\n left: 12px;\n color: var(--mj-text-muted);\n }\n\n .search-box input {\n padding: 8px 36px;\n border: 1px solid var(--mj-border-default);\n border-radius: 20px;\n font-size: 14px;\n width: 100%;\n transition: border-color 0.2s, box-shadow 0.2s;\n }\n\n .search-box input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n }\n\n .clear-search {\n position: absolute;\n right: 8px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .filter-group label {\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 14px;\n background: var(--mj-bg-surface-card);\n cursor: pointer;\n min-width: 120px;\n }\n\n .filter-select:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n }\n\n .sort-select {\n min-width: 140px;\n }\n\n .view-toggle-group {\n display: flex;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n overflow: hidden;\n }\n\n .view-toggle {\n padding: 8px 12px;\n background: var(--mj-bg-surface-card);\n border: none;\n border-right: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: all 0.2s;\n }\n\n .view-toggle:last-child {\n border-right: none;\n }\n\n .view-toggle:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .view-toggle.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n }\n\n .btn-create {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 16px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-create:hover {\n background: var(--mj-brand-primary-hover);\n }\n\n /* Loading */\n .loading-container {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n }\n\n /* Empty State */\n .empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n padding: 48px 40px;\n text-align: center;\n max-width: 480px;\n margin: 0 auto;\n }\n\n .empty-state-icon-wrapper {\n position: relative;\n margin-bottom: 24px;\n }\n\n .empty-state-icon-wrapper .icon-bg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n }\n\n .empty-state-icon-wrapper > i {\n position: relative;\n font-size: 56px;\n color: var(--mj-brand-primary);\n z-index: 1;\n }\n\n .empty-state-icon-wrapper.search > i {\n font-size: 48px;\n color: var(--mj-text-disabled);\n }\n\n .empty-state h3 {\n margin: 0 0 12px;\n font-size: 22px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .empty-state p {\n margin: 0 0 8px;\n color: var(--mj-text-secondary);\n font-size: 15px;\n line-height: 1.5;\n }\n\n .empty-state p:last-of-type {\n margin-bottom: 24px;\n }\n\n .empty-hint {\n color: var(--mj-text-muted) !important;\n font-size: 13px !important;\n }\n\n .empty-state-features {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-bottom: 28px;\n text-align: left;\n }\n\n .feature-item {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 14px;\n color: var(--mj-text-secondary);\n }\n\n .feature-item i {\n font-size: 14px !important;\n color: var(--mj-status-success) !important;\n }\n\n .btn-create-large {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 14px 28px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 8px;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n }\n\n .btn-create-large:hover {\n background: var(--mj-brand-primary-hover);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n }\n\n .btn-clear {\n padding: 10px 20px;\n background: var(--mj-bg-surface-sunken);\n border: none;\n border-radius: 6px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-clear:hover {\n background: var(--mj-border-default);\n }\n\n /* Content */\n .browse-content {\n flex: 1;\n overflow-y: auto;\n padding: 16px 24px;\n }\n\n .results-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .result-count {\n font-size: 14px;\n color: var(--mj-text-secondary);\n }\n\n .sort-options {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .sort-options label {\n font-size: 13px;\n color: var(--mj-text-secondary);\n }\n\n /* Table View */\n .lists-table {\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n overflow: hidden;\n box-shadow: var(--mj-shadow-sm);\n }\n\n .lists-table table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .lists-table th {\n text-align: left;\n padding: 12px 16px;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n background: var(--mj-bg-surface-sunken);\n border-bottom: 1px solid var(--mj-border-default);\n }\n\n .lists-table td {\n padding: 12px 16px;\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 14px;\n color: var(--mj-text-primary);\n }\n\n .list-row {\n cursor: pointer;\n transition: background 0.15s;\n outline: none;\n }\n\n .list-row:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .list-row:focus {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n }\n\n .list-row:focus-visible {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n box-shadow: inset 3px 0 0 var(--mj-brand-primary);\n }\n\n .list-row:last-child td {\n border-bottom: none;\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n .col-name { width: 30%; }\n .col-entity { width: 15%; }\n .col-items { width: 8%; text-align: center; }\n .col-sharing { width: 8%; text-align: center; }\n .col-owner { width: 14%; }\n .col-updated { width: 15%; }\n .col-actions { width: 10%; text-align: right; }\n\n /* Sharing indicators */\n .sharing-indicator {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--mj-brand-primary);\n font-size: 13px;\n }\n\n .sharing-indicator i {\n font-size: 14px;\n }\n\n .share-count {\n font-weight: 500;\n }\n\n .sharing-private {\n color: var(--mj-text-muted);\n font-size: 13px;\n }\n\n .sharing-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n border-radius: 50%;\n color: var(--mj-brand-primary);\n font-size: 11px;\n }\n\n .card-footer-right {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .name-cell {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .list-icon {\n width: 36px;\n height: 36px;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 14px;\n flex-shrink: 0;\n }\n\n .name-content {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .list-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .list-desc {\n font-size: 12px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .entity-badge {\n display: inline-block;\n padding: 2px 8px;\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n border-radius: 4px;\n font-size: 12px;\n color: var(--mj-brand-primary-hover);\n }\n\n .owner-name {\n color: var(--mj-text-secondary);\n }\n\n .owner-name.is-me {\n color: var(--mj-brand-primary);\n font-weight: 500;\n }\n\n .action-btn {\n background: none;\n border: none;\n padding: 6px 10px;\n color: var(--mj-text-muted);\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.15s;\n }\n\n .action-btn:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-secondary);\n }\n\n /* Card View */\n .lists-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 16px;\n }\n\n .list-card {\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-sm);\n overflow: hidden;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s, outline 0.1s;\n outline: 2px solid transparent;\n }\n\n .list-card:hover {\n transform: translateY(-2px);\n box-shadow: var(--mj-shadow-md);\n }\n\n .list-card:focus {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n }\n\n .list-card:focus:not(:focus-visible) {\n outline: none;\n }\n\n .list-card:focus-visible {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n }\n\n .card-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding: 16px 16px 0;\n }\n\n .card-icon {\n width: 40px;\n height: 40px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-inverse);\n font-size: 18px;\n }\n\n .menu-btn {\n background: none;\n border: none;\n padding: 4px 8px;\n color: var(--mj-text-muted);\n cursor: pointer;\n border-radius: 4px;\n }\n\n .menu-btn:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n }\n\n .card-body {\n padding: 12px 16px;\n }\n\n .card-title {\n margin: 0 0 4px;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .card-description {\n margin: 0 0 12px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .card-meta {\n display: flex;\n gap: 16px;\n }\n\n .meta-item {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .card-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n }\n\n .owner-tag {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n }\n\n .owner-tag.is-me {\n color: var(--mj-brand-primary);\n }\n\n .date-info {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n /* Hierarchy View */\n .category-tree {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .category-section {\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n overflow: hidden;\n }\n\n .category-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .category-header:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .category-header i:first-child {\n width: 16px;\n text-align: center;\n color: var(--mj-text-muted);\n }\n\n .category-header .fa-folder,\n .category-header .fa-folder-open {\n color: var(--mj-status-warning);\n }\n\n .category-header.uncategorized .fa-inbox {\n color: var(--mj-text-muted);\n }\n\n .category-name {\n flex: 1;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n\n .category-count {\n font-size: 12px;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-sunken);\n padding: 2px 8px;\n border-radius: 10px;\n }\n\n .category-lists {\n border-top: 1px solid var(--mj-border-default);\n }\n\n .hierarchy-row {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 16px 12px 40px;\n cursor: pointer;\n transition: background 0.2s;\n outline: none;\n }\n\n .hierarchy-row:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .hierarchy-row:focus {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n }\n\n .hierarchy-row:focus-visible {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n box-shadow: inset 3px 0 0 var(--mj-brand-primary);\n }\n\n .list-info {\n flex: 1;\n min-width: 0;\n }\n\n .list-meta {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .list-actions {\n display: flex;\n gap: 4px;\n opacity: 0;\n transition: opacity 0.2s;\n }\n\n .hierarchy-row:hover .list-actions {\n opacity: 1;\n }\n\n /* Context Menu */\n .context-menu-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n }\n\n .context-menu {\n position: fixed;\n background: var(--mj-bg-surface-card);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-md);\n min-width: 160px;\n padding: 4px 0;\n z-index: 1000;\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 10px 16px;\n background: none;\n border: none;\n text-align: left;\n font-size: 14px;\n color: var(--mj-text-primary);\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .menu-item:hover {\n background: var(--mj-bg-surface-sunken);\n }\n\n .menu-item.danger {\n color: var(--mj-status-error);\n }\n\n .menu-item.danger:hover {\n background: color-mix(in srgb, var(--mj-status-error) 15%, var(--mj-bg-surface));\n }\n\n .menu-divider {\n height: 1px;\n background: var(--mj-border-default);\n margin: 4px 0;\n }\n\n /* Modal Styles */\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--mj-bg-overlay);\n z-index: 1000;\n }\n\n .modal-dialog {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: var(--mj-bg-surface-card);\n border-radius: 12px;\n box-shadow: var(--mj-shadow-lg);\n width: 500px;\n max-width: 90vw;\n max-height: 90vh;\n overflow: hidden;\n z-index: 1001;\n }\n\n .confirm-dialog {\n width: 400px;\n }\n\n .modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n\n .modal-close {\n background: none;\n border: none;\n padding: 4px 8px;\n color: var(--mj-text-muted);\n cursor: pointer;\n border-radius: 4px;\n }\n\n .modal-close:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n }\n\n .modal-body {\n padding: 20px;\n max-height: 60vh;\n overflow-y: auto;\n }\n\n .modal-body p {\n margin: 0 0 8px;\n color: var(--mj-text-primary);\n }\n\n .warning-text {\n color: var(--mj-status-error) !important;\n font-size: 13px;\n }\n\n .modal-footer {\n display: flex;\n gap: 12px;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n }\n\n .btn-primary {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-primary:hover:not(:disabled) {\n background: var(--mj-brand-primary-hover);\n }\n\n .btn-primary:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .btn-secondary {\n padding: 10px 20px;\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 14px;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n }\n\n .btn-danger {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 20px;\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s;\n }\n\n .btn-danger:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-status-error) 85%, black);\n }\n\n /* Form Styles */\n .form-group {\n margin-bottom: 16px;\n }\n\n .form-group:last-child {\n margin-bottom: 0;\n }\n\n .form-group label {\n display: block;\n margin-bottom: 6px;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n }\n\n .form-input {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 14px;\n transition: border-color 0.2s, box-shadow 0.2s;\n box-sizing: border-box;\n }\n\n .form-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n }\n\n .form-input:disabled {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n }\n\n textarea.form-input {\n resize: vertical;\n min-height: 80px;\n }\n\n select.form-input {\n cursor: pointer;\n }\n\n .custom-select-wrapper {\n position: relative;\n }\n\n /* Portal Dropdown */\n .entity-dropdown-portal {\n position: fixed;\n z-index: 10002;\n }\n\n .entity-dropdown-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n }\n\n .entity-dropdown-content {\n max-height: 200px;\n overflow-y: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n box-shadow: var(--mj-shadow-md);\n }\n\n .entity-dropdown-content.open-above {\n position: absolute;\n bottom: 0;\n }\n\n .dropdown-item {\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.15s;\n font-size: 14px;\n color: var(--mj-text-primary);\n }\n\n .dropdown-item:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, var(--mj-bg-surface));\n }\n\n .dropdown-item:first-child {\n border-radius: 6px 6px 0 0;\n }\n\n .dropdown-item:last-child {\n border-radius: 0 0 6px 6px;\n }\n\n .dropdown-empty {\n padding: 10px 12px;\n color: var(--mj-text-muted);\n font-style: italic;\n }\n\n /* Responsive */\n @media (max-width: 768px) {\n .header-row {\n flex-direction: column;\n gap: 12px;\n align-items: stretch;\n }\n\n .btn-create {\n width: 100%;\n justify-content: center;\n }\n\n .header-actions {\n flex-direction: column;\n align-items: stretch;\n }\n\n .search-box {\n max-width: none;\n }\n\n .filter-group {\n width: 100%;\n }\n\n .filter-select {\n flex: 1;\n width: 100%;\n }\n\n .view-toggle-group {\n justify-content: center;\n }\n\n .lists-table {\n overflow-x: auto;\n }\n\n .col-entity, .col-items, .col-updated {\n display: none;\n }\n\n .lists-grid {\n grid-template-columns: 1fr;\n }\n\n .modal-dialog {\n width: 95vw;\n }\n }\n "] }]
|
|
2044
2044
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: i1.TabService }, { type: i2.MJNotificationService }, { type: i0.ElementRef }, { type: i3.ListSharingService }], { onDocumentClick: [{
|
|
2045
2045
|
type: HostListener,
|
|
2046
2046
|
args: ['document:click', ['$event']]
|