@gravionlabs/helix-shell 22.2.0 → 22.2.2
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, output, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
4
|
import { CommonModule, DOCUMENT, NgClass, SlicePipe } from "@angular/common";
|
|
5
5
|
import * as i1$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
7
7
|
import * as i2 from "@angular/router";
|
|
8
8
|
import { ActivatedRoute, NavigationEnd, Router, RouterModule } from "@angular/router";
|
|
9
|
-
import { HX_PRIMARY_COLORS, HX_SURFACES, HX_SURFACE_NAMES, HxBreadcrumb, HxButton, HxCheckbox, HxDivider, HxInput, HxPassword, HxSelectButton, HxTheme, HxTooltip } from "@gravionlabs/helix-ui";
|
|
9
|
+
import { HX_PRIMARY_COLORS, HX_SURFACES, HX_SURFACE_NAMES, HxBreadcrumb, HxButton, HxCard, HxCheckbox, HxDivider, HxInput, HxPassword, HxSelectButton, HxTheme, HxTooltip } from "@gravionlabs/helix-ui";
|
|
10
10
|
import { patchState, signalStore, withComputed, withHooks, withMethods, withState } from "@ngrx/signals";
|
|
11
11
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
12
12
|
import { Subject, filter, takeUntil } from "rxjs";
|
|
@@ -5059,6 +5059,521 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5059
5059
|
}]
|
|
5060
5060
|
}
|
|
5061
5061
|
});
|
|
5062
|
-
|
|
5062
|
+
var HelixEmptyState = class HelixEmptyState {
|
|
5063
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
5064
|
+
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
5065
|
+
icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
5066
|
+
size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
5067
|
+
headingLevel = input(3, {
|
|
5068
|
+
...ngDevMode ? { debugName: "headingLevel" } : /* istanbul ignore next */ {},
|
|
5069
|
+
transform: numberAttribute
|
|
5070
|
+
});
|
|
5071
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5072
|
+
minVersion: "12.0.0",
|
|
5073
|
+
version: "22.2.1",
|
|
5074
|
+
ngImport: i0,
|
|
5075
|
+
type: HelixEmptyState,
|
|
5076
|
+
deps: [],
|
|
5077
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
5078
|
+
});
|
|
5079
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5080
|
+
minVersion: "17.0.0",
|
|
5081
|
+
version: "22.2.1",
|
|
5082
|
+
type: HelixEmptyState,
|
|
5083
|
+
isStandalone: true,
|
|
5084
|
+
selector: "helix-empty-state",
|
|
5085
|
+
inputs: {
|
|
5086
|
+
title: {
|
|
5087
|
+
classPropertyName: "title",
|
|
5088
|
+
publicName: "title",
|
|
5089
|
+
isSignal: true,
|
|
5090
|
+
isRequired: true,
|
|
5091
|
+
transformFunction: null
|
|
5092
|
+
},
|
|
5093
|
+
description: {
|
|
5094
|
+
classPropertyName: "description",
|
|
5095
|
+
publicName: "description",
|
|
5096
|
+
isSignal: true,
|
|
5097
|
+
isRequired: false,
|
|
5098
|
+
transformFunction: null
|
|
5099
|
+
},
|
|
5100
|
+
icon: {
|
|
5101
|
+
classPropertyName: "icon",
|
|
5102
|
+
publicName: "icon",
|
|
5103
|
+
isSignal: true,
|
|
5104
|
+
isRequired: false,
|
|
5105
|
+
transformFunction: null
|
|
5106
|
+
},
|
|
5107
|
+
size: {
|
|
5108
|
+
classPropertyName: "size",
|
|
5109
|
+
publicName: "size",
|
|
5110
|
+
isSignal: true,
|
|
5111
|
+
isRequired: false,
|
|
5112
|
+
transformFunction: null
|
|
5113
|
+
},
|
|
5114
|
+
headingLevel: {
|
|
5115
|
+
classPropertyName: "headingLevel",
|
|
5116
|
+
publicName: "headingLevel",
|
|
5117
|
+
isSignal: true,
|
|
5118
|
+
isRequired: false,
|
|
5119
|
+
transformFunction: null
|
|
5120
|
+
}
|
|
5121
|
+
},
|
|
5122
|
+
host: {
|
|
5123
|
+
properties: { "class.helix-empty-state--small": "size() === 'small'" },
|
|
5124
|
+
classAttribute: "helix-empty-state"
|
|
5125
|
+
},
|
|
5126
|
+
ngImport: i0,
|
|
5127
|
+
template: "<div class=\"helix-empty-state__inner\">\n @if (icon(); as icon) {\n <span class=\"helix-empty-state__icon\" aria-hidden=\"true\"><i [class]=\"icon\"></i></span>\n }\n @switch (headingLevel()) {\n @case (2) { <h2 class=\"helix-empty-state__title\">{{ title() }}</h2> }\n @case (4) { <h4 class=\"helix-empty-state__title\">{{ title() }}</h4> }\n @case (5) { <h5 class=\"helix-empty-state__title\">{{ title() }}</h5> }\n @case (6) { <h6 class=\"helix-empty-state__title\">{{ title() }}</h6> }\n @default { <h3 class=\"helix-empty-state__title\">{{ title() }}</h3> }\n }\n @if (description(); as description) {\n <p class=\"helix-empty-state__description\">{{ description }}</p>\n }\n <div class=\"helix-empty-state__actions\"><ng-content /></div>\n</div>\n",
|
|
5128
|
+
styles: [":host{display:block}.helix-empty-state__inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;padding:3rem 1.5rem;max-width:28rem;margin:0 auto}:host(.helix-empty-state--small) .helix-empty-state__inner{padding:1.5rem 1rem;gap:.35rem}.helix-empty-state__icon{display:inline-flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;margin-bottom:.5rem;border-radius:50%;background:var(--helix-surface-hover);color:var(--text-color-secondary);font-size:1.5rem}:host(.helix-empty-state--small) .helix-empty-state__icon{width:2.5rem;height:2.5rem;margin-bottom:.25rem;font-size:1.1rem}.helix-empty-state__title{margin:0;font-size:1.125rem;font-weight:600;color:var(--text-color)}:host(.helix-empty-state--small) .helix-empty-state__title{font-size:1rem}.helix-empty-state__description{margin:0;color:var(--text-color-secondary)}.helix-empty-state__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:.75rem}.helix-empty-state__actions:empty{display:none}\n"],
|
|
5129
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5130
|
+
});
|
|
5131
|
+
};
|
|
5132
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
5133
|
+
minVersion: "12.0.0",
|
|
5134
|
+
version: "22.2.1",
|
|
5135
|
+
ngImport: i0,
|
|
5136
|
+
type: HelixEmptyState,
|
|
5137
|
+
decorators: [{
|
|
5138
|
+
type: Component,
|
|
5139
|
+
args: [{
|
|
5140
|
+
selector: "helix-empty-state",
|
|
5141
|
+
standalone: true,
|
|
5142
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5143
|
+
host: {
|
|
5144
|
+
class: "helix-empty-state",
|
|
5145
|
+
"[class.helix-empty-state--small]": "size() === 'small'"
|
|
5146
|
+
},
|
|
5147
|
+
template: "<div class=\"helix-empty-state__inner\">\n @if (icon(); as icon) {\n <span class=\"helix-empty-state__icon\" aria-hidden=\"true\"><i [class]=\"icon\"></i></span>\n }\n @switch (headingLevel()) {\n @case (2) { <h2 class=\"helix-empty-state__title\">{{ title() }}</h2> }\n @case (4) { <h4 class=\"helix-empty-state__title\">{{ title() }}</h4> }\n @case (5) { <h5 class=\"helix-empty-state__title\">{{ title() }}</h5> }\n @case (6) { <h6 class=\"helix-empty-state__title\">{{ title() }}</h6> }\n @default { <h3 class=\"helix-empty-state__title\">{{ title() }}</h3> }\n }\n @if (description(); as description) {\n <p class=\"helix-empty-state__description\">{{ description }}</p>\n }\n <div class=\"helix-empty-state__actions\"><ng-content /></div>\n</div>\n",
|
|
5148
|
+
styles: [":host{display:block}.helix-empty-state__inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;padding:3rem 1.5rem;max-width:28rem;margin:0 auto}:host(.helix-empty-state--small) .helix-empty-state__inner{padding:1.5rem 1rem;gap:.35rem}.helix-empty-state__icon{display:inline-flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;margin-bottom:.5rem;border-radius:50%;background:var(--helix-surface-hover);color:var(--text-color-secondary);font-size:1.5rem}:host(.helix-empty-state--small) .helix-empty-state__icon{width:2.5rem;height:2.5rem;margin-bottom:.25rem;font-size:1.1rem}.helix-empty-state__title{margin:0;font-size:1.125rem;font-weight:600;color:var(--text-color)}:host(.helix-empty-state--small) .helix-empty-state__title{font-size:1rem}.helix-empty-state__description{margin:0;color:var(--text-color-secondary)}.helix-empty-state__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:.75rem}.helix-empty-state__actions:empty{display:none}\n"]
|
|
5149
|
+
}]
|
|
5150
|
+
}],
|
|
5151
|
+
propDecorators: {
|
|
5152
|
+
title: [{
|
|
5153
|
+
type: i0.Input,
|
|
5154
|
+
args: [{
|
|
5155
|
+
isSignal: true,
|
|
5156
|
+
alias: "title",
|
|
5157
|
+
required: true
|
|
5158
|
+
}]
|
|
5159
|
+
}],
|
|
5160
|
+
description: [{
|
|
5161
|
+
type: i0.Input,
|
|
5162
|
+
args: [{
|
|
5163
|
+
isSignal: true,
|
|
5164
|
+
alias: "description",
|
|
5165
|
+
required: false
|
|
5166
|
+
}]
|
|
5167
|
+
}],
|
|
5168
|
+
icon: [{
|
|
5169
|
+
type: i0.Input,
|
|
5170
|
+
args: [{
|
|
5171
|
+
isSignal: true,
|
|
5172
|
+
alias: "icon",
|
|
5173
|
+
required: false
|
|
5174
|
+
}]
|
|
5175
|
+
}],
|
|
5176
|
+
size: [{
|
|
5177
|
+
type: i0.Input,
|
|
5178
|
+
args: [{
|
|
5179
|
+
isSignal: true,
|
|
5180
|
+
alias: "size",
|
|
5181
|
+
required: false
|
|
5182
|
+
}]
|
|
5183
|
+
}],
|
|
5184
|
+
headingLevel: [{
|
|
5185
|
+
type: i0.Input,
|
|
5186
|
+
args: [{
|
|
5187
|
+
isSignal: true,
|
|
5188
|
+
alias: "headingLevel",
|
|
5189
|
+
required: false
|
|
5190
|
+
}]
|
|
5191
|
+
}]
|
|
5192
|
+
}
|
|
5193
|
+
});
|
|
5194
|
+
var HelixPageHeader = class HelixPageHeader {
|
|
5195
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
5196
|
+
subtitle = input(...ngDevMode ? [void 0, { debugName: "subtitle" }] : /* istanbul ignore next */ []);
|
|
5197
|
+
breadcrumb = input(...ngDevMode ? [void 0, { debugName: "breadcrumb" }] : /* istanbul ignore next */ []);
|
|
5198
|
+
home = input(...ngDevMode ? [void 0, { debugName: "home" }] : /* istanbul ignore next */ []);
|
|
5199
|
+
headingLevel = input(1, {
|
|
5200
|
+
...ngDevMode ? { debugName: "headingLevel" } : /* istanbul ignore next */ {},
|
|
5201
|
+
transform: numberAttribute
|
|
5202
|
+
});
|
|
5203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5204
|
+
minVersion: "12.0.0",
|
|
5205
|
+
version: "22.2.1",
|
|
5206
|
+
ngImport: i0,
|
|
5207
|
+
type: HelixPageHeader,
|
|
5208
|
+
deps: [],
|
|
5209
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
5210
|
+
});
|
|
5211
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5212
|
+
minVersion: "17.0.0",
|
|
5213
|
+
version: "22.2.1",
|
|
5214
|
+
type: HelixPageHeader,
|
|
5215
|
+
isStandalone: true,
|
|
5216
|
+
selector: "helix-page-header",
|
|
5217
|
+
inputs: {
|
|
5218
|
+
title: {
|
|
5219
|
+
classPropertyName: "title",
|
|
5220
|
+
publicName: "title",
|
|
5221
|
+
isSignal: true,
|
|
5222
|
+
isRequired: true,
|
|
5223
|
+
transformFunction: null
|
|
5224
|
+
},
|
|
5225
|
+
subtitle: {
|
|
5226
|
+
classPropertyName: "subtitle",
|
|
5227
|
+
publicName: "subtitle",
|
|
5228
|
+
isSignal: true,
|
|
5229
|
+
isRequired: false,
|
|
5230
|
+
transformFunction: null
|
|
5231
|
+
},
|
|
5232
|
+
breadcrumb: {
|
|
5233
|
+
classPropertyName: "breadcrumb",
|
|
5234
|
+
publicName: "breadcrumb",
|
|
5235
|
+
isSignal: true,
|
|
5236
|
+
isRequired: false,
|
|
5237
|
+
transformFunction: null
|
|
5238
|
+
},
|
|
5239
|
+
home: {
|
|
5240
|
+
classPropertyName: "home",
|
|
5241
|
+
publicName: "home",
|
|
5242
|
+
isSignal: true,
|
|
5243
|
+
isRequired: false,
|
|
5244
|
+
transformFunction: null
|
|
5245
|
+
},
|
|
5246
|
+
headingLevel: {
|
|
5247
|
+
classPropertyName: "headingLevel",
|
|
5248
|
+
publicName: "headingLevel",
|
|
5249
|
+
isSignal: true,
|
|
5250
|
+
isRequired: false,
|
|
5251
|
+
transformFunction: null
|
|
5252
|
+
}
|
|
5253
|
+
},
|
|
5254
|
+
host: { classAttribute: "helix-page-header" },
|
|
5255
|
+
ngImport: i0,
|
|
5256
|
+
template: "<header class=\"helix-page-header__inner\">\n @if (breadcrumb()?.length || home()) {\n <hx-breadcrumb class=\"helix-page-header__breadcrumb\" [model]=\"breadcrumb() ?? []\" [home]=\"home()\" />\n }\n <div class=\"helix-page-header__row\">\n <div class=\"helix-page-header__text\">\n @switch (headingLevel()) {\n @case (2) { <h2 class=\"helix-page-header__title\">{{ title() }}</h2> }\n @case (3) { <h3 class=\"helix-page-header__title\">{{ title() }}</h3> }\n @case (4) { <h4 class=\"helix-page-header__title\">{{ title() }}</h4> }\n @case (5) { <h5 class=\"helix-page-header__title\">{{ title() }}</h5> }\n @case (6) { <h6 class=\"helix-page-header__title\">{{ title() }}</h6> }\n @default { <h1 class=\"helix-page-header__title\">{{ title() }}</h1> }\n }\n @if (subtitle(); as subtitle) {\n <p class=\"helix-page-header__subtitle\">{{ subtitle }}</p>\n }\n </div>\n <div class=\"helix-page-header__actions\">\n <ng-content select=\"[helixPageActions]\" />\n </div>\n </div>\n</header>\n",
|
|
5257
|
+
styles: [":host{display:block;margin-bottom:var(--helix-layout-gap, 1.5rem)}.helix-page-header__inner{display:flex;flex-direction:column;gap:.5rem}.helix-page-header__breadcrumb{--h-breadcrumb-padding: 0;--h-breadcrumb-background: transparent}.helix-page-header__row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.75rem 1.5rem}.helix-page-header__text{min-width:0;flex:1 1 16rem}.helix-page-header__title{margin:0;font-size:1.5rem;line-height:1.3;font-weight:600;color:var(--text-color);overflow-wrap:anywhere}.helix-page-header__subtitle{margin:.25rem 0 0;color:var(--text-color-secondary)}.helix-page-header__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.helix-page-header__actions:empty{display:none}\n"],
|
|
5258
|
+
dependencies: [{
|
|
5259
|
+
kind: "component",
|
|
5260
|
+
type: HxBreadcrumb,
|
|
5261
|
+
selector: "hx-breadcrumb",
|
|
5262
|
+
inputs: [
|
|
5263
|
+
"model",
|
|
5264
|
+
"home",
|
|
5265
|
+
"ariaLabel"
|
|
5266
|
+
]
|
|
5267
|
+
}],
|
|
5268
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5269
|
+
});
|
|
5270
|
+
};
|
|
5271
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
5272
|
+
minVersion: "12.0.0",
|
|
5273
|
+
version: "22.2.1",
|
|
5274
|
+
ngImport: i0,
|
|
5275
|
+
type: HelixPageHeader,
|
|
5276
|
+
decorators: [{
|
|
5277
|
+
type: Component,
|
|
5278
|
+
args: [{
|
|
5279
|
+
selector: "helix-page-header",
|
|
5280
|
+
standalone: true,
|
|
5281
|
+
imports: [HxBreadcrumb],
|
|
5282
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5283
|
+
host: { class: "helix-page-header" },
|
|
5284
|
+
template: "<header class=\"helix-page-header__inner\">\n @if (breadcrumb()?.length || home()) {\n <hx-breadcrumb class=\"helix-page-header__breadcrumb\" [model]=\"breadcrumb() ?? []\" [home]=\"home()\" />\n }\n <div class=\"helix-page-header__row\">\n <div class=\"helix-page-header__text\">\n @switch (headingLevel()) {\n @case (2) { <h2 class=\"helix-page-header__title\">{{ title() }}</h2> }\n @case (3) { <h3 class=\"helix-page-header__title\">{{ title() }}</h3> }\n @case (4) { <h4 class=\"helix-page-header__title\">{{ title() }}</h4> }\n @case (5) { <h5 class=\"helix-page-header__title\">{{ title() }}</h5> }\n @case (6) { <h6 class=\"helix-page-header__title\">{{ title() }}</h6> }\n @default { <h1 class=\"helix-page-header__title\">{{ title() }}</h1> }\n }\n @if (subtitle(); as subtitle) {\n <p class=\"helix-page-header__subtitle\">{{ subtitle }}</p>\n }\n </div>\n <div class=\"helix-page-header__actions\">\n <ng-content select=\"[helixPageActions]\" />\n </div>\n </div>\n</header>\n",
|
|
5285
|
+
styles: [":host{display:block;margin-bottom:var(--helix-layout-gap, 1.5rem)}.helix-page-header__inner{display:flex;flex-direction:column;gap:.5rem}.helix-page-header__breadcrumb{--h-breadcrumb-padding: 0;--h-breadcrumb-background: transparent}.helix-page-header__row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.75rem 1.5rem}.helix-page-header__text{min-width:0;flex:1 1 16rem}.helix-page-header__title{margin:0;font-size:1.5rem;line-height:1.3;font-weight:600;color:var(--text-color);overflow-wrap:anywhere}.helix-page-header__subtitle{margin:.25rem 0 0;color:var(--text-color-secondary)}.helix-page-header__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.helix-page-header__actions:empty{display:none}\n"]
|
|
5286
|
+
}]
|
|
5287
|
+
}],
|
|
5288
|
+
propDecorators: {
|
|
5289
|
+
title: [{
|
|
5290
|
+
type: i0.Input,
|
|
5291
|
+
args: [{
|
|
5292
|
+
isSignal: true,
|
|
5293
|
+
alias: "title",
|
|
5294
|
+
required: true
|
|
5295
|
+
}]
|
|
5296
|
+
}],
|
|
5297
|
+
subtitle: [{
|
|
5298
|
+
type: i0.Input,
|
|
5299
|
+
args: [{
|
|
5300
|
+
isSignal: true,
|
|
5301
|
+
alias: "subtitle",
|
|
5302
|
+
required: false
|
|
5303
|
+
}]
|
|
5304
|
+
}],
|
|
5305
|
+
breadcrumb: [{
|
|
5306
|
+
type: i0.Input,
|
|
5307
|
+
args: [{
|
|
5308
|
+
isSignal: true,
|
|
5309
|
+
alias: "breadcrumb",
|
|
5310
|
+
required: false
|
|
5311
|
+
}]
|
|
5312
|
+
}],
|
|
5313
|
+
home: [{
|
|
5314
|
+
type: i0.Input,
|
|
5315
|
+
args: [{
|
|
5316
|
+
isSignal: true,
|
|
5317
|
+
alias: "home",
|
|
5318
|
+
required: false
|
|
5319
|
+
}]
|
|
5320
|
+
}],
|
|
5321
|
+
headingLevel: [{
|
|
5322
|
+
type: i0.Input,
|
|
5323
|
+
args: [{
|
|
5324
|
+
isSignal: true,
|
|
5325
|
+
alias: "headingLevel",
|
|
5326
|
+
required: false
|
|
5327
|
+
}]
|
|
5328
|
+
}]
|
|
5329
|
+
}
|
|
5330
|
+
});
|
|
5331
|
+
var HelixStatCard = class HelixStatCard {
|
|
5332
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
5333
|
+
value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
5334
|
+
format = input(...ngDevMode ? [void 0, { debugName: "format" }] : /* istanbul ignore next */ []);
|
|
5335
|
+
locale = input(...ngDevMode ? [void 0, { debugName: "locale" }] : /* istanbul ignore next */ []);
|
|
5336
|
+
icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
5337
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
5338
|
+
trend = input(void 0, {
|
|
5339
|
+
...ngDevMode ? { debugName: "trend" } : /* istanbul ignore next */ {},
|
|
5340
|
+
transform: (v) => v === null || v === void 0 || v === "" ? void 0 : numberAttribute(v)
|
|
5341
|
+
});
|
|
5342
|
+
trendUnit = input("%", ...ngDevMode ? [{ debugName: "trendUnit" }] : /* istanbul ignore next */ []);
|
|
5343
|
+
trendLabel = input(...ngDevMode ? [void 0, { debugName: "trendLabel" }] : /* istanbul ignore next */ []);
|
|
5344
|
+
trendDigits = input(1, {
|
|
5345
|
+
...ngDevMode ? { debugName: "trendDigits" } : /* istanbul ignore next */ {},
|
|
5346
|
+
transform: numberAttribute
|
|
5347
|
+
});
|
|
5348
|
+
formattedValue = computed(() => {
|
|
5349
|
+
const value = this.value();
|
|
5350
|
+
if (typeof value !== "number") return value;
|
|
5351
|
+
return new Intl.NumberFormat(this.locale(), this.format()).format(value);
|
|
5352
|
+
}, ...ngDevMode ? [{ debugName: "formattedValue" }] : /* istanbul ignore next */ []);
|
|
5353
|
+
direction = computed(() => {
|
|
5354
|
+
const trend = this.trend();
|
|
5355
|
+
if (trend === void 0 || Number.isNaN(trend)) return null;
|
|
5356
|
+
return trend > 0 ? "up" : trend < 0 ? "down" : "flat";
|
|
5357
|
+
}, ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
|
|
5358
|
+
trendText = computed(() => {
|
|
5359
|
+
const trend = this.trend();
|
|
5360
|
+
if (trend === void 0 || Number.isNaN(trend)) return "";
|
|
5361
|
+
const digits = Math.min(Math.max(Math.round(this.trendDigits()), 0), 20);
|
|
5362
|
+
return `${new Intl.NumberFormat(this.locale(), {
|
|
5363
|
+
minimumFractionDigits: 0,
|
|
5364
|
+
maximumFractionDigits: digits,
|
|
5365
|
+
signDisplay: "exceptZero"
|
|
5366
|
+
}).format(trend)}${this.trendUnit()}`;
|
|
5367
|
+
}, ...ngDevMode ? [{ debugName: "trendText" }] : /* istanbul ignore next */ []);
|
|
5368
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5369
|
+
minVersion: "12.0.0",
|
|
5370
|
+
version: "22.2.1",
|
|
5371
|
+
ngImport: i0,
|
|
5372
|
+
type: HelixStatCard,
|
|
5373
|
+
deps: [],
|
|
5374
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
5375
|
+
});
|
|
5376
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5377
|
+
minVersion: "17.0.0",
|
|
5378
|
+
version: "22.2.1",
|
|
5379
|
+
type: HelixStatCard,
|
|
5380
|
+
isStandalone: true,
|
|
5381
|
+
selector: "helix-stat-card",
|
|
5382
|
+
inputs: {
|
|
5383
|
+
label: {
|
|
5384
|
+
classPropertyName: "label",
|
|
5385
|
+
publicName: "label",
|
|
5386
|
+
isSignal: true,
|
|
5387
|
+
isRequired: true,
|
|
5388
|
+
transformFunction: null
|
|
5389
|
+
},
|
|
5390
|
+
value: {
|
|
5391
|
+
classPropertyName: "value",
|
|
5392
|
+
publicName: "value",
|
|
5393
|
+
isSignal: true,
|
|
5394
|
+
isRequired: true,
|
|
5395
|
+
transformFunction: null
|
|
5396
|
+
},
|
|
5397
|
+
format: {
|
|
5398
|
+
classPropertyName: "format",
|
|
5399
|
+
publicName: "format",
|
|
5400
|
+
isSignal: true,
|
|
5401
|
+
isRequired: false,
|
|
5402
|
+
transformFunction: null
|
|
5403
|
+
},
|
|
5404
|
+
locale: {
|
|
5405
|
+
classPropertyName: "locale",
|
|
5406
|
+
publicName: "locale",
|
|
5407
|
+
isSignal: true,
|
|
5408
|
+
isRequired: false,
|
|
5409
|
+
transformFunction: null
|
|
5410
|
+
},
|
|
5411
|
+
icon: {
|
|
5412
|
+
classPropertyName: "icon",
|
|
5413
|
+
publicName: "icon",
|
|
5414
|
+
isSignal: true,
|
|
5415
|
+
isRequired: false,
|
|
5416
|
+
transformFunction: null
|
|
5417
|
+
},
|
|
5418
|
+
severity: {
|
|
5419
|
+
classPropertyName: "severity",
|
|
5420
|
+
publicName: "severity",
|
|
5421
|
+
isSignal: true,
|
|
5422
|
+
isRequired: false,
|
|
5423
|
+
transformFunction: null
|
|
5424
|
+
},
|
|
5425
|
+
trend: {
|
|
5426
|
+
classPropertyName: "trend",
|
|
5427
|
+
publicName: "trend",
|
|
5428
|
+
isSignal: true,
|
|
5429
|
+
isRequired: false,
|
|
5430
|
+
transformFunction: null
|
|
5431
|
+
},
|
|
5432
|
+
trendUnit: {
|
|
5433
|
+
classPropertyName: "trendUnit",
|
|
5434
|
+
publicName: "trendUnit",
|
|
5435
|
+
isSignal: true,
|
|
5436
|
+
isRequired: false,
|
|
5437
|
+
transformFunction: null
|
|
5438
|
+
},
|
|
5439
|
+
trendLabel: {
|
|
5440
|
+
classPropertyName: "trendLabel",
|
|
5441
|
+
publicName: "trendLabel",
|
|
5442
|
+
isSignal: true,
|
|
5443
|
+
isRequired: false,
|
|
5444
|
+
transformFunction: null
|
|
5445
|
+
},
|
|
5446
|
+
trendDigits: {
|
|
5447
|
+
classPropertyName: "trendDigits",
|
|
5448
|
+
publicName: "trendDigits",
|
|
5449
|
+
isSignal: true,
|
|
5450
|
+
isRequired: false,
|
|
5451
|
+
transformFunction: null
|
|
5452
|
+
}
|
|
5453
|
+
},
|
|
5454
|
+
host: {
|
|
5455
|
+
properties: { "class": "'helix-stat-card--' + severity()" },
|
|
5456
|
+
classAttribute: "helix-stat-card"
|
|
5457
|
+
},
|
|
5458
|
+
ngImport: i0,
|
|
5459
|
+
template: "<hx-card class=\"helix-stat-card__card\" [ariaLabel]=\"label()\">\n <div class=\"helix-stat-card__top\">\n <div class=\"helix-stat-card__text\">\n <span class=\"helix-stat-card__label\">{{ label() }}</span>\n <span class=\"helix-stat-card__value\">{{ formattedValue() }}</span>\n </div>\n @if (icon(); as icon) {\n <span class=\"helix-stat-card__icon\" aria-hidden=\"true\"><i [class]=\"icon\"></i></span>\n }\n </div>\n @if (direction(); as direction) {\n <p class=\"helix-stat-card__trend\" [class]=\"'helix-stat-card__trend helix-stat-card__trend--' + direction\">\n <i\n class=\"helix-stat-card__arrow\"\n [class.pi]=\"true\"\n [class.pi-arrow-up]=\"direction === 'up'\"\n [class.pi-arrow-down]=\"direction === 'down'\"\n [class.pi-minus]=\"direction === 'flat'\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"helix-stat-card__sr\">{{ direction }}</span>\n <span class=\"helix-stat-card__trend-value\">{{ trendText() }}</span>\n @if (trendLabel(); as trendLabel) {\n <span class=\"helix-stat-card__trend-label\">{{ trendLabel }}</span>\n }\n </p>\n }\n <ng-content />\n</hx-card>\n",
|
|
5460
|
+
styles: [":host{display:block;--helix-stat-accent: var(--h-primary-color);--helix-stat-accent-bg: color-mix(in srgb, var(--h-primary-color) 12%, transparent)}:host(.helix-stat-card--info){--helix-stat-accent: var(--h-sky-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-sky-500) 12%, transparent)}:host(.helix-stat-card--success){--helix-stat-accent: var(--h-green-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-green-500) 12%, transparent)}:host(.helix-stat-card--warn){--helix-stat-accent: var(--h-orange-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-orange-500) 12%, transparent)}:host(.helix-stat-card--danger){--helix-stat-accent: var(--h-red-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-red-500) 12%, transparent)}.helix-stat-card__card{display:block;height:100%}.helix-stat-card__top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.helix-stat-card__text{display:flex;flex-direction:column;gap:.35rem;min-width:0}.helix-stat-card__label{color:var(--text-color-secondary);font-weight:500}.helix-stat-card__value{font-size:1.5rem;line-height:1.2;font-weight:600;color:var(--text-color);overflow-wrap:anywhere}.helix-stat-card__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.5rem;height:2.5rem;border-radius:var(--content-border-radius);background:var(--helix-stat-accent-bg);color:var(--helix-stat-accent);font-size:1.25rem}.helix-stat-card__trend{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem;margin:.75rem 0 0;color:var(--text-color-secondary)}.helix-stat-card__arrow{font-size:.75rem}.helix-stat-card__trend-value{font-weight:600}.helix-stat-card__trend--up .helix-stat-card__arrow,.helix-stat-card__trend--up .helix-stat-card__trend-value{color:var(--h-green-600)}.helix-stat-card__trend--down .helix-stat-card__arrow,.helix-stat-card__trend--down .helix-stat-card__trend-value{color:var(--h-red-600)}.helix-stat-card__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n"],
|
|
5461
|
+
dependencies: [{
|
|
5462
|
+
kind: "component",
|
|
5463
|
+
type: HxCard,
|
|
5464
|
+
selector: "hx-card",
|
|
5465
|
+
inputs: [
|
|
5466
|
+
"title",
|
|
5467
|
+
"subtitle",
|
|
5468
|
+
"headingLevel"
|
|
5469
|
+
]
|
|
5470
|
+
}],
|
|
5471
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5472
|
+
});
|
|
5473
|
+
};
|
|
5474
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
5475
|
+
minVersion: "12.0.0",
|
|
5476
|
+
version: "22.2.1",
|
|
5477
|
+
ngImport: i0,
|
|
5478
|
+
type: HelixStatCard,
|
|
5479
|
+
decorators: [{
|
|
5480
|
+
type: Component,
|
|
5481
|
+
args: [{
|
|
5482
|
+
selector: "helix-stat-card",
|
|
5483
|
+
standalone: true,
|
|
5484
|
+
imports: [HxCard],
|
|
5485
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5486
|
+
host: {
|
|
5487
|
+
class: "helix-stat-card",
|
|
5488
|
+
"[class]": "'helix-stat-card--' + severity()"
|
|
5489
|
+
},
|
|
5490
|
+
template: "<hx-card class=\"helix-stat-card__card\" [ariaLabel]=\"label()\">\n <div class=\"helix-stat-card__top\">\n <div class=\"helix-stat-card__text\">\n <span class=\"helix-stat-card__label\">{{ label() }}</span>\n <span class=\"helix-stat-card__value\">{{ formattedValue() }}</span>\n </div>\n @if (icon(); as icon) {\n <span class=\"helix-stat-card__icon\" aria-hidden=\"true\"><i [class]=\"icon\"></i></span>\n }\n </div>\n @if (direction(); as direction) {\n <p class=\"helix-stat-card__trend\" [class]=\"'helix-stat-card__trend helix-stat-card__trend--' + direction\">\n <i\n class=\"helix-stat-card__arrow\"\n [class.pi]=\"true\"\n [class.pi-arrow-up]=\"direction === 'up'\"\n [class.pi-arrow-down]=\"direction === 'down'\"\n [class.pi-minus]=\"direction === 'flat'\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"helix-stat-card__sr\">{{ direction }}</span>\n <span class=\"helix-stat-card__trend-value\">{{ trendText() }}</span>\n @if (trendLabel(); as trendLabel) {\n <span class=\"helix-stat-card__trend-label\">{{ trendLabel }}</span>\n }\n </p>\n }\n <ng-content />\n</hx-card>\n",
|
|
5491
|
+
styles: [":host{display:block;--helix-stat-accent: var(--h-primary-color);--helix-stat-accent-bg: color-mix(in srgb, var(--h-primary-color) 12%, transparent)}:host(.helix-stat-card--info){--helix-stat-accent: var(--h-sky-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-sky-500) 12%, transparent)}:host(.helix-stat-card--success){--helix-stat-accent: var(--h-green-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-green-500) 12%, transparent)}:host(.helix-stat-card--warn){--helix-stat-accent: var(--h-orange-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-orange-500) 12%, transparent)}:host(.helix-stat-card--danger){--helix-stat-accent: var(--h-red-500);--helix-stat-accent-bg: color-mix(in srgb, var(--h-red-500) 12%, transparent)}.helix-stat-card__card{display:block;height:100%}.helix-stat-card__top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.helix-stat-card__text{display:flex;flex-direction:column;gap:.35rem;min-width:0}.helix-stat-card__label{color:var(--text-color-secondary);font-weight:500}.helix-stat-card__value{font-size:1.5rem;line-height:1.2;font-weight:600;color:var(--text-color);overflow-wrap:anywhere}.helix-stat-card__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.5rem;height:2.5rem;border-radius:var(--content-border-radius);background:var(--helix-stat-accent-bg);color:var(--helix-stat-accent);font-size:1.25rem}.helix-stat-card__trend{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem;margin:.75rem 0 0;color:var(--text-color-secondary)}.helix-stat-card__arrow{font-size:.75rem}.helix-stat-card__trend-value{font-weight:600}.helix-stat-card__trend--up .helix-stat-card__arrow,.helix-stat-card__trend--up .helix-stat-card__trend-value{color:var(--h-green-600)}.helix-stat-card__trend--down .helix-stat-card__arrow,.helix-stat-card__trend--down .helix-stat-card__trend-value{color:var(--h-red-600)}.helix-stat-card__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n"]
|
|
5492
|
+
}]
|
|
5493
|
+
}],
|
|
5494
|
+
propDecorators: {
|
|
5495
|
+
label: [{
|
|
5496
|
+
type: i0.Input,
|
|
5497
|
+
args: [{
|
|
5498
|
+
isSignal: true,
|
|
5499
|
+
alias: "label",
|
|
5500
|
+
required: true
|
|
5501
|
+
}]
|
|
5502
|
+
}],
|
|
5503
|
+
value: [{
|
|
5504
|
+
type: i0.Input,
|
|
5505
|
+
args: [{
|
|
5506
|
+
isSignal: true,
|
|
5507
|
+
alias: "value",
|
|
5508
|
+
required: true
|
|
5509
|
+
}]
|
|
5510
|
+
}],
|
|
5511
|
+
format: [{
|
|
5512
|
+
type: i0.Input,
|
|
5513
|
+
args: [{
|
|
5514
|
+
isSignal: true,
|
|
5515
|
+
alias: "format",
|
|
5516
|
+
required: false
|
|
5517
|
+
}]
|
|
5518
|
+
}],
|
|
5519
|
+
locale: [{
|
|
5520
|
+
type: i0.Input,
|
|
5521
|
+
args: [{
|
|
5522
|
+
isSignal: true,
|
|
5523
|
+
alias: "locale",
|
|
5524
|
+
required: false
|
|
5525
|
+
}]
|
|
5526
|
+
}],
|
|
5527
|
+
icon: [{
|
|
5528
|
+
type: i0.Input,
|
|
5529
|
+
args: [{
|
|
5530
|
+
isSignal: true,
|
|
5531
|
+
alias: "icon",
|
|
5532
|
+
required: false
|
|
5533
|
+
}]
|
|
5534
|
+
}],
|
|
5535
|
+
severity: [{
|
|
5536
|
+
type: i0.Input,
|
|
5537
|
+
args: [{
|
|
5538
|
+
isSignal: true,
|
|
5539
|
+
alias: "severity",
|
|
5540
|
+
required: false
|
|
5541
|
+
}]
|
|
5542
|
+
}],
|
|
5543
|
+
trend: [{
|
|
5544
|
+
type: i0.Input,
|
|
5545
|
+
args: [{
|
|
5546
|
+
isSignal: true,
|
|
5547
|
+
alias: "trend",
|
|
5548
|
+
required: false
|
|
5549
|
+
}]
|
|
5550
|
+
}],
|
|
5551
|
+
trendUnit: [{
|
|
5552
|
+
type: i0.Input,
|
|
5553
|
+
args: [{
|
|
5554
|
+
isSignal: true,
|
|
5555
|
+
alias: "trendUnit",
|
|
5556
|
+
required: false
|
|
5557
|
+
}]
|
|
5558
|
+
}],
|
|
5559
|
+
trendLabel: [{
|
|
5560
|
+
type: i0.Input,
|
|
5561
|
+
args: [{
|
|
5562
|
+
isSignal: true,
|
|
5563
|
+
alias: "trendLabel",
|
|
5564
|
+
required: false
|
|
5565
|
+
}]
|
|
5566
|
+
}],
|
|
5567
|
+
trendDigits: [{
|
|
5568
|
+
type: i0.Input,
|
|
5569
|
+
args: [{
|
|
5570
|
+
isSignal: true,
|
|
5571
|
+
alias: "trendDigits",
|
|
5572
|
+
required: false
|
|
5573
|
+
}]
|
|
5574
|
+
}]
|
|
5575
|
+
}
|
|
5576
|
+
});
|
|
5577
|
+
export { HELIX_BREADCRUMB, HelixAccess, HelixAlertAction, HelixAppLayout, HelixBadge, HelixConfigurator, HelixConfiguratorAction, HelixDarkModeAction, HelixEmpty, HelixEmptyState, HelixEnvironmentBadge, HelixError, HelixFeaturesWidget, HelixFloatingConfigurator, HelixFooter, HelixFooterWidget, HelixFormField, HelixHeroWidget, HelixHighlightsWidget, HelixLanding, HelixLogin, HelixMobileMenuAction, HelixNavRail, HelixNavRailItem, HelixNotfound, HelixPageHeader, HelixPricingWidget, HelixSelect, HelixStatCard, HelixStatusBar, HelixTopbar, HelixTopbarWidget, LayoutStore, authRoutes, helixBreadcrumbsFromRoutes, helixMenuLinksFrom, helixNavGroupsFromMenu, helixRoutesFrom };
|
|
5063
5578
|
|
|
5064
5579
|
//# sourceMappingURL=gravionlabs-helix-shell.mjs.map
|