diff --git a/ui/README.md b/ui/README.md index b6d69f492b..3d95b22f2e 100644 --- a/ui/README.md +++ b/ui/README.md @@ -165,6 +165,18 @@ Hello and thank you for contributing to the Vault UI! Below is a list of pattern - [css](docs/css.md) - [ember engines](docs/engines.md) +### Updating @hashicorp-internal/vault-reporting + +Code regarding vault-reporting module lives in the [shared-secure-ui](https://github.com/hashicorp/shared-secure-ui) repo, and it is being used as a tarball in this repo. + +We use the script [update-vault-reporting-addon.sh](scripts/update-vault-reporting-addon.sh) to fetch the latest tarball from artifactory and update `package.json` accordingly. To run the script, you'll need to have [Doormat CLI](https://docs.prod.secops.hashicorp.services/doormat/cli/) and [jq](https://formulae.brew.sh/formula/jq) installed locally. + +Example: + +``` +./scripts/update-vault-reporting-addon.sh +``` + ## Further Reading / Useful Links - [ember.js](https://emberjs.com/) diff --git a/ui/app/components/usage/page.ts b/ui/app/components/usage/page.ts index ef92f9cf3b..ed66341fe7 100644 --- a/ui/app/components/usage/page.ts +++ b/ui/app/components/usage/page.ts @@ -8,7 +8,10 @@ import { service } from '@ember/service'; import type FlagsService from 'vault/services/flags'; import type ApiService from 'vault/services/api'; -import type { getUsageDataFunction, UsageDashboardData } from '@hashicorp/vault-reporting/types/index'; +import type { + getUsageDataFunction, + UsageDashboardData, +} from '@hashicorp-internal/vault-reporting/types/index'; import type { UtilizationReport } from 'vault/usage'; /** @@ -65,6 +68,7 @@ export default class UsagePage extends Component { totalRoles: pki?.total_roles || 0, }, secretSync: { + destinations: secret_sync?.destinations || {}, totalDestinations: secret_sync?.total_destinations || 0, }, }; diff --git a/ui/ember-cli-build.js b/ui/ember-cli-build.js index 41ad59d10a..24bc9f1444 100644 --- a/ui/ember-cli-build.js +++ b/ui/ember-cli-build.js @@ -49,7 +49,7 @@ const appConfig = { './node_modules/@hashicorp/design-system-tokens/dist/products/css', './node_modules/ember-basic-dropdown/', './node_modules/ember-power-select/', - './node_modules/@hashicorp/vault-reporting/dist/styles', + './node_modules/@hashicorp-internal/vault-reporting/dist/styles', ], }, minifyCSS: { diff --git a/ui/package.json b/ui/package.json index 2afd764e68..5f038ea22a 100644 --- a/ui/package.json +++ b/ui/package.json @@ -214,9 +214,9 @@ }, "dependencies": { "@babel/core": "7.26.10", + "@hashicorp-internal/vault-reporting": "file:vault-reporting/0.5.1.tgz", "@hashicorp/design-system-components": "4.20.1", "@hashicorp/vault-client-typescript": "hashicorp/vault-client-typescript", - "@hashicorp/vault-reporting": "portal:./vault-reporting", "ember-auto-import": "2.10.0", "handlebars": "4.7.8", "highlight.js": "10.7.3", diff --git a/ui/scripts/update-vault-reporting-addon.sh b/ui/scripts/update-vault-reporting-addon.sh new file mode 100755 index 0000000000..46d89e4e64 --- /dev/null +++ b/ui/scripts/update-vault-reporting-addon.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: BUSL-1.1 +ARTIFACTORY_NPM_URL="https://artifactory.hashicorp.engineering/artifactory/npm/" + +# Show error if doormat CLI or jq doesn't exist + +if ! command -v doormat &> /dev/null; then + echo "Error: doormat CLI is not installed." + exit 1 +fi + +if ! command -v jq &> /dev/null; then + echo "Error: jq is not installed." + exit 1 +fi + +doormat login +# Get artifactory token from doormat +AF_TOKEN=$(doormat artifactory create-token | jq -r .access_token) + +# Get package info from artifactory API +PACKAGE_INFO=$(curl -s -L -H "Authorization: Bearer $AF_TOKEN" "https://artifactory.hashicorp.engineering/artifactory/api/npm/npm/@hashicorp-internal/vault-reporting") + +# Extract the latest version and tarball URL +LATEST_VERSION=$(echo "$PACKAGE_INFO" | jq -r '."dist-tags".latest') +TARBALL_URL=$(echo "$PACKAGE_INFO" | jq -r --arg version "$LATEST_VERSION" '.versions[$version].dist.tarball') + +echo "LATEST_VERSION: $LATEST_VERSION" +echo "TARBALL_URL: $TARBALL_URL" + +# Download the tarball +echo "Downloading vault-reporting v$LATEST_VERSION..." +curl -L -H "Authorization: Bearer $AF_TOKEN" -o "vault-reporting/$LATEST_VERSION.tgz" "$TARBALL_URL" + +if [ $? -eq 0 ]; then + echo "✅ Successfully downloaded vault-reporting-$LATEST_VERSION.tgz" + echo "📦 File size: $(ls -lh vault-reporting-$LATEST_VERSION.tgz | awk '{print $5}')" +else + echo "❌ Failed to download tarball" + exit 1 +fi + +# Delete all but the latest version +find vault-reporting -name "*.tgz" ! -name "$LATEST_VERSION.tgz" -delete + +# Update package.json to point to file:vault-reporting/$LATEST_VERSION.tgz +FILENAME="$LATEST_VERSION.tgz" +jq --arg version "$LATEST_VERSION" --arg filename "$FILENAME" '.dependencies["@hashicorp-internal/vault-reporting"] = "file:vault-reporting/" + $filename' package.json > tmp.json && mv tmp.json package.json +# Install dependencies +yarn install \ No newline at end of file diff --git a/ui/tests/acceptance/vault-reporting/index-test.js b/ui/tests/acceptance/vault-reporting/index-test.js index a30c67e91a..f28a4afc65 100644 --- a/ui/tests/acceptance/vault-reporting/index-test.js +++ b/ui/tests/acceptance/vault-reporting/index-test.js @@ -56,7 +56,7 @@ module('Acceptance | enterprise vault-reporting', function (hooks) { .dom('[data-test-vault-reporting-dashboard-counters]') .exists('renders the counters dashboard block'); - const expectedCounters = ['Child namespaces', 'KV secrets', 'Secrets sync', 'PKI roles']; + const expectedCounters = ['Child namespaces', 'KV secrets', 'PKI roles']; expectedCounters.forEach((counterLabel) => { assert @@ -166,6 +166,34 @@ module('Acceptance | enterprise vault-reporting', function (hooks) { .hasText('210K / 420K', 'lease count is correct'); }); + test('dashboard card: Secrets sync', async function (assert) { + this.server.get('sys/utilization-report', () => mockedResponseWithData); + await visit('/vault/usage-reporting'); + await waitFor('[data-test-vault-reporting-dashboard-secrets-sync]'); + + assert.dom('[data-test-vault-reporting-dashboard-secrets-sync]').exists('renders Secrets sync card'); + assert + .dom( + '[data-test-vault-reporting-dashboard-secrets-sync] [data-test-vault-reporting-dashboard-card-title]' + ) + .hasText('Secrets sync', 'title is correct'); + + assert + .dom( + '[data-test-vault-reporting-dashboard-secrets-sync] [data-test-vault-reporting-dashboard-card-description]' + ) + .hasText( + 'Total number of destinations (e.g. third-party integrations) synced with secrets', + 'description is correct' + ); + assert + .dom('[data-test-vault-reporting-secrets-sync-destinations-row]') + .includesText('Destination', 'Destinations header is present'); + assert + .dom('[data-test-vault-reporting-secrets-sync-destinations-row]') + .includesText('aws: 1', 'aws destination is present'); + }); + test('dashboard card: Cluster replication status', async function (assert) { this.server.get('sys/utilization-report', () => mockedResponseWithData); await visit('/vault/usage-reporting'); diff --git a/ui/tests/helpers/vault-usage/mocks.ts b/ui/tests/helpers/vault-usage/mocks.ts index 0b4806b89d..3e50e0cb7e 100644 --- a/ui/tests/helpers/vault-usage/mocks.ts +++ b/ui/tests/helpers/vault-usage/mocks.ts @@ -32,5 +32,6 @@ export const mockedResponseWithData = { pr_state: 'enabled', }, secret_engines: { cubbyhole: 45, nomad: 46, aws: 47 }, + secret_sync: { total_destinations: 1, destinations: { aws: 1 } }, }, }; diff --git a/ui/types/vault/usage.d.ts b/ui/types/vault/usage.d.ts index 8a8631e14b..d99d032877 100644 --- a/ui/types/vault/usage.d.ts +++ b/ui/types/vault/usage.d.ts @@ -7,7 +7,7 @@ import type { GenerateUtilizationReportResponse } from '@hashicorp/vault-client- import type { REPLICATION_ENABLED_STATE, REPLICATION_DISABLED_STATE, -} from '@hashicorp/vault-reporting/types/index'; +} from '@hashicorp-internal/vault-reporting/types/index'; export type GlobalLeaseCountQuota = { capacity: number; @@ -22,6 +22,7 @@ export type LeaseCountQuotas = { export type SecretSync = { total_destinations: number; + destinations: Record; }; export type Pki = { diff --git a/ui/vault-reporting/0.5.1.tgz b/ui/vault-reporting/0.5.1.tgz new file mode 100644 index 0000000000..ff9050b0b7 Binary files /dev/null and b/ui/vault-reporting/0.5.1.tgz differ diff --git a/ui/vault-reporting/LICENSE.md b/ui/vault-reporting/LICENSE.md deleted file mode 100644 index 87d5988324..0000000000 --- a/ui/vault-reporting/LICENSE.md +++ /dev/null @@ -1,92 +0,0 @@ -License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. -"Business Source License" is a trademark of MariaDB Corporation Ab. - -Parameters - -Licensor: HashiCorp, Inc. -Licensed Work: Vault Version 1.15.0 or later. The Licensed Work is (c) 2024 - HashiCorp, Inc. -Additional Use Grant: You may make production use of the Licensed Work, provided - Your use does not include offering the Licensed Work to third - parties on a hosted or embedded basis in order to compete with - HashiCorp's paid version(s) of the Licensed Work. For purposes - of this license: - - A "competitive offering" is a Product that is offered to third - parties on a paid basis, including through paid support - arrangements, that significantly overlaps with the capabilities - of HashiCorp's paid version(s) of the Licensed Work. If Your - Product is not a competitive offering when You first make it - generally available, it will not become a competitive offering - later due to HashiCorp releasing a new version of the Licensed - Work with additional capabilities. In addition, Products that - are not provided on a paid basis are not competitive. - - "Product" means software that is offered to end users to manage - in their own environments or offered as a service on a hosted - basis. - - "Embedded" means including the source code or executable code - from the Licensed Work in a competitive offering. "Embedded" - also means packaging the competitive offering in such a way - that the Licensed Work must be accessed or downloaded for the - competitive offering to operate. - - Hosting or using the Licensed Work(s) for internal purposes - within an organization is not considered a competitive - offering. HashiCorp considers your organization to include all - of your affiliates under common control. - - For binding interpretive guidance on using HashiCorp products - under the Business Source License, please visit our FAQ. - (https://www.hashicorp.com/license-faq) -Change Date: Four years from the date the Licensed Work is published. -Change License: MPL 2.0 - -For information about alternative licensing arrangements for the Licensed Work, -please contact licensing@hashicorp.com. - -Notice - -Business Source License 1.1 - -Terms - -The Licensor hereby grants you the right to copy, modify, create derivative -works, redistribute, and make non-production use of the Licensed Work. The -Licensor may make an Additional Use Grant, above, permitting limited production use. - -Effective on the Change Date, or the fourth anniversary of the first publicly -available distribution of a specific version of the Licensed Work under this -License, whichever comes first, the Licensor hereby grants you rights under -the terms of the Change License, and the rights granted in the paragraph -above terminate. - -If your use of the Licensed Work does not comply with the requirements -currently in effect as described in this License, you must purchase a -commercial license from the Licensor, its affiliated entities, or authorized -resellers, or you must refrain from using the Licensed Work. - -All copies of the original and modified Licensed Work, and derivative works -of the Licensed Work, are subject to this License. This License applies -separately for each version of the Licensed Work and the Change Date may vary -for each version of the Licensed Work released by Licensor. - -You must conspicuously display this License on each original or modified copy -of the Licensed Work. If you receive the Licensed Work in original or -modified form from a third party, the terms and conditions set forth in this -License apply to your use of that work. - -Any use of the Licensed Work in violation of this License will automatically -terminate your rights under this License for the current and all other -versions of the Licensed Work. - -This License does not grant you any right in any trademark or logo of -Licensor or its affiliates (provided that you may use a trademark or logo of -Licensor as expressly required by this License). - -TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON -AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, -EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND -TITLE. \ No newline at end of file diff --git a/ui/vault-reporting/README.md b/ui/vault-reporting/README.md deleted file mode 100644 index 26cca01815..0000000000 --- a/ui/vault-reporting/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# Vault Reporting - -This repo contains shared UI components for Vault Enterprise and Cloud reporting views. - -## Publishing - -At this time this packages is not published to the NPM registry. Since this repo is private and all enterprise features are built into the public open source vault repo we need a way to "publish" updates to vault. There are a couple of utilities to help with tihs. - -### Github workflow - -When your changes are ready and you want to consume them in vault you can trigger a github action to automatically open a PR with the updates in the vault repo. - -1. Visit the [publish-reporting-to-vault](https://github.com/hashicorp/shared-secure-ui/actions/workflows/publish-reporting-to-vault.yml) workflow for `shared-secure-ui` repo. -2. Click the "Run workflow" button in the top right -3. Enter the branch in vault you want the PR to go into, by default it will be main -4. Submit the form - -This should trigger the workflow and after a short amount of time you should be a new draft PR in the vault repo with the `vault-reporting` updates. - -### Publishing locally - -You will need to have this repo and the vault repo checked out locally. - -1. Build the addon `npm run build` -2. Export an environment variable called `VAULT_UI_PATH` with the path to your vault/ui directory (if unset it will try to find it at `~/projects/vault/ui/`) -3. Run the sync script `npm run sync-to-vault --workspace @hashicorp/vault-reporting` - -You should see the updated dist files in the vault-reporting directory inside of vault. diff --git a/ui/vault-reporting/addon-main.cjs b/ui/vault-reporting/addon-main.cjs deleted file mode 100644 index 33b5ce98d9..0000000000 --- a/ui/vault-reporting/addon-main.cjs +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -'use strict'; - -const { addonV1Shim } = require('@embroider/addon-shim'); -module.exports = addonV1Shim(__dirname); diff --git a/ui/vault-reporting/declarations/components/sankey-diagram.d.ts b/ui/vault-reporting/declarations/components/sankey-diagram.d.ts deleted file mode 100644 index c16c052579..0000000000 --- a/ui/vault-reporting/declarations/components/sankey-diagram.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -import Component from '@glimmer/component'; -interface SankeyDiagramArgs { - data: { - nodes: { - name: string; - }[]; - links: { - source: number; - target: number; - value: number; - }[]; - }; -} -export default class SankeyDiagramComponent extends Component { - renderSankey(element: HTMLElement): void; -} -export {}; -//# sourceMappingURL=sankey-diagram.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/sankey-diagram.d.ts.map b/ui/vault-reporting/declarations/components/sankey-diagram.d.ts.map deleted file mode 100644 index 292f9319ac..0000000000 --- a/ui/vault-reporting/declarations/components/sankey-diagram.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sankey-diagram.d.ts","sourceRoot":"","sources":["../../src/components/sankey-diagram.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,UAAU,iBAAiB;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC1B,KAAK,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KAC5D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAE9E,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;CAyDzC"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/base/title-row.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/base/title-row.d.ts deleted file mode 100644 index 0a5a35a618..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/base/title-row.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import { HdsLinkStandalone } from '@hashicorp/design-system-components/components'; -import './title-row.scss'; -import type ReportingAnalyticsService from '../../../services/reporting-analytics'; -import type { SafeString } from '@ember/template'; -/** - * TitleRow Component - * - * A reusable component that displays a title with an optional description and link. - * Used in dashboard cards to create consistent header styling. - */ -export interface TitleRowSignature { - Args: { - /** The main title text to display */ - title: string; - /** Optional description text to display beneath the title */ - description?: string | SafeString; - /** Custom text for the link (defaults to "View all") */ - linkText?: string; - /** Icon to display with the link (defaults to "arrow-right") */ - linkIcon?: HdsLinkStandalone['icon']; - /** URL for the link - if not provided, no link will be shown */ - linkUrl?: string; - /** Target for the link - defaults to "_self" */ - linkTarget?: '_blank' | '_self'; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class TitleRow extends Component { - readonly reportingAnalytics: ReportingAnalyticsService; - get hasLink(): string | undefined; - get linkText(): string; - get linkUrl(): string; - get linkIcon(): "service" | "loading" | "loading-static" | "running" | "running-static" | "apple" | "apple-color" | "alibaba" | "alibaba-color" | "amazon-ecs" | "amazon-ecs-color" | "amazon-eks" | "amazon-eks-color" | "auth0" | "auth0-color" | "aws" | "aws-color" | "aws-cdk" | "aws-cdk-color" | "aws-cloudwatch" | "aws-cloudwatch-color" | "aws-ec2" | "aws-ec2-color" | "aws-lambda" | "aws-lambda-color" | "aws-s3" | "aws-s3-color" | "azure" | "azure-color" | "azure-aks" | "azure-aks-color" | "azure-blob-storage" | "azure-blob-storage-color" | "azure-devops" | "azure-devops-color" | "azure-vms" | "azure-vms-color" | "bitbucket" | "bitbucket-color" | "bridgecrew" | "bridgecrew-color" | "cisco" | "cisco-color" | "codepen" | "codepen-color" | "confluence" | "confluence-color" | "confluent" | "confluent-color" | "datadog" | "datadog-color" | "digital-ocean" | "digital-ocean-color" | "docker" | "docker-color" | "duo-color" | "duo" | "elastic-observability" | "elastic-observability-color" | "f5" | "f5-color" | "facebook" | "facebook-color" | "figma" | "figma-color" | "gcp" | "gcp-color" | "git" | "git-color" | "gitlab" | "gitlab-color" | "github" | "github-color" | "google" | "google-color" | "google-docs" | "google-docs-color" | "google-drive" | "google-drive-color" | "google-forms" | "google-forms-color" | "google-sheets" | "google-sheets-color" | "google-slides" | "google-slides-color" | "grafana" | "grafana-color" | "helm" | "helm-color" | "infracost" | "infracost-color" | "jfrog" | "jfrog-color" | "jira" | "jira-color" | "jwt" | "jwt-color" | "kubernetes" | "kubernetes-color" | "lightlytics" | "lightlytics-color" | "linkedin" | "linkedin-color" | "linode" | "linode-color" | "linux" | "linux-color" | "loom" | "loom-color" | "meetup" | "meetup-color" | "microsoft" | "microsoft-color" | "microsoft-teams" | "microsoft-teams-color" | "minio" | "minio-color" | "mongodb" | "mongodb-color" | "new-relic" | "new-relic-color" | "okta" | "okta-color" | "oracle" | "oracle-color" | "opa" | "opa-color" | "openid" | "openid-color" | "pack" | "pack-color" | "pager-duty" | "pager-duty-color" | "ping-identity " | "ping-identity-color" | "postgres" | "postgres-color" | "rabbitmq" | "rabbitmq-color" | "saml" | "saml-color" | "service-now" | "service-now-color" | "slack" | "slack-color" | "snyk" | "snyk-color" | "splunk" | "splunk-color" | "twilio" | "twilio-color" | "twitch" | "twitch-color" | "twitter" | "twitter-color" | "twitter-x" | "twitter-x-color" | "vantage" | "vantage-color" | "venafi" | "venafi-color" | "vercel" | "vercel-color" | "vmware" | "vmware-color" | "youtube" | "youtube-color" | "boundary" | "boundary-color" | "boundary-fill" | "boundary-fill-color" | "boundary-square" | "boundary-square-color" | "consul" | "consul-color" | "consul-fill" | "consul-fill-color" | "consul-square" | "consul-square-color" | "nomad" | "nomad-color" | "nomad-fill" | "nomad-fill-color" | "nomad-square" | "nomad-square-color" | "packer" | "packer-color" | "packer-fill" | "packer-fill-color" | "packer-square" | "packer-square-color" | "terraform" | "terraform-color" | "terraform-fill" | "terraform-fill-color" | "terraform-square" | "terraform-square-color" | "vagrant" | "vagrant-color" | "vagrant-fill" | "vagrant-fill-color" | "vagrant-square" | "vagrant-square-color" | "vault" | "vault-color" | "vault-fill" | "vault-fill-color" | "vault-square" | "vault-square-color" | "vault-radar" | "vault-radar-color" | "vault-radar-fill" | "vault-radar-fill-color" | "vault-radar-square" | "vault-radar-square-color" | "vault-secrets" | "vault-secrets-color" | "vault-secrets-fill" | "vault-secrets-fill-color" | "vault-secrets-square" | "vault-secrets-square-color" | "waypoint" | "waypoint-color" | "waypoint-fill" | "waypoint-fill-color" | "waypoint-square" | "waypoint-square-color" | "hashicorp" | "hashicorp-color" | "hashicorp-fill" | "hashicorp-fill-color" | "hashicorp-square" | "hashicorp-square-color" | "hcp" | "hcp-color" | "hcp-fill" | "hcp-fill-color" | "hcp-square" | "hcp-square-color" | "accessibility" | "folder-users" | "frown" | "identity-service" | "identity-user" | "meh" | "robot" | "smile" | "user" | "user-check" | "user-circle" | "user-circle-fill" | "user-minus" | "user-plus" | "user-x" | "users" | "ampersand" | "beaker" | "bucket" | "bulb" | "circle" | "circle-dot" | "circle-fill" | "circle-half" | "diamond" | "diamond-fill" | "disc" | "dot" | "dot-half" | "droplet" | "flag" | "gift" | "government" | "handshake" | "hash" | "hexagon" | "hexagon-fill" | "labyrinth" | "layers" | "moon" | "octagon" | "outline" | "random" | "rocket" | "sparkle" | "square" | "square-fill" | "sun" | "triangle" | "triangle-fill" | "truck" | "wand" | "zap" | "zap-off" | "docs" | "docs-download" | "docs-link" | "guide" | "guide-link" | "help" | "info" | "info-fill" | "learn" | "learn-link" | "support" | "alert-circle" | "alert-circle-fill" | "alert-diamond" | "alert-diamond-fill" | "alert-octagon" | "alert-octagon-fill" | "alert-triangle" | "alert-triangle-fill" | "check" | "check-circle" | "check-circle-fill" | "check-diamond" | "check-diamond-fill" | "check-hexagon" | "check-hexagon-fill" | "check-square" | "check-square-fill" | "skip" | "x" | "x-circle" | "x-circle-fill" | "x-diamond" | "x-diamond-fill" | "x-hexagon" | "x-hexagon-fill" | "x-square" | "x-square-fill" | "bug" | "certificate" | "eye" | "eye-off" | "fingerprint" | "key" | "keychain" | "lock" | "lock-fill" | "lock-off" | "shield" | "shield-alert" | "shield-check" | "shield-off" | "shield-x" | "token" | "unlock" | "verified" | "wall" | "minus" | "minus-circle" | "minus-circle-fill" | "minus-plus" | "minus-plus-circle" | "minus-plus-square" | "minus-square" | "minus-square-fill" | "plus" | "plus-circle" | "plus-circle-fill" | "plus-square" | "camera" | "camera-off" | "cast" | "closed-caption" | "fast-forward" | "film" | "headphones" | "image" | "music" | "pause" | "pause-circle" | "play" | "play-circle" | "radio" | "rewind" | "rss" | "skip-back" | "skip-forward" | "speaker" | "stop-circle" | "volume" | "volume-down" | "volume-2" | "volume-x" | "wifi" | "wifi-off" | "compass" | "crosshair" | "map" | "map-pin" | "navigation" | "navigation-alt" | "redirect" | "target" | "align-center" | "align-justify" | "align-left" | "align-right" | "battery" | "battery-charging" | "bookmark" | "bookmark-add" | "bookmark-add-fill" | "bookmark-fill" | "bookmark-remove" | "bookmark-remove-fill" | "bottom" | "command" | "crop" | "dashboard" | "delete" | "download" | "edit" | "entry-point" | "exit-point" | "external-link" | "filter" | "filter-circle" | "filter-fill" | "grid" | "grid-alt" | "home" | "jump-link" | "layout" | "link" | "list" | "maximize" | "maximize-alt" | "menu" | "minimize" | "minimize-alt" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "paperclip" | "pen-tool" | "pencil-tool" | "pin" | "power" | "printer" | "reload" | "repeat" | "rotate-cw" | "rotate-ccw" | "search" | "share" | "sidebar" | "sidebar-hide" | "sidebar-show" | "sign-in" | "sign-out" | "slash" | "slash-square" | "sort-asc" | "sort-desc" | "switcher" | "sync" | "sync-alert" | "sync-reverse" | "tag" | "toggle-left" | "toggle-right" | "top" | "trash" | "type" | "unfold-close" | "unfold-open" | "upload" | "zoom-in" | "zoom-out" | "archive" | "clipboard" | "clipboard-checked" | "clipboard-copy" | "clipboard-x" | "file" | "file-change" | "file-check" | "file-diff" | "file-minus" | "file-plus" | "file-source" | "file-text" | "file-x" | "files" | "folder" | "folder-fill" | "folder-minus" | "folder-minus-fill" | "folder-plus" | "folder-plus-fill" | "folder-star" | "inbox" | "api" | "auto-apply" | "build" | "change" | "change-circle" | "change-square" | "channel" | "cloud" | "cloud-check" | "cloud-download" | "cloud-lightning" | "cloud-lock" | "cloud-off" | "cloud-upload" | "cloud-x" | "code" | "connection" | "connection-gateway" | "cpu" | "duplicate" | "gateway" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "git-repo" | "hammer" | "key-values" | "mainframe" | "mesh" | "module" | "monitor" | "network" | "network-alt" | "node" | "path" | "pipeline" | "plug" | "replication-direct" | "replication-perf" | "scissors" | "server" | "server-cluster" | "serverless" | "settings" | "sliders" | "smartphone" | "socket" | "step" | "tablet" | "terminal" | "terminal-screen" | "test" | "tools" | "transform-data" | "tv" | "webhook" | "wrench" | "calendar" | "clock" | "clock-filled" | "delay" | "event" | "history" | "hourglass" | "watch" | "bar-chart" | "bar-chart-alt" | "box" | "collections" | "database" | "hard-drive" | "line-chart" | "line-chart-up" | "logs" | "package" | "pie-chart" | "queue" | "save" | "trend-down" | "trend-up" | "activity" | "at-sign" | "award" | "bell" | "bell-active" | "bell-active-fill" | "bell-off" | "discussion-circle" | "discussion-square" | "heart" | "heart-fill" | "heart-off" | "mail" | "mail-open" | "message-circle" | "message-circle-fill" | "message-square" | "message-square-fill" | "mic" | "mic-off" | "newspaper" | "phone" | "phone-call" | "phone-off" | "send" | "star" | "star-circle" | "star-fill" | "star-off" | "thumbs-down" | "thumbs-up" | "video" | "video-off" | "bank-vault" | "briefcase" | "credit-card" | "dollar-sign" | "enterprise" | "globe" | "globe-private" | "org" | "provider" | "shopping-bag" | "shopping-cart" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "caret" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "load-balancer" | "migrate" | "move" | "shuffle" | "swap-horizontal" | "swap-vertical"; - get linkTarget(): "_blank" | "_self"; - handleLinkClick: () => void; -} -//# sourceMappingURL=title-row.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/base/title-row.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/base/title-row.d.ts.map deleted file mode 100644 index b3f86792f5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/base/title-row.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"title-row.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/base/title-row.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAGL,iBAAiB,EAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,kBAAkB,CAAC;AAI1B,OAAO,KAAK,yBAAyB,MAAM,uCAAuC,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE;QACJ,qCAAqC;QACrC,KAAK,EAAE,MAAM,CAAC;QACd,6DAA6D;QAC7D,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;QAClC,wDAAwD;QACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gEAAgE;QAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACrC,gEAAgE;QAChE,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,gDAAgD;QAChD,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;KACjC,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAChE,SAA0B,kBAAkB,EAAE,yBAAyB,CAAC;IAExE,IAAI,OAAO,uBAEV;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,WAEV;IAED,IAAI,QAAQ,urTAEX;IAED,IAAI,UAAU,uBAEb;IAED,eAAe,aAMb;CAsDH"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/cluster-replication.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/cluster-replication.d.ts deleted file mode 100644 index adbcaa0a17..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/cluster-replication.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import { REPLICATION_ENABLED_STATE } from '../../types/index.ts'; -import './cluster-replication.scss'; -export interface ClusterReplicationSignature { - Args: { - disasterRecoveryState: REPLICATION_ENABLED_STATE | 'disabled'; - performanceState: REPLICATION_ENABLED_STATE | 'disabled'; - isVaultDedicated: boolean; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class ClusterReplication extends Component { - getState: (state?: REPLICATION_ENABLED_STATE | "disabled") => "disabled" | REPLICATION_ENABLED_STATE; - get isEmpty(): boolean; - get description(): import("@ember/template").SafeString | "Status of disaster recovery and performance replication."; - getIcon: (state?: REPLICATION_ENABLED_STATE | "disabled") => "service" | "loading" | "loading-static" | "running" | "running-static" | "apple" | "apple-color" | "alibaba" | "alibaba-color" | "amazon-ecs" | "amazon-ecs-color" | "amazon-eks" | "amazon-eks-color" | "auth0" | "auth0-color" | "aws" | "aws-color" | "aws-cdk" | "aws-cdk-color" | "aws-cloudwatch" | "aws-cloudwatch-color" | "aws-ec2" | "aws-ec2-color" | "aws-lambda" | "aws-lambda-color" | "aws-s3" | "aws-s3-color" | "azure" | "azure-color" | "azure-aks" | "azure-aks-color" | "azure-blob-storage" | "azure-blob-storage-color" | "azure-devops" | "azure-devops-color" | "azure-vms" | "azure-vms-color" | "bitbucket" | "bitbucket-color" | "bridgecrew" | "bridgecrew-color" | "cisco" | "cisco-color" | "codepen" | "codepen-color" | "confluence" | "confluence-color" | "confluent" | "confluent-color" | "datadog" | "datadog-color" | "digital-ocean" | "digital-ocean-color" | "docker" | "docker-color" | "duo-color" | "duo" | "elastic-observability" | "elastic-observability-color" | "f5" | "f5-color" | "facebook" | "facebook-color" | "figma" | "figma-color" | "gcp" | "gcp-color" | "git" | "git-color" | "gitlab" | "gitlab-color" | "github" | "github-color" | "google" | "google-color" | "google-docs" | "google-docs-color" | "google-drive" | "google-drive-color" | "google-forms" | "google-forms-color" | "google-sheets" | "google-sheets-color" | "google-slides" | "google-slides-color" | "grafana" | "grafana-color" | "helm" | "helm-color" | "infracost" | "infracost-color" | "jfrog" | "jfrog-color" | "jira" | "jira-color" | "jwt" | "jwt-color" | "kubernetes" | "kubernetes-color" | "lightlytics" | "lightlytics-color" | "linkedin" | "linkedin-color" | "linode" | "linode-color" | "linux" | "linux-color" | "loom" | "loom-color" | "meetup" | "meetup-color" | "microsoft" | "microsoft-color" | "microsoft-teams" | "microsoft-teams-color" | "minio" | "minio-color" | "mongodb" | "mongodb-color" | "new-relic" | "new-relic-color" | "okta" | "okta-color" | "oracle" | "oracle-color" | "opa" | "opa-color" | "openid" | "openid-color" | "pack" | "pack-color" | "pager-duty" | "pager-duty-color" | "ping-identity " | "ping-identity-color" | "postgres" | "postgres-color" | "rabbitmq" | "rabbitmq-color" | "saml" | "saml-color" | "service-now" | "service-now-color" | "slack" | "slack-color" | "snyk" | "snyk-color" | "splunk" | "splunk-color" | "twilio" | "twilio-color" | "twitch" | "twitch-color" | "twitter" | "twitter-color" | "twitter-x" | "twitter-x-color" | "vantage" | "vantage-color" | "venafi" | "venafi-color" | "vercel" | "vercel-color" | "vmware" | "vmware-color" | "youtube" | "youtube-color" | "boundary" | "boundary-color" | "boundary-fill" | "boundary-fill-color" | "boundary-square" | "boundary-square-color" | "consul" | "consul-color" | "consul-fill" | "consul-fill-color" | "consul-square" | "consul-square-color" | "nomad" | "nomad-color" | "nomad-fill" | "nomad-fill-color" | "nomad-square" | "nomad-square-color" | "packer" | "packer-color" | "packer-fill" | "packer-fill-color" | "packer-square" | "packer-square-color" | "terraform" | "terraform-color" | "terraform-fill" | "terraform-fill-color" | "terraform-square" | "terraform-square-color" | "vagrant" | "vagrant-color" | "vagrant-fill" | "vagrant-fill-color" | "vagrant-square" | "vagrant-square-color" | "vault" | "vault-color" | "vault-fill" | "vault-fill-color" | "vault-square" | "vault-square-color" | "vault-radar" | "vault-radar-color" | "vault-radar-fill" | "vault-radar-fill-color" | "vault-radar-square" | "vault-radar-square-color" | "vault-secrets" | "vault-secrets-color" | "vault-secrets-fill" | "vault-secrets-fill-color" | "vault-secrets-square" | "vault-secrets-square-color" | "waypoint" | "waypoint-color" | "waypoint-fill" | "waypoint-fill-color" | "waypoint-square" | "waypoint-square-color" | "hashicorp" | "hashicorp-color" | "hashicorp-fill" | "hashicorp-fill-color" | "hashicorp-square" | "hashicorp-square-color" | "hcp" | "hcp-color" | "hcp-fill" | "hcp-fill-color" | "hcp-square" | "hcp-square-color" | "accessibility" | "folder-users" | "frown" | "identity-service" | "identity-user" | "meh" | "robot" | "smile" | "user" | "user-check" | "user-circle" | "user-circle-fill" | "user-minus" | "user-plus" | "user-x" | "users" | "ampersand" | "beaker" | "bucket" | "bulb" | "circle" | "circle-dot" | "circle-fill" | "circle-half" | "diamond" | "diamond-fill" | "disc" | "dot" | "dot-half" | "droplet" | "flag" | "gift" | "government" | "handshake" | "hash" | "hexagon" | "hexagon-fill" | "labyrinth" | "layers" | "moon" | "octagon" | "outline" | "random" | "rocket" | "sparkle" | "square" | "square-fill" | "sun" | "triangle" | "triangle-fill" | "truck" | "wand" | "zap" | "zap-off" | "docs" | "docs-download" | "docs-link" | "guide" | "guide-link" | "help" | "info" | "info-fill" | "learn" | "learn-link" | "support" | "alert-circle" | "alert-circle-fill" | "alert-diamond" | "alert-diamond-fill" | "alert-octagon" | "alert-octagon-fill" | "alert-triangle" | "alert-triangle-fill" | "check" | "check-circle" | "check-circle-fill" | "check-diamond" | "check-diamond-fill" | "check-hexagon" | "check-hexagon-fill" | "check-square" | "check-square-fill" | "skip" | "x" | "x-circle" | "x-circle-fill" | "x-diamond" | "x-diamond-fill" | "x-hexagon" | "x-hexagon-fill" | "x-square" | "x-square-fill" | "bug" | "certificate" | "eye" | "eye-off" | "fingerprint" | "key" | "keychain" | "lock" | "lock-fill" | "lock-off" | "shield" | "shield-alert" | "shield-check" | "shield-off" | "shield-x" | "token" | "unlock" | "verified" | "wall" | "minus" | "minus-circle" | "minus-circle-fill" | "minus-plus" | "minus-plus-circle" | "minus-plus-square" | "minus-square" | "minus-square-fill" | "plus" | "plus-circle" | "plus-circle-fill" | "plus-square" | "camera" | "camera-off" | "cast" | "closed-caption" | "fast-forward" | "film" | "headphones" | "image" | "music" | "pause" | "pause-circle" | "play" | "play-circle" | "radio" | "rewind" | "rss" | "skip-back" | "skip-forward" | "speaker" | "stop-circle" | "volume" | "volume-down" | "volume-2" | "volume-x" | "wifi" | "wifi-off" | "compass" | "crosshair" | "map" | "map-pin" | "navigation" | "navigation-alt" | "redirect" | "target" | "align-center" | "align-justify" | "align-left" | "align-right" | "battery" | "battery-charging" | "bookmark" | "bookmark-add" | "bookmark-add-fill" | "bookmark-fill" | "bookmark-remove" | "bookmark-remove-fill" | "bottom" | "command" | "crop" | "dashboard" | "delete" | "download" | "edit" | "entry-point" | "exit-point" | "external-link" | "filter" | "filter-circle" | "filter-fill" | "grid" | "grid-alt" | "home" | "jump-link" | "layout" | "link" | "list" | "maximize" | "maximize-alt" | "menu" | "minimize" | "minimize-alt" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "paperclip" | "pen-tool" | "pencil-tool" | "pin" | "power" | "printer" | "reload" | "repeat" | "rotate-cw" | "rotate-ccw" | "search" | "share" | "sidebar" | "sidebar-hide" | "sidebar-show" | "sign-in" | "sign-out" | "slash" | "slash-square" | "sort-asc" | "sort-desc" | "switcher" | "sync" | "sync-alert" | "sync-reverse" | "tag" | "toggle-left" | "toggle-right" | "top" | "trash" | "type" | "unfold-close" | "unfold-open" | "upload" | "zoom-in" | "zoom-out" | "archive" | "clipboard" | "clipboard-checked" | "clipboard-copy" | "clipboard-x" | "file" | "file-change" | "file-check" | "file-diff" | "file-minus" | "file-plus" | "file-source" | "file-text" | "file-x" | "files" | "folder" | "folder-fill" | "folder-minus" | "folder-minus-fill" | "folder-plus" | "folder-plus-fill" | "folder-star" | "inbox" | "api" | "auto-apply" | "build" | "change" | "change-circle" | "change-square" | "channel" | "cloud" | "cloud-check" | "cloud-download" | "cloud-lightning" | "cloud-lock" | "cloud-off" | "cloud-upload" | "cloud-x" | "code" | "connection" | "connection-gateway" | "cpu" | "duplicate" | "gateway" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "git-repo" | "hammer" | "key-values" | "mainframe" | "mesh" | "module" | "monitor" | "network" | "network-alt" | "node" | "path" | "pipeline" | "plug" | "replication-direct" | "replication-perf" | "scissors" | "server" | "server-cluster" | "serverless" | "settings" | "sliders" | "smartphone" | "socket" | "step" | "tablet" | "terminal" | "terminal-screen" | "test" | "tools" | "transform-data" | "tv" | "webhook" | "wrench" | "calendar" | "clock" | "clock-filled" | "delay" | "event" | "history" | "hourglass" | "watch" | "bar-chart" | "bar-chart-alt" | "box" | "collections" | "database" | "hard-drive" | "line-chart" | "line-chart-up" | "logs" | "package" | "pie-chart" | "queue" | "save" | "trend-down" | "trend-up" | "activity" | "at-sign" | "award" | "bell" | "bell-active" | "bell-active-fill" | "bell-off" | "discussion-circle" | "discussion-square" | "heart" | "heart-fill" | "heart-off" | "mail" | "mail-open" | "message-circle" | "message-circle-fill" | "message-square" | "message-square-fill" | "mic" | "mic-off" | "newspaper" | "phone" | "phone-call" | "phone-off" | "send" | "star" | "star-circle" | "star-fill" | "star-off" | "thumbs-down" | "thumbs-up" | "video" | "video-off" | "bank-vault" | "briefcase" | "credit-card" | "dollar-sign" | "enterprise" | "globe" | "globe-private" | "org" | "provider" | "shopping-bag" | "shopping-cart" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "caret" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "load-balancer" | "migrate" | "move" | "shuffle" | "swap-horizontal" | "swap-vertical" | undefined; - getColor: (state?: REPLICATION_ENABLED_STATE | "disabled") => "neutral" | "neutral-dark-mode" | "highlight" | "success" | "warning" | "critical" | undefined; - get linkUrl(): "replication" | undefined; -} -//# sourceMappingURL=cluster-replication.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/cluster-replication.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/cluster-replication.d.ts.map deleted file mode 100644 index a17d0f3a81..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/cluster-replication.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cluster-replication.d.ts","sourceRoot":"","sources":["../../../src/components/vault-reporting/cluster-replication.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAIjE,OAAO,4BAA4B,CAAC;AAEpC,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE;QACJ,qBAAqB,EAAE,yBAAyB,GAAG,UAAU,CAAC;QAC9D,gBAAgB,EAAE,yBAAyB,GAAG,UAAU,CAAC;QACzD,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS,CAAC,2BAA2B,CAAC;IACpF,QAAQ,WAAW,yBAAyB,GAAG,UAAU,4CAEvD;IAEF,IAAI,OAAO,YAKV;IAED,IAAI,WAAW,sGAQd;IAED,OAAO,WAAW,yBAAyB,GAAG,UAAU,osTAQtD;IAEF,QAAQ,WAAW,yBAAyB,GAAG,UAAU,oGAQvD;IAEF,IAAI,OAAO,8BAMV;CAuDF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/counter.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/counter.d.ts deleted file mode 100644 index b92f8768f0..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/counter.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import type { IconName } from '@hashicorp/flight-icons/svg'; -import './counter.scss'; -export interface SSUReportingCounterSignature { - Args: { - count: number; - title: string; - tooltipMessage?: string; - icon?: IconName; - suffix?: string; - link?: string; - emptyText?: string; - emptyLink?: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SSUReportingCounter extends Component { - get shouldShowEmptyState(): string | false | undefined; - get count(): string | number | undefined; - get icon(): "service" | "loading" | "loading-static" | "running" | "running-static" | "apple" | "apple-color" | "alibaba" | "alibaba-color" | "amazon-ecs" | "amazon-ecs-color" | "amazon-eks" | "amazon-eks-color" | "auth0" | "auth0-color" | "aws" | "aws-color" | "aws-cdk" | "aws-cdk-color" | "aws-cloudwatch" | "aws-cloudwatch-color" | "aws-ec2" | "aws-ec2-color" | "aws-lambda" | "aws-lambda-color" | "aws-s3" | "aws-s3-color" | "azure" | "azure-color" | "azure-aks" | "azure-aks-color" | "azure-blob-storage" | "azure-blob-storage-color" | "azure-devops" | "azure-devops-color" | "azure-vms" | "azure-vms-color" | "bitbucket" | "bitbucket-color" | "bridgecrew" | "bridgecrew-color" | "cisco" | "cisco-color" | "codepen" | "codepen-color" | "confluence" | "confluence-color" | "confluent" | "confluent-color" | "datadog" | "datadog-color" | "digital-ocean" | "digital-ocean-color" | "docker" | "docker-color" | "duo-color" | "duo" | "elastic-observability" | "elastic-observability-color" | "f5" | "f5-color" | "facebook" | "facebook-color" | "figma" | "figma-color" | "gcp" | "gcp-color" | "git" | "git-color" | "gitlab" | "gitlab-color" | "github" | "github-color" | "google" | "google-color" | "google-docs" | "google-docs-color" | "google-drive" | "google-drive-color" | "google-forms" | "google-forms-color" | "google-sheets" | "google-sheets-color" | "google-slides" | "google-slides-color" | "grafana" | "grafana-color" | "helm" | "helm-color" | "infracost" | "infracost-color" | "jfrog" | "jfrog-color" | "jira" | "jira-color" | "jwt" | "jwt-color" | "kubernetes" | "kubernetes-color" | "lightlytics" | "lightlytics-color" | "linkedin" | "linkedin-color" | "linode" | "linode-color" | "linux" | "linux-color" | "loom" | "loom-color" | "meetup" | "meetup-color" | "microsoft" | "microsoft-color" | "microsoft-teams" | "microsoft-teams-color" | "minio" | "minio-color" | "mongodb" | "mongodb-color" | "new-relic" | "new-relic-color" | "okta" | "okta-color" | "oracle" | "oracle-color" | "opa" | "opa-color" | "openid" | "openid-color" | "pack" | "pack-color" | "pager-duty" | "pager-duty-color" | "ping-identity " | "ping-identity-color" | "postgres" | "postgres-color" | "rabbitmq" | "rabbitmq-color" | "saml" | "saml-color" | "service-now" | "service-now-color" | "slack" | "slack-color" | "snyk" | "snyk-color" | "splunk" | "splunk-color" | "twilio" | "twilio-color" | "twitch" | "twitch-color" | "twitter" | "twitter-color" | "twitter-x" | "twitter-x-color" | "vantage" | "vantage-color" | "venafi" | "venafi-color" | "vercel" | "vercel-color" | "vmware" | "vmware-color" | "youtube" | "youtube-color" | "boundary" | "boundary-color" | "boundary-fill" | "boundary-fill-color" | "boundary-square" | "boundary-square-color" | "consul" | "consul-color" | "consul-fill" | "consul-fill-color" | "consul-square" | "consul-square-color" | "nomad" | "nomad-color" | "nomad-fill" | "nomad-fill-color" | "nomad-square" | "nomad-square-color" | "packer" | "packer-color" | "packer-fill" | "packer-fill-color" | "packer-square" | "packer-square-color" | "terraform" | "terraform-color" | "terraform-fill" | "terraform-fill-color" | "terraform-square" | "terraform-square-color" | "vagrant" | "vagrant-color" | "vagrant-fill" | "vagrant-fill-color" | "vagrant-square" | "vagrant-square-color" | "vault" | "vault-color" | "vault-fill" | "vault-fill-color" | "vault-square" | "vault-square-color" | "vault-radar" | "vault-radar-color" | "vault-radar-fill" | "vault-radar-fill-color" | "vault-radar-square" | "vault-radar-square-color" | "vault-secrets" | "vault-secrets-color" | "vault-secrets-fill" | "vault-secrets-fill-color" | "vault-secrets-square" | "vault-secrets-square-color" | "waypoint" | "waypoint-color" | "waypoint-fill" | "waypoint-fill-color" | "waypoint-square" | "waypoint-square-color" | "hashicorp" | "hashicorp-color" | "hashicorp-fill" | "hashicorp-fill-color" | "hashicorp-square" | "hashicorp-square-color" | "hcp" | "hcp-color" | "hcp-fill" | "hcp-fill-color" | "hcp-square" | "hcp-square-color" | "accessibility" | "folder-users" | "frown" | "identity-service" | "identity-user" | "meh" | "robot" | "smile" | "user" | "user-check" | "user-circle" | "user-circle-fill" | "user-minus" | "user-plus" | "user-x" | "users" | "ampersand" | "beaker" | "bucket" | "bulb" | "circle" | "circle-dot" | "circle-fill" | "circle-half" | "diamond" | "diamond-fill" | "disc" | "dot" | "dot-half" | "droplet" | "flag" | "gift" | "government" | "handshake" | "hash" | "hexagon" | "hexagon-fill" | "labyrinth" | "layers" | "moon" | "octagon" | "outline" | "random" | "rocket" | "sparkle" | "square" | "square-fill" | "sun" | "triangle" | "triangle-fill" | "truck" | "wand" | "zap" | "zap-off" | "docs" | "docs-download" | "docs-link" | "guide" | "guide-link" | "help" | "info" | "info-fill" | "learn" | "learn-link" | "support" | "alert-circle" | "alert-circle-fill" | "alert-diamond" | "alert-diamond-fill" | "alert-octagon" | "alert-octagon-fill" | "alert-triangle" | "alert-triangle-fill" | "check" | "check-circle" | "check-circle-fill" | "check-diamond" | "check-diamond-fill" | "check-hexagon" | "check-hexagon-fill" | "check-square" | "check-square-fill" | "skip" | "x" | "x-circle" | "x-circle-fill" | "x-diamond" | "x-diamond-fill" | "x-hexagon" | "x-hexagon-fill" | "x-square" | "x-square-fill" | "bug" | "certificate" | "eye" | "eye-off" | "fingerprint" | "key" | "keychain" | "lock" | "lock-fill" | "lock-off" | "shield" | "shield-alert" | "shield-check" | "shield-off" | "shield-x" | "token" | "unlock" | "verified" | "wall" | "minus" | "minus-circle" | "minus-circle-fill" | "minus-plus" | "minus-plus-circle" | "minus-plus-square" | "minus-square" | "minus-square-fill" | "plus" | "plus-circle" | "plus-circle-fill" | "plus-square" | "camera" | "camera-off" | "cast" | "closed-caption" | "fast-forward" | "film" | "headphones" | "image" | "music" | "pause" | "pause-circle" | "play" | "play-circle" | "radio" | "rewind" | "rss" | "skip-back" | "skip-forward" | "speaker" | "stop-circle" | "volume" | "volume-down" | "volume-2" | "volume-x" | "wifi" | "wifi-off" | "compass" | "crosshair" | "map" | "map-pin" | "navigation" | "navigation-alt" | "redirect" | "target" | "align-center" | "align-justify" | "align-left" | "align-right" | "battery" | "battery-charging" | "bookmark" | "bookmark-add" | "bookmark-add-fill" | "bookmark-fill" | "bookmark-remove" | "bookmark-remove-fill" | "bottom" | "command" | "crop" | "dashboard" | "delete" | "download" | "edit" | "entry-point" | "exit-point" | "external-link" | "filter" | "filter-circle" | "filter-fill" | "grid" | "grid-alt" | "home" | "jump-link" | "layout" | "link" | "list" | "maximize" | "maximize-alt" | "menu" | "minimize" | "minimize-alt" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "paperclip" | "pen-tool" | "pencil-tool" | "pin" | "power" | "printer" | "reload" | "repeat" | "rotate-cw" | "rotate-ccw" | "search" | "share" | "sidebar" | "sidebar-hide" | "sidebar-show" | "sign-in" | "sign-out" | "slash" | "slash-square" | "sort-asc" | "sort-desc" | "switcher" | "sync" | "sync-alert" | "sync-reverse" | "tag" | "toggle-left" | "toggle-right" | "top" | "trash" | "type" | "unfold-close" | "unfold-open" | "upload" | "zoom-in" | "zoom-out" | "archive" | "clipboard" | "clipboard-checked" | "clipboard-copy" | "clipboard-x" | "file" | "file-change" | "file-check" | "file-diff" | "file-minus" | "file-plus" | "file-source" | "file-text" | "file-x" | "files" | "folder" | "folder-fill" | "folder-minus" | "folder-minus-fill" | "folder-plus" | "folder-plus-fill" | "folder-star" | "inbox" | "api" | "auto-apply" | "build" | "change" | "change-circle" | "change-square" | "channel" | "cloud" | "cloud-check" | "cloud-download" | "cloud-lightning" | "cloud-lock" | "cloud-off" | "cloud-upload" | "cloud-x" | "code" | "connection" | "connection-gateway" | "cpu" | "duplicate" | "gateway" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "git-repo" | "hammer" | "key-values" | "mainframe" | "mesh" | "module" | "monitor" | "network" | "network-alt" | "node" | "path" | "pipeline" | "plug" | "replication-direct" | "replication-perf" | "scissors" | "server" | "server-cluster" | "serverless" | "settings" | "sliders" | "smartphone" | "socket" | "step" | "tablet" | "terminal" | "terminal-screen" | "test" | "tools" | "transform-data" | "tv" | "webhook" | "wrench" | "calendar" | "clock" | "clock-filled" | "delay" | "event" | "history" | "hourglass" | "watch" | "bar-chart" | "bar-chart-alt" | "box" | "collections" | "database" | "hard-drive" | "line-chart" | "line-chart-up" | "logs" | "package" | "pie-chart" | "queue" | "save" | "trend-down" | "trend-up" | "activity" | "at-sign" | "award" | "bell" | "bell-active" | "bell-active-fill" | "bell-off" | "discussion-circle" | "discussion-square" | "heart" | "heart-fill" | "heart-off" | "mail" | "mail-open" | "message-circle" | "message-circle-fill" | "message-square" | "message-square-fill" | "mic" | "mic-off" | "newspaper" | "phone" | "phone-call" | "phone-off" | "send" | "star" | "star-circle" | "star-fill" | "star-off" | "thumbs-down" | "thumbs-up" | "video" | "video-off" | "bank-vault" | "briefcase" | "credit-card" | "dollar-sign" | "enterprise" | "globe" | "globe-private" | "org" | "provider" | "shopping-bag" | "shopping-cart" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "caret" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "load-balancer" | "migrate" | "move" | "shuffle" | "swap-horizontal" | "swap-vertical"; - get link(): string | undefined; -} -//# sourceMappingURL=counter.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/counter.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/counter.d.ts.map deleted file mode 100644 index a813467f67..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/counter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counter.d.ts","sourceRoot":"","sources":["../../../src/components/vault-reporting/counter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,gBAAgB,CAAC;AAExB,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,SAAS,CAAC,4BAA4B,CAAC;IACtF,IAAI,oBAAoB,+BAEvB;IAED,IAAI,KAAK,gCAUR;IAED,IAAI,IAAI,urTAEP;IAED,IAAI,IAAI,uBAKP;CAuEF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/dashboard/export.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/dashboard/export.d.ts deleted file mode 100644 index 3d36e0ead8..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/dashboard/export.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import type { UsageDashboardData } from '../../../types'; -import type ReportingAnalyticsService from '../../../services/reporting-analytics'; -export interface DashboardExportSignature { - Args: { - data?: UsageDashboardData; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class DashboardExport extends Component { - #private; - readonly reportingAnalytics: ReportingAnalyticsService; - handleTrackExportToggle: () => void; - handleTrackExportOption: (option: string) => void; - get dataAsDownloadableJSONString(): string; - get dataAsDownloadableCSVString(): string; -} -//# sourceMappingURL=export.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/dashboard/export.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/dashboard/export.d.ts.map deleted file mode 100644 index 853aa77d1a..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/dashboard/export.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/dashboard/export.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,yBAAyB,MAAM,uCAAuC,CAAC;AAGnF,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,kBAAkB,CAAC;KAC3B,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;;IAC9E,SAA0B,kBAAkB,EAAE,yBAAyB,CAAC;IAQxE,uBAAuB,aAErB;IAEF,uBAAuB,WAAY,MAAM,UAEvC;IAEF,IAAI,4BAA4B,WAM/B;IAED,IAAI,2BAA2B,WA2D9B;CA8CF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/donut-chart.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/donut-chart.d.ts deleted file mode 100644 index c3735a37b5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/donut-chart.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import './donut-chart.scss'; -import Component from '@glimmer/component'; -export interface SSUReportingDonutChartSignature { - Args: { - data: { - value: number; - label: string; - }[]; - title: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SSUReportingDonutChart extends Component { - get data(): { - scaleIndex: number; - value: number; - label: string; - }[]; - get total(): number; - get a11yLabel(): string; - getOffset(width: number, height: number): string; - getInnerRadius(width: number, height: number): number; - getOuterRadius(width: number, height: number): number; -} -//# sourceMappingURL=donut-chart.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/donut-chart.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/donut-chart.d.ts.map deleted file mode 100644 index 602b34f83b..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/donut-chart.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"donut-chart.d.ts","sourceRoot":"","sources":["../../../src/components/vault-reporting/donut-chart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACzC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAS,CAAC,+BAA+B,CAAC;IAC5F,IAAI,IAAI;;eAXS,MAAM;eAAS,MAAM;QAkBrC;IAED,IAAI,KAAK,WAIR;IAED,IAAI,SAAS,WAUZ;IAED,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAIvC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAM5C,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CA0I7C"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/filter-bar.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/filter-bar.d.ts deleted file mode 100644 index c25a0a27d3..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/filter-bar.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import { type Filter } from '../../utils/cel.ts'; -export interface FilterFieldDefinition { - name: string; - label: string; - type: 'text' | 'multiselect' | 'number' | 'daterange'; - options?: { - name: string; - value: string; - }[]; -} -export interface FilterBarSignature { - Args: { - onFiltersApplied: (filters: Filter[]) => void; - appliedFilters: Filter[]; - filterFieldDefinitions: FilterFieldDefinition[]; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class FilterBar extends Component { - updateFilters: (filters: Record) => void; - handleClearFilters: () => void; - handleDismissFilter: (key: string) => void; - handleMultiselectChange: (name: string, event: Event) => void; - handleTextInputChange: (name: string, event: Event) => void; - handleNumberChange: (event: Event) => void; - handleDateRangeChange: (name: string, event: Event) => void; - isEqual: (a: string, b: string) => boolean; - isChecked: (name: string, value: string) => boolean; - getValue: (name: string) => string; - getOperator: (name: string) => "" | ">=" | "<=" | ">" | "<" | "=" | "!=" | "IN" | "NOT IN"; - friendlyAppliedString: (appliedFilter: Filter) => string; - get appliedFilters(): Record; - get appliedFiltersCount(): number; - get hasAppliedFilters(): boolean; -} -//# sourceMappingURL=filter-bar.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/filter-bar.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/filter-bar.d.ts.map deleted file mode 100644 index bf6ea4f058..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/filter-bar.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../../src/components/vault-reporting/filter-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,QAAQ,GAAG,WAAW,CAAC;IACtD,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE;QACJ,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;QAC9C,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;KACjD,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAClE,aAAa,YAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAE9C;IAEF,kBAAkB,aAEhB;IAEF,mBAAmB,QAAS,MAAM,UAIhC;IAEF,uBAAuB,SAAU,MAAM,SAAS,KAAK,UA8BnD;IAEF,qBAAqB,SAAU,MAAM,SAAS,KAAK,UAajD;IAEF,kBAAkB,UAAW,KAAK,UAiBhC;IAEF,qBAAqB,SAAU,MAAM,SAAS,KAAK,UAcjD;IAEF,OAAO,MAAO,MAAM,KAAK,MAAM,aAE7B;IAEF,SAAS,SAAU,MAAM,SAAS,MAAM,aAGtC;IAEF,QAAQ,SAAU,MAAM,YAEtB;IAEF,WAAW,SAAU,MAAM,iEAEzB;IAEF,qBAAqB,kBAAmB,MAAM,YAM5C;IAEF,IAAI,cAAc,2BAgBjB;IAED,IAAI,mBAAmB,WAEtB;IAED,IAAI,iBAAiB,YAEpB;CAoSF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/global-lease.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/global-lease.d.ts deleted file mode 100644 index 04bcab467e..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/global-lease.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import './global-lease.scss'; -import type { HdsApplicationStateSignature } from '@hashicorp/design-system-components/components/hds/application-state/index'; -export interface GlobalLeaseSignature { - Args: { - count?: number; - quota?: number; - }; - Blocks: { - default: []; - /** We optionally yield application state to allow for overrides on empty state eg: - * - * <:empty as |A|> - * - * - * - * - * */ - empty: HdsApplicationStateSignature['Blocks']['default']; - }; - Element: HTMLElement; -} -export default class GlobalLease extends Component { - get percentage(): number; - get progressFillClass(): "" | "ssu-global-lease__progress-fill--exceeded"; - get formattedCount(): string; - get percentageString(): string; - get hasData(): boolean | 0 | undefined; - get description(): import("@ember/template").SafeString | undefined; - get linkUrl(): "https://developer.hashicorp.com/vault/tutorials/operations/resource-quotas#global-default-lease-count-quota" | undefined; - get alert(): { - color: 'warning' | 'neutral'; - description: string; - } | undefined; -} -//# sourceMappingURL=global-lease.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/global-lease.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/global-lease.d.ts.map deleted file mode 100644 index 2af4468d48..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/global-lease.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"global-lease.d.ts","sourceRoot":"","sources":["../../../src/components/vault-reporting/global-lease.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAS3C,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4EAA4E,CAAC;AAG/H,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;QACZ;;;;;;;aAOK;QACL,KAAK,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;KAC1D,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACtE,IAAI,UAAU,WAIb;IAED,IAAI,iBAAiB,qDAKpB;IAED,IAAI,cAAc,WAWjB;IAED,IAAI,gBAAgB,WAEnB;IAED,IAAI,OAAO,4BAEV;IAED,IAAI,WAAW,qDAMd;IAED,IAAI,OAAO,8HAIV;IAED,IAAI,KAAK,IACL;QAAE,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GACrD,SAAS,CAgBZ;CAgIF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/horizontal-bar-chart.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/horizontal-bar-chart.d.ts deleted file mode 100644 index 81fdee6a66..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/horizontal-bar-chart.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import './horizontal-bar-chart.scss'; -import Component from '@glimmer/component'; -import { HdsLinkStandalone } from '@hashicorp/design-system-components/components'; -import type { SimpleDatum } from '../../types/index.ts'; -import type { HdsApplicationStateSignature } from '@hashicorp/design-system-components/components/hds/application-state/index'; -export interface SSUReportingHorizontalBarChartSignature { - Args: { - data: SimpleDatum[]; - title: string; - description?: string; - /** Custom text for the link (defaults to "View all") */ - linkText?: string; - /** Icon to display with the link (defaults to "arrow-right") */ - linkIcon?: HdsLinkStandalone['icon']; - /** URL for the link - if not provided, no link will be shown */ - linkUrl?: string; - /** Target for the link - defaults to "_self" */ - linkTarget?: '_blank' | '_self'; - }; - Blocks: { - default: []; - /** We optionally yield application state to allow for overrides on empty state eg: - * - * <:empty as |A|> - * - * - * - * - * */ - empty: HdsApplicationStateSignature['Blocks']['default']; - }; - Element: HTMLElement; -} -export default class SSUReportingHorizontalBarChart extends Component { - xRangeOffsetWidth: number; - get hasData(): boolean; - get data(): SimpleDatum[]; - get total(): number; - get a11yLabel(): string; - get yDomain(): string[]; - get xDomain(): number[]; - get rangeHeight(): number; - get yRange(): number[]; - get emptyStateTitle(): string; - get emptyStateDescription(): string; - get emptyStateLinkText(): string; - get description(): string | undefined; - get linkUrl(): string | undefined; - getXRange: (width: number) => number[]; - handleAxisOffset: (offsetWidth: number) => void; -} -//# sourceMappingURL=horizontal-bar-chart.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/horizontal-bar-chart.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/horizontal-bar-chart.d.ts.map deleted file mode 100644 index 6807988d0b..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/horizontal-bar-chart.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-bar-chart.d.ts","sourceRoot":"","sources":["../../../src/components/vault-reporting/horizontal-bar-chart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,6BAA6B,CAAC;AACrC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAKL,iBAAiB,EAClB,MAAM,gDAAgD,CAAC;AAWxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4EAA4E,CAAC;AAE/H,MAAM,WAAW,uCAAuC;IACtD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW,EAAE,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,wDAAwD;QACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gEAAgE;QAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACrC,gEAAgE;QAChE,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,gDAAgD;QAChD,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;KACjC,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;QACZ;;;;;;;aAOK;QACL,KAAK,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;KAC1D,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,8BAA+B,SAAQ,SAAS,CAAC,uCAAuC,CAAC;IACnG,iBAAiB,SAAK;IAE/B,IAAI,OAAO,YAMV;IAED,IAAI,IAAI,kBAUP;IAED,IAAI,KAAK,WAIR;IAED,IAAI,SAAS,WAUZ;IAED,IAAI,OAAO,aAEV;IAED,IAAI,OAAO,aAEV;IAED,IAAI,WAAW,WAEd;IAED,IAAI,MAAM,aAET;IAED,IAAI,eAAe,WAElB;IAED,IAAI,qBAAqB,WAGxB;IAED,IAAI,kBAAkB,WAGrB;IAED,IAAI,WAAW,uBAId;IAED,IAAI,OAAO,uBAIV;IAED,SAAS,UAAW,MAAM,cAExB;IAEF,gBAAgB,gBAAiB,MAAM,UAErC;CAoKH"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/base/title-row.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/reporting/base/title-row.d.ts deleted file mode 100644 index 8687524d4a..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/base/title-row.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import { HdsLinkStandalone } from '@hashicorp/design-system-components/components'; -import './title-row.scss'; -/** - * TitleRow Component - * - * A reusable component that displays a title with an optional description and link. - * Used in dashboard cards to create consistent header styling. - */ -export interface TitleRowSignature { - Args: { - /** The main title text to display */ - title: string; - /** Optional description text to display beneath the title */ - description?: string; - /** Custom text for the link (defaults to "View all") */ - linkText?: string; - /** Icon to display with the link (defaults to "arrow-right") */ - linkIcon?: HdsLinkStandalone['icon']; - /** URL for the link - if not provided, no link will be shown */ - linkUrl?: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class TitleRow extends Component { - get hasLink(): string | undefined; - get linkText(): string; - get linkUrl(): string; - get linkIcon(): "loading" | "loading-static" | "running" | "running-static" | "apple" | "apple-color" | "alibaba" | "alibaba-color" | "amazon-ecs" | "amazon-ecs-color" | "amazon-eks" | "amazon-eks-color" | "auth0" | "auth0-color" | "aws" | "aws-color" | "aws-cdk" | "aws-cdk-color" | "aws-cloudwatch" | "aws-cloudwatch-color" | "aws-ec2" | "aws-ec2-color" | "aws-lambda" | "aws-lambda-color" | "aws-s3" | "aws-s3-color" | "azure" | "azure-color" | "azure-aks" | "azure-aks-color" | "azure-blob-storage" | "azure-blob-storage-color" | "azure-devops" | "azure-devops-color" | "azure-vms" | "azure-vms-color" | "bitbucket" | "bitbucket-color" | "bridgecrew" | "bridgecrew-color" | "cisco" | "cisco-color" | "codepen" | "codepen-color" | "confluence" | "confluence-color" | "confluent" | "confluent-color" | "datadog" | "datadog-color" | "digital-ocean" | "digital-ocean-color" | "docker" | "docker-color" | "elastic-observability" | "elastic-observability-color" | "f5" | "f5-color" | "facebook" | "facebook-color" | "figma" | "figma-color" | "gcp" | "gcp-color" | "git" | "git-color" | "gitlab" | "gitlab-color" | "github" | "github-color" | "google" | "google-color" | "google-docs" | "google-docs-color" | "google-drive" | "google-drive-color" | "google-forms" | "google-forms-color" | "google-sheets" | "google-sheets-color" | "google-slides" | "google-slides-color" | "grafana" | "grafana-color" | "helm" | "helm-color" | "infracost" | "infracost-color" | "jfrog" | "jfrog-color" | "jira" | "jira-color" | "jwt" | "jwt-color" | "kubernetes" | "kubernetes-color" | "lightlytics" | "lightlytics-color" | "linkedin" | "linkedin-color" | "linode" | "linode-color" | "linux" | "linux-color" | "loom" | "loom-color" | "meetup" | "meetup-color" | "microsoft" | "microsoft-color" | "microsoft-teams" | "microsoft-teams-color" | "minio" | "minio-color" | "mongodb" | "mongodb-color" | "new-relic" | "new-relic-color" | "okta" | "okta-color" | "oracle" | "oracle-color" | "opa" | "opa-color" | "openid" | "openid-color" | "pack" | "pack-color" | "pager-duty" | "pager-duty-color" | "postgres" | "postgres-color" | "rabbitmq" | "rabbitmq-color" | "saml" | "saml-color" | "service-now" | "service-now-color" | "slack" | "slack-color" | "snyk" | "snyk-color" | "splunk" | "splunk-color" | "twilio" | "twilio-color" | "twitch" | "twitch-color" | "twitter" | "twitter-color" | "twitter-x" | "twitter-x-color" | "vantage" | "vantage-color" | "venafi" | "venafi-color" | "vercel" | "vercel-color" | "vmware" | "vmware-color" | "youtube" | "youtube-color" | "boundary" | "boundary-color" | "boundary-fill" | "boundary-fill-color" | "boundary-square" | "boundary-square-color" | "consul" | "consul-color" | "consul-fill" | "consul-fill-color" | "consul-square" | "consul-square-color" | "nomad" | "nomad-color" | "nomad-fill" | "nomad-fill-color" | "nomad-square" | "nomad-square-color" | "packer" | "packer-color" | "packer-fill" | "packer-fill-color" | "packer-square" | "packer-square-color" | "terraform" | "terraform-color" | "terraform-fill" | "terraform-fill-color" | "terraform-square" | "terraform-square-color" | "vagrant" | "vagrant-color" | "vagrant-fill" | "vagrant-fill-color" | "vagrant-square" | "vagrant-square-color" | "vault" | "vault-color" | "vault-fill" | "vault-fill-color" | "vault-square" | "vault-square-color" | "vault-radar" | "vault-radar-color" | "vault-radar-fill" | "vault-radar-fill-color" | "vault-radar-square" | "vault-radar-square-color" | "vault-secrets" | "vault-secrets-color" | "vault-secrets-fill" | "vault-secrets-fill-color" | "vault-secrets-square" | "vault-secrets-square-color" | "waypoint" | "waypoint-color" | "waypoint-fill" | "waypoint-fill-color" | "waypoint-square" | "waypoint-square-color" | "hashicorp" | "hashicorp-color" | "hashicorp-fill" | "hashicorp-fill-color" | "hashicorp-square" | "hashicorp-square-color" | "hcp" | "hcp-color" | "hcp-fill" | "hcp-fill-color" | "hcp-square" | "hcp-square-color" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "caret" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "load-balancer" | "migrate" | "move" | "shuffle" | "swap-horizontal" | "swap-vertical" | "bank-vault" | "briefcase" | "credit-card" | "dollar-sign" | "enterprise" | "globe" | "globe-private" | "org" | "provider" | "shopping-bag" | "shopping-cart" | "activity" | "at-sign" | "award" | "bell" | "bell-active" | "bell-active-fill" | "bell-off" | "discussion-circle" | "discussion-square" | "heart" | "heart-fill" | "heart-off" | "mail" | "mail-open" | "message-circle" | "message-circle-fill" | "message-square" | "message-square-fill" | "mic" | "mic-off" | "newspaper" | "phone" | "phone-call" | "phone-off" | "send" | "star" | "star-circle" | "star-fill" | "star-off" | "thumbs-down" | "thumbs-up" | "video" | "video-off" | "bar-chart" | "bar-chart-alt" | "box" | "collections" | "database" | "hard-drive" | "line-chart" | "line-chart-up" | "logs" | "package" | "pie-chart" | "queue" | "save" | "trend-down" | "trend-up" | "calendar" | "clock" | "clock-filled" | "delay" | "event" | "history" | "hourglass" | "watch" | "api" | "auto-apply" | "build" | "change" | "change-circle" | "change-square" | "channel" | "cloud" | "cloud-check" | "cloud-download" | "cloud-lightning" | "cloud-lock" | "cloud-off" | "cloud-upload" | "cloud-x" | "code" | "connection" | "connection-gateway" | "cpu" | "duplicate" | "gateway" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "git-repo" | "hammer" | "key-values" | "mainframe" | "mesh" | "module" | "monitor" | "network" | "network-alt" | "node" | "path" | "pipeline" | "plug" | "replication-direct" | "replication-perf" | "scissors" | "server" | "server-cluster" | "serverless" | "service" | "settings" | "sliders" | "smartphone" | "socket" | "step" | "tablet" | "terminal" | "terminal-screen" | "test" | "tools" | "transform-data" | "tv" | "webhook" | "wrench" | "archive" | "clipboard" | "clipboard-checked" | "clipboard-copy" | "clipboard-x" | "file" | "file-change" | "file-check" | "file-diff" | "file-minus" | "file-plus" | "file-source" | "file-text" | "file-x" | "files" | "folder" | "folder-fill" | "folder-minus" | "folder-minus-fill" | "folder-plus" | "folder-plus-fill" | "folder-star" | "inbox" | "align-center" | "align-justify" | "align-left" | "align-right" | "battery" | "battery-charging" | "bookmark" | "bookmark-add" | "bookmark-add-fill" | "bookmark-fill" | "bookmark-remove" | "bookmark-remove-fill" | "bottom" | "command" | "crop" | "dashboard" | "delete" | "download" | "edit" | "entry-point" | "exit-point" | "external-link" | "filter" | "filter-circle" | "filter-fill" | "grid" | "grid-alt" | "home" | "jump-link" | "layout" | "link" | "list" | "maximize" | "maximize-alt" | "menu" | "minimize" | "minimize-alt" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "paperclip" | "pen-tool" | "pencil-tool" | "pin" | "power" | "printer" | "reload" | "repeat" | "rotate-cw" | "rotate-ccw" | "search" | "share" | "sidebar" | "sidebar-hide" | "sidebar-show" | "sign-in" | "sign-out" | "slash" | "slash-square" | "sort-asc" | "sort-desc" | "switcher" | "sync" | "sync-alert" | "sync-reverse" | "tag" | "toggle-left" | "toggle-right" | "top" | "trash" | "type" | "unfold-close" | "unfold-open" | "upload" | "zoom-in" | "zoom-out" | "compass" | "crosshair" | "map" | "map-pin" | "navigation" | "navigation-alt" | "redirect" | "target" | "camera" | "camera-off" | "cast" | "closed-caption" | "fast-forward" | "film" | "headphones" | "image" | "music" | "pause" | "pause-circle" | "play" | "play-circle" | "radio" | "rewind" | "rss" | "skip-back" | "skip-forward" | "speaker" | "stop-circle" | "volume" | "volume-down" | "volume-2" | "volume-x" | "wifi" | "wifi-off" | "ampersand" | "beaker" | "bucket" | "bulb" | "circle" | "circle-dot" | "circle-fill" | "circle-half" | "diamond" | "diamond-fill" | "disc" | "dot" | "dot-half" | "droplet" | "flag" | "gift" | "government" | "handshake" | "hash" | "hexagon" | "hexagon-fill" | "labyrinth" | "layers" | "moon" | "octagon" | "outline" | "random" | "rocket" | "sparkle" | "square" | "square-fill" | "sun" | "triangle" | "triangle-fill" | "truck" | "wand" | "zap" | "zap-off" | "minus" | "minus-circle" | "minus-circle-fill" | "minus-plus" | "minus-plus-circle" | "minus-plus-square" | "minus-square" | "minus-square-fill" | "plus" | "plus-circle" | "plus-circle-fill" | "plus-square" | "bug" | "certificate" | "eye" | "eye-off" | "fingerprint" | "key" | "keychain" | "lock" | "lock-fill" | "lock-off" | "shield" | "shield-alert" | "shield-check" | "shield-off" | "shield-x" | "token" | "unlock" | "verified" | "wall" | "alert-circle" | "alert-circle-fill" | "alert-diamond" | "alert-diamond-fill" | "alert-octagon" | "alert-octagon-fill" | "alert-triangle" | "alert-triangle-fill" | "check" | "check-circle" | "check-circle-fill" | "check-diamond" | "check-diamond-fill" | "check-hexagon" | "check-hexagon-fill" | "check-square" | "check-square-fill" | "skip" | "x" | "x-circle" | "x-circle-fill" | "x-diamond" | "x-diamond-fill" | "x-hexagon" | "x-hexagon-fill" | "x-square" | "x-square-fill" | "docs" | "docs-download" | "docs-link" | "guide" | "guide-link" | "help" | "info" | "info-fill" | "learn" | "learn-link" | "support" | "accessibility" | "folder-users" | "frown" | "identity-service" | "identity-user" | "meh" | "robot" | "smile" | "user" | "user-check" | "user-circle" | "user-circle-fill" | "user-minus" | "user-plus" | "user-x" | "users"; -} -//# sourceMappingURL=title-row.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/base/title-row.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/reporting/base/title-row.d.ts.map deleted file mode 100644 index 6d84d4e4c5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/base/title-row.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"title-row.d.ts","sourceRoot":"","sources":["../../../../../src/components/vault-reporting/reporting/base/title-row.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAGL,iBAAiB,EAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,kBAAkB,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE;QACJ,qCAAqC;QACrC,KAAK,EAAE,MAAM,CAAC;QACd,6DAA6D;QAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,wDAAwD;QACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gEAAgE;QAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACrC,gEAAgE;QAChE,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAChE,IAAI,OAAO,uBAEV;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,WAEV;IAED,IAAI,QAAQ,snTAEX;CAoDF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/cluster-replication.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/reporting/cluster-replication.d.ts deleted file mode 100644 index 66166cb615..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/cluster-replication.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import './cluster-replication.scss'; -export declare const ENABLED_STATE = "enabled"; -export declare const DISABLED_STATE = "disabled"; -export interface ClusterReplicationSignature { - Args: { - isDisasterRecoveryPrimary: boolean; - disasterRecoveryState: string; - isPerformancePrimary: boolean; - performanceState: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class ClusterReplication extends Component { - get disasterRecoveryBadge(): { - icon: 'check' | 'x'; - text: string; - color: 'success' | 'neutral'; - }; - get performanceBadge(): { - icon: 'check' | 'x'; - text: string; - color: 'success' | 'neutral'; - }; - get disasterRecoveryRole(): "Primary" | "Secondary"; - get performanceRole(): "Primary" | "Secondary"; -} -//# sourceMappingURL=cluster-replication.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/cluster-replication.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/reporting/cluster-replication.d.ts.map deleted file mode 100644 index 52f46c447c..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/cluster-replication.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cluster-replication.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/reporting/cluster-replication.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAQ3C,OAAO,4BAA4B,CAAC;AAMpC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE;QACJ,yBAAyB,EAAE,OAAO,CAAC;QACnC,qBAAqB,EAAE,MAAM,CAAC;QAC9B,oBAAoB,EAAE,OAAO,CAAC;QAC9B,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS,CAAC,2BAA2B,CAAC;IACpF,IAAI,qBAAqB,IAAI;QAC3B,IAAI,EAAE,OAAO,GAAG,GAAG,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;KAC9B,CAIA;IAED,IAAI,gBAAgB,IAAI;QACtB,IAAI,EAAE,OAAO,GAAG,GAAG,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;KAC9B,CAIA;IAED,IAAI,oBAAoB,4BAEvB;IAED,IAAI,eAAe,4BAElB;CAwFF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/counter.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/reporting/counter.d.ts deleted file mode 100644 index 7dd90610e5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/counter.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import type { IconName } from '@hashicorp/flight-icons/svg'; -import './counter.scss'; -export interface SSUReportingCounterSignature { - Args: { - count: number; - title: string; - icon?: IconName; - suffix?: string; - link?: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SSUReportingCounter extends Component { - get count(): string | number; - get icon(): "loading" | "loading-static" | "running" | "running-static" | "apple" | "apple-color" | "alibaba" | "alibaba-color" | "amazon-ecs" | "amazon-ecs-color" | "amazon-eks" | "amazon-eks-color" | "auth0" | "auth0-color" | "aws" | "aws-color" | "aws-cdk" | "aws-cdk-color" | "aws-cloudwatch" | "aws-cloudwatch-color" | "aws-ec2" | "aws-ec2-color" | "aws-lambda" | "aws-lambda-color" | "aws-s3" | "aws-s3-color" | "azure" | "azure-color" | "azure-aks" | "azure-aks-color" | "azure-blob-storage" | "azure-blob-storage-color" | "azure-devops" | "azure-devops-color" | "azure-vms" | "azure-vms-color" | "bitbucket" | "bitbucket-color" | "bridgecrew" | "bridgecrew-color" | "cisco" | "cisco-color" | "codepen" | "codepen-color" | "confluence" | "confluence-color" | "confluent" | "confluent-color" | "datadog" | "datadog-color" | "digital-ocean" | "digital-ocean-color" | "docker" | "docker-color" | "elastic-observability" | "elastic-observability-color" | "f5" | "f5-color" | "facebook" | "facebook-color" | "figma" | "figma-color" | "gcp" | "gcp-color" | "git" | "git-color" | "gitlab" | "gitlab-color" | "github" | "github-color" | "google" | "google-color" | "google-docs" | "google-docs-color" | "google-drive" | "google-drive-color" | "google-forms" | "google-forms-color" | "google-sheets" | "google-sheets-color" | "google-slides" | "google-slides-color" | "grafana" | "grafana-color" | "helm" | "helm-color" | "infracost" | "infracost-color" | "jfrog" | "jfrog-color" | "jira" | "jira-color" | "jwt" | "jwt-color" | "kubernetes" | "kubernetes-color" | "lightlytics" | "lightlytics-color" | "linkedin" | "linkedin-color" | "linode" | "linode-color" | "linux" | "linux-color" | "loom" | "loom-color" | "meetup" | "meetup-color" | "microsoft" | "microsoft-color" | "microsoft-teams" | "microsoft-teams-color" | "minio" | "minio-color" | "mongodb" | "mongodb-color" | "new-relic" | "new-relic-color" | "okta" | "okta-color" | "oracle" | "oracle-color" | "opa" | "opa-color" | "openid" | "openid-color" | "pack" | "pack-color" | "pager-duty" | "pager-duty-color" | "postgres" | "postgres-color" | "rabbitmq" | "rabbitmq-color" | "saml" | "saml-color" | "service-now" | "service-now-color" | "slack" | "slack-color" | "snyk" | "snyk-color" | "splunk" | "splunk-color" | "twilio" | "twilio-color" | "twitch" | "twitch-color" | "twitter" | "twitter-color" | "twitter-x" | "twitter-x-color" | "vantage" | "vantage-color" | "venafi" | "venafi-color" | "vercel" | "vercel-color" | "vmware" | "vmware-color" | "youtube" | "youtube-color" | "boundary" | "boundary-color" | "boundary-fill" | "boundary-fill-color" | "boundary-square" | "boundary-square-color" | "consul" | "consul-color" | "consul-fill" | "consul-fill-color" | "consul-square" | "consul-square-color" | "nomad" | "nomad-color" | "nomad-fill" | "nomad-fill-color" | "nomad-square" | "nomad-square-color" | "packer" | "packer-color" | "packer-fill" | "packer-fill-color" | "packer-square" | "packer-square-color" | "terraform" | "terraform-color" | "terraform-fill" | "terraform-fill-color" | "terraform-square" | "terraform-square-color" | "vagrant" | "vagrant-color" | "vagrant-fill" | "vagrant-fill-color" | "vagrant-square" | "vagrant-square-color" | "vault" | "vault-color" | "vault-fill" | "vault-fill-color" | "vault-square" | "vault-square-color" | "vault-radar" | "vault-radar-color" | "vault-radar-fill" | "vault-radar-fill-color" | "vault-radar-square" | "vault-radar-square-color" | "vault-secrets" | "vault-secrets-color" | "vault-secrets-fill" | "vault-secrets-fill-color" | "vault-secrets-square" | "vault-secrets-square-color" | "waypoint" | "waypoint-color" | "waypoint-fill" | "waypoint-fill-color" | "waypoint-square" | "waypoint-square-color" | "hashicorp" | "hashicorp-color" | "hashicorp-fill" | "hashicorp-fill-color" | "hashicorp-square" | "hashicorp-square-color" | "hcp" | "hcp-color" | "hcp-fill" | "hcp-fill-color" | "hcp-square" | "hcp-square-color" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "caret" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "load-balancer" | "migrate" | "move" | "shuffle" | "swap-horizontal" | "swap-vertical" | "bank-vault" | "briefcase" | "credit-card" | "dollar-sign" | "enterprise" | "globe" | "globe-private" | "org" | "provider" | "shopping-bag" | "shopping-cart" | "activity" | "at-sign" | "award" | "bell" | "bell-active" | "bell-active-fill" | "bell-off" | "discussion-circle" | "discussion-square" | "heart" | "heart-fill" | "heart-off" | "mail" | "mail-open" | "message-circle" | "message-circle-fill" | "message-square" | "message-square-fill" | "mic" | "mic-off" | "newspaper" | "phone" | "phone-call" | "phone-off" | "send" | "star" | "star-circle" | "star-fill" | "star-off" | "thumbs-down" | "thumbs-up" | "video" | "video-off" | "bar-chart" | "bar-chart-alt" | "box" | "collections" | "database" | "hard-drive" | "line-chart" | "line-chart-up" | "logs" | "package" | "pie-chart" | "queue" | "save" | "trend-down" | "trend-up" | "calendar" | "clock" | "clock-filled" | "delay" | "event" | "history" | "hourglass" | "watch" | "api" | "auto-apply" | "build" | "change" | "change-circle" | "change-square" | "channel" | "cloud" | "cloud-check" | "cloud-download" | "cloud-lightning" | "cloud-lock" | "cloud-off" | "cloud-upload" | "cloud-x" | "code" | "connection" | "connection-gateway" | "cpu" | "duplicate" | "gateway" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "git-repo" | "hammer" | "key-values" | "mainframe" | "mesh" | "module" | "monitor" | "network" | "network-alt" | "node" | "path" | "pipeline" | "plug" | "replication-direct" | "replication-perf" | "scissors" | "server" | "server-cluster" | "serverless" | "service" | "settings" | "sliders" | "smartphone" | "socket" | "step" | "tablet" | "terminal" | "terminal-screen" | "test" | "tools" | "transform-data" | "tv" | "webhook" | "wrench" | "archive" | "clipboard" | "clipboard-checked" | "clipboard-copy" | "clipboard-x" | "file" | "file-change" | "file-check" | "file-diff" | "file-minus" | "file-plus" | "file-source" | "file-text" | "file-x" | "files" | "folder" | "folder-fill" | "folder-minus" | "folder-minus-fill" | "folder-plus" | "folder-plus-fill" | "folder-star" | "inbox" | "align-center" | "align-justify" | "align-left" | "align-right" | "battery" | "battery-charging" | "bookmark" | "bookmark-add" | "bookmark-add-fill" | "bookmark-fill" | "bookmark-remove" | "bookmark-remove-fill" | "bottom" | "command" | "crop" | "dashboard" | "delete" | "download" | "edit" | "entry-point" | "exit-point" | "external-link" | "filter" | "filter-circle" | "filter-fill" | "grid" | "grid-alt" | "home" | "jump-link" | "layout" | "link" | "list" | "maximize" | "maximize-alt" | "menu" | "minimize" | "minimize-alt" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "paperclip" | "pen-tool" | "pencil-tool" | "pin" | "power" | "printer" | "reload" | "repeat" | "rotate-cw" | "rotate-ccw" | "search" | "share" | "sidebar" | "sidebar-hide" | "sidebar-show" | "sign-in" | "sign-out" | "slash" | "slash-square" | "sort-asc" | "sort-desc" | "switcher" | "sync" | "sync-alert" | "sync-reverse" | "tag" | "toggle-left" | "toggle-right" | "top" | "trash" | "type" | "unfold-close" | "unfold-open" | "upload" | "zoom-in" | "zoom-out" | "compass" | "crosshair" | "map" | "map-pin" | "navigation" | "navigation-alt" | "redirect" | "target" | "camera" | "camera-off" | "cast" | "closed-caption" | "fast-forward" | "film" | "headphones" | "image" | "music" | "pause" | "pause-circle" | "play" | "play-circle" | "radio" | "rewind" | "rss" | "skip-back" | "skip-forward" | "speaker" | "stop-circle" | "volume" | "volume-down" | "volume-2" | "volume-x" | "wifi" | "wifi-off" | "ampersand" | "beaker" | "bucket" | "bulb" | "circle" | "circle-dot" | "circle-fill" | "circle-half" | "diamond" | "diamond-fill" | "disc" | "dot" | "dot-half" | "droplet" | "flag" | "gift" | "government" | "handshake" | "hash" | "hexagon" | "hexagon-fill" | "labyrinth" | "layers" | "moon" | "octagon" | "outline" | "random" | "rocket" | "sparkle" | "square" | "square-fill" | "sun" | "triangle" | "triangle-fill" | "truck" | "wand" | "zap" | "zap-off" | "minus" | "minus-circle" | "minus-circle-fill" | "minus-plus" | "minus-plus-circle" | "minus-plus-square" | "minus-square" | "minus-square-fill" | "plus" | "plus-circle" | "plus-circle-fill" | "plus-square" | "bug" | "certificate" | "eye" | "eye-off" | "fingerprint" | "key" | "keychain" | "lock" | "lock-fill" | "lock-off" | "shield" | "shield-alert" | "shield-check" | "shield-off" | "shield-x" | "token" | "unlock" | "verified" | "wall" | "alert-circle" | "alert-circle-fill" | "alert-diamond" | "alert-diamond-fill" | "alert-octagon" | "alert-octagon-fill" | "alert-triangle" | "alert-triangle-fill" | "check" | "check-circle" | "check-circle-fill" | "check-diamond" | "check-diamond-fill" | "check-hexagon" | "check-hexagon-fill" | "check-square" | "check-square-fill" | "skip" | "x" | "x-circle" | "x-circle-fill" | "x-diamond" | "x-diamond-fill" | "x-hexagon" | "x-hexagon-fill" | "x-square" | "x-square-fill" | "docs" | "docs-download" | "docs-link" | "guide" | "guide-link" | "help" | "info" | "info-fill" | "learn" | "learn-link" | "support" | "accessibility" | "folder-users" | "frown" | "identity-service" | "identity-user" | "meh" | "robot" | "smile" | "user" | "user-check" | "user-circle" | "user-circle-fill" | "user-minus" | "user-plus" | "user-x" | "users"; -} -//# sourceMappingURL=counter.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/counter.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/reporting/counter.d.ts.map deleted file mode 100644 index 08eef1caa1..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/counter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counter.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/reporting/counter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,gBAAgB,CAAC;AAExB,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,SAAS,CAAC,4BAA4B,CAAC;IACtF,IAAI,KAAK,oBAKR;IAED,IAAI,IAAI,snTAEP;CAuDF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/donut-chart.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/reporting/donut-chart.d.ts deleted file mode 100644 index c3735a37b5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/donut-chart.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import './donut-chart.scss'; -import Component from '@glimmer/component'; -export interface SSUReportingDonutChartSignature { - Args: { - data: { - value: number; - label: string; - }[]; - title: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SSUReportingDonutChart extends Component { - get data(): { - scaleIndex: number; - value: number; - label: string; - }[]; - get total(): number; - get a11yLabel(): string; - getOffset(width: number, height: number): string; - getInnerRadius(width: number, height: number): number; - getOuterRadius(width: number, height: number): number; -} -//# sourceMappingURL=donut-chart.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/donut-chart.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/reporting/donut-chart.d.ts.map deleted file mode 100644 index 1da1b1004a..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/donut-chart.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"donut-chart.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/reporting/donut-chart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACzC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAS,CAAC,+BAA+B,CAAC;IAC5F,IAAI,IAAI;;eAXS,MAAM;eAAS,MAAM;QAkBrC;IAED,IAAI,KAAK,WAIR;IAED,IAAI,SAAS,WAUZ;IAED,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAIvC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAM5C,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CA0I7C"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/global-lease.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/reporting/global-lease.d.ts deleted file mode 100644 index e341f5bc5f..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/global-lease.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import './global-lease.scss'; -export interface GlobalLeaseSignature { - Args: { - count: number; - quota: number; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class GlobalLease extends Component { - get percentage(): number; - get progressFillClass(): "ssu-global-lease__progress-fill--low" | "ssu-global-lease__progress-fill--medium" | "ssu-global-lease__progress-fill--high"; - get formattedCount(): string; -} -//# sourceMappingURL=global-lease.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/global-lease.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/reporting/global-lease.d.ts.map deleted file mode 100644 index 5f3fd57df7..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/global-lease.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"global-lease.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/reporting/global-lease.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACtE,IAAI,UAAU,WAEb;IAED,IAAI,iBAAiB,iIAQpB;IAED,IAAI,cAAc,WASjB;CAiEF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/horizontal-bar-chart.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/reporting/horizontal-bar-chart.d.ts deleted file mode 100644 index b757699c67..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/horizontal-bar-chart.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import './horizontal-bar-chart.scss'; -import Component from '@glimmer/component'; -import type { SimpleDatum } from '../../../types/reporting/index.ts'; -export interface SSUReportingHorizontalBarChartSignature { - Args: { - data: SimpleDatum[]; - title: string; - description?: string; - linkUrl?: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SSUReportingHorizontalBarChart extends Component { - xRangeOffsetWidth: number; - get data(): SimpleDatum[]; - get total(): number; - get a11yLabel(): string; - get yDomain(): string[]; - get xDomain(): number[]; - get rangeHeight(): number; - get yRange(): number[]; - getXRange: (width: number) => number[]; - handleAxisOffset: (offsetWidth: number) => void; -} -//# sourceMappingURL=horizontal-bar-chart.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/reporting/horizontal-bar-chart.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/reporting/horizontal-bar-chart.d.ts.map deleted file mode 100644 index 433c5bc7c0..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/reporting/horizontal-bar-chart.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-bar-chart.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/reporting/horizontal-bar-chart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,6BAA6B,CAAC;AACrC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAiB3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAErE,MAAM,WAAW,uCAAuC;IACtD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW,EAAE,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,8BAA+B,SAAQ,SAAS,CAAC,uCAAuC,CAAC;IACnG,iBAAiB,SAAK;IAE/B,IAAI,IAAI,kBAOP;IAED,IAAI,KAAK,WAIR;IAED,IAAI,SAAS,WAUZ;IAED,IAAI,OAAO,aAEV;IAED,IAAI,OAAO,aAEV;IAED,IAAI,WAAW,WAEd;IAED,IAAI,MAAM,aAET;IAED,SAAS,UAAW,MAAM,cAExB;IAEF,gBAAgB,gBAAiB,MAAM,UAErC;CAqHH"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugin-card.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugin-card.d.ts deleted file mode 100644 index 1d645a0da5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugin-card.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import './plugin-card.scss'; -import type { RegistryPlugin } from '../../../types/vault-registry'; -export interface Plugin { - Args: { - plugin: RegistryPlugin; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class PluginCard extends Component { - get isEnterprisePlugin(): boolean; - get pluginPublishDate(): string; -} -//# sourceMappingURL=plugin-card.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugin-card.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugin-card.d.ts.map deleted file mode 100644 index 4455c733b5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugin-card.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plugin-card.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/vault-registry/plugin-card.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE;QACJ,MAAM,EAAE,cAAc,CAAC;KACxB,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAAS,CAAC,MAAM,CAAC;IACvD,IAAI,kBAAkB,YAErB;IAED,IAAI,iBAAiB,WAEpB;CAyHF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugins.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugins.d.ts deleted file mode 100644 index 8a6bef6656..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugins.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import type { RegistryPlugin } from '../../../types/vault-registry'; -export interface PluginList { - Args: { - plugins?: RegistryPlugin[]; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class Plugins extends Component { - get plugins(): RegistryPlugin[] | undefined; -} -//# sourceMappingURL=plugins.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugins.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugins.d.ts.map deleted file mode 100644 index 846057d462..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/vault-registry/plugins.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/vault-registry/plugins.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;KAC5B,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS,CAAC,UAAU,CAAC;IACxD,IAAI,OAAO,iCAEV;CAgBF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/views/dashboard.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/views/dashboard.d.ts deleted file mode 100644 index bf77f845d5..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/views/dashboard.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Component from '@glimmer/component'; -import './dashboard.scss'; -import type { UsageDashboardData, SimpleDatum, getUsageDataFunction } from '../../../types'; -import type { IconName } from '@hashicorp/flight-icons/svg'; -import type ReportingAnalyticsService from '../../../services/reporting-analytics'; -interface CounterBlock { - title: string; - tooltipMessage: string; - data: number; - icon?: IconName; - suffix?: string; - link?: string; - emptyText?: string; - emptyLink?: string; -} -export interface SSUViewDashboardSignature { - Args: { - onFetchUsageData: getUsageDataFunction; - isVaultDedicated: boolean; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SSUViewDashboard extends Component { - readonly reportingAnalytics: ReportingAnalyticsService; - data?: UsageDashboardData; - lastUpdatedTime: string; - error?: unknown; - constructor(owner: unknown, args: SSUViewDashboardSignature['Args']); - fetchAllData: () => void; - handleTrackAnalyticsEvent: (eventName: string, properties?: object, options?: object) => void; - handleTrackSurveyLink: () => void; - handleRefresh: () => void; - getBarChartData: (map: Record, exclude?: string[]) => SimpleDatum[]; - get isVaultDedicated(): boolean; - get kvSecretsTooltipMessage(): string; - get counters(): CounterBlock[]; - get namespace(): string; -} -export {}; -//# sourceMappingURL=dashboard.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/views/dashboard.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/views/dashboard.d.ts.map deleted file mode 100644 index 3ece4eed56..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/views/dashboard.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/views/dashboard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,kBAAkB,CAAC;AAO1B,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAS5D,OAAO,KAAK,yBAAyB,MAAM,uCAAuC,CAAC;AAEnF,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE;QACJ,gBAAgB,EAAE,oBAAoB,CAAC;QACvC,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AACD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAS,CAAC,yBAAyB,CAAC;IAChF,SAA0B,kBAAkB,EAAE,yBAAyB,CAAC;IAGxE,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAG1B,eAAe,EAAE,MAAM,CAAM;IAG7B,KAAK,CAAC,EAAE,OAAO,CAAC;gBAEJ,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC;IAKnE,YAAY,EAAE,MAAM,IAAI,CAUtB;IAEF,yBAAyB,cACZ,MAAM,eACJ,MAAM,YACT,MAAM,UAGhB;IAEF,qBAAqB,EAAE,MAAM,IAAI,CAE/B;IAEF,aAAa,EAAE,MAAM,IAAI,CAGvB;IAEF,eAAe,EAAE,CACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,KACf,WAAW,EAAE,CAWhB;IAEF,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,IAAI,uBAAuB,IAAI,MAAM,CAepC;IAED,IAAI,QAAQ,IAAI,YAAY,EAAE,CAgC7B;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;CAwMF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/views/secret-inventory.d.ts b/ui/vault-reporting/declarations/components/vault-reporting/views/secret-inventory.d.ts deleted file mode 100644 index 5324b3789c..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/views/secret-inventory.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import { type FilterFieldDefinition } from '../filter-bar'; -import './secret-inventory.scss'; -import Component from '@glimmer/component'; -import { type Filter } from '@hashicorp/vault-reporting/utils/cel'; -export interface SecretInventorySignature { - Args: { - onFilterApplied: (value: string) => void; - filterString: string; - }; - Blocks: { - default: []; - }; - Element: HTMLElement; -} -export default class SecretInventory extends Component { - quickFilters: { - label: string; - applyFilter: () => void; - }[]; - filterFieldDefinitions: FilterFieldDefinition[]; - handleApplyFilters: (filters: Filter[]) => void; - get appliedFilters(): Filter[]; -} -//# sourceMappingURL=secret-inventory.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/components/vault-reporting/views/secret-inventory.d.ts.map b/ui/vault-reporting/declarations/components/vault-reporting/views/secret-inventory.d.ts.map deleted file mode 100644 index 36fa29c04a..0000000000 --- a/ui/vault-reporting/declarations/components/vault-reporting/views/secret-inventory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"secret-inventory.d.ts","sourceRoot":"","sources":["../../../../src/components/vault-reporting/views/secret-inventory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAkB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,yBAAyB,CAAC;AACjC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAEL,KAAK,MAAM,EAEZ,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE;QACJ,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACzC,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IAEF,OAAO,EAAE,WAAW,CAAC;CACtB;AAQD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;IAC9E,YAAY;;;QAyEV;IACF,sBAAsB,EAAE,qBAAqB,EAAE,CAgD7C;IACF,kBAAkB,YAAa,MAAM,EAAE,UAErC;IAEF,IAAI,cAAc,aAKjB;CA2EF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/modifiers/axis-offset.d.ts b/ui/vault-reporting/declarations/modifiers/axis-offset.d.ts deleted file mode 100644 index 3fccd56fb6..0000000000 --- a/ui/vault-reporting/declarations/modifiers/axis-offset.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -/** - * By default the axis elements are outside of the bounds of the svg and rely on the containing element having - * enough padding to compensate. A fixed padding is not flexible to varied width of axis labels. - * - * This modifier is used to pad compensate for the width of the axis element. It also returns a value - * that can be used to set the chart width based on the offset amount. - */ -declare const _default: import("ember-modifier").FunctionBasedModifier<{ - Args: { - Positional: [(offset: number) => unknown, additionalPadding?: number | undefined]; - Named: import("ember-modifier/-private/signature").EmptyObject; - }; - Element: SVGElement; -}>; -export default _default; -//# sourceMappingURL=axis-offset.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/modifiers/axis-offset.d.ts.map b/ui/vault-reporting/declarations/modifiers/axis-offset.d.ts.map deleted file mode 100644 index a72f36af8d..0000000000 --- a/ui/vault-reporting/declarations/modifiers/axis-offset.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"axis-offset.d.ts","sourceRoot":"","sources":["../../src/modifiers/axis-offset.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH;;;;;;GAMG;;;8BAKY,MAAM,KAAK,OAAO;;;;;AAJjC,wBAoBE"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/modifiers/css-custom-property.d.ts b/ui/vault-reporting/declarations/modifiers/css-custom-property.d.ts deleted file mode 100644 index 8563c9ce8d..0000000000 --- a/ui/vault-reporting/declarations/modifiers/css-custom-property.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -/** - * Applies and updates a custom CSS property based on updates to a tracked/computed ember value. - */ -declare const _default: import("ember-modifier").FunctionBasedModifier<{ - Args: { - Positional: [string, string]; - Named: import("ember-modifier/-private/signature").EmptyObject; - }; - Element: HTMLElement; -}>; -export default _default; -//# sourceMappingURL=css-custom-property.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/modifiers/css-custom-property.d.ts.map b/ui/vault-reporting/declarations/modifiers/css-custom-property.d.ts.map deleted file mode 100644 index 4fbe642dfd..0000000000 --- a/ui/vault-reporting/declarations/modifiers/css-custom-property.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-custom-property.d.ts","sourceRoot":"","sources":["../../src/modifiers/css-custom-property.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;;;;;;;;AACH,wBAgBG"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/services/reporting-analytics.d.ts b/ui/vault-reporting/declarations/services/reporting-analytics.d.ts deleted file mode 100644 index c92b28ee52..0000000000 --- a/ui/vault-reporting/declarations/services/reporting-analytics.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import Service from '@ember/service'; -/** - * This service is used to look up the `analytics` service in the host application and track events if it exists. If it doesn't exist - * or the implementation breaks it falls back gracefully to do nothing. - */ -export default class ReportingAnalytics extends Service { - get analytics(): { - trackEvent: (event: string, properties?: object, options?: object) => void; - } | undefined; - trackEvent(event: string, properties?: object, options?: object): void; -} -declare module '@ember/service' { - interface Registry { - reportingAnalytics: ReportingAnalytics; - } -} -//# sourceMappingURL=reporting-analytics.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/services/reporting-analytics.d.ts.map b/ui/vault-reporting/declarations/services/reporting-analytics.d.ts.map deleted file mode 100644 index 897b491602..0000000000 --- a/ui/vault-reporting/declarations/services/reporting-analytics.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reporting-analytics.d.ts","sourceRoot":"","sources":["../../src/services/reporting-analytics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,OAAO;IAGrD,IAAI,SAAS,IAEP;QACE,UAAU,EAAE,CACV,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM,KACb,IAAI,CAAC;KACX,GACD,SAAS,CACd;IAED,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAahE;AAGD,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,QAAQ;QAChB,kBAAkB,EAAE,kBAAkB,CAAC;KACxC;CACF"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/template-registry.d.ts b/ui/vault-reporting/declarations/template-registry.d.ts deleted file mode 100644 index 3aa99f5c33..0000000000 --- a/ui/vault-reporting/declarations/template-registry.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -//# sourceMappingURL=template-registry.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/template-registry.d.ts.map b/ui/vault-reporting/declarations/template-registry.d.ts.map deleted file mode 100644 index 9579b870d9..0000000000 --- a/ui/vault-reporting/declarations/template-registry.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA;;;GAGG"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/types/index.d.ts b/ui/vault-reporting/declarations/types/index.d.ts deleted file mode 100644 index 9cf7a27a49..0000000000 --- a/ui/vault-reporting/declarations/types/index.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -type ISODateString = `${number}${number}-${number}${number}-${number}${number}`; -type ISOTimeString = `${number}${number}:${number}${number}:${number}${number}`; -type ISODateTimeString = `${ISODateString}T${ISOTimeString}`; -export interface TimeSeriesDatum { - date: ISODateTimeString; - value: number; -} -export interface SimpleDatum { - value: number; - label: string; -} -export declare enum REPLICATION_ENABLED_STATE { - PRIMARY = "primary", - SECONDARY = "secondary", - BOOTSTRAPPING = "bootstrapping" -} -export declare const REPLICATION_DISABLED_STATE = "disabled"; -export interface UsageDashboardData { - authMethods: Record; - leasesByAuthMethod: Record; - kvv1Secrets: number; - kvv2Secrets: number; - leaseCountQuotas: { - globalLeaseCountQuota: { - capacity: number; - count: number; - name: string; - }; - totalLeaseCountQuotas: number; - }; - namespaces: number; - secretSync: { - totalDestinations: number; - }; - pki: { - totalIssuers: number; - totalRoles: number; - }; - replicationStatus: { - drPrimary: boolean; - drState: REPLICATION_ENABLED_STATE | typeof REPLICATION_DISABLED_STATE; - prPrimary: boolean; - prState: REPLICATION_ENABLED_STATE | typeof REPLICATION_DISABLED_STATE; - }; - secretEngines: Record; -} -export type getUsageDataFunction = () => Promise; -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/types/index.d.ts.map b/ui/vault-reporting/declarations/types/index.d.ts.map deleted file mode 100644 index 67b195b948..0000000000 --- a/ui/vault-reporting/declarations/types/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,KAAK,aAAa,GAAG,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;AAChF,KAAK,aAAa,GAAG,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;AAChF,KAAK,iBAAiB,GAAG,GAAG,aAAa,IAAI,aAAa,EAAE,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,oBAAY,yBAAyB;IACnC,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,aAAa,kBAAkB;CAChC;AACD,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,qBAAqB,EAAE;YACrB,QAAQ,EAAE,MAAM,CAAC;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;QACF,qBAAqB,EAAE,MAAM,CAAC;KAC/B,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE;QAAE,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,GAAG,EAAE;QACH,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE;QACjB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,yBAAyB,GAAG,OAAO,0BAA0B,CAAC;QACvE,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,yBAAyB,GAAG,OAAO,0BAA0B,CAAC;KACxE,CAAC;IACF,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/types/reporting/index.d.ts b/ui/vault-reporting/declarations/types/reporting/index.d.ts deleted file mode 100644 index 9930d4a224..0000000000 --- a/ui/vault-reporting/declarations/types/reporting/index.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -type ISODateString = `${number}${number}-${number}${number}-${number}${number}`; -type ISOTimeString = `${number}${number}:${number}${number}:${number}${number}`; -type ISODateTimeString = `${ISODateString}T${ISOTimeString}`; -export interface TimeSeriesDatum { - date: ISODateTimeString; - value: number; -} -export interface SimpleDatum { - value: number; - label: string; -} -export interface UsageDashboardData { - auth_methods: Record; - kvv1_secrets: number; - kvv2_secrets: number; - lease_count_quotas: { - global_lease_count_quota: { - capacity: number; - count: number; - name: string; - }; - total_lease_count_quotas: number; - }; - namespaces: number; - secrets_sync: number; - pki: { - total_issuers: number; - total_roles: number; - }; - replication_status: { - dr_primary: boolean; - dr_state: string; - pr_primary: boolean; - pr_state: string; - }; - secret_engines: Record; -} -export interface IUsageDashboardService { - getUsageData(): Promise; -} -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/types/reporting/index.d.ts.map b/ui/vault-reporting/declarations/types/reporting/index.d.ts.map deleted file mode 100644 index 1ab64793a6..0000000000 --- a/ui/vault-reporting/declarations/types/reporting/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/reporting/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,KAAK,aAAa,GAAG,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;AAChF,KAAK,aAAa,GAAG,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;AAChF,KAAK,iBAAiB,GAAG,GAAG,aAAa,IAAI,aAAa,EAAE,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE;QAClB,wBAAwB,EAAE;YACxB,QAAQ,EAAE,MAAM,CAAC;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;QACF,wBAAwB,EAAE,MAAM,CAAC;KAClC,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE;QACH,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,kBAAkB,EAAE;QAClB,UAAU,EAAE,OAAO,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,OAAO,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC7C"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/types/vault-registry/index.d.ts b/ui/vault-reporting/declarations/types/vault-registry/index.d.ts deleted file mode 100644 index bd2b697044..0000000000 --- a/ui/vault-reporting/declarations/types/vault-registry/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -import type { HdsBadgeSignature } from '@hashicorp/design-system-components/components/hds/badge/index'; -type PluginTag = 'built-in' | 'official' | 'partner' | 'community' | 'enterprise'; -export interface RegistryPlugin { - id: string; - pluginName: string; - author: string; - description: string; - externalUrl: string; - pluginType: 'AUTH' | 'SECRET' | 'DATABASE'; - pluginVersion: string; - isRegistered?: boolean; - official: OfficialPlugin; - tags: PluginTag; - publishDate: Date; -} -interface OfficialPlugin { - author: HdsBadgeSignature['Args']['icon']; - tags: string; -} -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/types/vault-registry/index.d.ts.map b/ui/vault-reporting/declarations/types/vault-registry/index.d.ts.map deleted file mode 100644 index b7b4557aeb..0000000000 --- a/ui/vault-reporting/declarations/types/vault-registry/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/vault-registry/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gEAAgE,CAAC;AAExG,KAAK,SAAS,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd"} \ No newline at end of file diff --git a/ui/vault-reporting/declarations/utils/cel.d.ts b/ui/vault-reporting/declarations/utils/cel.d.ts deleted file mode 100644 index 452e609e1f..0000000000 --- a/ui/vault-reporting/declarations/utils/cel.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -export interface Filter { - field: string; - operator: '>=' | '<=' | '>' | '<' | '=' | '!=' | 'IN' | 'NOT IN'; - value: { - type: 'timestamp' | 'list' | 'string' | 'number'; - value: unknown; - }; -} -export declare const expressionToFilters: (expression: string) => Filter[]; -export declare const filtersToExpression: (filters: Filter[]) => string; -//# sourceMappingURL=cel.d.ts.map \ No newline at end of file diff --git a/ui/vault-reporting/declarations/utils/cel.d.ts.map b/ui/vault-reporting/declarations/utils/cel.d.ts.map deleted file mode 100644 index 41061b0bf1..0000000000 --- a/ui/vault-reporting/declarations/utils/cel.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cel.d.ts","sourceRoot":"","sources":["../../src/utils/cel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsCH,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,CAAC;IACjE,KAAK,EAAE;QACL,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;QACjD,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAiCD,eAAO,MAAM,mBAAmB,eAAgB,MAAM,aA4BrD,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,EAAE,WAepD,CAAC"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/base/title-row.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/base/title-row.js deleted file mode 100644 index 5090b8fb02..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/base/title-row.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/base/title-row"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/cluster-replication.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/cluster-replication.js deleted file mode 100644 index c28ca992db..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/cluster-replication.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/cluster-replication"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/counter.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/counter.js deleted file mode 100644 index c5e796315f..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/counter.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/counter"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/dashboard/export.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/dashboard/export.js deleted file mode 100644 index 91b64a1750..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/dashboard/export.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/dashboard/export"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/donut-chart.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/donut-chart.js deleted file mode 100644 index d070ad21d0..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/donut-chart.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/donut-chart"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/global-lease.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/global-lease.js deleted file mode 100644 index da3330a980..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/global-lease.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/global-lease"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/horizontal-bar-chart.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/horizontal-bar-chart.js deleted file mode 100644 index 879dbacc82..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/horizontal-bar-chart.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/horizontal-bar-chart"; diff --git a/ui/vault-reporting/dist/_app_/components/vault-reporting/views/dashboard.js b/ui/vault-reporting/dist/_app_/components/vault-reporting/views/dashboard.js deleted file mode 100644 index 4206d04164..0000000000 --- a/ui/vault-reporting/dist/_app_/components/vault-reporting/views/dashboard.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/components/vault-reporting/views/dashboard"; diff --git a/ui/vault-reporting/dist/_app_/modifiers/axis-offset.js b/ui/vault-reporting/dist/_app_/modifiers/axis-offset.js deleted file mode 100644 index c7496c4360..0000000000 --- a/ui/vault-reporting/dist/_app_/modifiers/axis-offset.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/modifiers/axis-offset"; diff --git a/ui/vault-reporting/dist/_app_/modifiers/css-custom-property.js b/ui/vault-reporting/dist/_app_/modifiers/css-custom-property.js deleted file mode 100644 index 46fcd8a9da..0000000000 --- a/ui/vault-reporting/dist/_app_/modifiers/css-custom-property.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/modifiers/css-custom-property"; diff --git a/ui/vault-reporting/dist/_app_/services/reporting-analytics.js b/ui/vault-reporting/dist/_app_/services/reporting-analytics.js deleted file mode 100644 index 3c148535ae..0000000000 --- a/ui/vault-reporting/dist/_app_/services/reporting-analytics.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -export { default } from "@hashicorp/vault-reporting/services/reporting-analytics"; diff --git a/ui/vault-reporting/dist/components/vault-reporting/base/title-row.js b/ui/vault-reporting/dist/components/vault-reporting/base/title-row.js deleted file mode 100644 index efad32f621..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/base/title-row.js +++ /dev/null @@ -1,54 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsTextBody, HdsLinkStandalone, HdsTextDisplay } from '@hashicorp/design-system-components/components'; -import { on } from '@ember/modifier'; -import { service } from '@ember/service'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; -import { g, i } from 'decorator-transforms/runtime'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class TitleRow extends Component { - static { - g(this.prototype, "reportingAnalytics", [service]); - } - #reportingAnalytics = (i(this, "reportingAnalytics"), void 0); - get hasLink() { - return this.args.linkUrl; - } - get linkText() { - return this.args.linkText || 'View all'; - } - get linkUrl() { - return this.args.linkUrl || '#'; - } - get linkIcon() { - return this.args.linkIcon || 'arrow-right'; - } - get linkTarget() { - return this.args.linkTarget || '_self'; - } - handleLinkClick = () => { - this.reportingAnalytics.trackEvent(`card_link`, { - card: this.args.title, - link: this.linkText, - target: this.linkTarget - }); - }; - static { - setComponentTemplate(precompileTemplate("\n
\n
\n \n {{@title}}\n \n\n {{#if this.hasLink}}\n \n {{/if}}\n
\n\n {{#if @description}}\n \n {{@description}}\n \n {{/if}}\n
\n ", { - strictMode: true, - scope: () => ({ - HdsTextDisplay, - HdsLinkStandalone, - on, - HdsTextBody - }) - }), this); - } -} - -export { TitleRow as default }; -//# sourceMappingURL=title-row.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/base/title-row.js.map b/ui/vault-reporting/dist/components/vault-reporting/base/title-row.js.map deleted file mode 100644 index 13db51b5be..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/base/title-row.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"title-row.js","sources":["../../../../src/components/vault-reporting/base/title-row.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport Component from '@glimmer/component';\nimport {\n HdsTextDisplay,\n HdsTextBody,\n HdsLinkStandalone,\n} from '@hashicorp/design-system-components/components';\nimport './title-row.scss';\nimport { on } from '@ember/modifier';\n\nimport { service } from '@ember/service';\nimport type ReportingAnalyticsService from '../../../services/reporting-analytics';\nimport type { SafeString } from '@ember/template';\n\n/**\n * TitleRow Component\n *\n * A reusable component that displays a title with an optional description and link.\n * Used in dashboard cards to create consistent header styling.\n */\nexport interface TitleRowSignature {\n Args: {\n /** The main title text to display */\n title: string;\n /** Optional description text to display beneath the title */\n description?: string | SafeString;\n /** Custom text for the link (defaults to \"View all\") */\n linkText?: string;\n /** Icon to display with the link (defaults to \"arrow-right\") */\n linkIcon?: HdsLinkStandalone['icon'];\n /** URL for the link - if not provided, no link will be shown */\n linkUrl?: string;\n /** Target for the link - defaults to \"_self\" */\n linkTarget?: '_blank' | '_self';\n };\n\n Blocks: {\n default: [];\n };\n\n Element: HTMLElement;\n}\n\nexport default class TitleRow extends Component {\n @service declare readonly reportingAnalytics: ReportingAnalyticsService;\n\n get hasLink() {\n return this.args.linkUrl;\n }\n\n get linkText() {\n return this.args.linkText || 'View all';\n }\n\n get linkUrl() {\n return this.args.linkUrl || '#';\n }\n\n get linkIcon() {\n return this.args.linkIcon || 'arrow-right';\n }\n\n get linkTarget() {\n return this.args.linkTarget || '_self';\n }\n\n handleLinkClick = () => {\n this.reportingAnalytics.trackEvent(`card_link`, {\n card: this.args.title,\n link: this.linkText,\n target: this.linkTarget,\n });\n };\n\n \n}\n"],"names":["TitleRow","Component","g","prototype","service","i","void 0","hasLink","args","linkUrl","linkText","linkIcon","linkTarget","handleLinkClick","reportingAnalytics","trackEvent","card","title","link","target","setComponentTemplate","precompileTemplate","strictMode","scope","HdsTextDisplay","HdsLinkStandalone","on","HdsTextBody"],"mappings":";;;;;;;;AAAA;;;AAGC;AA4Cc,MAAMA,iBAAiBC,SAAU,CAAA;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,oBAAA,EAAA,CAC7CC,OAAA,CAAA,CAAA;AAAA;AAAA,EAAA,mBAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,oBAAA,CAAA,EAAAC,MAAA;EAED,IAAIC,OAAUA,GAAA;AACZ,IAAA,OAAO,IAAI,CAACC,IAAI,CAACC,OAAO;AAC1B;EAEA,IAAIC,QAAWA,GAAA;AACb,IAAA,OAAO,IAAI,CAACF,IAAI,CAACE,QAAQ,IAAI,UAAA;AAC/B;EAEA,IAAID,OAAUA,GAAA;AACZ,IAAA,OAAO,IAAI,CAACD,IAAI,CAACC,OAAO,IAAI,GAAA;AAC9B;EAEA,IAAIE,QAAWA,GAAA;AACb,IAAA,OAAO,IAAI,CAACH,IAAI,CAACG,QAAQ,IAAI,aAAA;AAC/B;EAEA,IAAIC,UAAaA,GAAA;AACf,IAAA,OAAO,IAAI,CAACJ,IAAI,CAACI,UAAU,IAAI,OAAA;AACjC;EAEAC,eAAkB,GAAAA,MAAA;AAChB,IAAA,IAAI,CAACC,kBAAkB,CAACC,UAAU,CAAC,WAAW,EAAE;AAC9CC,MAAAA,IAAA,EAAM,IAAI,CAACR,IAAI,CAACS,KAAK;MACrBC,IAAM,EAAA,IAAI,CAACR,QAAQ;MACnBS,MAAQ,EAAA,IAAI,CAACP;AACf,KAAA,CAAA;GACA;AAEF,EAAA;IAAAQ,oBAAA,CAAAC,kBAAA,CAoCA,k1BAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,cAAA;QAAAC,iBAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/cluster-replication.js b/ui/vault-reporting/dist/components/vault-reporting/cluster-replication.js deleted file mode 100644 index 20b4255bbf..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/cluster-replication.js +++ /dev/null @@ -1,67 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsBadge, HdsTextBody, HdsCardContainer } from '@hashicorp/design-system-components/components'; -import TitleRow from './base/title-row.js'; -import { htmlSafe } from '@ember/template'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class ClusterReplication extends Component { - getState = (state = 'disabled') => { - return state; - }; - get isEmpty() { - return this.getState(this.args.disasterRecoveryState) === 'disabled' && this.getState(this.args.performanceState) === 'disabled'; - } - get description() { - if (this.isEmpty) { - return htmlSafe('Enable replication to replicate data across clusters.'); - } else { - return 'Status of disaster recovery and performance replication.'; - } - } - getIcon = (state = 'disabled') => { - const iconMap = { - disabled: 'x', - primary: 'check', - secondary: 'check', - bootstrapping: 'loading' - }; - return iconMap[state] || iconMap['disabled']; - }; - getColor = (state = 'disabled') => { - const colorMap = { - disabled: 'neutral', - primary: 'success', - secondary: 'success', - bootstrapping: 'neutral' - }; - return colorMap[state] || colorMap['disabled']; - }; - get linkUrl() { - const { - isVaultDedicated = false - } = this.args; - if (isVaultDedicated) { - return; - } - return 'replication'; - } - static { - setComponentTemplate(precompileTemplate("\n \n \n\n \n Disaster Recovery\n \n \n\n \n Performance\n \n \n\n \n ", { - strictMode: true, - scope: () => ({ - HdsCardContainer, - TitleRow, - HdsTextBody, - HdsBadge - }) - }), this); - } -} - -export { ClusterReplication as default }; -//# sourceMappingURL=cluster-replication.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/cluster-replication.js.map b/ui/vault-reporting/dist/components/vault-reporting/cluster-replication.js.map deleted file mode 100644 index 19304061e4..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/cluster-replication.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cluster-replication.js","sources":["../../../src/components/vault-reporting/cluster-replication.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport Component from '@glimmer/component';\nimport {\n HdsCardContainer,\n HdsTextBody,\n HdsBadge,\n} from '@hashicorp/design-system-components/components';\nimport TitleRow from './base/title-row.gts';\nimport { REPLICATION_ENABLED_STATE } from '../../types/index.ts';\nimport type { IconName } from '@hashicorp/flight-icons/svg';\nimport { htmlSafe } from '@ember/template';\n\nimport './cluster-replication.scss';\n\nexport interface ClusterReplicationSignature {\n Args: {\n disasterRecoveryState: REPLICATION_ENABLED_STATE | 'disabled';\n performanceState: REPLICATION_ENABLED_STATE | 'disabled';\n isVaultDedicated: boolean;\n };\n\n Blocks: {\n default: [];\n };\n\n Element: HTMLElement;\n}\n\nexport default class ClusterReplication extends Component {\n getState = (state: REPLICATION_ENABLED_STATE | 'disabled' = 'disabled') => {\n return state;\n };\n\n get isEmpty() {\n return (\n this.getState(this.args.disasterRecoveryState) === 'disabled' &&\n this.getState(this.args.performanceState) === 'disabled'\n );\n }\n\n get description() {\n if (this.isEmpty) {\n return htmlSafe(\n 'Enable replication to replicate data across clusters.',\n );\n } else {\n return 'Status of disaster recovery and performance replication.';\n }\n }\n\n getIcon = (state: REPLICATION_ENABLED_STATE | 'disabled' = 'disabled') => {\n const iconMap: Record = {\n disabled: 'x',\n primary: 'check',\n secondary: 'check',\n bootstrapping: 'loading',\n };\n return iconMap[state] || iconMap['disabled'];\n };\n\n getColor = (state: REPLICATION_ENABLED_STATE | 'disabled' = 'disabled') => {\n const colorMap: Record = {\n disabled: 'neutral',\n primary: 'success',\n secondary: 'success',\n bootstrapping: 'neutral',\n };\n return colorMap[state] || colorMap['disabled'];\n };\n\n get linkUrl() {\n const { isVaultDedicated = false } = this.args;\n if (isVaultDedicated) {\n return;\n }\n return 'replication';\n }\n\n \n}\n"],"names":["ClusterReplication","Component","getState","state","isEmpty","args","disasterRecoveryState","performanceState","description","htmlSafe","getIcon","iconMap","disabled","primary","secondary","bootstrapping","getColor","colorMap","linkUrl","isVaultDedicated","setComponentTemplate","precompileTemplate","strictMode","scope","HdsCardContainer","TitleRow","HdsTextBody","HdsBadge"],"mappings":";;;;;;;AAAA;;;AAGC;AA6Bc,MAAMA,2BAA2BC,SAAU,CAAA;AACxDC,EAAAA,QAAA,GAAWA,CAACC,KAAmC,GAAa,UAAU,KAAA;AACpE,IAAA,OAAOA,KAAA;GACP;EAEF,IAAIC,OAAUA,GAAA;IACZ,OACE,IAAI,CAACF,QAAQ,CAAC,IAAI,CAACG,IAAI,CAACC,qBAAqB,CAAA,KAAM,cACnD,IAAI,CAACJ,QAAQ,CAAC,IAAI,CAACG,IAAI,CAACE,gBAAgB,CAAA,KAAM,UAChD;AACF;EAEA,IAAIC,WAAcA,GAAA;IAChB,IAAI,IAAI,CAACJ,OAAO,EAAE;MAChB,OAAOK,QACL,CAAA,8PAAA,CAAA;AAEJ,KAAO,MAAA;AACL,MAAA,OAAO,0DAAA;AACT;AACF;AAEAC,EAAAA,OAAA,GAAUA,CAACP,KAAmC,GAAa,UAAU,KAAA;AACnE,IAAA,MAAMQ,OAAoC,GAAA;AACxCC,MAAAA,QAAU,EAAA,GAAA;AACVC,MAAAA,OAAS,EAAA,OAAA;AACTC,MAAAA,SAAW,EAAA,OAAA;AACXC,MAAAA,aAAe,EAAA;KACjB;IACA,OAAOJ,OAAO,CAACR,KAAA,CAAM,IAAIQ,OAAO,CAAC,UAAW,CAAA;GAC5C;AAEFK,EAAAA,QAAA,GAAWA,CAACb,KAAmC,GAAa,UAAU,KAAA;AACpE,IAAA,MAAMc,QAA8C,GAAA;AAClDL,MAAAA,QAAU,EAAA,SAAA;AACVC,MAAAA,OAAS,EAAA,SAAA;AACTC,MAAAA,SAAW,EAAA,SAAA;AACXC,MAAAA,aAAe,EAAA;KACjB;IACA,OAAOE,QAAQ,CAACd,KAAA,CAAM,IAAIc,QAAQ,CAAC,UAAW,CAAA;GAC9C;EAEF,IAAIC,OAAUA,GAAA;IACZ,MAAM;AAAEC,MAAAA,gBAAmB,GAAA;KAAO,GAAG,IAAI,CAACd,IAAI;AAC9C,IAAA,IAAIc,gBAAkB,EAAA;AACpB,MAAA;AACF;AACA,IAAA,OAAO,aAAA;AACT;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA8CA,+nCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,gBAAA;QAAAC,QAAA;QAAAC,WAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/counter.js b/ui/vault-reporting/dist/components/vault-reporting/counter.js deleted file mode 100644 index e306ffebb7..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/counter.js +++ /dev/null @@ -1,46 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsLinkInline, HdsIcon, HdsTooltipButton, HdsTextBody } from '@hashicorp/design-system-components/components'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class SSUReportingCounter extends Component { - get shouldShowEmptyState() { - return this.args.count === 0 && this.args.emptyText; - } - get count() { - if (this.shouldShowEmptyState) { - return this.args.emptyText; - } - if (this.args.suffix) { - return `${this.args.count} ${this.args.suffix}`; - } - return this.args.count; - } - get icon() { - return this.args.icon || 'info'; - } - get link() { - if (this.shouldShowEmptyState && this.args.emptyLink) { - return this.args.emptyLink; - } - return this.args.link; - } - static { - setComponentTemplate(precompileTemplate("\n
\n
\n {{@title}}\n {{#if @tooltipMessage}}\n \n \n \n {{/if}}\n \n
\n\n \n {{#if this.link}}\n {{this.count}}\n \n {{else}}\n {{this.count}}\n {{/if}}\n \n
\n ", { - strictMode: true, - scope: () => ({ - HdsTextBody, - HdsTooltipButton, - HdsIcon, - HdsLinkInline - }) - }), this); - } -} - -export { SSUReportingCounter as default }; -//# sourceMappingURL=counter.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/counter.js.map b/ui/vault-reporting/dist/components/vault-reporting/counter.js.map deleted file mode 100644 index 24938f83ed..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counter.js","sources":["../../../src/components/vault-reporting/counter.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport Component from '@glimmer/component';\nimport {\n HdsTextBody,\n HdsIcon,\n HdsTooltipButton,\n HdsLinkInline,\n} from '@hashicorp/design-system-components/components';\nimport type { IconName } from '@hashicorp/flight-icons/svg';\n\nimport './counter.scss';\n\nexport interface SSUReportingCounterSignature {\n Args: {\n count: number;\n title: string;\n tooltipMessage?: string;\n icon?: IconName;\n suffix?: string;\n link?: string;\n emptyText?: string;\n emptyLink?: string;\n };\n\n Blocks: {\n default: [];\n };\n\n Element: HTMLElement;\n}\nexport default class SSUReportingCounter extends Component {\n get shouldShowEmptyState() {\n return this.args.count === 0 && this.args.emptyText;\n }\n\n get count() {\n if (this.shouldShowEmptyState) {\n return this.args.emptyText;\n }\n\n if (this.args.suffix) {\n return `${this.args.count} ${this.args.suffix}`;\n }\n\n return this.args.count;\n }\n\n get icon() {\n return this.args.icon || 'info';\n }\n\n get link() {\n if (this.shouldShowEmptyState && this.args.emptyLink) {\n return this.args.emptyLink;\n }\n return this.args.link;\n }\n\n \n}\n"],"names":["SSUReportingCounter","Component","shouldShowEmptyState","args","count","emptyText","suffix","icon","link","emptyLink","setComponentTemplate","precompileTemplate","strictMode","scope","HdsTextBody","HdsTooltipButton","HdsIcon","HdsLinkInline"],"mappings":";;;;;AAAA;;;AAGC;AA+Bc,MAAMA,4BAA4BC,SAAU,CAAA;EACzD,IAAIC,oBAAuBA,GAAA;AACzB,IAAA,OAAO,IAAI,CAACC,IAAI,CAACC,KAAK,KAAK,CAAA,IAAK,IAAI,CAACD,IAAI,CAACE,SAAS;AACrD;EAEA,IAAID,KAAQA,GAAA;IACV,IAAI,IAAI,CAACF,oBAAoB,EAAE;AAC7B,MAAA,OAAO,IAAI,CAACC,IAAI,CAACE,SAAS;AAC5B;AAEA,IAAA,IAAI,IAAI,CAACF,IAAI,CAACG,MAAM,EAAE;AACpB,MAAA,OAAO,CAAG,EAAA,IAAI,CAACH,IAAI,CAACC,KAAK,CAAI,CAAA,EAAA,IAAI,CAACD,IAAI,CAACG,MAAM,CAAE,CAAA;AACjD;AAEA,IAAA,OAAO,IAAI,CAACH,IAAI,CAACC,KAAK;AACxB;EAEA,IAAIG,IAAOA,GAAA;AACT,IAAA,OAAO,IAAI,CAACJ,IAAI,CAACI,IAAI,IAAI,MAAA;AAC3B;EAEA,IAAIC,IAAOA,GAAA;IACT,IAAI,IAAI,CAACN,oBAAoB,IAAI,IAAI,CAACC,IAAI,CAACM,SAAS,EAAE;AACpD,MAAA,OAAO,IAAI,CAACN,IAAI,CAACM,SAAS;AAC5B;AACA,IAAA,OAAO,IAAI,CAACN,IAAI,CAACK,IAAI;AACvB;AAEA,EAAA;IAAAE,oBAAA,CAAAC,kBAAA,CAqCA,o8BAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,WAAA;QAAAC,gBAAA;QAAAC,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/dashboard/export.js b/ui/vault-reporting/dist/components/vault-reporting/dashboard/export.js deleted file mode 100644 index bb7a2d7d36..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/dashboard/export.js +++ /dev/null @@ -1,68 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsDropdown } from '@hashicorp/design-system-components/components'; -import { on } from '@ember/modifier'; -import { fn } from '@ember/helper'; -import { service } from '@ember/service'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; -import { g, i } from 'decorator-transforms/runtime'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class DashboardExport extends Component { - static { - g(this.prototype, "reportingAnalytics", [service]); - } - #reportingAnalytics = (i(this, "reportingAnalytics"), void 0); - #getNestedRows(records, prefix = '') { - return Object.entries(records).map(([key, value]) => { - return [`${prefix} ${key}`, value]; - }); - } - handleTrackExportToggle = () => { - this.reportingAnalytics.trackEvent('export_toggle'); - }; - handleTrackExportOption = option => { - this.reportingAnalytics.trackEvent(`export_option`, { - option - }); - }; - get dataAsDownloadableJSONString() { - const { - data - } = this.args; - const file = new Blob([JSON.stringify(data, null, ' ')], { - type: 'application/json' - }); - return URL.createObjectURL(file); - } - get dataAsDownloadableCSVString() { - const headers = ['Metric', 'Count/Breakdown']; - // Manually define rows as looping through the data does not leave the most legible structure - const rows = [headers, ['Child Namespaces', this.args?.data?.namespaces || 0], ['Total KV Secrets', (this.args.data?.kvv1Secrets || 0) + (this.args.data?.kvv2Secrets || 0)], ['KV V1 Secrets', this.args.data?.kvv1Secrets || 0], ['KV V2 Secrets', this.args.data?.kvv2Secrets || 0], ['Secret Syncs', this.args.data?.secretSync?.totalDestinations || 0], ['PKI Roles', this.args.data?.pki?.totalRoles || 0], ...this.#getNestedRows(this.args.data?.secretEngines || {}, 'Secret Engine'), ...this.#getNestedRows(this.args.data?.authMethods || {}, 'Auth Method'), ['Global Lease Count', this.args.data?.leaseCountQuotas.globalLeaseCountQuota.count || 0], ['Global Lease Quota', this.args.data?.leaseCountQuotas.globalLeaseCountQuota.capacity || 0], ['Cluster Disaster Recovery', this.args?.data?.replicationStatus.drState || '-'], ['Cluster Disaster Recovery Primary', this.args?.data?.replicationStatus.drPrimary ?? '-'], ['Cluster Performance', this.args?.data?.replicationStatus.prState || '-'], ['Cluster Performance Primary', this.args?.data?.replicationStatus.prPrimary ?? '-']]; - // Escape double quotes, quote cell content and separate with comma - const csvString = rows.map(row => row.map(cell => { - const escaped = String(cell).replace(/"/g, '""'); - return `"${escaped}"`; - }).join(',')).join('\r\n'); - const blob = new Blob([csvString], { - type: 'text/csv' - }); - return URL.createObjectURL(blob); - } - static { - setComponentTemplate(precompileTemplate("\n {{#if @data}}\n \n \n JSON\n CSV\n \n {{/if}}\n ", { - strictMode: true, - scope: () => ({ - HdsDropdown, - on, - fn - }) - }), this); - } -} - -export { DashboardExport as default }; -//# sourceMappingURL=export.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/dashboard/export.js.map b/ui/vault-reporting/dist/components/vault-reporting/dashboard/export.js.map deleted file mode 100644 index 02277d7394..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/dashboard/export.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"export.js","sources":["../../../../src/components/vault-reporting/dashboard/export.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport Component from '@glimmer/component';\nimport { HdsDropdown } from '@hashicorp/design-system-components/components';\nimport { on } from '@ember/modifier';\nimport { fn } from '@ember/helper';\n\nimport type { UsageDashboardData } from '../../../types';\nimport type ReportingAnalyticsService from '../../../services/reporting-analytics';\nimport { service } from '@ember/service';\n\nexport interface DashboardExportSignature {\n Args: {\n data?: UsageDashboardData;\n };\n\n Blocks: {\n default: [];\n };\n Element: HTMLElement;\n}\n\nexport default class DashboardExport extends Component {\n @service declare readonly reportingAnalytics: ReportingAnalyticsService;\n\n #getNestedRows(records: Record, prefix: string = '') {\n return Object.entries(records).map(([key, value]) => {\n return [`${prefix} ${key}`, value];\n });\n }\n\n handleTrackExportToggle = () => {\n this.reportingAnalytics.trackEvent('export_toggle');\n };\n\n handleTrackExportOption = (option: string) => {\n this.reportingAnalytics.trackEvent(`export_option`, { option });\n };\n\n get dataAsDownloadableJSONString() {\n const { data } = this.args;\n const file = new Blob([JSON.stringify(data, null, ' ')], {\n type: 'application/json',\n });\n return URL.createObjectURL(file);\n }\n\n get dataAsDownloadableCSVString() {\n const headers = ['Metric', 'Count/Breakdown'];\n // Manually define rows as looping through the data does not leave the most legible structure\n const rows = [\n headers,\n ['Child Namespaces', this.args?.data?.namespaces || 0],\n [\n 'Total KV Secrets',\n (this.args.data?.kvv1Secrets || 0) + (this.args.data?.kvv2Secrets || 0),\n ],\n ['KV V1 Secrets', this.args.data?.kvv1Secrets || 0],\n ['KV V2 Secrets', this.args.data?.kvv2Secrets || 0],\n ['Secret Syncs', this.args.data?.secretSync?.totalDestinations || 0],\n ['PKI Roles', this.args.data?.pki?.totalRoles || 0],\n ...this.#getNestedRows(\n this.args.data?.secretEngines || {},\n 'Secret Engine',\n ),\n ...this.#getNestedRows(this.args.data?.authMethods || {}, 'Auth Method'),\n [\n 'Global Lease Count',\n this.args.data?.leaseCountQuotas.globalLeaseCountQuota.count || 0,\n ],\n [\n 'Global Lease Quota',\n this.args.data?.leaseCountQuotas.globalLeaseCountQuota.capacity || 0,\n ],\n [\n 'Cluster Disaster Recovery',\n this.args?.data?.replicationStatus.drState || '-',\n ],\n [\n 'Cluster Disaster Recovery Primary',\n this.args?.data?.replicationStatus.drPrimary ?? '-',\n ],\n [\n 'Cluster Performance',\n this.args?.data?.replicationStatus.prState || '-',\n ],\n [\n 'Cluster Performance Primary',\n this.args?.data?.replicationStatus.prPrimary ?? '-',\n ],\n ];\n // Escape double quotes, quote cell content and separate with comma\n const csvString = rows\n .map((row) =>\n row\n .map((cell) => {\n const escaped = String(cell).replace(/\"/g, '\"\"');\n return `\"${escaped}\"`;\n })\n .join(','),\n )\n .join('\\r\\n');\n\n const blob = new Blob([csvString], { type: 'text/csv' });\n\n return URL.createObjectURL(blob);\n }\n\n \n}\n"],"names":["DashboardExport","Component","g","prototype","service","i","void 0","#getNestedRows","records","prefix","Object","entries","map","key","value","handleTrackExportToggle","reportingAnalytics","trackEvent","handleTrackExportOption","option","dataAsDownloadableJSONString","data","args","file","Blob","JSON","stringify","type","URL","createObjectURL","dataAsDownloadableCSVString","headers","rows","namespaces","kvv1Secrets","kvv2Secrets","secretSync","totalDestinations","pki","totalRoles","secretEngines","authMethods","leaseCountQuotas","globalLeaseCountQuota","count","capacity","replicationStatus","drState","drPrimary","prState","prPrimary","csvString","row","cell","escaped","String","replace","join","blob","setComponentTemplate","precompileTemplate","strictMode","scope","HdsDropdown","on","fn"],"mappings":"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"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/donut-chart.js b/ui/vault-reporting/dist/components/vault-reporting/donut-chart.js deleted file mode 100644 index 5b4126f6df..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/donut-chart.js +++ /dev/null @@ -1,69 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsTextDisplay, HdsCardContainer } from '@hashicorp/design-system-components/components'; -import LinealArc from '@lineal-viz/lineal/components/lineal/arc/index.js'; -import LinealArcs from '@lineal-viz/lineal/components/lineal/arcs/index.js'; -import LinealFluid from '@lineal-viz/lineal/components/lineal/fluid/index.js'; -import { concat } from '@ember/helper'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class SSUReportingDonutChart extends Component { - get data() { - return (this.args.data || []).map((datum, index) => { - return { - ...datum, - scaleIndex: index + 1 - }; - }); - } - get total() { - return this.data.reduce((runningTotal, { - value - }) => { - return runningTotal + value; - }, 0); - } - get a11yLabel() { - const title = `Total of ${this.total} ${this.args.title}.`; - const itemsDescription = this.data.map(({ - value, - label - }) => { - return `${value} ${label}`; - }).join(', '); - return `${title} Comprised of ${itemsDescription}.`; - } - getOffset(width, height) { - return `translate(${width / 2}, ${height / 2})`; - } - getInnerRadius(width, height) { - const computedRadius = Math.min(width, height) / 2 - 50; - // Smallest inner radius is 60 to allow for text - return Math.max(computedRadius, 60); - } - getOuterRadius(width, height) { - // Smallest inner radius is 60 to allow for text - const computedRadius = Math.min(width, height) / 2; - return Math.max(computedRadius, 110); - } - static { - setComponentTemplate(precompileTemplate("\n \n
\n {{!-- TODO: Figure out glint errors on lineal components --}}\n {{!-- @glint-expect-error --}}\n \n \n \n {{!-- @glint-expect-error --}}\n \n {{#each pie as |slice|}}\n {{!-- @glint-expect-error --}}\n \n {{/each}}\n \n \n
\n \n {{this.total}}\n \n \n {{@title}}\n \n
\n
\n
\n
\n
\n
\n {{#each this.data as |datum|}}\n {{datum.value}} {{datum.label}} \n {{/each}}\n
\n
\n
\n ", { - strictMode: true, - scope: () => ({ - HdsCardContainer, - LinealFluid, - LinealArcs, - LinealArc, - HdsTextDisplay, - concat - }) - }), this); - } -} - -export { SSUReportingDonutChart as default }; -//# sourceMappingURL=donut-chart.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/donut-chart.js.map b/ui/vault-reporting/dist/components/vault-reporting/donut-chart.js.map deleted file mode 100644 index 930c529235..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/donut-chart.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"donut-chart.js","sources":["../../../src/components/vault-reporting/donut-chart.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport './donut-chart.scss';\n\nimport Component from '@glimmer/component';\n\nimport {\n HdsCardContainer,\n HdsTextDisplay,\n} from '@hashicorp/design-system-components/components';\nimport LinealArc from '@lineal-viz/lineal/components/lineal/arc/index.js';\nimport LinealArcs from '@lineal-viz/lineal/components/lineal/arcs/index.js';\nimport LinealFluid from '@lineal-viz/lineal/components/lineal/fluid/index.js';\nimport { concat } from '@ember/helper';\n\nexport interface SSUReportingDonutChartSignature {\n Args: {\n data: { value: number; label: string }[];\n title: string;\n };\n\n Blocks: {\n default: [];\n };\n\n Element: HTMLElement;\n}\nexport default class SSUReportingDonutChart extends Component {\n get data() {\n return (this.args.data || []).map((datum, index) => {\n return {\n ...datum,\n scaleIndex: index + 1,\n };\n });\n }\n\n get total() {\n return this.data.reduce((runningTotal, { value }) => {\n return runningTotal + value;\n }, 0);\n }\n\n get a11yLabel() {\n const title = `Total of ${this.total} ${this.args.title}.`;\n\n const itemsDescription = this.data\n .map(({ value, label }) => {\n return `${value} ${label}`;\n })\n .join(', ');\n\n return `${title} Comprised of ${itemsDescription}.`;\n }\n\n getOffset(width: number, height: number) {\n return `translate(${width / 2}, ${height / 2})`;\n }\n\n getInnerRadius(width: number, height: number) {\n const computedRadius = Math.min(width, height) / 2 - 50;\n // Smallest inner radius is 60 to allow for text\n return Math.max(computedRadius, 60);\n }\n\n getOuterRadius(width: number, height: number) {\n // Smallest inner radius is 60 to allow for text\n const computedRadius = Math.min(width, height) / 2;\n return Math.max(computedRadius, 110);\n }\n\n \n}\n"],"names":["SSUReportingDonutChart","Component","data","args","map","datum","index","scaleIndex","total","reduce","runningTotal","value","a11yLabel","title","itemsDescription","label","join","getOffset","width","height","getInnerRadius","computedRadius","Math","min","max","getOuterRadius","setComponentTemplate","precompileTemplate","strictMode","scope","HdsCardContainer","LinealFluid","LinealArcs","LinealArc","HdsTextDisplay","concat"],"mappings":";;;;;;;;;AAAA;;;AAGC;AA2Bc,MAAMA,+BAA+BC,SAAU,CAAA;EAC5D,IAAIC,IAAOA,GAAA;AACT,IAAA,OAAO,CAAC,IAAI,CAACC,IAAI,CAACD,IAAI,IAAI,EAAE,EAAEE,GAAG,CAAC,CAACC,KAAO,EAAAC,KAAA,KAAA;MACxC,OAAO;AACL,QAAA,GAAGD,KAAK;QACRE,UAAA,EAAYD,KAAQ,GAAA;OACtB;AACF,KAAA,CAAA;AACF;EAEA,IAAIE,KAAQA,GAAA;IACV,OAAO,IAAI,CAACN,IAAI,CAACO,MAAM,CAAC,CAACC,YAAA,EAAc;AAAEC,MAAAA;AAAO,KAAA,KAAA;MAC9C,OAAOD,YAAe,GAAAC,KAAA;KACrB,EAAA,CAAA,CAAA;AACL;EAEA,IAAIC,SAAYA,GAAA;AACd,IAAA,MAAMC,QAAQ,CAAY,SAAA,EAAA,IAAI,CAACL,KAAK,CAAI,CAAA,EAAA,IAAI,CAACL,IAAI,CAACU,KAAK,CAAG,CAAA,CAAA;IAE1D,MAAMC,gBAAmB,GAAA,IAAI,CAACZ,IAAI,CAC/BE,GAAG,CAAC,CAAC;MAAEO,KAAK;AAAEI,MAAAA;AAAO,KAAA,KAAA;AACpB,MAAA,OAAO,CAAGJ,EAAAA,KAAA,CAASI,CAAAA,EAAAA,MAAO,CAAA;AAC5B,KAAA,CAAA,CACCC,IAAI,CAAC,IAAA,CAAA;AAER,IAAA,OAAO,CAAGH,EAAAA,KAAA,CAAsBC,cAAAA,EAAAA,gBAAA,CAAmB,CAAA,CAAA;AACrD;AAEAG,EAAAA,SAAAA,CAAUC,KAAa,EAAEC,MAAc,EAAE;IACvC,OAAO,CAAA,UAAA,EAAaD,KAAQ,GAAA,CAAA,KAAMC,MAAA,GAAS,CAAE,CAAE,CAAA,CAAA;AACjD;AAEAC,EAAAA,cAAAA,CAAeF,KAAa,EAAEC,MAAc,EAAE;AAC5C,IAAA,MAAME,iBAAiBC,IAAK,CAAAC,GAAG,CAACL,KAAA,EAAOC,UAAU,CAAI,GAAA,EAAA;AACrD;AACA,IAAA,OAAOG,IAAA,CAAKE,GAAG,CAACH,cAAgB,EAAA,EAAA,CAAA;AAClC;AAEAI,EAAAA,cAAAA,CAAeP,KAAa,EAAEC,MAAc,EAAE;AAC5C;IACA,MAAME,cAAiB,GAAAC,IAAA,CAAKC,GAAG,CAACL,OAAOC,MAAU,CAAA,GAAA,CAAA;AACjD,IAAA,OAAOG,IAAA,CAAKE,GAAG,CAACH,cAAgB,EAAA,GAAA,CAAA;AAClC;AAEA,EAAA;IAAAK,oBAAA,CAAAC,kBAAA,CAoEA,4hEAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,gBAAA;QAAAC,WAAA;QAAAC,UAAA;QAAAC,SAAA;QAAAC,cAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/global-lease.js b/ui/vault-reporting/dist/components/vault-reporting/global-lease.js deleted file mode 100644 index fb30e0f8a2..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/global-lease.js +++ /dev/null @@ -1,86 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsApplicationState, HdsAlert, HdsTextDisplay, HdsCardContainer } from '@hashicorp/design-system-components/components'; -import TitleRow from './base/title-row.js'; -import cssCustomProperty from '../../modifiers/css-custom-property.js'; -import { htmlSafe } from '@ember/template'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class GlobalLease extends Component { - get percentage() { - const { - count = 0, - quota = 0 - } = this.args; - return Math.round(Math.min(count / quota * 100, 100)); - } - get progressFillClass() { - if (this.percentage >= 100) { - return 'ssu-global-lease__progress-fill--exceeded'; - } - return ''; - } - get formattedCount() { - const formatter = new Intl.NumberFormat('en-US', { - notation: 'compact', - compactDisplay: 'short' - }); - const { - count = 0, - quota = 0 - } = this.args; - const formattedCount = formatter.format(count); - const formattedTotal = formatter.format(quota); - return `${formattedCount} / ${formattedTotal}`; - } - get percentageString() { - return `${this.percentage}%`; - } - get hasData() { - return this.args.quota && typeof this.args.quota === 'number'; - } - get description() { - if (this.hasData) { - return htmlSafe('Total number of active leases for this quota.'); - } - } - get linkUrl() { - if (this.hasData) { - return 'https://developer.hashicorp.com/vault/tutorials/operations/resource-quotas#global-default-lease-count-quota'; - } - } - get alert() { - if (this.percentage >= 100) { - return { - color: 'warning', - description: 'Global lease quota limit reached. If lease creation is blocked, reduce usage or increase the limit.' - }; - } - if (this.percentage >= 95) { - return { - color: 'neutral', - description: 'Approaching quota limit. Reduce usage or increase the lease limit to avoid blocking new leases.' - }; - } - } - static { - setComponentTemplate(precompileTemplate("\n \n \n {{#if this.hasData}}\n {{this.percentage}}%\n\n {{#if this.alert}}\n \n {{this.alert.description}}\n \n {{/if}}\n\n
\n
\n
\n
\n \n \n {{this.formattedCount}}\n \n \n
\n {{else}}\n\n \n {{#if (has-block \"empty\")}}\n {{yield A to=\"empty\"}}\n {{else}}\n \n\n \n \n \n {{/if}}\n \n {{/if}}\n\n
\n ", { - strictMode: true, - scope: () => ({ - HdsCardContainer, - cssCustomProperty, - TitleRow, - HdsTextDisplay, - HdsAlert, - HdsApplicationState - }) - }), this); - } -} - -export { GlobalLease as default }; -//# sourceMappingURL=global-lease.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/global-lease.js.map b/ui/vault-reporting/dist/components/vault-reporting/global-lease.js.map deleted file mode 100644 index 1a03126a8e..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/global-lease.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"global-lease.js","sources":["../../../src/components/vault-reporting/global-lease.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport Component from '@glimmer/component';\nimport {\n HdsCardContainer,\n HdsTextDisplay,\n HdsApplicationState,\n HdsAlert,\n} from '@hashicorp/design-system-components/components';\nimport TitleRow from './base/title-row.gts';\n\nimport './global-lease.scss';\nimport cssCustomProperty from '../../modifiers/css-custom-property.ts';\nimport type { HdsApplicationStateSignature } from '@hashicorp/design-system-components/components/hds/application-state/index';\nimport { htmlSafe } from '@ember/template';\n\nexport interface GlobalLeaseSignature {\n Args: {\n count?: number;\n quota?: number;\n };\n\n Blocks: {\n default: [];\n /** We optionally yield application state to allow for overrides on empty state eg:\n * \n * <:empty as |A|>\n * \n * \n * \n * \n * */\n empty: HdsApplicationStateSignature['Blocks']['default'];\n };\n\n Element: HTMLElement;\n}\n\nexport default class GlobalLease extends Component {\n get percentage() {\n const { count = 0, quota = 0 } = this.args;\n\n return Math.round(Math.min((count / quota) * 100, 100));\n }\n\n get progressFillClass() {\n if (this.percentage >= 100) {\n return 'ssu-global-lease__progress-fill--exceeded';\n }\n return '';\n }\n\n get formattedCount() {\n const formatter = new Intl.NumberFormat('en-US', {\n notation: 'compact',\n compactDisplay: 'short',\n });\n\n const { count = 0, quota = 0 } = this.args;\n const formattedCount = formatter.format(count);\n const formattedTotal = formatter.format(quota);\n\n return `${formattedCount} / ${formattedTotal}`;\n }\n\n get percentageString() {\n return `${this.percentage}%`;\n }\n\n get hasData() {\n return this.args.quota && typeof this.args.quota === 'number';\n }\n\n get description() {\n if (this.hasData) {\n return htmlSafe(\n 'Total number of active leases for this quota.',\n );\n }\n }\n\n get linkUrl() {\n if (this.hasData) {\n return 'https://developer.hashicorp.com/vault/tutorials/operations/resource-quotas#global-default-lease-count-quota';\n }\n }\n\n get alert():\n | { color: 'warning' | 'neutral'; description: string }\n | undefined {\n if (this.percentage >= 100) {\n return {\n color: 'warning',\n description:\n 'Global lease quota limit reached. If lease creation is blocked, reduce usage or increase the limit.',\n };\n }\n\n if (this.percentage >= 95) {\n return {\n color: 'neutral',\n description:\n 'Approaching quota limit. Reduce usage or increase the lease limit to avoid blocking new leases.',\n };\n }\n }\n\n \n}\n"],"names":["GlobalLease","Component","percentage","count","quota","args","Math","round","min","progressFillClass","formattedCount","formatter","Intl","NumberFormat","notation","compactDisplay","format","formattedTotal","percentageString","hasData","description","htmlSafe","linkUrl","alert","color","setComponentTemplate","precompileTemplate","strictMode","scope","HdsCardContainer","cssCustomProperty","TitleRow","HdsTextDisplay","HdsAlert","HdsApplicationState"],"mappings":";;;;;;;;AAAA;;;AAGC;AAsCc,MAAMA,oBAAoBC,SAAU,CAAA;EACjD,IAAIC,UAAaA,GAAA;IACf,MAAM;AAAEC,MAAAA,KAAQ,GAAA,CAAC;AAAEC,MAAAA,KAAA,GAAQ;KAAG,GAAG,IAAI,CAACC,IAAI;AAE1C,IAAA,OAAOC,IAAA,CAAKC,KAAK,CAACD,IAAK,CAAAE,GAAG,CAAEL,KAAA,GAAQC,KAAK,GAAI,GAAK,EAAA,GAAA,CAAA,CAAA;AACpD;EAEA,IAAIK,iBAAoBA,GAAA;AACtB,IAAA,IAAI,IAAI,CAACP,UAAU,IAAI,GAAK,EAAA;AAC1B,MAAA,OAAO,2CAAA;AACT;AACA,IAAA,OAAO,EAAA;AACT;EAEA,IAAIQ,cAAiBA,GAAA;IACnB,MAAMC,SAAY,GAAA,IAAIC,IAAK,CAAAC,YAAY,CAAC,OAAS,EAAA;AAC/CC,MAAAA,QAAU,EAAA,SAAA;AACVC,MAAAA,cAAgB,EAAA;AAClB,KAAA,CAAA;IAEA,MAAM;AAAEZ,MAAAA,KAAQ,GAAA,CAAC;AAAEC,MAAAA,KAAA,GAAQ;KAAG,GAAG,IAAI,CAACC,IAAI;AAC1C,IAAA,MAAMK,cAAA,GAAiBC,SAAU,CAAAK,MAAM,CAACb,KAAA,CAAA;AACxC,IAAA,MAAMc,cAAA,GAAiBN,SAAU,CAAAK,MAAM,CAACZ,KAAA,CAAA;AAExC,IAAA,OAAO,CAAGM,EAAAA,cAAA,CAAoBO,GAAAA,EAAAA,eAAgB,CAAA;AAChD;EAEA,IAAIC,gBAAmBA,GAAA;AACrB,IAAA,OAAO,CAAG,EAAA,IAAI,CAAChB,UAAU,CAAG,CAAA,CAAA;AAC9B;EAEA,IAAIiB,OAAUA,GAAA;AACZ,IAAA,OAAO,IAAI,CAACd,IAAI,CAACD,KAAK,IAAI,OAAO,IAAI,CAACC,IAAI,CAACD,KAAK,KAAK,QAAA;AACvD;EAEA,IAAIgB,WAAcA,GAAA;IAChB,IAAI,IAAI,CAACD,OAAO,EAAE;MAChB,OAAOE,QACL,CAAA,wOAAA,CAAA;AAEJ;AACF;EAEA,IAAIC,OAAUA,GAAA;IACZ,IAAI,IAAI,CAACH,OAAO,EAAE;AAChB,MAAA,OAAO,6GAAA;AACT;AACF;EAEA,IAAII,KAAAA,GAEU;AACZ,IAAA,IAAI,IAAI,CAACrB,UAAU,IAAI,GAAK,EAAA;MAC1B,OAAO;AACLsB,QAAAA,KAAO,EAAA,SAAA;AACPJ,QAAAA,WACE,EAAA;OACJ;AACF;AAEA,IAAA,IAAI,IAAI,CAAClB,UAAU,IAAI,EAAI,EAAA;MACzB,OAAO;AACLsB,QAAAA,KAAO,EAAA,SAAA;AACPJ,QAAAA,WACE,EAAA;OACJ;AACF;AACF;AAEA,EAAA;IAAAK,oBAAA,CAAAC,kBAAA,CAqFA,kyEAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,gBAAA;QAAAC,iBAAA;QAAAC,QAAA;QAAAC,cAAA;QAAAC,QAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/horizontal-bar-chart.js b/ui/vault-reporting/dist/components/vault-reporting/horizontal-bar-chart.js deleted file mode 100644 index 21975f07d7..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/horizontal-bar-chart.js +++ /dev/null @@ -1,123 +0,0 @@ -import Component from '@glimmer/component'; -import { HdsApplicationState, HdsTextBody, HdsSeparator, HdsCardContainer } from '@hashicorp/design-system-components/components'; -import TitleRow from './base/title-row.js'; -import LinealFluid from '@lineal-viz/lineal/components/lineal/fluid/index.js'; -import LinealHBars from '@lineal-viz/lineal/components/lineal/h-bars/index.js'; -import scaleLinear from '@lineal-viz/lineal/helpers/scale-linear.js'; -import scaleBand from '@lineal-viz/lineal/helpers/scale-band.js'; -import stackH from '@lineal-viz/lineal/helpers/stack-h.js'; -import LinealAxis from '@lineal-viz/lineal/components/lineal/axis/index.js'; -import axisOffset from '../../modifiers/axis-offset.js'; -import { tracked } from '@glimmer/tracking'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; -import { g, i } from 'decorator-transforms/runtime'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class SSUReportingHorizontalBarChart extends Component { - static { - g(this.prototype, "xRangeOffsetWidth", [tracked], function () { - return 0; - }); - } - #xRangeOffsetWidth = (i(this, "xRangeOffsetWidth"), void 0); - get hasData() { - return this.args.data && Array.isArray(this.args.data) && this.args.data.length > 0; - } - get data() { - if (!this.hasData) { - return []; - } - // Filtering DESC for now per designs, could make configurable if needed - return this.args.data.filter(({ - value - }) => value !== 0).sort((a, b) => { - return b.value - a.value; - }); - } - get total() { - return this.data.reduce((runningTotal, { - value - }) => { - return runningTotal + value; - }, 0); - } - get a11yLabel() { - const title = `Total of ${this.total} ${this.args.title}.`; - const itemsDescription = this.data.map(({ - value, - label - }) => { - return `${value} ${label}`; - }).join(', '); - return `${title} Comprised of ${itemsDescription}.`; - } - get yDomain() { - return this.data.map(({ - label - }) => label); - } - get xDomain() { - return [0, Math.max(0, ...this.data.map(({ - value - }) => value))]; - } - get rangeHeight() { - return this.data.length * 26; - } - get yRange() { - return [0, this.rangeHeight]; - } - get emptyStateTitle() { - return 'None enabled'; - } - get emptyStateDescription() { - const entitiesTitle = this.args.title; - return `${entitiesTitle} in this namespace will appear here.`; - } - get emptyStateLinkText() { - const entities = this.args.title.toLowerCase(); - return `Enable ${entities}`; - } - get description() { - if (this.hasData) { - return this.args.description; - } - } - get linkUrl() { - if (this.hasData) { - return this.args.linkUrl; - } - } - getXRange = width => { - return [0, Math.max(0, width - this.xRangeOffsetWidth - 32)]; - }; - handleAxisOffset = offsetWidth => { - this.xRangeOffsetWidth = offsetWidth; - }; - static { - setComponentTemplate(precompileTemplate("\n \n \n {{#if this.hasData}}\n {{!-- TODO: Figure out glint errors on lineal components --}}\n {{!-- @glint-expect-error --}}\n \n \n {{!-- We are using the stacked version of the HBars as there seems to be an issue in the non-stacked version for how the x position is calculated. --}}\n {{#let (scaleLinear range=(this.getXRange width) domain=this.xDomain) (scaleBand range=this.yRange domain=this.yDomain) (stackH data=this.data x=\"value\" y=\"label\" z=\"\") as |xScale yScale stacked|}}\n {{#if xScale.isValid}}\n \n {{!-- TODO: Extra wrapper exists only for test attribute, figure out a better way --}}\n \n \n \n \n {{!-- @glint-expect-error --}}\n {{#each stacked.data as |dataset|}}\n {{#each dataset as |datum|}}\n \n {{datum.x}}\n \n {{/each}}\n {{/each}}\n \n {{/if}}\n {{/let}}\n \n \n \n \n Total:\n {{this.total}}\n \n {{else}}\n\n \n {{#if (has-block \"empty\")}}\n {{yield A to=\"empty\"}}\n {{else}}\n \n \n {{#if @linkUrl}}\n \n \n \n {{/if}}\n {{/if}}\n \n {{/if}}\n \n ", { - strictMode: true, - scope: () => ({ - HdsCardContainer, - TitleRow, - LinealFluid, - axisOffset, - scaleLinear, - scaleBand, - stackH, - LinealAxis, - LinealHBars, - HdsSeparator, - HdsTextBody, - HdsApplicationState - }) - }), this); - } -} - -export { SSUReportingHorizontalBarChart as default }; -//# sourceMappingURL=horizontal-bar-chart.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/horizontal-bar-chart.js.map b/ui/vault-reporting/dist/components/vault-reporting/horizontal-bar-chart.js.map deleted file mode 100644 index 2c2af9528d..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/horizontal-bar-chart.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-bar-chart.js","sources":["../../../src/components/vault-reporting/horizontal-bar-chart.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport './horizontal-bar-chart.scss';\nimport Component from '@glimmer/component';\n\nimport {\n HdsCardContainer,\n HdsSeparator,\n HdsTextBody,\n HdsApplicationState,\n HdsLinkStandalone,\n} from '@hashicorp/design-system-components/components';\nimport TitleRow from './base/title-row.gts';\n\nimport LinealFluid from '@lineal-viz/lineal/components/lineal/fluid/index.js';\nimport LinealHBars from '@lineal-viz/lineal/components/lineal/h-bars/index.js';\nimport scaleLinear from '@lineal-viz/lineal/helpers/scale-linear.js';\nimport scaleBand from '@lineal-viz/lineal/helpers/scale-band.js';\nimport stackH from '@lineal-viz/lineal/helpers/stack-h.js';\nimport LinealAxis from '@lineal-viz/lineal/components/lineal/axis/index.js';\nimport axisOffset from '../../modifiers/axis-offset.ts';\nimport { tracked } from '@glimmer/tracking';\nimport type { SimpleDatum } from '../../types/index.ts';\nimport type { HdsApplicationStateSignature } from '@hashicorp/design-system-components/components/hds/application-state/index';\n\nexport interface SSUReportingHorizontalBarChartSignature {\n Args: {\n data: SimpleDatum[];\n title: string;\n description?: string;\n /** Custom text for the link (defaults to \"View all\") */\n linkText?: string;\n /** Icon to display with the link (defaults to \"arrow-right\") */\n linkIcon?: HdsLinkStandalone['icon'];\n /** URL for the link - if not provided, no link will be shown */\n linkUrl?: string;\n /** Target for the link - defaults to \"_self\" */\n linkTarget?: '_blank' | '_self';\n };\n Blocks: {\n default: [];\n /** We optionally yield application state to allow for overrides on empty state eg:\n * \n * <:empty as |A|>\n * \n * \n * \n * \n * */\n empty: HdsApplicationStateSignature['Blocks']['default'];\n };\n\n Element: HTMLElement;\n}\nexport default class SSUReportingHorizontalBarChart extends Component {\n @tracked xRangeOffsetWidth = 0;\n\n get hasData() {\n return (\n this.args.data &&\n Array.isArray(this.args.data) &&\n this.args.data.length > 0\n );\n }\n\n get data() {\n if (!this.hasData) {\n return [];\n }\n // Filtering DESC for now per designs, could make configurable if needed\n return this.args.data\n .filter(({ value }) => value !== 0)\n .sort((a, b) => {\n return b.value - a.value;\n });\n }\n\n get total() {\n return this.data.reduce((runningTotal, { value }) => {\n return runningTotal + value;\n }, 0);\n }\n\n get a11yLabel() {\n const title = `Total of ${this.total} ${this.args.title}.`;\n\n const itemsDescription = this.data\n .map(({ value, label }) => {\n return `${value} ${label}`;\n })\n .join(', ');\n\n return `${title} Comprised of ${itemsDescription}.`;\n }\n\n get yDomain() {\n return this.data.map(({ label }) => label);\n }\n\n get xDomain() {\n return [0, Math.max(0, ...this.data.map(({ value }) => value))];\n }\n\n get rangeHeight() {\n return this.data.length * 26;\n }\n\n get yRange() {\n return [0, this.rangeHeight];\n }\n\n get emptyStateTitle() {\n return 'None enabled';\n }\n\n get emptyStateDescription() {\n const entitiesTitle = this.args.title;\n return `${entitiesTitle} in this namespace will appear here.`;\n }\n\n get emptyStateLinkText() {\n const entities = this.args.title.toLowerCase();\n return `Enable ${entities}`;\n }\n\n get description() {\n if (this.hasData) {\n return this.args.description;\n }\n }\n\n get linkUrl() {\n if (this.hasData) {\n return this.args.linkUrl;\n }\n }\n\n getXRange = (width: number) => {\n return [0, Math.max(0, width - this.xRangeOffsetWidth - 32)];\n };\n\n handleAxisOffset = (offsetWidth: number) => {\n this.xRangeOffsetWidth = offsetWidth;\n };\n\n \n}\n"],"names":["SSUReportingHorizontalBarChart","Component","g","prototype","tracked","i","void 0","hasData","args","data","Array","isArray","length","filter","value","sort","a","b","total","reduce","runningTotal","a11yLabel","title","itemsDescription","map","label","join","yDomain","xDomain","Math","max","rangeHeight","yRange","emptyStateTitle","emptyStateDescription","entitiesTitle","emptyStateLinkText","entities","toLowerCase","description","linkUrl","getXRange","width","xRangeOffsetWidth","handleAxisOffset","offsetWidth","setComponentTemplate","precompileTemplate","strictMode","scope","HdsCardContainer","TitleRow","LinealFluid","axisOffset","scaleLinear","scaleBand","stackH","LinealAxis","LinealHBars","HdsSeparator","HdsTextBody","HdsApplicationState"],"mappings":"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"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/components/vault-reporting/views/dashboard.js b/ui/vault-reporting/dist/components/vault-reporting/views/dashboard.js deleted file mode 100644 index bce75c8bec..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/views/dashboard.js +++ /dev/null @@ -1,148 +0,0 @@ -import Component from '@glimmer/component'; -import { array } from '@ember/helper'; -import SSUReportingCounter from '../counter.js'; -import SSUReportingHorizontalBarChart from '../horizontal-bar-chart.js'; -import GlobalLease from '../global-lease.js'; -import ClusterReplication from '../cluster-replication.js'; -import DashboardExport from '../dashboard/export.js'; -import { tracked } from '@glimmer/tracking'; -import { HdsCardContainer, HdsAlert, HdsTextBody, HdsBadge, HdsPageHeader } from '@hashicorp/design-system-components/components'; -import { service } from '@ember/service'; -import { precompileTemplate } from '@ember/template-compilation'; -import { setComponentTemplate } from '@ember/component'; -import { g, i } from 'decorator-transforms/runtime'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -class SSUViewDashboard extends Component { - static { - g(this.prototype, "reportingAnalytics", [service]); - } - #reportingAnalytics = (i(this, "reportingAnalytics"), void 0); - static { - g(this.prototype, "data", [tracked]); - } - #data = (i(this, "data"), void 0); - static { - g(this.prototype, "lastUpdatedTime", [tracked], function () { - return ''; - }); - } - #lastUpdatedTime = (i(this, "lastUpdatedTime"), void 0); - static { - g(this.prototype, "error", [tracked]); - } - #error = (i(this, "error"), void 0); - constructor(owner, args) { - super(owner, args); - this.fetchAllData(); - } - fetchAllData = async () => { - try { - this.error = undefined; - this.data = await this.args.onFetchUsageData(); - this.lastUpdatedTime = new Intl.DateTimeFormat('en-US', { - timeStyle: 'medium' - }).format(new Date()); - } catch (e) { - this.error = e; - } - }; - handleTrackAnalyticsEvent = (eventName, properties, options) => { - this.reportingAnalytics.trackEvent(eventName, properties, options); - }; - handleTrackSurveyLink = () => { - this.handleTrackAnalyticsEvent('survey_link'); - }; - handleRefresh = () => { - this.fetchAllData(); - this.handleTrackAnalyticsEvent('refresh_button'); - }; - getBarChartData = (map = {}, exclude) => { - return Object.entries(map).map(([label, value]) => { - return { - label, - value - }; - }).filter(item => { - return !exclude?.includes(item.label); - }); - }; - get isVaultDedicated() { - return this.args.isVaultDedicated ?? false; - } - get kvSecretsTooltipMessage() { - const { - kvv1Secrets = 0, - kvv2Secrets = 0 - } = this.data ?? {}; - const kvv1Formatted = Intl.NumberFormat().format(kvv1Secrets); - const kvv2Formatted = Intl.NumberFormat().format(kvv2Secrets); - if (kvv1Secrets && kvv2Secrets) { - return `Combined count of ${kvv1Formatted} KV version 1 secrets and ${kvv2Formatted} KV version 2 secrets.`; - } - if (kvv1Secrets) { - return `Total number of ${kvv1Formatted} KV version 1 secrets.`; - } - if (kvv2Secrets) { - return `Total number of ${kvv2Formatted} KV version 2 secrets.`; - } - return ''; - } - get counters() { - const { - kvv1Secrets = 0, - kvv2Secrets = 0 - } = this.data ?? {}; - return [{ - title: 'Child namespaces', - tooltipMessage: 'Total number of namespaces for this cluster.', - data: this.data?.namespaces ?? 0, - link: 'access/namespaces' - }, { - title: 'KV secrets', - tooltipMessage: this.kvSecretsTooltipMessage, - data: kvv1Secrets + kvv2Secrets, - emptyText: 'No secrets stored', - emptyLink: 'secrets' - }, { - title: 'Secrets sync', - tooltipMessage: 'Total number of destinations (e.g. third-party integrations) synced with secrets from this namespace.', - data: this.data?.secretSync?.totalDestinations ?? 0, - link: 'sync/secrets/overview', - emptyText: 'Not activated', - suffix: 'destinations' - }, { - title: 'PKI roles', - tooltipMessage: 'Total number of PKI roles configured.', - data: this.data?.pki?.totalRoles ?? 0, - emptyText: 'No roles created' - }]; - } - get namespace() { - return this.isVaultDedicated ? 'admin' : 'root'; - } - static { - setComponentTemplate(precompileTemplate("\n
\n \n \n Vault Usage\n \n \n \n {{#if this.lastUpdatedTime}}\n \n Updated today at\n {{this.lastUpdatedTime}}.\n\n \n {{/if}}\n \n View and export your Vault usage.\n \n \n \n \n \n \n {{#if this.error}}\n \n Error\n An error occurred, please try again.\n \n {{/if}}\n {{#if this.data}}\n \n {{#each this.counters as |counter|}}\n \n {{/each}}\n \n
\n
\n \n\n \n\n \n
\n\n
\n \n <:empty as |A|>\n \n \n \n \n \n \n \n
\n\n
\n {{/if}}\n
\n ", { - strictMode: true, - scope: () => ({ - HdsPageHeader, - HdsBadge, - HdsTextBody, - DashboardExport, - HdsAlert, - HdsCardContainer, - ReportingCounter: SSUReportingCounter, - ReportingHorizontalBarChart: SSUReportingHorizontalBarChart, - array, - ClusterReplication, - GlobalLease - }) - }), this); - } -} - -export { SSUViewDashboard as default }; -//# sourceMappingURL=dashboard.js.map diff --git a/ui/vault-reporting/dist/components/vault-reporting/views/dashboard.js.map b/ui/vault-reporting/dist/components/vault-reporting/views/dashboard.js.map deleted file mode 100644 index a185886fe6..0000000000 --- a/ui/vault-reporting/dist/components/vault-reporting/views/dashboard.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dashboard.js","sources":["../../../../src/components/vault-reporting/views/dashboard.gts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport Component from '@glimmer/component';\nimport { array } from '@ember/helper';\nimport './dashboard.scss';\nimport ReportingCounter from '../counter.gts';\nimport ReportingHorizontalBarChart from '../horizontal-bar-chart.gts';\nimport GlobalLease from '../global-lease.gts';\nimport ClusterReplication from '../cluster-replication.gts';\nimport DashboardExport from '../dashboard/export.gts';\n\nimport type {\n UsageDashboardData,\n SimpleDatum,\n getUsageDataFunction,\n} from '../../../types';\nimport { tracked } from '@glimmer/tracking';\nimport type { IconName } from '@hashicorp/flight-icons/svg';\nimport {\n HdsPageHeader,\n HdsCardContainer,\n HdsBadge,\n HdsAlert,\n HdsTextBody,\n} from '@hashicorp/design-system-components/components';\nimport { service } from '@ember/service';\nimport type ReportingAnalyticsService from '../../../services/reporting-analytics';\n\ninterface CounterBlock {\n title: string;\n tooltipMessage: string;\n data: number;\n icon?: IconName;\n suffix?: string;\n link?: string;\n emptyText?: string;\n emptyLink?: string;\n}\n\nexport interface SSUViewDashboardSignature {\n Args: {\n onFetchUsageData: getUsageDataFunction;\n isVaultDedicated: boolean;\n };\n\n Blocks: {\n default: [];\n };\n\n Element: HTMLElement;\n}\nexport default class SSUViewDashboard extends Component {\n @service declare readonly reportingAnalytics: ReportingAnalyticsService;\n\n @tracked\n data?: UsageDashboardData;\n\n @tracked\n lastUpdatedTime: string = '';\n\n @tracked\n error?: unknown;\n\n constructor(owner: unknown, args: SSUViewDashboardSignature['Args']) {\n super(owner, args);\n this.fetchAllData();\n }\n\n fetchAllData: () => void = async () => {\n try {\n this.error = undefined;\n this.data = await this.args.onFetchUsageData();\n this.lastUpdatedTime = new Intl.DateTimeFormat('en-US', {\n timeStyle: 'medium',\n }).format(new Date());\n } catch (e) {\n this.error = e;\n }\n };\n\n handleTrackAnalyticsEvent = (\n eventName: string,\n properties?: object,\n options?: object,\n ) => {\n this.reportingAnalytics.trackEvent(eventName, properties, options);\n };\n\n handleTrackSurveyLink: () => void = () => {\n this.handleTrackAnalyticsEvent('survey_link');\n };\n\n handleRefresh: () => void = () => {\n this.fetchAllData();\n this.handleTrackAnalyticsEvent('refresh_button');\n };\n\n getBarChartData: (\n map: Record,\n exclude?: string[],\n ) => SimpleDatum[] = (map = {}, exclude?: string[]) => {\n return Object.entries(map)\n .map(([label, value]) => {\n return {\n label,\n value,\n };\n })\n .filter((item) => {\n return !exclude?.includes(item.label);\n });\n };\n\n get isVaultDedicated(): boolean {\n return this.args.isVaultDedicated ?? false;\n }\n\n get kvSecretsTooltipMessage(): string {\n const { kvv1Secrets = 0, kvv2Secrets = 0 } = this.data ?? {};\n const kvv1Formatted = Intl.NumberFormat().format(kvv1Secrets);\n const kvv2Formatted = Intl.NumberFormat().format(kvv2Secrets);\n\n if (kvv1Secrets && kvv2Secrets) {\n return `Combined count of ${kvv1Formatted} KV version 1 secrets and ${kvv2Formatted} KV version 2 secrets.`;\n }\n if (kvv1Secrets) {\n return `Total number of ${kvv1Formatted} KV version 1 secrets.`;\n }\n if (kvv2Secrets) {\n return `Total number of ${kvv2Formatted} KV version 2 secrets.`;\n }\n return '';\n }\n\n get counters(): CounterBlock[] {\n const { kvv1Secrets = 0, kvv2Secrets = 0 } = this.data ?? {};\n return [\n {\n title: 'Child namespaces',\n tooltipMessage: 'Total number of namespaces for this cluster.',\n data: this.data?.namespaces ?? 0,\n link: 'access/namespaces',\n },\n {\n title: 'KV secrets',\n tooltipMessage: this.kvSecretsTooltipMessage,\n data: kvv1Secrets + kvv2Secrets,\n emptyText: 'No secrets stored',\n emptyLink: 'secrets',\n },\n {\n title: 'Secrets sync',\n tooltipMessage:\n 'Total number of destinations (e.g. third-party integrations) synced with secrets from this namespace.',\n data: this.data?.secretSync?.totalDestinations ?? 0,\n link: 'sync/secrets/overview',\n emptyText: 'Not activated',\n suffix: 'destinations',\n },\n {\n title: 'PKI roles',\n tooltipMessage: 'Total number of PKI roles configured.',\n data: this.data?.pki?.totalRoles ?? 0,\n emptyText: 'No roles created',\n },\n ];\n }\n\n get namespace(): string {\n return this.isVaultDedicated ? 'admin' : 'root';\n }\n\n \n}\n"],"names":["SSUViewDashboard","Component","g","prototype","service","i","void 0","tracked","constructor","owner","args","fetchAllData","error","undefined","data","onFetchUsageData","lastUpdatedTime","Intl","DateTimeFormat","timeStyle","format","Date","e","handleTrackAnalyticsEvent","eventName","properties","options","reportingAnalytics","trackEvent","handleTrackSurveyLink","handleRefresh","getBarChartData","map","exclude","Object","entries","label","value","filter","item","includes","isVaultDedicated","kvSecretsTooltipMessage","kvv1Secrets","kvv2Secrets","kvv1Formatted","NumberFormat","kvv2Formatted","counters","title","tooltipMessage","namespaces","link","emptyText","emptyLink","secretSync","totalDestinations","suffix","pki","totalRoles","namespace","setComponentTemplate","precompileTemplate","strictMode","scope","HdsPageHeader","HdsBadge","HdsTextBody","DashboardExport","HdsAlert","HdsCardContainer","ReportingCounter","ReportingHorizontalBarChart","array","ClusterReplication","GlobalLease"],"mappings":"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"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/modifiers/axis-offset.js b/ui/vault-reporting/dist/modifiers/axis-offset.js deleted file mode 100644 index 44127716da..0000000000 --- a/ui/vault-reporting/dist/modifiers/axis-offset.js +++ /dev/null @@ -1,28 +0,0 @@ -import { modifier } from 'ember-modifier'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -/** - * By default the axis elements are outside of the bounds of the svg and rely on the containing element having - * enough padding to compensate. A fixed padding is not flexible to varied width of axis labels. - * - * This modifier is used to pad compensate for the width of the axis element. It also returns a value - * that can be used to set the chart width based on the offset amount. - */ -var axisOffset = modifier((element, [onOffset, additionalPadding = 0]) => { - const axis = element.querySelector('g.axis'); - if (!axis) { - return; - } - const axisOffset = axis.getBoundingClientRect().width; - element.style.transform = `translateX(${axisOffset + additionalPadding}px)`; - if (onOffset) { - onOffset(axisOffset + additionalPadding); - } -}); - -export { axisOffset as default }; -//# sourceMappingURL=axis-offset.js.map diff --git a/ui/vault-reporting/dist/modifiers/axis-offset.js.map b/ui/vault-reporting/dist/modifiers/axis-offset.js.map deleted file mode 100644 index 682254391d..0000000000 --- a/ui/vault-reporting/dist/modifiers/axis-offset.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"axis-offset.js","sources":["../../src/modifiers/axis-offset.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport { modifier } from 'ember-modifier';\n/**\n * By default the axis elements are outside of the bounds of the svg and rely on the containing element having\n * enough padding to compensate. A fixed padding is not flexible to varied width of axis labels.\n *\n * This modifier is used to pad compensate for the width of the axis element. It also returns a value\n * that can be used to set the chart width based on the offset amount.\n */\nexport default modifier(\n (\n element: SVGElement,\n [onOffset, additionalPadding = 0]: [\n (offset: number) => unknown,\n additionalPadding?: number,\n ],\n ) => {\n const axis = element.querySelector('g.axis');\n\n if (!axis) {\n return;\n }\n\n const axisOffset = axis.getBoundingClientRect().width;\n element.style.transform = `translateX(${axisOffset + additionalPadding}px)`;\n if (onOffset) {\n onOffset(axisOffset + additionalPadding);\n }\n },\n);\n"],"names":["modifier","element","onOffset","additionalPadding","axis","querySelector","axisOffset","getBoundingClientRect","width","style","transform"],"mappings":";;AAAA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAeA,QAAQ,CACrB,CACEC,OAAmB,EACnB,CAACC,QAAQ,EAAEC,iBAAiB,GAAG,CAAC,CAG/B,KACE;AACH,EAAA,MAAMC,IAAI,GAAGH,OAAO,CAACI,aAAa,CAAC,QAAQ,CAAC;EAE5C,IAAI,CAACD,IAAI,EAAE;AACT,IAAA;AACF;EAEA,MAAME,UAAU,GAAGF,IAAI,CAACG,qBAAqB,EAAE,CAACC,KAAK;EACrDP,OAAO,CAACQ,KAAK,CAACC,SAAS,GAAG,CAAcJ,WAAAA,EAAAA,UAAU,GAAGH,iBAAiB,CAAK,GAAA,CAAA;AAC3E,EAAA,IAAID,QAAQ,EAAE;AACZA,IAAAA,QAAQ,CAACI,UAAU,GAAGH,iBAAiB,CAAC;AAC1C;AACF,CACF,CAAC;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/modifiers/css-custom-property.js b/ui/vault-reporting/dist/modifiers/css-custom-property.js deleted file mode 100644 index 8105f41cba..0000000000 --- a/ui/vault-reporting/dist/modifiers/css-custom-property.js +++ /dev/null @@ -1,26 +0,0 @@ -import { modifier } from 'ember-modifier'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -/** - * Applies and updates a custom CSS property based on updates to a tracked/computed ember value. - */ -var cssCustomProperty = modifier(function customProperty(element, [prop, value]) { - if (!value) { - element.style.removeProperty(prop); - return; - } - // Allow only basic unit type values - const safeValuePattern = /^[-a-zA-Z0-9\s#(),.%]+$/; - if (!safeValuePattern.test(value)) { - console.warn(`Blocked potentially unsafe variable value: ${value}`); - return; - } - element.style.setProperty(prop, value); -}); - -export { cssCustomProperty as default }; -//# sourceMappingURL=css-custom-property.js.map diff --git a/ui/vault-reporting/dist/modifiers/css-custom-property.js.map b/ui/vault-reporting/dist/modifiers/css-custom-property.js.map deleted file mode 100644 index 59b3b7c5a1..0000000000 --- a/ui/vault-reporting/dist/modifiers/css-custom-property.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css-custom-property.js","sources":["../../src/modifiers/css-custom-property.ts"],"sourcesContent":["import { modifier } from 'ember-modifier';\n/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\n/**\n * Applies and updates a custom CSS property based on updates to a tracked/computed ember value.\n */\nexport default modifier(function customProperty(\n element: HTMLElement,\n [prop, value]: [string, string],\n) {\n if (!value) {\n element.style.removeProperty(prop);\n return;\n }\n // Allow only basic unit type values\n const safeValuePattern = /^[-a-zA-Z0-9\\s#(),.%]+$/;\n if (!safeValuePattern.test(value)) {\n console.warn(`Blocked potentially unsafe variable value: ${value}`);\n return;\n }\n\n element.style.setProperty(prop, value);\n});\n"],"names":["modifier","customProperty","element","prop","value","style","removeProperty","safeValuePattern","test","console","warn","setProperty"],"mappings":";;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAeA,QAAQ,CAAC,SAASC,cAAcA,CAC7CC,OAAoB,EACpB,CAACC,IAAI,EAAEC,KAAK,CAAmB,EAC/B;EACA,IAAI,CAACA,KAAK,EAAE;AACVF,IAAAA,OAAO,CAACG,KAAK,CAACC,cAAc,CAACH,IAAI,CAAC;AAClC,IAAA;AACF;AACA;EACA,MAAMI,gBAAgB,GAAG,yBAAyB;AAClD,EAAA,IAAI,CAACA,gBAAgB,CAACC,IAAI,CAACJ,KAAK,CAAC,EAAE;AACjCK,IAAAA,OAAO,CAACC,IAAI,CAAC,CAA8CN,2CAAAA,EAAAA,KAAK,EAAE,CAAC;AACnE,IAAA;AACF;EAEAF,OAAO,CAACG,KAAK,CAACM,WAAW,CAACR,IAAI,EAAEC,KAAK,CAAC;AACxC,CAAC,CAAC;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/services/reporting-analytics.js b/ui/vault-reporting/dist/services/reporting-analytics.js deleted file mode 100644 index b371d9d010..0000000000 --- a/ui/vault-reporting/dist/services/reporting-analytics.js +++ /dev/null @@ -1,37 +0,0 @@ -import { getOwner } from '@ember/owner'; -import Service from '@ember/service'; - -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -/** - * This service is used to look up the `analytics` service in the host application and track events if it exists. If it doesn't exist - * or the implementation breaks it falls back gracefully to do nothing. - */ -class ReportingAnalytics extends Service { - // Using the `@service` decorator will throw an error if the service does not exist on the host application. - // This allows us to be defensive and have `trackEvent` be a no-op if the service is not present. - get analytics() { - return getOwner(this)?.lookup('service:analytics'); - } - trackEvent(event, properties, options) { - if (!this.analytics?.trackEvent) { - return; - } - try { - const prefix = 'vault_reporting'; - const prefixedEvent = `${prefix}_${event}`; - this.analytics.trackEvent(prefixedEvent, properties, options); - } catch (e) { - // no-op - console.warn('Error tracking event:', e); - } - } -} - -// DO NOT DELETE: this is how TypeScript knows how to look up your services. - -export { ReportingAnalytics as default }; -//# sourceMappingURL=reporting-analytics.js.map diff --git a/ui/vault-reporting/dist/services/reporting-analytics.js.map b/ui/vault-reporting/dist/services/reporting-analytics.js.map deleted file mode 100644 index ca35b62698..0000000000 --- a/ui/vault-reporting/dist/services/reporting-analytics.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reporting-analytics.js","sources":["../../src/services/reporting-analytics.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\nimport { getOwner } from '@ember/owner';\nimport Service from '@ember/service';\n/**\n * This service is used to look up the `analytics` service in the host application and track events if it exists. If it doesn't exist\n * or the implementation breaks it falls back gracefully to do nothing.\n */\nexport default class ReportingAnalytics extends Service {\n // Using the `@service` decorator will throw an error if the service does not exist on the host application.\n // This allows us to be defensive and have `trackEvent` be a no-op if the service is not present.\n get analytics() {\n return getOwner(this)?.lookup('service:analytics') as\n | {\n trackEvent: (\n event: string,\n properties?: object,\n options?: object,\n ) => void;\n }\n | undefined;\n }\n\n trackEvent(event: string, properties?: object, options?: object) {\n if (!this.analytics?.trackEvent) {\n return;\n }\n try {\n const prefix = 'vault_reporting';\n const prefixedEvent = `${prefix}_${event}`;\n this.analytics.trackEvent(prefixedEvent, properties, options);\n } catch (e) {\n // no-op\n console.warn('Error tracking event:', e);\n }\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your services.\ndeclare module '@ember/service' {\n interface Registry {\n reportingAnalytics: ReportingAnalytics;\n }\n}\n"],"names":["ReportingAnalytics","Service","analytics","getOwner","lookup","trackEvent","event","properties","options","prefix","prefixedEvent","e","console","warn"],"mappings":";;;AAAA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACe,MAAMA,kBAAkB,SAASC,OAAO,CAAC;AACtD;AACA;EACA,IAAIC,SAASA,GAAG;IACd,OAAOC,QAAQ,CAAC,IAAI,CAAC,EAAEC,MAAM,CAAC,mBAAmB,CAAC;AASpD;AAEAC,EAAAA,UAAUA,CAACC,KAAa,EAAEC,UAAmB,EAAEC,OAAgB,EAAE;AAC/D,IAAA,IAAI,CAAC,IAAI,CAACN,SAAS,EAAEG,UAAU,EAAE;AAC/B,MAAA;AACF;IACA,IAAI;MACF,MAAMI,MAAM,GAAG,iBAAiB;AAChC,MAAA,MAAMC,aAAa,GAAG,CAAA,EAAGD,MAAM,CAAA,CAAA,EAAIH,KAAK,CAAE,CAAA;MAC1C,IAAI,CAACJ,SAAS,CAACG,UAAU,CAACK,aAAa,EAAEH,UAAU,EAAEC,OAAO,CAAC;KAC9D,CAAC,OAAOG,CAAC,EAAE;AACV;AACAC,MAAAA,OAAO,CAACC,IAAI,CAAC,uBAAuB,EAAEF,CAAC,CAAC;AAC1C;AACF;AACF;;AAEA;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/dist/styles/vault-reporting.css b/ui/vault-reporting/dist/styles/vault-reporting.css deleted file mode 100644 index 367dcc052f..0000000000 --- a/ui/vault-reporting/dist/styles/vault-reporting.css +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - -.dashboard{padding:16px}.dashboard__error{margin-top:16px}.dashboard__counters{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:16px;margin:32px 0}.dashboard__viz-blocks{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:16px}.dashboard__viz-block{margin-bottom:16px}.dashboard__badge{margin-left:5px}.dashboard__description p{margin-bottom:8px}.ssu-cluster-replication{padding:16px;display:flex;flex-direction:column;justify-content:center;gap:1rem}.ssu-cluster-replication__list-row__badge{margin:0 .25rem;text-transform:capitalize}.ssu-title-row{margin-bottom:8px}.ssu-title-row__description{display:block;margin-top:.25rem;color:var(--token-color-foreground-faint)}.ssu-title-row__container{display:flex;justify-content:space-between}.ssu-title-row__container__link{padding:0}.ssu-horizontal-bar-chart__container{padding:16px;overflow:hidden;font-size:13px}.ssu-horizontal-bar-chart__chart{box-sizing:border-box;margin-top:15px;color:var(--token-color-foreground-primary);fill:var(--token-color-foreground-primary)}.ssu-horizontal-bar-chart__chart svg{overflow:visible}.ssu-horizontal-bar-chart__chart rect{fill:var(--token-color-palette-blue-200);transform:translateY(10.5px);rx:3px;ry:3px}.ssu-horizontal-bar-chart__chart .axis line{display:none}.ssu-horizontal-bar-chart__separator{margin-bottom:10px}.ssu-horizontal-bar-chart__empty-state{min-width:66%;margin:16px auto}.ssu-horizontal-bar-chart__total{color:var(--token-color-foreground-primary)}.ssu-global-lease{padding:16px}.ssu-global-lease__progress-wrapper{display:flex;align-items:center;gap:1rem;height:15px}.ssu-global-lease__progress-bar{flex:1;height:100%;background-color:var(--token-color-palette-neutral-100);border:1.5px solid var(--token-color-palette-neutral-200);border-radius:4px;overflow:hidden;font-size:40px;display:inline-block}@keyframes initialWidth{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}.ssu-global-lease__progress-fill{height:100%;width:var(--vault-reporting-global-lease-percentage);animation:1s ease-out initialWidth;transform-origin:left;transition:width 1s ease-out,background-color 1s ease-out;background-color:var(--token-color-palette-neutral-300)}.ssu-global-lease__progress-fill--exceeded{background-color:var(--token-color-palette-red-100)}.ssu-global-lease__empty-state{min-width:66%;margin:16px auto;color:var(--token-color-foreground-faint)}.ssu-global-lease__alert{margin-bottom:8px}.ssu-counter{padding:16px}.ssu-counter__title-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.ssu-counter__title-row__tooltip{margin-left:3px;top:3px} \ No newline at end of file diff --git a/ui/vault-reporting/dist/template-registry.js b/ui/vault-reporting/dist/template-registry.js deleted file mode 100644 index 9a8e618b3b..0000000000 --- a/ui/vault-reporting/dist/template-registry.js +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - */ - - -//# sourceMappingURL=template-registry.js.map diff --git a/ui/vault-reporting/dist/template-registry.js.map b/ui/vault-reporting/dist/template-registry.js.map deleted file mode 100644 index 54e644e4f9..0000000000 --- a/ui/vault-reporting/dist/template-registry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"template-registry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/ui/vault-reporting/dist/types/index.js b/ui/vault-reporting/dist/types/index.js deleted file mode 100644 index 4048a72549..0000000000 --- a/ui/vault-reporting/dist/types/index.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -/* - States for disaster recovery and performance - (More states might be added once this is hooked up to the backend) -*/ -let REPLICATION_ENABLED_STATE = /*#__PURE__*/function (REPLICATION_ENABLED_STATE) { - REPLICATION_ENABLED_STATE["PRIMARY"] = "primary"; - REPLICATION_ENABLED_STATE["SECONDARY"] = "secondary"; - REPLICATION_ENABLED_STATE["BOOTSTRAPPING"] = "bootstrapping"; - return REPLICATION_ENABLED_STATE; -}({}); -const REPLICATION_DISABLED_STATE = 'disabled'; - -export { REPLICATION_DISABLED_STATE, REPLICATION_ENABLED_STATE }; -//# sourceMappingURL=index.js.map diff --git a/ui/vault-reporting/dist/types/index.js.map b/ui/vault-reporting/dist/types/index.js.map deleted file mode 100644 index d789eb8509..0000000000 --- a/ui/vault-reporting/dist/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: BUSL-1.1\n */\n\ntype ISODateString = `${number}${number}-${number}${number}-${number}${number}`;\ntype ISOTimeString = `${number}${number}:${number}${number}:${number}${number}`;\ntype ISODateTimeString = `${ISODateString}T${ISOTimeString}`;\n\nexport interface TimeSeriesDatum {\n date: ISODateTimeString;\n value: number;\n}\n\nexport interface SimpleDatum {\n value: number;\n label: string;\n}\n\n/*\n States for disaster recovery and performance\n (More states might be added once this is hooked up to the backend)\n*/\nexport enum REPLICATION_ENABLED_STATE {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n BOOTSTRAPPING = 'bootstrapping',\n}\nexport const REPLICATION_DISABLED_STATE = 'disabled';\n\nexport interface UsageDashboardData {\n authMethods: Record;\n leasesByAuthMethod: Record;\n kvv1Secrets: number;\n kvv2Secrets: number;\n leaseCountQuotas: {\n globalLeaseCountQuota: {\n capacity: number;\n count: number;\n name: string;\n };\n totalLeaseCountQuotas: number;\n };\n namespaces: number;\n secretSync: { totalDestinations: number };\n pki: {\n totalIssuers: number;\n totalRoles: number;\n };\n replicationStatus: {\n drPrimary: boolean;\n drState: REPLICATION_ENABLED_STATE | typeof REPLICATION_DISABLED_STATE;\n prPrimary: boolean;\n prState: REPLICATION_ENABLED_STATE | typeof REPLICATION_DISABLED_STATE;\n };\n secretEngines: Record;\n}\n\nexport type getUsageDataFunction = () => Promise;\n"],"names":["REPLICATION_ENABLED_STATE","REPLICATION_DISABLED_STATE"],"mappings":"AAAA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;AACYA,IAAAA,yBAAyB,0BAAzBA,yBAAyB,EAAA;EAAzBA,yBAAyB,CAAA,SAAA,CAAA,GAAA,SAAA;EAAzBA,yBAAyB,CAAA,WAAA,CAAA,GAAA,WAAA;EAAzBA,yBAAyB,CAAA,eAAA,CAAA,GAAA,eAAA;AAAA,EAAA,OAAzBA,yBAAyB;AAAA,CAAA,CAAA,EAAA;AAK9B,MAAMC,0BAA0B,GAAG;;;;"} \ No newline at end of file diff --git a/ui/vault-reporting/package.json b/ui/vault-reporting/package.json deleted file mode 100644 index ee23a16497..0000000000 --- a/ui/vault-reporting/package.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "name": "@hashicorp/vault-reporting", - "version": "0.0.0", - "description": "Reporting tools for vault products.", - "keywords": [ - "ember-addon" - ], - "repository": "", - "author": "", - "exports": { - ".": { - "types": "./declarations/index.d.ts", - "default": "./dist/index.js" - }, - "./*": { - "types": "./declarations/*.d.ts", - "default": "./dist/*.js" - }, - "./addon-main.js": "./addon-main.cjs" - }, - "typesVersions": { - "*": { - "*": [ - "declarations/*" - ] - } - }, - "files": [ - "addon-main.cjs", - "declarations", - "dist" - ], - "scripts": { - "build": "rollup --config", - "format": "prettier . --cache --write", - "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", - "lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && run format", - "lint:format": "prettier . --cache --check", - "lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern", - "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "glint", - "prepack": "pnpm build", - "start": "rollup --config --watch", - "test": "echo 'A v2 addon does not have tests, run tests in test-app'", - "sync-to-vault": "node scripts/sync-to-vault.mjs" - }, - "dependencies": { - "@hashicorp/design-system-components": "~4.18.0", - "@lineal-viz/lineal": "^0.5.1", - "ember-modifier": "^4.1.0" - }, - "devDependencies": { - "@babel/core": "^7.25.2", - "@babel/eslint-parser": "^7.25.1", - "@babel/plugin-transform-typescript": "^7.25.2", - "@babel/runtime": "^7.25.6", - "@embroider/addon-dev": "^7.1.0", - "@embroider/addon-shim": "^1.8.9", - "@eslint/js": "^9.17.0", - "@glimmer/component": "^1.1.2", - "@glimmer/tracking": "^1.1.2", - "@glint/core": "^1.4.0", - "@glint/environment-ember-loose": "^1.4.0", - "@glint/environment-ember-template-imports": "^1.4.0", - "@glint/template": "^1.4.0", - "@hashicorp/flight-icons": "^3.10.0", - "@rollup/plugin-babel": "^6.0.4", - "@tsconfig/ember": "^3.0.8", - "babel-plugin-ember-template-compilation": "^2.2.5", - "concurrently": "^9.0.1", - "decorator-transforms": "^2.2.2", - "ember-source": "^5.4.0", - "ember-template-lint": "^6.0.0", - "ember-template-lint-plugin-prettier": "^5.0.0", - "eslint": "^9.17.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-ember": "^12.3.3", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-n": "^17.15.1", - "globals": "^15.14.0", - "prettier": "^3.4.2", - "prettier-plugin-ember-template-tag": "^2.0.4", - "rollup": "^4.22.5", - "rollup-plugin-copy": "^3.5.0", - "rollup-plugin-scss": "^4.0.1", - "stylelint-config-standard-scss": "^14.0.0", - "typescript": "~5.6.0", - "typescript-eslint": "^8.19.1" - }, - "peerDependencies": { - "ember-source": ">= 4.12.0" - }, - "ember": { - "edition": "octane" - }, - "ember-addon": { - "version": 2, - "type": "addon", - "main": "addon-main.cjs", - "app-js": { - "./components/vault-reporting/base/title-row.js": "./dist/_app_/components/vault-reporting/base/title-row.js", - "./components/vault-reporting/cluster-replication.js": "./dist/_app_/components/vault-reporting/cluster-replication.js", - "./components/vault-reporting/counter.js": "./dist/_app_/components/vault-reporting/counter.js", - "./components/vault-reporting/dashboard/export.js": "./dist/_app_/components/vault-reporting/dashboard/export.js", - "./components/vault-reporting/donut-chart.js": "./dist/_app_/components/vault-reporting/donut-chart.js", - "./components/vault-reporting/global-lease.js": "./dist/_app_/components/vault-reporting/global-lease.js", - "./components/vault-reporting/horizontal-bar-chart.js": "./dist/_app_/components/vault-reporting/horizontal-bar-chart.js", - "./components/vault-reporting/views/dashboard.js": "./dist/_app_/components/vault-reporting/views/dashboard.js", - "./modifiers/axis-offset.js": "./dist/_app_/modifiers/axis-offset.js", - "./modifiers/css-custom-property.js": "./dist/_app_/modifiers/css-custom-property.js", - "./services/reporting-analytics.js": "./dist/_app_/services/reporting-analytics.js" - } - } -} diff --git a/ui/yarn.lock b/ui/yarn.lock index e83b3e653c..745ed0d886 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -2653,6 +2653,20 @@ __metadata: languageName: node linkType: hard +"@hashicorp-internal/vault-reporting@file:vault-reporting/0.5.1.tgz::locator=vault%40workspace%3A.": + version: 0.5.1 + resolution: "@hashicorp-internal/vault-reporting@file:vault-reporting/0.5.1.tgz::locator=vault%40workspace%3A." + dependencies: + "@embroider/macros": ^1.18.1 + "@lineal-viz/lineal": ^0.5.1 + decorator-transforms: ^2.3.0 + ember-modifier: ^4.2.2 + peerDependencies: + "@hashicorp/design-system-components": ^4.22.1 + checksum: 843d5ba280ed8df1d1e67eb81499b20b90b2c813c6ec4e758a090dd0102f840a518c4d990f79d72757a931a0788d82f27ccc3f79d76c7903e4366837ee00ddea + languageName: node + linkType: hard + "@hashicorp/design-system-components@npm:4.20.1": version: 4.20.1 resolution: "@hashicorp/design-system-components@npm:4.20.1" @@ -2708,58 +2722,6 @@ __metadata: languageName: node linkType: hard -"@hashicorp/design-system-components@npm:~4.18.0": - version: 4.18.2 - resolution: "@hashicorp/design-system-components@npm:4.18.2" - dependencies: - "@codemirror/commands": ^6.8.0 - "@codemirror/lang-go": ^6.0.1 - "@codemirror/lang-javascript": ^6.2.2 - "@codemirror/lang-json": ^6.0.1 - "@codemirror/lang-markdown": ^6.3.2 - "@codemirror/lang-sql": ^6.8.0 - "@codemirror/lang-yaml": ^6.1.2 - "@codemirror/language": ^6.10.3 - "@codemirror/legacy-modes": ^6.4.2 - "@codemirror/lint": ^6.8.4 - "@codemirror/state": ^6.5.0 - "@codemirror/view": ^6.36.2 - "@ember/render-modifiers": ^2.1.0 - "@ember/string": ^3.1.1 - "@ember/test-waiters": ^3.1.0 - "@embroider/addon-shim": ^1.9.0 - "@embroider/macros": ^1.16.12 - "@embroider/util": ^1.13.2 - "@floating-ui/dom": ^1.6.12 - "@hashicorp/design-system-tokens": ^2.3.0 - "@hashicorp/flight-icons": ^3.10.0 - "@lezer/highlight": ^1.2.1 - "@nullvoxpopuli/ember-composable-helpers": ^5.2.9 - clipboard-polyfill: ^4.1.1 - codemirror-lang-hcl: ^0.0.0-beta.2 - decorator-transforms: ^2.3.0 - ember-a11y-refocus: ^4.1.4 - ember-cli-sass: ^11.0.1 - ember-concurrency: ^4.0.2 - ember-element-helper: ^0.8.6 - ember-focus-trap: ^1.1.1 - ember-get-config: ^2.1.1 - ember-modifier: ^4.2.0 - ember-power-select: ^8.6.2 - ember-stargate: ^0.4.3 - ember-style-modifier: ^4.4.0 - ember-truth-helpers: ^4.0.3 - luxon: ^2.3.2 || ^3.4.2 - prismjs: ^1.30.0 - sass: ^1.83.0 - tabbable: ^6.2.0 - tippy.js: ^6.3.7 - peerDependencies: - ember-source: ^3.28.0 || ^4.0.0 || ^5.3.0 - checksum: 17b9c2a4ebf3faa1aafd61ad9f089bb648f3c598d6b5c91bcf17f1ad6d67d982cbb4db7731fe23b7ccf688843a1b3905faa6250f21650a4f506bc3afcf5f7b8f - languageName: node - linkType: hard - "@hashicorp/design-system-tokens@npm:^2.3.0": version: 2.3.0 resolution: "@hashicorp/design-system-tokens@npm:2.3.0" @@ -2767,13 +2729,6 @@ __metadata: languageName: node linkType: hard -"@hashicorp/flight-icons@npm:^3.10.0": - version: 3.10.0 - resolution: "@hashicorp/flight-icons@npm:3.10.0" - checksum: 757545760ca599aa3880a9680054dbcd2d9f7ceaac1ded4110152afed6b2ccf7a2d08940cbeb3fea2d64db77b9a75d99d7b4ef5056eb9541ee5f0a5f0002120d - languageName: node - linkType: hard - "@hashicorp/flight-icons@npm:^3.11.0": version: 3.12.0 resolution: "@hashicorp/flight-icons@npm:3.12.0" @@ -2788,18 +2743,6 @@ __metadata: languageName: node linkType: hard -"@hashicorp/vault-reporting@portal:./vault-reporting::locator=vault%40workspace%3A.": - version: 0.0.0-use.local - resolution: "@hashicorp/vault-reporting@portal:./vault-reporting::locator=vault%40workspace%3A." - dependencies: - "@hashicorp/design-system-components": ~4.18.0 - "@lineal-viz/lineal": ^0.5.1 - ember-modifier: ^4.1.0 - peerDependencies: - ember-source: ">= 4.12.0" - languageName: node - linkType: soft - "@humanwhocodes/config-array@npm:^0.13.0": version: 0.13.0 resolution: "@humanwhocodes/config-array@npm:0.13.0" @@ -8860,7 +8803,7 @@ __metadata: languageName: node linkType: hard -"ember-modifier@npm:^3.2.7 || ^4.0.0, ember-modifier@npm:^4.1.0, ember-modifier@npm:^4.2.0, ember-modifier@npm:~4.2.0": +"ember-modifier@npm:^3.2.7 || ^4.0.0, ember-modifier@npm:^4.2.0, ember-modifier@npm:^4.2.2, ember-modifier@npm:~4.2.0": version: 4.2.2 resolution: "ember-modifier@npm:4.2.2" dependencies: @@ -8937,31 +8880,6 @@ __metadata: languageName: node linkType: hard -"ember-resources@npm:^5.0.1": - version: 5.6.4 - resolution: "ember-resources@npm:5.6.4" - dependencies: - "@babel/runtime": ^7.17.8 - "@embroider/addon-shim": ^1.2.0 - "@embroider/macros": ^1.2.0 - peerDependencies: - "@ember/test-waiters": ^3.0.0 - "@glimmer/component": ^1.1.2 - "@glimmer/tracking": ^1.1.2 - "@glint/template": ">= 0.8.3" - ember-concurrency: ^2.0.0 - ember-source: ">= 3.28.0" - peerDependenciesMeta: - "@ember/test-waiters": - optional: true - "@glimmer/component": - optional: true - ember-concurrency: - optional: true - checksum: 9edb126ee307251080380d421aba42f330f76c6e295046ae59b48c3162d27e83223732e398f8373f933d120f38831e791e0fd31e63c70315982166db399d2b33 - languageName: node - linkType: hard - "ember-resources@npm:^6.0.0": version: 6.5.2 resolution: "ember-resources@npm:6.5.2" @@ -9106,19 +9024,6 @@ __metadata: languageName: node linkType: hard -"ember-stargate@npm:^0.4.3": - version: 0.4.3 - resolution: "ember-stargate@npm:0.4.3" - dependencies: - "@ember/render-modifiers": ^2.0.0 - "@embroider/addon-shim": ^1.0.0 - "@glimmer/component": ^1.1.2 - ember-resources: ^5.0.1 - tracked-maps-and-sets: ^3.0.1 - checksum: b41c0dd65c59e298d0a9f9b31fd5035b7824d8ebc0a92b47d52dc559b553ade3e9126bc4f647521138f09b34f80ed297300b6d428583b9a294de5071d5890bf6 - languageName: node - linkType: hard - "ember-stargate@npm:^0.5.0": version: 0.5.0 resolution: "ember-stargate@npm:0.5.0" @@ -13362,13 +13267,6 @@ __metadata: languageName: node linkType: hard -"luxon@npm:^2.3.2 || ^3.4.2": - version: 3.6.1 - resolution: "luxon@npm:3.6.1" - checksum: bc6c24dde90f4263f548cc5a4ea3328e9c9511bee0b2255bd319639712862f1eb14a39c1b2dcbff8a8bf6686996d28f45b8fc902994a72dd05a29cef1269a6a4 - languageName: node - linkType: hard - "luxon@npm:^3.4.2": version: 3.7.1 resolution: "luxon@npm:3.7.1" @@ -18575,9 +18473,9 @@ __metadata: "@ember/test-waiters": ~4.1.0 "@glimmer/component": ~1.1.2 "@glimmer/tracking": ~1.1.2 + "@hashicorp-internal/vault-reporting": "file:vault-reporting/0.5.1.tgz" "@hashicorp/design-system-components": 4.20.1 "@hashicorp/vault-client-typescript": hashicorp/vault-client-typescript - "@hashicorp/vault-reporting": "portal:./vault-reporting" "@icholy/duration": ~5.1.0 "@lineal-viz/lineal": ~0.5.1 "@tsconfig/ember": ~2.0.0