@kumori/aurora-wui-components 0.0.337-dev4696.2 → 0.0.337-dev4696.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,7 +49,7 @@ export declare function getCtaHeading(notification: CallToActionNotification): s
|
|
|
49
49
|
export declare function getCtaDescription(notification: CallToActionNotification): string;
|
|
50
50
|
export declare function getCtaBadgeLabel(notification: CallToActionNotification): string;
|
|
51
51
|
export declare function getCtaBreadcrumb(notification: CallToActionNotification, labels?: CallToActionBreadcrumbLabels): CallToActionBreadcrumbItem[];
|
|
52
|
-
export declare function
|
|
52
|
+
export declare function formatCtaDateTime(date: string | undefined): string;
|
|
53
53
|
export interface GroupedCallToActionNotification {
|
|
54
54
|
notification: CallToActionNotification;
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-to-action-notification.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/call-to-action-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAElG,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,I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C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,eAAO,MAAM,yBAAyB,EAAE,4BAKvC,CAAC;AAoBF,wBAAgB,qBAAqB,CAAC,aAAa,EAAE;IAAE,WAAW,EAAE,uBAAuB,CAAA;CAAE,EAAE,GAAG,uBAAuB,CAIxH;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAG5E;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAEhF;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAE/E;AAyBD,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,wBAAwB,EACtC,MAAM,GAAE,4BAAwD,GAC/D,0BAA0B,EAAE,CAK9B;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CASlE;AAED,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,wBAAwB,CAAC;CACxC;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,wBAAwB,EAAE,EACzC,EAAE,QAAgB,EAAE,GAAE,wBAA6B,GAClD,+BAA+B,EAAE,CAQnC;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,wBAAwB,EACtC,QAAQ,EAAE,CAAC,MAAM,EAAE;IAAE,YAAY,EAAE,wBAAwB,CAAC;IAAC,MAAM,EAAE,8BAA8B,CAAA;CAAE,KAAK,IAAI,GAC7G,kBAAkB,EAAE,CAStB"}
|
package/dist/index.js
CHANGED
|
@@ -15383,12 +15383,13 @@ function getCtaBreadcrumb(notification, labels = DEFAULT_BREADCRUMB_LABELS) {
|
|
|
15383
15383
|
name: names[level]
|
|
15384
15384
|
}));
|
|
15385
15385
|
}
|
|
15386
|
-
function
|
|
15386
|
+
function formatCtaDateTime(date) {
|
|
15387
15387
|
const numeric = Number(date);
|
|
15388
15388
|
const timestamp = numeric > 0 ? numeric < 0xe8d4a51000 ? numeric * 1e3 : numeric : Date.parse(date ?? "");
|
|
15389
15389
|
if (!Number.isFinite(timestamp)) return "";
|
|
15390
|
-
const
|
|
15391
|
-
|
|
15390
|
+
const moment = new Date(timestamp);
|
|
15391
|
+
const pad = (value) => String(value).padStart(2, "0");
|
|
15392
|
+
return `${`${pad(moment.getDate())}/${pad(moment.getMonth() + 1)}`} • ${`${pad(moment.getHours())}:${pad(moment.getMinutes())}:${pad(moment.getSeconds())}`}`;
|
|
15392
15393
|
}
|
|
15393
15394
|
function groupCallToActionNotifications(notifications, { byEntity = false } = {}) {
|
|
15394
15395
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -15547,7 +15548,7 @@ var AxebowCallToActionFeature = class AxebowCallToActionFeature extends LitEleme
|
|
|
15547
15548
|
heading=${getCtaDescription(notification) || getCtaHeading(notification)}
|
|
15548
15549
|
badgeLabel=${getCtaBadgeLabel(notification)}
|
|
15549
15550
|
.breadcrumb=${getCtaBreadcrumb(notification, this.breadcrumbLabels)}
|
|
15550
|
-
timeText=${
|
|
15551
|
+
timeText=${formatCtaDateTime(notification.date)}
|
|
15551
15552
|
lowNoteText=${DEFAULT_LOW_NOTE_TEXT}
|
|
15552
15553
|
.buttons=${buildCtaButtons(notification, (detail) => this.dispatchEvent(new CustomEvent("cta-action", {
|
|
15553
15554
|
detail,
|
|
@@ -17824,6 +17825,6 @@ __decorate([property({ type: Number })], AxebowScrollbar.prototype, "thumbLength
|
|
|
17824
17825
|
__decorate([property({ type: Number })], AxebowScrollbar.prototype, "edgeOffsetRem", void 0);
|
|
17825
17826
|
AxebowScrollbar = __decorate([customElement("axebow-scrollbar")], AxebowScrollbar);
|
|
17826
17827
|
//#endregion
|
|
17827
|
-
export { AxebowActionsFooter, AxebowAdjustmentResourcesCounter, AxebowAlert, AxebowBadge, AxebowBanner, AxebowBaseCard, AxebowBorderContainer, AxebowBoxSection, AxebowBoxedInput, AxebowBreadcrumbHeader, AxebowButton, AxebowCallToActionFeature, AxebowCallToActionRow, AxebowCardActionBanner, AxebowCardAttentionBanner, AxebowCardCloudLogo, AxebowCardFilter, AxebowCardFilterItem, AxebowCardFooter, AxebowCardHeader, AxebowCardResourceRow, AxebowCardResourceTable, AxebowCardSpecialLink, AxebowCardStatItem, AxebowCardStatsRow, AxebowCardStatus, AxebowCardTableHeader, AxebowCardVersionSelector, AxebowCarousel, AxebowCarouselInput, AxebowCarouselSelectorItem, AxebowCarouselSelectorTenant, AxebowChannelConfigPanel, AxebowCheckboxInput, AxebowCollaboratorsDialog, AxebowCopyBox, AxebowCopyIcon, AxebowCtaDialog, AxebowDeleteDataPopup, AxebowDeployCard, AxebowDeploySummary, AxebowDialog, AxebowDivider, AxebowDragDropUploadFile, AxebowDraggableService, AxebowEmptyState, AxebowEmptyStateDescriptionSection, AxebowEmptyStateSelectorSection, AxebowExpandableCard, AxebowExpandableHeader, AxebowFilterBar, AxebowFooter, AxebowFormPanelField, AxebowGettingStartedCard, AxebowGraph, AxebowHeader, AxebowHelpBubble, AxebowHyperlinkSwitch, AxebowIcon, AxebowInfrastructureCard, AxebowInput, AxebowInputBase, AxebowInstancesTable, AxebowLearningCenter, AxebowLimitsCounter, AxebowManageHyperlinks, AxebowMarketplaceCard, AxebowMobileWarningBanner, AxebowModal, AxebowModalsConfirmation, AxebowMoreActions, AxebowNumberCard, AxebowNumbersSection, AxebowNumericInput, AxebowObservabilityContainer, AxebowPageActions, AxebowPaginatedTable, AxebowPemDialog, AxebowPill, AxebowPlanProvidersModal, AxebowPlanSelectField, AxebowPremiumPlanPopup, AxebowProgressBar, AxebowPromotionDropdown, AxebowProvidersInput, AxebowQuickTipButton, AxebowQuickTipSection, AxebowRefreshPeriodPanel, AxebowRegistrySelector, AxebowResourceBar, AxebowResourceBoxForm, AxebowResourceCard, AxebowResourceLimitInput, AxebowResourceLimitsPanel, AxebowResourcesCounter, AxebowRoleCard, AxebowRoleContainerDropdown, AxebowRoleTooltip, AxebowRuntimeZipDialog, AxebowScrollbar, AxebowSearch, AxebowSearchBarFilters, AxebowSelectInput, AxebowSelectInputWithDivider, AxebowSelectorCard, AxebowSelectorSlider, AxebowServiceDetailHeader, AxebowServicesPanel, AxebowSidebar, AxebowStatus, AxebowStepHeader, AxebowSummaryCard, AxebowSummaryFlavors, AxebowSummaryKeyValue, AxebowSummaryLimits, AxebowSummaryStep, AxebowSummaryStepHeader, AxebowSwitch, AxebowSwitchInput, AxebowTabSelector, AxebowTabsSubmenu, AxebowTagsInput, AxebowTenantCard, AxebowTenantResourceTable, AxebowTenantsTable, AxebowTextInput, AxebowTimeRangePanel, AxebowTooltip, AxebowUl, AxebowUndeployCard, AxebowUnderlineTabSelector, AxebowUsageTooltip, AxebowWhiteContainer, CRITICALITY_STYLES, CustomHomePageBody, DEFAULT_ADD_DIALOG_LABELS, DEFAULT_BREADCRUMB_LABELS, DEFAULT_LOW_NOTE_TEXT, DeployModalComponent, DeployModalFooter, DeployModalHeader, DeployPageBody, STATUS_COLORS, TableChart, UsageChart, WizardPageLayout, axebowTheme, buildAddButton, buildCtaButtons, buildExternalNodeContent, buildMainNodeContent, createElement, createIcon,
|
|
17828
|
+
export { AxebowActionsFooter, AxebowAdjustmentResourcesCounter, AxebowAlert, AxebowBadge, AxebowBanner, AxebowBaseCard, AxebowBorderContainer, AxebowBoxSection, AxebowBoxedInput, AxebowBreadcrumbHeader, AxebowButton, AxebowCallToActionFeature, AxebowCallToActionRow, AxebowCardActionBanner, AxebowCardAttentionBanner, AxebowCardCloudLogo, AxebowCardFilter, AxebowCardFilterItem, AxebowCardFooter, AxebowCardHeader, AxebowCardResourceRow, AxebowCardResourceTable, AxebowCardSpecialLink, AxebowCardStatItem, AxebowCardStatsRow, AxebowCardStatus, AxebowCardTableHeader, AxebowCardVersionSelector, AxebowCarousel, AxebowCarouselInput, AxebowCarouselSelectorItem, AxebowCarouselSelectorTenant, AxebowChannelConfigPanel, AxebowCheckboxInput, AxebowCollaboratorsDialog, AxebowCopyBox, AxebowCopyIcon, AxebowCtaDialog, AxebowDeleteDataPopup, AxebowDeployCard, AxebowDeploySummary, AxebowDialog, AxebowDivider, AxebowDragDropUploadFile, AxebowDraggableService, AxebowEmptyState, AxebowEmptyStateDescriptionSection, AxebowEmptyStateSelectorSection, AxebowExpandableCard, AxebowExpandableHeader, AxebowFilterBar, AxebowFooter, AxebowFormPanelField, AxebowGettingStartedCard, AxebowGraph, AxebowHeader, AxebowHelpBubble, AxebowHyperlinkSwitch, AxebowIcon, AxebowInfrastructureCard, AxebowInput, AxebowInputBase, AxebowInstancesTable, AxebowLearningCenter, AxebowLimitsCounter, AxebowManageHyperlinks, AxebowMarketplaceCard, AxebowMobileWarningBanner, AxebowModal, AxebowModalsConfirmation, AxebowMoreActions, AxebowNumberCard, AxebowNumbersSection, AxebowNumericInput, AxebowObservabilityContainer, AxebowPageActions, AxebowPaginatedTable, AxebowPemDialog, AxebowPill, AxebowPlanProvidersModal, AxebowPlanSelectField, AxebowPremiumPlanPopup, AxebowProgressBar, AxebowPromotionDropdown, AxebowProvidersInput, AxebowQuickTipButton, AxebowQuickTipSection, AxebowRefreshPeriodPanel, AxebowRegistrySelector, AxebowResourceBar, AxebowResourceBoxForm, AxebowResourceCard, AxebowResourceLimitInput, AxebowResourceLimitsPanel, AxebowResourcesCounter, AxebowRoleCard, AxebowRoleContainerDropdown, AxebowRoleTooltip, AxebowRuntimeZipDialog, AxebowScrollbar, AxebowSearch, AxebowSearchBarFilters, AxebowSelectInput, AxebowSelectInputWithDivider, AxebowSelectorCard, AxebowSelectorSlider, AxebowServiceDetailHeader, AxebowServicesPanel, AxebowSidebar, AxebowStatus, AxebowStepHeader, AxebowSummaryCard, AxebowSummaryFlavors, AxebowSummaryKeyValue, AxebowSummaryLimits, AxebowSummaryStep, AxebowSummaryStepHeader, AxebowSwitch, AxebowSwitchInput, AxebowTabSelector, AxebowTabsSubmenu, AxebowTagsInput, AxebowTenantCard, AxebowTenantResourceTable, AxebowTenantsTable, AxebowTextInput, AxebowTimeRangePanel, AxebowTooltip, AxebowUl, AxebowUndeployCard, AxebowUnderlineTabSelector, AxebowUsageTooltip, AxebowWhiteContainer, CRITICALITY_STYLES, CustomHomePageBody, DEFAULT_ADD_DIALOG_LABELS, DEFAULT_BREADCRUMB_LABELS, DEFAULT_LOW_NOTE_TEXT, DeployModalComponent, DeployModalFooter, DeployModalHeader, DeployPageBody, STATUS_COLORS, TableChart, UsageChart, WizardPageLayout, axebowTheme, buildAddButton, buildCtaButtons, buildExternalNodeContent, buildMainNodeContent, createElement, createIcon, formatCtaDateTime, getCtaBadgeLabel, getCtaBreadcrumb, getCtaDescription, getCtaHeading, getHighestCriticality, groupCallToActionNotifications };
|
|
17828
17829
|
|
|
17829
17830
|
//# sourceMappingURL=index.js.map
|