@praxisui/core 10.0.0-rc.33 → 10.0.0-rc.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/ai/component-registry.json +8 -7
- package/fesm2022/praxisui-core-schema.mjs +240 -14
- package/fesm2022/praxisui-core.mjs +1184 -175
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +11 -3
- package/types/praxisui-core.d.ts +119 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, InjectionToken, Injectable, inject, Inject, Optional, SkipSelf, makeEnvironmentProviders, signal, computed, APP_INITIALIZER, DestroyRef, ENVIRONMENT_INITIALIZER, ErrorHandler, isSignal, Input, Directive, input, booleanAttribute, ChangeDetectionStrategy, EventEmitter, Output, SecurityContext, ViewContainerRef, Injector, effect, SimpleChange, ElementRef, ChangeDetectorRef, afterEveryRender, contentChild, viewChild, HostBinding, output, afterNextRender, ViewChild, ViewEncapsulation, createEnvironmentInjector, EnvironmentInjector, reflectComponentType, HostListener, ViewChildren, forwardRef, TemplateRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { Component, InjectionToken, Injectable, inject, Inject, Optional, SkipSelf, makeEnvironmentProviders, signal, computed, APP_INITIALIZER, DestroyRef, ENVIRONMENT_INITIALIZER, ErrorHandler, isSignal, Input, Directive, input, booleanAttribute, ChangeDetectionStrategy, EventEmitter, Output, SecurityContext, ViewContainerRef, Injector, effect, untracked, SimpleChange, ElementRef, ChangeDetectorRef, afterEveryRender, contentChild, viewChild, HostBinding, output, afterNextRender, ViewChild, ViewEncapsulation, createEnvironmentInjector, EnvironmentInjector, reflectComponentType, HostListener, ViewChildren, forwardRef, TemplateRef, Renderer2 } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpClient, HttpParams, HttpResponse, HttpContextToken, HttpErrorResponse, HTTP_INTERCEPTORS, withInterceptors } from '@angular/common/http';
|
|
5
5
|
import { of, defer, throwError, from, EMPTY, BehaviorSubject, firstValueFrom, Subject, finalize as finalize$1, shareReplay as shareReplay$1, map as map$1, catchError as catchError$1, switchMap as switchMap$1, Observable, timer, forkJoin, isObservable, combineLatest, merge, Subscription, defaultIfEmpty, timeout as timeout$1 } from 'rxjs';
|
|
@@ -3322,7 +3322,14 @@ class SchemaNormalizationKernel {
|
|
|
3322
3322
|
if (!this.isNumericSchemaType(typeToken)) {
|
|
3323
3323
|
return undefined;
|
|
3324
3324
|
}
|
|
3325
|
-
|
|
3325
|
+
const explicitFormat = this.resolveNonEmptyStringToken(ui?.format, prop?.format);
|
|
3326
|
+
if (explicitFormat) {
|
|
3327
|
+
return explicitFormat;
|
|
3328
|
+
}
|
|
3329
|
+
if (String(prop?.type ?? '').trim().toLowerCase() === 'integer') {
|
|
3330
|
+
return 'integer';
|
|
3331
|
+
}
|
|
3332
|
+
return undefined;
|
|
3326
3333
|
}
|
|
3327
3334
|
/**
|
|
3328
3335
|
* Converte o schema bruto do backend (OpenAPI + x-ui) em FieldDefinition[] tipado.
|
|
@@ -3574,6 +3581,9 @@ class SchemaNormalizationKernel {
|
|
|
3574
3581
|
if (ui.options !== undefined) {
|
|
3575
3582
|
field.options = this.parseOptions(ui.options);
|
|
3576
3583
|
}
|
|
3584
|
+
if (Array.isArray(prop?.enum) && prop.enum.length > 0 && field.enumValues === undefined) {
|
|
3585
|
+
field.enumValues = [...prop.enum];
|
|
3586
|
+
}
|
|
3577
3587
|
if (ui.optionGroups !== undefined) {
|
|
3578
3588
|
field.optionGroups = this.parseOptions(ui.optionGroups);
|
|
3579
3589
|
}
|
|
@@ -3791,9 +3801,24 @@ class SchemaNormalizationKernel {
|
|
|
3791
3801
|
'showTicks',
|
|
3792
3802
|
'trueLabel',
|
|
3793
3803
|
'falseLabel',
|
|
3804
|
+
'labelTrue',
|
|
3805
|
+
'labelFalse',
|
|
3806
|
+
'iconTrue',
|
|
3807
|
+
'iconFalse',
|
|
3808
|
+
'tone',
|
|
3809
|
+
'toneTrue',
|
|
3810
|
+
'toneFalse',
|
|
3811
|
+
'booleanFormat',
|
|
3812
|
+
'displayFormat',
|
|
3813
|
+
'currency',
|
|
3794
3814
|
'currencyCode',
|
|
3795
3815
|
'locale',
|
|
3796
3816
|
'precision',
|
|
3817
|
+
'decimalPlaces',
|
|
3818
|
+
'initialsField',
|
|
3819
|
+
'optionLabelKey',
|
|
3820
|
+
'optionValueKey',
|
|
3821
|
+
'extraProperties',
|
|
3797
3822
|
'rangeMode',
|
|
3798
3823
|
'maxRating',
|
|
3799
3824
|
'allowHalf',
|
|
@@ -4391,12 +4416,14 @@ class ApiConfigStorage {
|
|
|
4391
4416
|
if (this.opts?.errorPolicy !== 'fail')
|
|
4392
4417
|
return false;
|
|
4393
4418
|
return (key.startsWith('praxis:global-config')
|
|
4394
|
-
|| key.startsWith('dynamic-page:')
|
|
4419
|
+
|| key.startsWith('dynamic-page:')
|
|
4420
|
+
|| key.startsWith('crud-authoring:'));
|
|
4395
4421
|
}
|
|
4396
4422
|
isCriticalPersistenceKey(key) {
|
|
4397
4423
|
return (key.startsWith('praxis:global-config')
|
|
4398
4424
|
|| key.startsWith('table-config:')
|
|
4399
|
-
|| key.startsWith('dynamic-page:')
|
|
4425
|
+
|| key.startsWith('dynamic-page:')
|
|
4426
|
+
|| key.startsWith('crud-authoring:'));
|
|
4400
4427
|
}
|
|
4401
4428
|
clearConfig(key) {
|
|
4402
4429
|
const { type, id } = this.resolveKey(key);
|
|
@@ -4518,6 +4545,7 @@ class ApiConfigStorage {
|
|
|
4518
4545
|
['form-schema-notified:', 'praxis-dynamic-form'],
|
|
4519
4546
|
['form-inputs:', 'praxis-dynamic-form'],
|
|
4520
4547
|
['form-schema-', 'praxis-dynamic-form'],
|
|
4548
|
+
['crud-authoring:', 'praxis-crud'],
|
|
4521
4549
|
['crud-overrides:', 'praxis-crud'],
|
|
4522
4550
|
['crud-dialog-state:', 'praxis-crud'],
|
|
4523
4551
|
['crud-back:', 'praxis-crud'],
|
|
@@ -7642,8 +7670,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
7642
7670
|
|
|
7643
7671
|
function buildBaseColumnFromDef(def) {
|
|
7644
7672
|
const type = resolveColumnTypeFromFieldDefinition(def);
|
|
7645
|
-
const format =
|
|
7646
|
-
const
|
|
7673
|
+
const format = resolveFormatFromFieldDefinition(def, type);
|
|
7674
|
+
const valueMapping = resolveSchemaValueMappingFromFieldDefinition(def);
|
|
7675
|
+
const renderer = resolveRendererFromFieldDefinition(def);
|
|
7676
|
+
const isAvatar = renderer?.type === 'avatar';
|
|
7677
|
+
const explicitWidth = firstNonEmptyString(def.width);
|
|
7647
7678
|
return {
|
|
7648
7679
|
field: def.name,
|
|
7649
7680
|
header: def.label || def.name,
|
|
@@ -7653,7 +7684,10 @@ function buildBaseColumnFromDef(def) {
|
|
|
7653
7684
|
filterable: def.filterable === true,
|
|
7654
7685
|
resizable: true,
|
|
7655
7686
|
order: typeof def.order === 'number' ? def.order : undefined,
|
|
7687
|
+
...(explicitWidth ? { width: explicitWidth } : isAvatar ? { width: '56px' } : {}),
|
|
7688
|
+
...(isAvatar ? { align: 'center' } : {}),
|
|
7656
7689
|
...(format ? { format } : {}),
|
|
7690
|
+
...(valueMapping ? { valueMapping } : {}),
|
|
7657
7691
|
...(renderer ? { renderer } : {}),
|
|
7658
7692
|
};
|
|
7659
7693
|
}
|
|
@@ -7806,21 +7840,175 @@ function resolveTextMaskFormat(value) {
|
|
|
7806
7840
|
const hasInvalidMaskLetters = /[A-WYZa-wyz]/.test(format);
|
|
7807
7841
|
return hasMaskTokens && !hasInvalidMaskLetters ? format : undefined;
|
|
7808
7842
|
}
|
|
7843
|
+
function resolveFormatFromFieldDefinition(def, type) {
|
|
7844
|
+
if (type === 'string') {
|
|
7845
|
+
return resolveTextMaskFormatFromFieldDefinition(def);
|
|
7846
|
+
}
|
|
7847
|
+
if (type === 'currency') {
|
|
7848
|
+
return resolveSchemaCurrencyFormatFromFieldDefinition(def);
|
|
7849
|
+
}
|
|
7850
|
+
if (type === 'date') {
|
|
7851
|
+
return (firstNonEmptyString(def.displayFormat) ??
|
|
7852
|
+
firstNonEmptyString(def.extraProperties?.displayFormat));
|
|
7853
|
+
}
|
|
7854
|
+
if (type === 'boolean') {
|
|
7855
|
+
return resolveSchemaBooleanFormatFromFieldDefinition(def);
|
|
7856
|
+
}
|
|
7857
|
+
if (type === 'number') {
|
|
7858
|
+
const schemaDataType = normalizePresentationToken(def.type);
|
|
7859
|
+
const schemaFormat = normalizePresentationToken(def.format);
|
|
7860
|
+
const numericFormat = normalizePresentationToken(def.numericFormat ?? def.extraProperties?.numericFormat);
|
|
7861
|
+
if (schemaDataType === 'integer' ||
|
|
7862
|
+
schemaFormat === 'integer' ||
|
|
7863
|
+
schemaFormat === 'int32' ||
|
|
7864
|
+
schemaFormat === 'int64' ||
|
|
7865
|
+
numericFormat === 'integer' ||
|
|
7866
|
+
numericFormat === 'int32' ||
|
|
7867
|
+
numericFormat === 'int64') {
|
|
7868
|
+
return '1.0-0';
|
|
7869
|
+
}
|
|
7870
|
+
const explicitDecimals = firstFiniteNumber(def.decimalPlaces) ??
|
|
7871
|
+
firstFiniteNumber(def.extraProperties?.decimalPlaces);
|
|
7872
|
+
if (explicitDecimals !== undefined && explicitDecimals >= 0) {
|
|
7873
|
+
const decimals = Math.trunc(explicitDecimals);
|
|
7874
|
+
return `1.${decimals}-${decimals}`;
|
|
7875
|
+
}
|
|
7876
|
+
}
|
|
7877
|
+
return undefined;
|
|
7878
|
+
}
|
|
7879
|
+
function resolveSchemaCurrencyFormatFromFieldDefinition(def) {
|
|
7880
|
+
const currency = firstNonEmptyString(def.currency) ??
|
|
7881
|
+
firstNonEmptyString(def.extraProperties?.currency) ??
|
|
7882
|
+
'BRL';
|
|
7883
|
+
const decimalPlaces = firstFiniteNumber(def.decimalPlaces) ??
|
|
7884
|
+
firstFiniteNumber(def.extraProperties?.decimalPlaces) ??
|
|
7885
|
+
2;
|
|
7886
|
+
return `${currency}|symbol|${decimalPlaces}`;
|
|
7887
|
+
}
|
|
7888
|
+
function resolveSchemaBooleanFormatFromFieldDefinition(def) {
|
|
7889
|
+
const explicit = firstNonEmptyString(def.booleanFormat) ??
|
|
7890
|
+
firstNonEmptyString(def.extraProperties?.booleanFormat);
|
|
7891
|
+
if (explicit)
|
|
7892
|
+
return explicit;
|
|
7893
|
+
const trueLabel = firstNonEmptyString(def.trueLabel) ??
|
|
7894
|
+
firstNonEmptyString(def.labelTrue) ??
|
|
7895
|
+
firstNonEmptyString(def.extraProperties?.trueLabel) ??
|
|
7896
|
+
firstNonEmptyString(def.extraProperties?.labelTrue);
|
|
7897
|
+
const falseLabel = firstNonEmptyString(def.falseLabel) ??
|
|
7898
|
+
firstNonEmptyString(def.labelFalse) ??
|
|
7899
|
+
firstNonEmptyString(def.extraProperties?.falseLabel) ??
|
|
7900
|
+
firstNonEmptyString(def.extraProperties?.labelFalse);
|
|
7901
|
+
if (trueLabel && falseLabel) {
|
|
7902
|
+
const tNorm = normalizePresentationToken(trueLabel);
|
|
7903
|
+
const fNorm = normalizePresentationToken(falseLabel);
|
|
7904
|
+
if (tNorm === 'ativo' && fNorm === 'inativo')
|
|
7905
|
+
return 'active-inactive';
|
|
7906
|
+
if (tNorm === 'sim' && (fNorm === 'nao' || fNorm === 'não'))
|
|
7907
|
+
return 'yes-no';
|
|
7908
|
+
return `custom|${trueLabel}|${falseLabel}`;
|
|
7909
|
+
}
|
|
7910
|
+
const name = normalizePresentationToken(def.name);
|
|
7911
|
+
if (name === 'ativo' || name === 'active' || name.endsWith('ativo')) {
|
|
7912
|
+
return 'active-inactive';
|
|
7913
|
+
}
|
|
7914
|
+
return undefined;
|
|
7915
|
+
}
|
|
7916
|
+
function resolveSchemaValueMappingFromFieldDefinition(def) {
|
|
7917
|
+
const explicit = def.valueMapping;
|
|
7918
|
+
if (explicit && typeof explicit === 'object' && !Array.isArray(explicit)) {
|
|
7919
|
+
const normalized = Object.entries(explicit).reduce((acc, [key, value]) => {
|
|
7920
|
+
if (key && typeof value === 'string' && value.trim()) {
|
|
7921
|
+
acc[key] = value.trim();
|
|
7922
|
+
}
|
|
7923
|
+
return acc;
|
|
7924
|
+
}, {});
|
|
7925
|
+
if (Object.keys(normalized).length > 0)
|
|
7926
|
+
return normalized;
|
|
7927
|
+
}
|
|
7928
|
+
const options = Array.isArray(def.options) ? def.options : [];
|
|
7929
|
+
if (options.length > 0) {
|
|
7930
|
+
const valueKey = firstNonEmptyString(def.optionValueKey) ?? 'key';
|
|
7931
|
+
const labelKey = firstNonEmptyString(def.optionLabelKey) ?? 'value';
|
|
7932
|
+
const mapping = options.reduce((acc, option) => {
|
|
7933
|
+
if (!option || typeof option !== 'object')
|
|
7934
|
+
return acc;
|
|
7935
|
+
const record = option;
|
|
7936
|
+
const value = record[valueKey] ?? record.key ?? record.id ?? record.value;
|
|
7937
|
+
const label = record[labelKey] ?? record.label ?? record.value ?? record.name;
|
|
7938
|
+
if (value !== undefined && value !== null && label !== undefined && label !== null) {
|
|
7939
|
+
acc[String(value)] = String(label);
|
|
7940
|
+
}
|
|
7941
|
+
return acc;
|
|
7942
|
+
}, {});
|
|
7943
|
+
if (Object.keys(mapping).length > 0)
|
|
7944
|
+
return mapping;
|
|
7945
|
+
}
|
|
7946
|
+
const enumValues = Array.isArray(def.enumValues)
|
|
7947
|
+
? def.enumValues
|
|
7948
|
+
.map((v) => (v != null ? String(v).trim() : ''))
|
|
7949
|
+
.filter((v) => v.length > 0)
|
|
7950
|
+
: [];
|
|
7951
|
+
if (enumValues.length > 0) {
|
|
7952
|
+
return enumValues.reduce((acc, value) => {
|
|
7953
|
+
acc[value] = humanizeSchemaEnumValue(value);
|
|
7954
|
+
return acc;
|
|
7955
|
+
}, {});
|
|
7956
|
+
}
|
|
7957
|
+
return undefined;
|
|
7958
|
+
}
|
|
7959
|
+
function humanizeSchemaEnumValue(value) {
|
|
7960
|
+
return value
|
|
7961
|
+
.toLowerCase()
|
|
7962
|
+
.split(/[_\-\s]+/)
|
|
7963
|
+
.filter(Boolean)
|
|
7964
|
+
.map((part, index) => (index === 0 ? `${part.charAt(0).toUpperCase()}${part.slice(1)}` : part))
|
|
7965
|
+
.join(' ');
|
|
7966
|
+
}
|
|
7967
|
+
function resolveRendererFromFieldDefinition(def) {
|
|
7968
|
+
const presentationRenderer = resolveRendererFromFieldPresentation(def);
|
|
7969
|
+
if (presentationRenderer)
|
|
7970
|
+
return presentationRenderer;
|
|
7971
|
+
if (normalizePresentationToken(def.controlType) === 'avatar') {
|
|
7972
|
+
const initialsField = firstNonEmptyString(def.initialsField) ??
|
|
7973
|
+
firstNonEmptyString(def.extraProperties?.initialsField) ??
|
|
7974
|
+
'nomeCompleto';
|
|
7975
|
+
return {
|
|
7976
|
+
type: 'avatar',
|
|
7977
|
+
avatar: {
|
|
7978
|
+
srcField: def.name,
|
|
7979
|
+
initialsField,
|
|
7980
|
+
shape: 'circle',
|
|
7981
|
+
size: 32,
|
|
7982
|
+
},
|
|
7983
|
+
};
|
|
7984
|
+
}
|
|
7985
|
+
return undefined;
|
|
7986
|
+
}
|
|
7809
7987
|
function resolveRendererFromFieldPresentation(def) {
|
|
7810
7988
|
const presentation = def.presentation;
|
|
7811
7989
|
if (!presentation || typeof presentation !== 'object')
|
|
7812
7990
|
return undefined;
|
|
7991
|
+
if (presentation.presenter === 'microVisualization' &&
|
|
7992
|
+
isPraxisPresentationVisualizationTableSafe(presentation.visualization)) {
|
|
7993
|
+
return {
|
|
7994
|
+
type: 'microVisualization',
|
|
7995
|
+
microVisualization: {
|
|
7996
|
+
visualization: presentation.visualization,
|
|
7997
|
+
},
|
|
7998
|
+
};
|
|
7999
|
+
}
|
|
7813
8000
|
const presenter = normalizePresentationToken(presentation.presenter ?? presentation.variant);
|
|
7814
8001
|
const color = resolveSemanticPresentationColor(presentation.tone);
|
|
7815
8002
|
const variant = resolveSemanticPresentationVariant(presentation.appearance);
|
|
7816
8003
|
const icon = firstNonEmptyString(presentation.icon);
|
|
7817
8004
|
const tooltipText = firstNonEmptyString(presentation.tooltip);
|
|
7818
8005
|
const tooltip = tooltipText ? { text: tooltipText } : undefined;
|
|
8006
|
+
const fixedText = firstNonEmptyString(presentation.label);
|
|
7819
8007
|
if (presenter === 'chip') {
|
|
7820
8008
|
return {
|
|
7821
8009
|
type: 'chip',
|
|
7822
8010
|
chip: {
|
|
7823
|
-
textField: def.name,
|
|
8011
|
+
...(fixedText ? { text: fixedText } : { textField: def.name }),
|
|
7824
8012
|
...(color ? { color } : {}),
|
|
7825
8013
|
...(variant ? { variant } : {}),
|
|
7826
8014
|
...(icon ? { icon } : {}),
|
|
@@ -7832,7 +8020,7 @@ function resolveRendererFromFieldPresentation(def) {
|
|
|
7832
8020
|
return {
|
|
7833
8021
|
type: 'badge',
|
|
7834
8022
|
badge: {
|
|
7835
|
-
textField: def.name,
|
|
8023
|
+
...(fixedText ? { text: fixedText } : { textField: def.name }),
|
|
7836
8024
|
...(color ? { color } : {}),
|
|
7837
8025
|
...(variant ? { variant } : {}),
|
|
7838
8026
|
...(icon ? { icon } : {}),
|
|
@@ -7846,13 +8034,41 @@ function resolveRendererFromFieldPresentation(def) {
|
|
|
7846
8034
|
const hasAffixes = !!(affixes.prefix || affixes.suffix);
|
|
7847
8035
|
if (!rendererIcon && !hasAffixes)
|
|
7848
8036
|
return undefined;
|
|
8037
|
+
if (affixes.prefix || affixes.suffix || tooltipText) {
|
|
8038
|
+
return {
|
|
8039
|
+
type: 'icon',
|
|
8040
|
+
icon: {
|
|
8041
|
+
...(!hasAffixes && rendererIcon ? { name: rendererIcon } : {}),
|
|
8042
|
+
textField: def.name,
|
|
8043
|
+
...(tooltipText ? { ariaLabel: tooltipText } : {}),
|
|
8044
|
+
...affixes,
|
|
8045
|
+
},
|
|
8046
|
+
};
|
|
8047
|
+
}
|
|
8048
|
+
if (!rendererIcon)
|
|
8049
|
+
return undefined;
|
|
7849
8050
|
return {
|
|
7850
|
-
type: '
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
8051
|
+
type: 'compose',
|
|
8052
|
+
compose: {
|
|
8053
|
+
items: [
|
|
8054
|
+
{
|
|
8055
|
+
type: 'icon',
|
|
8056
|
+
icon: {
|
|
8057
|
+
name: rendererIcon,
|
|
8058
|
+
...(color ? { color } : {}),
|
|
8059
|
+
...(def.label ? { ariaLabel: def.label } : {}),
|
|
8060
|
+
},
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
type: 'value',
|
|
8064
|
+
field: def.name,
|
|
8065
|
+
},
|
|
8066
|
+
],
|
|
8067
|
+
layout: {
|
|
8068
|
+
direction: 'row',
|
|
8069
|
+
gap: 6,
|
|
8070
|
+
align: 'center',
|
|
8071
|
+
},
|
|
7856
8072
|
},
|
|
7857
8073
|
};
|
|
7858
8074
|
}
|
|
@@ -7860,13 +8076,20 @@ function resolveRendererFromFieldPresentation(def) {
|
|
|
7860
8076
|
}
|
|
7861
8077
|
function resolveSemanticPresentationColor(tone) {
|
|
7862
8078
|
const normalized = normalizePresentationToken(tone);
|
|
7863
|
-
if (
|
|
8079
|
+
if (normalized === 'neutral')
|
|
8080
|
+
return 'basic';
|
|
8081
|
+
if (!normalized)
|
|
7864
8082
|
return undefined;
|
|
7865
|
-
|
|
8083
|
+
if (normalized === 'danger' || normalized === 'warning')
|
|
8084
|
+
return 'warn';
|
|
8085
|
+
return normalized;
|
|
7866
8086
|
}
|
|
7867
8087
|
function resolveSemanticPresentationVariant(appearance) {
|
|
7868
8088
|
const normalized = normalizePresentationToken(appearance);
|
|
7869
|
-
return normalized === 'filled' ||
|
|
8089
|
+
return normalized === 'filled' ||
|
|
8090
|
+
normalized === 'outlined' ||
|
|
8091
|
+
normalized === 'soft' ||
|
|
8092
|
+
normalized === 'plain'
|
|
7870
8093
|
? normalized
|
|
7871
8094
|
: undefined;
|
|
7872
8095
|
}
|
|
@@ -7884,6 +8107,12 @@ function firstNonEmptyString(value) {
|
|
|
7884
8107
|
const trimmed = value.trim();
|
|
7885
8108
|
return trimmed ? trimmed : undefined;
|
|
7886
8109
|
}
|
|
8110
|
+
function firstFiniteNumber(value) {
|
|
8111
|
+
if (value === null || value === undefined || value === '')
|
|
8112
|
+
return undefined;
|
|
8113
|
+
const numeric = typeof value === 'number' ? value : Number(value);
|
|
8114
|
+
return Number.isFinite(numeric) ? numeric : undefined;
|
|
8115
|
+
}
|
|
7887
8116
|
function normalizePresentationToken(value) {
|
|
7888
8117
|
return String(value ?? '').trim().toLowerCase().replace(/[\s_-]+/g, '');
|
|
7889
8118
|
}
|
|
@@ -15437,10 +15666,146 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
15437
15666
|
args: [{ providedIn: 'root' }]
|
|
15438
15667
|
}], ctorParameters: () => [] });
|
|
15439
15668
|
|
|
15669
|
+
const RESOURCE_DISCOVERY_I18N_NAMESPACE = 'resourceDiscovery';
|
|
15670
|
+
const RESOURCE_AVAILABILITY_REASON_KEY_BY_CODE = {
|
|
15671
|
+
'authentication-required': 'availability.reason.authentication-required',
|
|
15672
|
+
'resource-state-blocked': 'availability.reason.resource-state-blocked',
|
|
15673
|
+
'missing-authority': 'availability.reason.missing-authority',
|
|
15674
|
+
'resource-context-required': 'availability.reason.resource-context-required',
|
|
15675
|
+
'resource-not-found': 'availability.reason.resource-not-found',
|
|
15676
|
+
};
|
|
15677
|
+
const RESOURCE_DISCOVERY_I18N_CONFIG = {
|
|
15678
|
+
namespaces: {
|
|
15679
|
+
[RESOURCE_DISCOVERY_I18N_NAMESPACE]: {
|
|
15680
|
+
'pt-BR': {
|
|
15681
|
+
'quickConnect.resource': 'Recurso de dados',
|
|
15682
|
+
'quickConnect.loading': 'Carregando recursos…',
|
|
15683
|
+
'quickConnect.unavailable': 'Não foi possível carregar o catálogo. Tente novamente ou informe a rota avançada.',
|
|
15684
|
+
'quickConnect.empty': 'O catálogo não publicou recursos disponíveis.',
|
|
15685
|
+
'quickConnect.advanced': 'Conexão avançada por rota',
|
|
15686
|
+
'quickConnect.path': 'Rota do recurso (API)',
|
|
15687
|
+
'quickConnect.invalid': 'Informe uma rota válida da API.',
|
|
15688
|
+
'quickConnect.retry': 'Tentar novamente',
|
|
15689
|
+
'quickConnect.hint': 'Escolha um recurso publicado pela API.',
|
|
15690
|
+
'quickConnect.hint.collection': 'Escolha um recurso de coleção/listagem publicado pela API.',
|
|
15691
|
+
'quickConnect.hint.filter': 'Escolha um recurso filtrável publicado pela API.',
|
|
15692
|
+
'quickConnect.hint.stats': 'Escolha um recurso analítico de estatísticas publicado pela API.',
|
|
15693
|
+
'quickConnect.hint.options': 'Escolha um recurso de opções/lookup publicado pela API.',
|
|
15694
|
+
'quickConnect.hint.crud': 'Escolha um recurso de cadastro/operação publicado pela API.',
|
|
15695
|
+
'quickConnect.readOnly': 'Somente leitura',
|
|
15696
|
+
'quickConnect.searchPlaceholder': 'Buscar por nome, chave ou rota…',
|
|
15697
|
+
'quickConnect.fields': 'Carregar campos do filtro',
|
|
15698
|
+
'quickConnect.fieldsError': 'Não foi possível carregar os campos. Verifique o recurso e tente novamente.',
|
|
15699
|
+
'workflow.unavailable.default': 'A\u00e7\u00e3o indispon\u00edvel no contexto atual.',
|
|
15700
|
+
'workflow.unavailable.withReason': 'A\u00e7\u00e3o indispon\u00edvel: {{reason}}',
|
|
15701
|
+
'rowActions.menu.loading': 'Carregando a\u00e7\u00f5es contextuais',
|
|
15702
|
+
'rowActions.menu.more': 'Mais a\u00e7\u00f5es',
|
|
15703
|
+
'availability.reason.resource-state-blocked': 'Dependente do estado atual do registro.',
|
|
15704
|
+
'availability.reason.missing-authority': 'Voc\u00ea n\u00e3o tem permiss\u00e3o para executar esta a\u00e7\u00e3o.',
|
|
15705
|
+
'availability.reason.authentication-required': 'Entre em uma sess\u00e3o autorizada para continuar.',
|
|
15706
|
+
'availability.reason.resource-context-required': 'Abra um item espec\u00edfico para continuar.',
|
|
15707
|
+
'availability.reason.resource-not-found': 'O registro n\u00e3o est\u00e1 dispon\u00edvel.',
|
|
15708
|
+
'availability.reason.unknown': 'O contexto atual n\u00e3o permite esta a\u00e7\u00e3o.',
|
|
15709
|
+
'endpoint.stats.groupBy': 'Agrega\u00e7\u00e3o anal\u00edtica por agrupamento (group-by)',
|
|
15710
|
+
'endpoint.stats.timeseries': 'S\u00e9rie temporal agregada (timeseries)',
|
|
15711
|
+
'endpoint.stats.distribution': 'Distribui\u00e7\u00e3o anal\u00edtica (distribution)',
|
|
15712
|
+
'endpoint.stats.comparison': 'Comparativo anal\u00edtico entre per\u00edodos (comparison)',
|
|
15713
|
+
'endpoint.crud.create': 'Criar {{resource}}',
|
|
15714
|
+
'endpoint.crud.view': 'Consultar {{resource}} por ID',
|
|
15715
|
+
'endpoint.crud.edit': 'Atualizar {{resource}}',
|
|
15716
|
+
},
|
|
15717
|
+
'en-US': {
|
|
15718
|
+
'quickConnect.resource': 'Data resource',
|
|
15719
|
+
'quickConnect.loading': 'Loading resources…',
|
|
15720
|
+
'quickConnect.unavailable': 'The catalog could not be loaded. Retry or enter the advanced resource path.',
|
|
15721
|
+
'quickConnect.empty': 'The catalog did not publish any available resources.',
|
|
15722
|
+
'quickConnect.advanced': 'Advanced connection by path',
|
|
15723
|
+
'quickConnect.path': 'Resource path (API)',
|
|
15724
|
+
'quickConnect.invalid': 'Enter a valid API resource path.',
|
|
15725
|
+
'quickConnect.retry': 'Retry',
|
|
15726
|
+
'quickConnect.hint': 'Choose a resource published by the API.',
|
|
15727
|
+
'quickConnect.hint.collection': 'Choose a collection resource published by the API.',
|
|
15728
|
+
'quickConnect.hint.filter': 'Choose a filterable resource published by the API.',
|
|
15729
|
+
'quickConnect.hint.stats': 'Choose an analytics/statistics resource published by the API.',
|
|
15730
|
+
'quickConnect.hint.options': 'Choose an options/lookup resource published by the API.',
|
|
15731
|
+
'quickConnect.hint.crud': 'Choose a CRUD/record resource published by the API.',
|
|
15732
|
+
'quickConnect.readOnly': 'Read-only',
|
|
15733
|
+
'quickConnect.searchPlaceholder': 'Search by name, key, or path…',
|
|
15734
|
+
'quickConnect.fields': 'Load filter fields',
|
|
15735
|
+
'quickConnect.fieldsError': 'Fields could not be loaded. Check the resource and retry.',
|
|
15736
|
+
'workflow.unavailable.default': 'Action is unavailable in the current context.',
|
|
15737
|
+
'workflow.unavailable.withReason': 'Action unavailable: {{reason}}',
|
|
15738
|
+
'rowActions.menu.loading': 'Loading contextual actions',
|
|
15739
|
+
'rowActions.menu.more': 'More actions',
|
|
15740
|
+
'availability.reason.resource-state-blocked': 'Blocked by the current resource state.',
|
|
15741
|
+
'availability.reason.missing-authority': 'You do not have permission to perform this action.',
|
|
15742
|
+
'availability.reason.authentication-required': 'Sign in to an authorized session to continue.',
|
|
15743
|
+
'availability.reason.resource-context-required': 'Open a specific item to continue.',
|
|
15744
|
+
'availability.reason.resource-not-found': 'The record is not available.',
|
|
15745
|
+
'availability.reason.unknown': 'The current context does not allow this action.',
|
|
15746
|
+
'endpoint.stats.groupBy': 'Analytical aggregation by group (group-by)',
|
|
15747
|
+
'endpoint.stats.timeseries': 'Aggregated time series (timeseries)',
|
|
15748
|
+
'endpoint.stats.distribution': 'Analytical distribution (distribution)',
|
|
15749
|
+
'endpoint.stats.comparison': 'Analytical period comparison (comparison)',
|
|
15750
|
+
'endpoint.crud.create': 'Create {{resource}}',
|
|
15751
|
+
'endpoint.crud.view': 'Get {{resource}} by ID',
|
|
15752
|
+
'endpoint.crud.edit': 'Update {{resource}}',
|
|
15753
|
+
},
|
|
15754
|
+
},
|
|
15755
|
+
},
|
|
15756
|
+
};
|
|
15757
|
+
function normalizeResourceAvailabilityReasonCode(reason) {
|
|
15758
|
+
return String(reason || '').trim().toLowerCase();
|
|
15759
|
+
}
|
|
15760
|
+
function resolveResourceAvailabilityReasonKey(reason) {
|
|
15761
|
+
const normalized = normalizeResourceAvailabilityReasonCode(reason);
|
|
15762
|
+
return (RESOURCE_AVAILABILITY_REASON_KEY_BY_CODE[normalized] ||
|
|
15763
|
+
'availability.reason.unknown');
|
|
15764
|
+
}
|
|
15765
|
+
function translateResourceDiscoveryText(i18n, key, params, fallback) {
|
|
15766
|
+
const locale = i18n?.getLocale?.() || 'pt-BR';
|
|
15767
|
+
const fallbackLocale = i18n?.getFallbackLocale?.() || 'pt-BR';
|
|
15768
|
+
const nsDicts = RESOURCE_DISCOVERY_I18N_CONFIG.namespaces?.[RESOURCE_DISCOVERY_I18N_NAMESPACE];
|
|
15769
|
+
const builtinFallback = nsDicts?.[locale]?.[key] ??
|
|
15770
|
+
nsDicts?.[fallbackLocale]?.[key] ??
|
|
15771
|
+
fallback ??
|
|
15772
|
+
key;
|
|
15773
|
+
if (!i18n) {
|
|
15774
|
+
return interpolatePraxisTranslation(builtinFallback, params);
|
|
15775
|
+
}
|
|
15776
|
+
return i18n.t(key, params, interpolatePraxisTranslation(builtinFallback, params), RESOURCE_DISCOVERY_I18N_NAMESPACE);
|
|
15777
|
+
}
|
|
15778
|
+
function translateResourceAvailabilityReason(i18n, reason) {
|
|
15779
|
+
const key = resolveResourceAvailabilityReasonKey(reason);
|
|
15780
|
+
const fallback = key === 'availability.reason.authentication-required'
|
|
15781
|
+
? 'Entre em uma sess\u00e3o autorizada para continuar.'
|
|
15782
|
+
: key === 'availability.reason.resource-state-blocked'
|
|
15783
|
+
? 'Dependente do estado atual do registro.'
|
|
15784
|
+
: key === 'availability.reason.missing-authority'
|
|
15785
|
+
? 'Voc\u00ea n\u00e3o tem permiss\u00e3o para executar esta a\u00e7\u00e3o.'
|
|
15786
|
+
: key === 'availability.reason.resource-context-required'
|
|
15787
|
+
? 'Abra um item espec\u00edfico para continuar.'
|
|
15788
|
+
: key === 'availability.reason.resource-not-found'
|
|
15789
|
+
? 'O registro n\u00e3o est\u00e1 dispon\u00edvel.'
|
|
15790
|
+
: 'O contexto atual n\u00e3o permite esta a\u00e7\u00e3o.';
|
|
15791
|
+
return translateResourceDiscoveryText(i18n, key, undefined, fallback);
|
|
15792
|
+
}
|
|
15793
|
+
function translateUnavailableWorkflowMessage(i18n, availability) {
|
|
15794
|
+
const reason = normalizeResourceAvailabilityReasonCode(availability?.reason);
|
|
15795
|
+
if (!reason) {
|
|
15796
|
+
return translateResourceDiscoveryText(i18n, 'workflow.unavailable.default', undefined, 'A\u00e7\u00e3o indispon\u00edvel no contexto atual.');
|
|
15797
|
+
}
|
|
15798
|
+
const translatedReason = translateResourceAvailabilityReason(i18n, reason);
|
|
15799
|
+
return translateResourceDiscoveryText(i18n, 'workflow.unavailable.withReason', {
|
|
15800
|
+
reason: translatedReason,
|
|
15801
|
+
}, `A\u00e7\u00e3o indispon\u00edvel: ${translatedReason}`);
|
|
15802
|
+
}
|
|
15803
|
+
|
|
15440
15804
|
class ResourceDiscoveryService {
|
|
15441
15805
|
http = inject(HttpClient, { optional: true });
|
|
15442
15806
|
schemaNormalizer = inject(SchemaNormalizerService);
|
|
15443
15807
|
apiUrlConfig = inject(API_URL, { optional: true });
|
|
15808
|
+
i18n = inject(PraxisI18nService, { optional: true });
|
|
15444
15809
|
surfaceCatalogInFlightByHref = new Map();
|
|
15445
15810
|
schemaCatalogInFlightByUrl = new Map();
|
|
15446
15811
|
schemaFieldsInFlightByUrl = new Map();
|
|
@@ -15455,6 +15820,19 @@ class ResourceDiscoveryService {
|
|
|
15455
15820
|
const entry = this.resolveApiEntry(options);
|
|
15456
15821
|
return !!(entry && Object.keys(entry).length > 0);
|
|
15457
15822
|
}
|
|
15823
|
+
/**
|
|
15824
|
+
* Retorna a lista de chaves de endpoint (`endpointKey`) registradas no token `API_URL`
|
|
15825
|
+
* que possuem configuração válida (ex.: `['default', 'human-resources']`).
|
|
15826
|
+
*/
|
|
15827
|
+
getRegisteredEndpointKeys() {
|
|
15828
|
+
if (!this.apiUrlConfig || typeof this.apiUrlConfig !== 'object') {
|
|
15829
|
+
return [];
|
|
15830
|
+
}
|
|
15831
|
+
return Object.entries(this.apiUrlConfig)
|
|
15832
|
+
.filter(([, entry]) => !!(entry && typeof entry === 'object' && Object.keys(entry).length > 0))
|
|
15833
|
+
.map(([key]) => String(key).trim())
|
|
15834
|
+
.filter(Boolean);
|
|
15835
|
+
}
|
|
15458
15836
|
getLinks(source, rel) {
|
|
15459
15837
|
const candidate = this.extractLinks(source)?.[rel];
|
|
15460
15838
|
if (!candidate) {
|
|
@@ -15548,6 +15926,70 @@ class ResourceDiscoveryService {
|
|
|
15548
15926
|
loadDiscoveredResources(options) {
|
|
15549
15927
|
return firstValueFrom(this.getDiscoveredResources(options));
|
|
15550
15928
|
}
|
|
15929
|
+
/**
|
|
15930
|
+
* Obtém a lista de endpoints operacionais governados descobertos no `/schemas/catalog`
|
|
15931
|
+
* (como `/stats/group-by`, `/stats/timeseries`, rotas CRUD de submissão e links de schema),
|
|
15932
|
+
* permitindo filtrar por `kind`/`operation` e priorizar os endpoints do `preferredResourcePath`.
|
|
15933
|
+
*/
|
|
15934
|
+
getDiscoveredEndpoints(options) {
|
|
15935
|
+
const derivedIntent = options?.intent ??
|
|
15936
|
+
(options?.kind === 'stats'
|
|
15937
|
+
? 'stats'
|
|
15938
|
+
: options?.kind === 'crud'
|
|
15939
|
+
? 'crud'
|
|
15940
|
+
: options?.kind === 'filter'
|
|
15941
|
+
? 'filter'
|
|
15942
|
+
: options?.kind === 'options'
|
|
15943
|
+
? 'options'
|
|
15944
|
+
: 'any');
|
|
15945
|
+
return this.getDiscoveredResources({
|
|
15946
|
+
...options,
|
|
15947
|
+
intent: derivedIntent,
|
|
15948
|
+
}).pipe(map$1((resources) => this.projectDiscoveredEndpoints(resources, options)));
|
|
15949
|
+
}
|
|
15950
|
+
/**
|
|
15951
|
+
* Filtra e ordena os endpoints operacionais de uma coleção de `DiscoveredResourceOption`,
|
|
15952
|
+
* priorizando no topo os endpoints que pertencem ao `preferredResourcePath` (quando informado).
|
|
15953
|
+
*/
|
|
15954
|
+
projectDiscoveredEndpoints(resources, options) {
|
|
15955
|
+
if (!Array.isArray(resources) || !resources.length) {
|
|
15956
|
+
return [];
|
|
15957
|
+
}
|
|
15958
|
+
const allowedKinds = options?.kind
|
|
15959
|
+
? new Set(Array.isArray(options.kind) ? options.kind : [options.kind])
|
|
15960
|
+
: null;
|
|
15961
|
+
const allowedOperations = options?.operation
|
|
15962
|
+
? new Set((Array.isArray(options.operation) ? options.operation : [options.operation])
|
|
15963
|
+
.map((op) => String(op || '').trim().toLowerCase())
|
|
15964
|
+
.filter(Boolean))
|
|
15965
|
+
: null;
|
|
15966
|
+
const preferredResource = options?.preferredResourcePath
|
|
15967
|
+
? this.findCatalogResourceOption(options.preferredResourcePath, resources, options)
|
|
15968
|
+
: null;
|
|
15969
|
+
const preferredResourceKey = preferredResource?.resourceKey ?? null;
|
|
15970
|
+
const preferredList = [];
|
|
15971
|
+
const secondaryList = [];
|
|
15972
|
+
for (const resource of resources) {
|
|
15973
|
+
const resourceEndpoints = Array.isArray(resource.endpoints) ? resource.endpoints : [];
|
|
15974
|
+
const isPreferred = !!preferredResourceKey && resource.resourceKey === preferredResourceKey;
|
|
15975
|
+
for (const endpoint of resourceEndpoints) {
|
|
15976
|
+
if (allowedKinds && !allowedKinds.has(endpoint.kind)) {
|
|
15977
|
+
continue;
|
|
15978
|
+
}
|
|
15979
|
+
if (allowedOperations &&
|
|
15980
|
+
!allowedOperations.has(String(endpoint.operation || '').trim().toLowerCase())) {
|
|
15981
|
+
continue;
|
|
15982
|
+
}
|
|
15983
|
+
if (isPreferred) {
|
|
15984
|
+
preferredList.push(endpoint);
|
|
15985
|
+
}
|
|
15986
|
+
else {
|
|
15987
|
+
secondaryList.push(endpoint);
|
|
15988
|
+
}
|
|
15989
|
+
}
|
|
15990
|
+
}
|
|
15991
|
+
return [...preferredList, ...secondaryList];
|
|
15992
|
+
}
|
|
15551
15993
|
/**
|
|
15552
15994
|
* Projeta a resposta bruta de `/schemas/catalog` em opções de recurso governadas (`DiscoveredResourceOption[]`),
|
|
15553
15995
|
* inferindo capacidades operacionais (`collection`, `filter`, `stats`, `options`, `crud`),
|
|
@@ -15702,6 +16144,7 @@ class ResourceDiscoveryService {
|
|
|
15702
16144
|
}
|
|
15703
16145
|
const { responseSchemaUrl, responseFields } = this.extractResourceResponseSchema(basePath, endpoint, operationalEndpoints);
|
|
15704
16146
|
const { filterSchemaUrl, filterFields } = this.extractResourceFilterSchema(basePath, endpoint, operationalEndpoints);
|
|
16147
|
+
const projectedEndpoints = this.projectResourceOperationalEndpoints(basePath, canonicalPath, resourceKey, label, apiPrefix, operationalEndpoints, canonicalOperations, capabilities, readOnly);
|
|
15705
16148
|
const option = {
|
|
15706
16149
|
value: basePath,
|
|
15707
16150
|
label,
|
|
@@ -15733,11 +16176,234 @@ class ResourceDiscoveryService {
|
|
|
15733
16176
|
if (filterFields.length > 0) {
|
|
15734
16177
|
option.filterFields = filterFields;
|
|
15735
16178
|
}
|
|
16179
|
+
if (projectedEndpoints.length > 0) {
|
|
16180
|
+
option.endpoints = projectedEndpoints;
|
|
16181
|
+
}
|
|
15736
16182
|
projected.push(option);
|
|
15737
16183
|
}
|
|
15738
16184
|
return projected.sort((left, right) => left.label.localeCompare(right.label) ||
|
|
15739
16185
|
left.value.localeCompare(right.value));
|
|
15740
16186
|
}
|
|
16187
|
+
projectResourceOperationalEndpoints(basePath, canonicalResourcePath, resourceKey, resourceLabel, apiPrefix, operationalEndpoints, canonicalOperations, capabilities, readOnly = null) {
|
|
16188
|
+
const byKey = new Map();
|
|
16189
|
+
const registerEndpoint = (entry) => {
|
|
16190
|
+
const dedupeKey = `${entry.method}::${entry.path}`;
|
|
16191
|
+
if (!byKey.has(dedupeKey)) {
|
|
16192
|
+
byKey.set(dedupeKey, entry);
|
|
16193
|
+
}
|
|
16194
|
+
};
|
|
16195
|
+
for (const candidate of operationalEndpoints) {
|
|
16196
|
+
const rawValue = this.normalizeResourcePathValue(candidate?.path);
|
|
16197
|
+
if (!rawValue) {
|
|
16198
|
+
continue;
|
|
16199
|
+
}
|
|
16200
|
+
const method = (String(candidate?.method ?? 'GET').trim().toUpperCase() ||
|
|
16201
|
+
'GET');
|
|
16202
|
+
const path = this.stripConfiguredApiPrefix(rawValue, apiPrefix);
|
|
16203
|
+
const { kind, operation } = this.classifyOperationalEndpoint(rawValue, basePath, method);
|
|
16204
|
+
const requestLink = String(candidate?.schemaLinks?.request ?? '').trim() || null;
|
|
16205
|
+
const responseLink = String(candidate?.schemaLinks?.response ?? '').trim() || null;
|
|
16206
|
+
const schemaLinks = requestLink || responseLink
|
|
16207
|
+
? { request: requestLink, response: responseLink }
|
|
16208
|
+
: null;
|
|
16209
|
+
registerEndpoint({
|
|
16210
|
+
value: rawValue,
|
|
16211
|
+
path,
|
|
16212
|
+
method,
|
|
16213
|
+
kind,
|
|
16214
|
+
operation,
|
|
16215
|
+
operationId: String(candidate?.operationId ?? '').trim() || null,
|
|
16216
|
+
resourceKey,
|
|
16217
|
+
resourcePath: canonicalResourcePath,
|
|
16218
|
+
resourceLabel,
|
|
16219
|
+
summary: String(candidate?.summary ?? '').trim() || null,
|
|
16220
|
+
description: String(candidate?.description ?? '').trim() || null,
|
|
16221
|
+
schemaLinks,
|
|
16222
|
+
});
|
|
16223
|
+
}
|
|
16224
|
+
const statsSyntheses = [
|
|
16225
|
+
{
|
|
16226
|
+
capKey: 'statsGroupBy',
|
|
16227
|
+
operation: 'group-by',
|
|
16228
|
+
suffix: '/stats/group-by',
|
|
16229
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.groupBy', undefined, 'Agrega\u00e7\u00e3o anal\u00edtica por agrupamento (group-by)'),
|
|
16230
|
+
},
|
|
16231
|
+
{
|
|
16232
|
+
capKey: 'statsTimeSeries',
|
|
16233
|
+
operation: 'timeseries',
|
|
16234
|
+
suffix: '/stats/timeseries',
|
|
16235
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.timeseries', undefined, 'S\u00e9rie temporal agregada (timeseries)'),
|
|
16236
|
+
},
|
|
16237
|
+
{
|
|
16238
|
+
capKey: 'statsDistribution',
|
|
16239
|
+
operation: 'distribution',
|
|
16240
|
+
suffix: '/stats/distribution',
|
|
16241
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.distribution', undefined, 'Distribui\u00e7\u00e3o anal\u00edtica (distribution)'),
|
|
16242
|
+
},
|
|
16243
|
+
{
|
|
16244
|
+
capKey: 'statsComparison',
|
|
16245
|
+
operation: 'comparison',
|
|
16246
|
+
suffix: '/stats/comparison',
|
|
16247
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.comparison', undefined, 'Comparativo anal\u00edtico entre per\u00edodos (comparison)'),
|
|
16248
|
+
},
|
|
16249
|
+
];
|
|
16250
|
+
const hasExplicitStats = [...byKey.values()].some((item) => item.kind === 'stats');
|
|
16251
|
+
for (const item of statsSyntheses) {
|
|
16252
|
+
const supportedByCanonical = canonicalOperations?.[item.capKey] === true ||
|
|
16253
|
+
(item.capKey === 'statsTimeSeries' && canonicalOperations?.['statsTimeseries'] === true);
|
|
16254
|
+
const fallbackGroupBy = item.capKey === 'statsGroupBy' &&
|
|
16255
|
+
!canonicalOperations &&
|
|
16256
|
+
capabilities.stats &&
|
|
16257
|
+
!hasExplicitStats;
|
|
16258
|
+
if (!supportedByCanonical && !fallbackGroupBy) {
|
|
16259
|
+
continue;
|
|
16260
|
+
}
|
|
16261
|
+
registerEndpoint({
|
|
16262
|
+
value: `${basePath}${item.suffix}`,
|
|
16263
|
+
path: `${canonicalResourcePath}${item.suffix}`,
|
|
16264
|
+
method: 'POST',
|
|
16265
|
+
kind: 'stats',
|
|
16266
|
+
operation: item.operation,
|
|
16267
|
+
operationId: null,
|
|
16268
|
+
resourceKey,
|
|
16269
|
+
resourcePath: canonicalResourcePath,
|
|
16270
|
+
resourceLabel,
|
|
16271
|
+
summary: item.summary,
|
|
16272
|
+
description: null,
|
|
16273
|
+
schemaLinks: null,
|
|
16274
|
+
});
|
|
16275
|
+
}
|
|
16276
|
+
if (capabilities.crud) {
|
|
16277
|
+
const existingCrudOps = new Set([...byKey.values()]
|
|
16278
|
+
.filter((item) => item.kind === 'crud' && item.operation)
|
|
16279
|
+
.map((item) => String(item.operation)));
|
|
16280
|
+
const canCreate = readOnly !== true &&
|
|
16281
|
+
(canonicalOperations ? canonicalOperations['create'] !== false : true);
|
|
16282
|
+
const canView = canonicalOperations ? canonicalOperations['byId'] !== false : true;
|
|
16283
|
+
const canEdit = readOnly !== true &&
|
|
16284
|
+
(canonicalOperations ? canonicalOperations['update'] !== false : true);
|
|
16285
|
+
if (canCreate && !existingCrudOps.has('create')) {
|
|
16286
|
+
registerEndpoint({
|
|
16287
|
+
value: basePath,
|
|
16288
|
+
path: canonicalResourcePath,
|
|
16289
|
+
method: 'POST',
|
|
16290
|
+
kind: 'crud',
|
|
16291
|
+
operation: 'create',
|
|
16292
|
+
operationId: null,
|
|
16293
|
+
resourceKey,
|
|
16294
|
+
resourcePath: canonicalResourcePath,
|
|
16295
|
+
resourceLabel,
|
|
16296
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.crud.create', { resource: resourceLabel }, `Criar ${resourceLabel}`),
|
|
16297
|
+
description: null,
|
|
16298
|
+
schemaLinks: {
|
|
16299
|
+
request: `/schemas/filtered?path=${encodeURIComponent(basePath)}&operation=post&schemaType=request`,
|
|
16300
|
+
response: `/schemas/filtered?path=${encodeURIComponent(basePath)}&operation=post&schemaType=response`,
|
|
16301
|
+
},
|
|
16302
|
+
});
|
|
16303
|
+
}
|
|
16304
|
+
if (canView && !existingCrudOps.has('view')) {
|
|
16305
|
+
const itemBasePath = `${basePath}/{id}`;
|
|
16306
|
+
registerEndpoint({
|
|
16307
|
+
value: itemBasePath,
|
|
16308
|
+
path: `${canonicalResourcePath}/{id}`,
|
|
16309
|
+
method: 'GET',
|
|
16310
|
+
kind: 'crud',
|
|
16311
|
+
operation: 'view',
|
|
16312
|
+
operationId: null,
|
|
16313
|
+
resourceKey,
|
|
16314
|
+
resourcePath: canonicalResourcePath,
|
|
16315
|
+
resourceLabel,
|
|
16316
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.crud.view', { resource: resourceLabel }, `Consultar ${resourceLabel} por ID`),
|
|
16317
|
+
description: null,
|
|
16318
|
+
schemaLinks: {
|
|
16319
|
+
request: null,
|
|
16320
|
+
response: `/schemas/filtered?path=${encodeURIComponent(itemBasePath)}&operation=get&schemaType=response`,
|
|
16321
|
+
},
|
|
16322
|
+
});
|
|
16323
|
+
}
|
|
16324
|
+
if (canEdit && !existingCrudOps.has('edit')) {
|
|
16325
|
+
const itemBasePath = `${basePath}/{id}`;
|
|
16326
|
+
registerEndpoint({
|
|
16327
|
+
value: itemBasePath,
|
|
16328
|
+
path: `${canonicalResourcePath}/{id}`,
|
|
16329
|
+
method: 'PUT',
|
|
16330
|
+
kind: 'crud',
|
|
16331
|
+
operation: 'edit',
|
|
16332
|
+
operationId: null,
|
|
16333
|
+
resourceKey,
|
|
16334
|
+
resourcePath: canonicalResourcePath,
|
|
16335
|
+
resourceLabel,
|
|
16336
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.crud.edit', { resource: resourceLabel }, `Atualizar ${resourceLabel}`),
|
|
16337
|
+
description: null,
|
|
16338
|
+
schemaLinks: {
|
|
16339
|
+
request: `/schemas/filtered?path=${encodeURIComponent(itemBasePath)}&operation=put&schemaType=request`,
|
|
16340
|
+
response: `/schemas/filtered?path=${encodeURIComponent(itemBasePath)}&operation=put&schemaType=response`,
|
|
16341
|
+
},
|
|
16342
|
+
});
|
|
16343
|
+
}
|
|
16344
|
+
}
|
|
16345
|
+
return [...byKey.values()];
|
|
16346
|
+
}
|
|
16347
|
+
classifyOperationalEndpoint(rawPath, basePath, method) {
|
|
16348
|
+
const statsMatch = rawPath.match(/\/stats\/([a-z0-9-]+)(?:\/|$)/i);
|
|
16349
|
+
if (statsMatch) {
|
|
16350
|
+
return {
|
|
16351
|
+
kind: 'stats',
|
|
16352
|
+
operation: statsMatch[1].toLowerCase(),
|
|
16353
|
+
};
|
|
16354
|
+
}
|
|
16355
|
+
if (rawPath.endsWith('/options/filter') ||
|
|
16356
|
+
rawPath.endsWith('/options/by-ids') ||
|
|
16357
|
+
rawPath.endsWith('/options') ||
|
|
16358
|
+
rawPath.includes('/option-sources')) {
|
|
16359
|
+
return {
|
|
16360
|
+
kind: 'options',
|
|
16361
|
+
operation: 'options',
|
|
16362
|
+
};
|
|
16363
|
+
}
|
|
16364
|
+
if (method === 'POST' && (rawPath === `${basePath}/filter` || rawPath.endsWith('/filter'))) {
|
|
16365
|
+
return {
|
|
16366
|
+
kind: 'filter',
|
|
16367
|
+
operation: 'filter',
|
|
16368
|
+
};
|
|
16369
|
+
}
|
|
16370
|
+
if (method === 'POST' &&
|
|
16371
|
+
(rawPath === `${basePath}/filter/cursor` || rawPath.endsWith('/filter/cursor'))) {
|
|
16372
|
+
return {
|
|
16373
|
+
kind: 'filter',
|
|
16374
|
+
operation: 'cursor',
|
|
16375
|
+
};
|
|
16376
|
+
}
|
|
16377
|
+
if (method === 'GET' &&
|
|
16378
|
+
!rawPath.includes('{') &&
|
|
16379
|
+
(rawPath === basePath || rawPath === `${basePath}/all` || rawPath.endsWith('/all'))) {
|
|
16380
|
+
return {
|
|
16381
|
+
kind: 'filter',
|
|
16382
|
+
operation: 'all',
|
|
16383
|
+
};
|
|
16384
|
+
}
|
|
16385
|
+
if (method === 'POST' && rawPath === basePath) {
|
|
16386
|
+
return {
|
|
16387
|
+
kind: 'crud',
|
|
16388
|
+
operation: 'create',
|
|
16389
|
+
};
|
|
16390
|
+
}
|
|
16391
|
+
if (rawPath.startsWith(`${basePath}/{`)) {
|
|
16392
|
+
if (method === 'GET') {
|
|
16393
|
+
return { kind: 'crud', operation: 'view' };
|
|
16394
|
+
}
|
|
16395
|
+
if (method === 'PUT' || method === 'PATCH') {
|
|
16396
|
+
return { kind: 'crud', operation: 'edit' };
|
|
16397
|
+
}
|
|
16398
|
+
if (method === 'DELETE') {
|
|
16399
|
+
return { kind: 'crud', operation: 'delete' };
|
|
16400
|
+
}
|
|
16401
|
+
}
|
|
16402
|
+
return {
|
|
16403
|
+
kind: 'other',
|
|
16404
|
+
operation: null,
|
|
16405
|
+
};
|
|
16406
|
+
}
|
|
15741
16407
|
/**
|
|
15742
16408
|
* Reconcilia um `resourcePath` arbitrário (relativo, com prefixo `/api`, com sufixo operacional
|
|
15743
16409
|
* como `/filter` ou `/stats/group-by`, ou `resourceKey`) com o `value` canônico da opção
|
|
@@ -18753,15 +19419,14 @@ class DomainRuleService {
|
|
|
18753
19419
|
return this.http.get(this.discovery.resolveHref(`${ROLLOUTS_HREF}/${encodeURIComponent(rolloutId)}/readiness`, options), { headers: this.resolveHeaders(options) });
|
|
18754
19420
|
}
|
|
18755
19421
|
createRollout(request, headEtag, options = {}) {
|
|
18756
|
-
const resolved = this.
|
|
18757
|
-
return this.http.post(this.discovery.resolveHref(ROLLOUTS_HREF, options), request, { headers: resolved
|
|
19422
|
+
const resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
19423
|
+
return this.http.post(this.discovery.resolveHref(ROLLOUTS_HREF, options), request, { headers: resolved });
|
|
18758
19424
|
}
|
|
18759
19425
|
cancelRollout(rolloutId, options = {}) {
|
|
18760
19426
|
return this.http.post(this.discovery.resolveHref(`${ROLLOUTS_HREF}/${encodeURIComponent(rolloutId)}/cancel`, options), null, { headers: this.resolveHeaders(options) });
|
|
18761
19427
|
}
|
|
18762
19428
|
activateSnapshotCandidate(snapshotKey, headEtag, rolloutId, options = {}) {
|
|
18763
|
-
let resolved = this.
|
|
18764
|
-
resolved = resolved.set('If-Match', this.strongEntityTag(headEtag));
|
|
19429
|
+
let resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
18765
19430
|
resolved = resolved.set('X-Rule-Rollout-ID', rolloutId);
|
|
18766
19431
|
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/activate`, options), null, { headers: resolved });
|
|
18767
19432
|
}
|
|
@@ -18772,19 +19437,16 @@ class DomainRuleService {
|
|
|
18772
19437
|
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/composition-approvals`, options), request, { headers: this.resolveHeaders(options) });
|
|
18773
19438
|
}
|
|
18774
19439
|
publishSnapshot(request, currentHeadEtag, options = {}) {
|
|
18775
|
-
|
|
18776
|
-
headers = currentHeadEtag
|
|
18777
|
-
? headers.set('If-Match', this.strongEntityTag(currentHeadEtag))
|
|
18778
|
-
: headers.set('If-None-Match', '*');
|
|
19440
|
+
const headers = this.snapshotHeadPrecondition(currentHeadEtag, options);
|
|
18779
19441
|
return this.http.post(this.discovery.resolveHref(SNAPSHOTS_HREF, options), request, { headers });
|
|
18780
19442
|
}
|
|
18781
19443
|
activateSnapshot(snapshotKey, headEtag, options = {}) {
|
|
18782
|
-
const resolved = this.
|
|
18783
|
-
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/activate`, options), null, { headers: resolved
|
|
19444
|
+
const resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
19445
|
+
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/activate`, options), null, { headers: resolved });
|
|
18784
19446
|
}
|
|
18785
19447
|
rollbackSnapshot(snapshotKey, headEtag, options = {}) {
|
|
18786
|
-
const resolved = this.
|
|
18787
|
-
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/rollback`, options), null, { headers: resolved
|
|
19448
|
+
const resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
19449
|
+
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/rollback`, options), null, { headers: resolved });
|
|
18788
19450
|
}
|
|
18789
19451
|
buildParams(filters) {
|
|
18790
19452
|
let params = new HttpParams();
|
|
@@ -18795,6 +19457,13 @@ class DomainRuleService {
|
|
|
18795
19457
|
});
|
|
18796
19458
|
return params;
|
|
18797
19459
|
}
|
|
19460
|
+
snapshotHeadPrecondition(headEtag, options) {
|
|
19461
|
+
const headers = (this.resolveHeaders(options) ?? new HttpHeaders())
|
|
19462
|
+
.delete('If-Match').delete('If-None-Match');
|
|
19463
|
+
return headEtag === null
|
|
19464
|
+
? headers.set('If-None-Match', '*')
|
|
19465
|
+
: headers.set('If-Match', this.strongEntityTag(headEtag));
|
|
19466
|
+
}
|
|
18798
19467
|
strongEntityTag(value) {
|
|
18799
19468
|
const trimmed = value.trim();
|
|
18800
19469
|
if (/^"[^"\r\n]*"$/.test(trimmed))
|
|
@@ -24526,117 +25195,6 @@ function isPlainRecord(value) {
|
|
|
24526
25195
|
return prototype === Object.prototype || prototype === null;
|
|
24527
25196
|
}
|
|
24528
25197
|
|
|
24529
|
-
const RESOURCE_DISCOVERY_I18N_NAMESPACE = 'resourceDiscovery';
|
|
24530
|
-
const RESOURCE_AVAILABILITY_REASON_KEY_BY_CODE = {
|
|
24531
|
-
'authentication-required': 'availability.reason.authentication-required',
|
|
24532
|
-
'resource-state-blocked': 'availability.reason.resource-state-blocked',
|
|
24533
|
-
'missing-authority': 'availability.reason.missing-authority',
|
|
24534
|
-
'resource-context-required': 'availability.reason.resource-context-required',
|
|
24535
|
-
'resource-not-found': 'availability.reason.resource-not-found',
|
|
24536
|
-
};
|
|
24537
|
-
const RESOURCE_DISCOVERY_I18N_CONFIG = {
|
|
24538
|
-
namespaces: {
|
|
24539
|
-
[RESOURCE_DISCOVERY_I18N_NAMESPACE]: {
|
|
24540
|
-
'pt-BR': {
|
|
24541
|
-
'quickConnect.resource': 'Recurso de dados',
|
|
24542
|
-
'quickConnect.loading': 'Carregando recursos…',
|
|
24543
|
-
'quickConnect.unavailable': 'Não foi possível carregar o catálogo. Tente novamente ou informe a rota avançada.',
|
|
24544
|
-
'quickConnect.empty': 'O catálogo não publicou recursos disponíveis.',
|
|
24545
|
-
'quickConnect.advanced': 'Conexão avançada por rota',
|
|
24546
|
-
'quickConnect.path': 'Rota do recurso (API)',
|
|
24547
|
-
'quickConnect.invalid': 'Informe uma rota válida da API.',
|
|
24548
|
-
'quickConnect.retry': 'Tentar novamente',
|
|
24549
|
-
'quickConnect.hint': 'Escolha um recurso publicado pela API.',
|
|
24550
|
-
'quickConnect.hint.collection': 'Escolha um recurso de coleção/listagem publicado pela API.',
|
|
24551
|
-
'quickConnect.hint.filter': 'Escolha um recurso filtrável publicado pela API.',
|
|
24552
|
-
'quickConnect.hint.stats': 'Escolha um recurso analítico de estatísticas publicado pela API.',
|
|
24553
|
-
'quickConnect.hint.options': 'Escolha um recurso de opções/lookup publicado pela API.',
|
|
24554
|
-
'quickConnect.hint.crud': 'Escolha um recurso de cadastro/operação publicado pela API.',
|
|
24555
|
-
'quickConnect.readOnly': 'Somente leitura',
|
|
24556
|
-
'quickConnect.searchPlaceholder': 'Buscar por nome, chave ou rota…',
|
|
24557
|
-
'quickConnect.fields': 'Carregar campos do filtro',
|
|
24558
|
-
'quickConnect.fieldsError': 'Não foi possível carregar os campos. Verifique o recurso e tente novamente.',
|
|
24559
|
-
'workflow.unavailable.default': 'A\u00e7\u00e3o indispon\u00edvel no contexto atual.',
|
|
24560
|
-
'workflow.unavailable.withReason': 'A\u00e7\u00e3o indispon\u00edvel: {{reason}}',
|
|
24561
|
-
'rowActions.menu.loading': 'Carregando a\u00e7\u00f5es contextuais',
|
|
24562
|
-
'rowActions.menu.more': 'Mais a\u00e7\u00f5es',
|
|
24563
|
-
'availability.reason.resource-state-blocked': 'Dependente do estado atual do registro.',
|
|
24564
|
-
'availability.reason.missing-authority': 'Voc\u00ea n\u00e3o tem permiss\u00e3o para executar esta a\u00e7\u00e3o.',
|
|
24565
|
-
'availability.reason.authentication-required': 'Entre em uma sess\u00e3o autorizada para continuar.',
|
|
24566
|
-
'availability.reason.resource-context-required': 'Abra um item espec\u00edfico para continuar.',
|
|
24567
|
-
'availability.reason.resource-not-found': 'O registro n\u00e3o est\u00e1 dispon\u00edvel.',
|
|
24568
|
-
'availability.reason.unknown': 'O contexto atual n\u00e3o permite esta a\u00e7\u00e3o.',
|
|
24569
|
-
},
|
|
24570
|
-
'en-US': {
|
|
24571
|
-
'quickConnect.resource': 'Data resource',
|
|
24572
|
-
'quickConnect.loading': 'Loading resources…',
|
|
24573
|
-
'quickConnect.unavailable': 'The catalog could not be loaded. Retry or enter the advanced resource path.',
|
|
24574
|
-
'quickConnect.empty': 'The catalog did not publish any available resources.',
|
|
24575
|
-
'quickConnect.advanced': 'Advanced connection by path',
|
|
24576
|
-
'quickConnect.path': 'Resource path (API)',
|
|
24577
|
-
'quickConnect.invalid': 'Enter a valid API resource path.',
|
|
24578
|
-
'quickConnect.retry': 'Retry',
|
|
24579
|
-
'quickConnect.hint': 'Choose a resource published by the API.',
|
|
24580
|
-
'quickConnect.hint.collection': 'Choose a collection resource published by the API.',
|
|
24581
|
-
'quickConnect.hint.filter': 'Choose a filterable resource published by the API.',
|
|
24582
|
-
'quickConnect.hint.stats': 'Choose an analytics/statistics resource published by the API.',
|
|
24583
|
-
'quickConnect.hint.options': 'Choose an options/lookup resource published by the API.',
|
|
24584
|
-
'quickConnect.hint.crud': 'Choose a CRUD/record resource published by the API.',
|
|
24585
|
-
'quickConnect.readOnly': 'Read-only',
|
|
24586
|
-
'quickConnect.searchPlaceholder': 'Search by name, key, or path…',
|
|
24587
|
-
'quickConnect.fields': 'Load filter fields',
|
|
24588
|
-
'quickConnect.fieldsError': 'Fields could not be loaded. Check the resource and retry.',
|
|
24589
|
-
'workflow.unavailable.default': 'Action is unavailable in the current context.',
|
|
24590
|
-
'workflow.unavailable.withReason': 'Action unavailable: {{reason}}',
|
|
24591
|
-
'rowActions.menu.loading': 'Loading contextual actions',
|
|
24592
|
-
'rowActions.menu.more': 'More actions',
|
|
24593
|
-
'availability.reason.resource-state-blocked': 'Blocked by the current resource state.',
|
|
24594
|
-
'availability.reason.missing-authority': 'You do not have permission to perform this action.',
|
|
24595
|
-
'availability.reason.authentication-required': 'Sign in to an authorized session to continue.',
|
|
24596
|
-
'availability.reason.resource-context-required': 'Open a specific item to continue.',
|
|
24597
|
-
'availability.reason.resource-not-found': 'The record is not available.',
|
|
24598
|
-
'availability.reason.unknown': 'The current context does not allow this action.',
|
|
24599
|
-
},
|
|
24600
|
-
},
|
|
24601
|
-
},
|
|
24602
|
-
};
|
|
24603
|
-
function normalizeResourceAvailabilityReasonCode(reason) {
|
|
24604
|
-
return String(reason || '').trim().toLowerCase();
|
|
24605
|
-
}
|
|
24606
|
-
function resolveResourceAvailabilityReasonKey(reason) {
|
|
24607
|
-
const normalized = normalizeResourceAvailabilityReasonCode(reason);
|
|
24608
|
-
return (RESOURCE_AVAILABILITY_REASON_KEY_BY_CODE[normalized] ||
|
|
24609
|
-
'availability.reason.unknown');
|
|
24610
|
-
}
|
|
24611
|
-
function translateResourceDiscoveryText(i18n, key, params, fallback) {
|
|
24612
|
-
return i18n.t(key, params, fallback, RESOURCE_DISCOVERY_I18N_NAMESPACE);
|
|
24613
|
-
}
|
|
24614
|
-
function translateResourceAvailabilityReason(i18n, reason) {
|
|
24615
|
-
const key = resolveResourceAvailabilityReasonKey(reason);
|
|
24616
|
-
const fallback = key === 'availability.reason.authentication-required'
|
|
24617
|
-
? 'Entre em uma sess\u00e3o autorizada para continuar.'
|
|
24618
|
-
: key === 'availability.reason.resource-state-blocked'
|
|
24619
|
-
? 'Dependente do estado atual do registro.'
|
|
24620
|
-
: key === 'availability.reason.missing-authority'
|
|
24621
|
-
? 'Voc\u00ea n\u00e3o tem permiss\u00e3o para executar esta a\u00e7\u00e3o.'
|
|
24622
|
-
: key === 'availability.reason.resource-context-required'
|
|
24623
|
-
? 'Abra um item espec\u00edfico para continuar.'
|
|
24624
|
-
: key === 'availability.reason.resource-not-found'
|
|
24625
|
-
? 'O registro n\u00e3o est\u00e1 dispon\u00edvel.'
|
|
24626
|
-
: 'O contexto atual n\u00e3o permite esta a\u00e7\u00e3o.';
|
|
24627
|
-
return translateResourceDiscoveryText(i18n, key, undefined, fallback);
|
|
24628
|
-
}
|
|
24629
|
-
function translateUnavailableWorkflowMessage(i18n, availability) {
|
|
24630
|
-
const reason = normalizeResourceAvailabilityReasonCode(availability?.reason);
|
|
24631
|
-
if (!reason) {
|
|
24632
|
-
return translateResourceDiscoveryText(i18n, 'workflow.unavailable.default', undefined, 'A\u00e7\u00e3o indispon\u00edvel no contexto atual.');
|
|
24633
|
-
}
|
|
24634
|
-
const translatedReason = translateResourceAvailabilityReason(i18n, reason);
|
|
24635
|
-
return translateResourceDiscoveryText(i18n, 'workflow.unavailable.withReason', {
|
|
24636
|
-
reason: translatedReason,
|
|
24637
|
-
}, `A\u00e7\u00e3o indispon\u00edvel: ${translatedReason}`);
|
|
24638
|
-
}
|
|
24639
|
-
|
|
24640
25198
|
const DEFAULT_LOCALE = 'en-US';
|
|
24641
25199
|
const DEFAULT_DATE_TIME = {
|
|
24642
25200
|
dateFormat: 'shortDate',
|
|
@@ -34398,7 +34956,7 @@ const CAPS = [
|
|
|
34398
34956
|
path: 'page.widgets[].definition.inputs',
|
|
34399
34957
|
category: 'widgets',
|
|
34400
34958
|
valueKind: 'object',
|
|
34401
|
-
description: 'Inputs iniciais do widget. Suporta interpolação {{state.<path> | pipe}} e ${state.<path> | pipe} com pipes declarativos CSP-safe (default/coalesce, round[:N], number[:N], percent[:N], currency[:code], uppercase, lowercase), preservando tipos primitivos boolean/number em tokens únicos.',
|
|
34959
|
+
description: 'Inputs iniciais do widget. Suporta interpolação {{state.<path> | pipe}} e ${state.<path> | pipe} com pipes declarativos CSP-safe (default/coalesce, round[:N], number[:N], numberCompact, percent[:N], currency[:code], currencyCompact[:code], date[:locale], dateTime[:locale], time[:locale], uppercase, lowercase), preservando tipos primitivos boolean/number em tokens únicos.',
|
|
34402
34960
|
},
|
|
34403
34961
|
{
|
|
34404
34962
|
path: 'page.widgets[].definition.inputs.hostCapabilities',
|
|
@@ -35082,7 +35640,7 @@ const DYNAMIC_PAGE_AI_CAPABILITIES = {
|
|
|
35082
35640
|
'Nested component ports usam endpoint component-port com nestedPath; o owner em ref.widget continua sendo o widget top-level.',
|
|
35083
35641
|
'Objetivo: compor widgets e relacionamentos canonicos (ex.: master-detail).',
|
|
35084
35642
|
'Link tipico de master-detail: component-port(table.rowClick) -> component-port(form.resourceId) com transform map payload.row.id.',
|
|
35085
|
-
'Templates {{state.<path> | pipe}} e ${state.<path> | pipe} em inputs de widgets suportam pipes declarativos CSP-safe (default/coalesce, round[:N], number[:N], percent[:N], currency[:BRL|USD|EUR|GBP], uppercase, lowercase) via applyDeclarativeValuePipe, tratando tokens não resolvidos e NaN como ausentes no fallback.',
|
|
35643
|
+
'Templates {{state.<path> | pipe}} e ${state.<path> | pipe} em inputs de widgets suportam pipes declarativos CSP-safe (default/coalesce, round[:N], number[:N], numberCompact, percent[:N], currency[:BRL|USD|EUR|GBP], currencyCompact[:BRL|USD|EUR|GBP], date[:locale], dateTime[:locale], time[:locale], uppercase, lowercase) via applyDeclarativeValuePipe, tratando tokens não resolvidos e NaN como ausentes no fallback.',
|
|
35086
35644
|
],
|
|
35087
35645
|
capabilities: CAPS,
|
|
35088
35646
|
};
|
|
@@ -37951,6 +38509,7 @@ class DynamicWidgetLoaderDirective {
|
|
|
37951
38509
|
currentUsesInitialBindings = false;
|
|
37952
38510
|
currentInitialBindingSignature = null;
|
|
37953
38511
|
boundInputValues = {};
|
|
38512
|
+
initialInputDefaults = {};
|
|
37954
38513
|
resolvedWidgetLocalContext = null;
|
|
37955
38514
|
signalEffects = new Map();
|
|
37956
38515
|
inputObservableSubs = new Map();
|
|
@@ -38139,11 +38698,11 @@ class DynamicWidgetLoaderDirective {
|
|
|
38139
38698
|
let inputsChanged = false;
|
|
38140
38699
|
// Faz o binding com coerção de tipos quando possível
|
|
38141
38700
|
if (!this.currentUsesInitialBindings) {
|
|
38142
|
-
inputsChanged = this.bindInputs(this.compRef, def.id, inputs, def.bindingOrder, meta || undefined);
|
|
38701
|
+
inputsChanged = this.bindInputs(this.compRef, def.id, inputs, def.bindingOrder, meta || undefined, !recreated);
|
|
38143
38702
|
}
|
|
38144
38703
|
else {
|
|
38145
38704
|
const mutableInputs = Object.fromEntries(Object.entries(inputs).filter(([key]) => MUTABLE_INITIAL_BINDING_INPUTS.has(key)));
|
|
38146
|
-
inputsChanged = this.bindInputs(this.compRef, def.id, mutableInputs, def.bindingOrder, meta || undefined);
|
|
38705
|
+
inputsChanged = this.bindInputs(this.compRef, def.id, mutableInputs, def.bindingOrder, meta || undefined, !recreated ? MUTABLE_INITIAL_BINDING_INPUTS : false);
|
|
38147
38706
|
}
|
|
38148
38707
|
this.bindOutputs(this.compRef.instance, def.id, outputs, meta || undefined);
|
|
38149
38708
|
if (recreated || inputsChanged) {
|
|
@@ -38228,6 +38787,7 @@ class DynamicWidgetLoaderDirective {
|
|
|
38228
38787
|
this.currentUsesInitialBindings = false;
|
|
38229
38788
|
this.currentInitialBindingSignature = null;
|
|
38230
38789
|
this.boundInputValues = {};
|
|
38790
|
+
this.initialInputDefaults = {};
|
|
38231
38791
|
this.resolvedWidgetLocalContext = null;
|
|
38232
38792
|
}
|
|
38233
38793
|
this.vcRef.clear();
|
|
@@ -38320,10 +38880,25 @@ class DynamicWidgetLoaderDirective {
|
|
|
38320
38880
|
}
|
|
38321
38881
|
return this.applyDirectInputValue(compRef, key, raw, meta, manualChanges);
|
|
38322
38882
|
}
|
|
38323
|
-
bindInputs(compRef, id, inputs, bindingOrder, meta) {
|
|
38883
|
+
bindInputs(compRef, id, inputs, bindingOrder, meta, clearRemovedInputs = false) {
|
|
38324
38884
|
const prioritized = this.orderedInputEntries(id, inputs, bindingOrder);
|
|
38325
38885
|
const manualChanges = {};
|
|
38326
38886
|
let changed = false;
|
|
38887
|
+
if (clearRemovedInputs) {
|
|
38888
|
+
for (const previousKey of Object.keys(this.boundInputValues)) {
|
|
38889
|
+
const canClearKey = clearRemovedInputs === true || clearRemovedInputs.has(previousKey);
|
|
38890
|
+
if (canClearKey && !Object.prototype.hasOwnProperty.call(inputs, previousKey)) {
|
|
38891
|
+
this.cleanupInputReactiveBinding(previousKey);
|
|
38892
|
+
const factoryDefault = Object.prototype.hasOwnProperty.call(this.initialInputDefaults, previousKey)
|
|
38893
|
+
? this.cloneValue(this.initialInputDefaults[previousKey])
|
|
38894
|
+
: undefined;
|
|
38895
|
+
if (this.applyDirectInputValue(compRef, previousKey, factoryDefault, meta, manualChanges)) {
|
|
38896
|
+
changed = true;
|
|
38897
|
+
}
|
|
38898
|
+
delete this.boundInputValues[previousKey];
|
|
38899
|
+
}
|
|
38900
|
+
}
|
|
38901
|
+
}
|
|
38327
38902
|
// Apply every input before the final detectChanges. ComponentRef.setInput marks
|
|
38328
38903
|
// OnPush views for checking and lets Angular deliver one coherent ngOnChanges cycle.
|
|
38329
38904
|
for (const [key, raw] of prioritized) {
|
|
@@ -38337,6 +38912,27 @@ class DynamicWidgetLoaderDirective {
|
|
|
38337
38912
|
}
|
|
38338
38913
|
return changed;
|
|
38339
38914
|
}
|
|
38915
|
+
captureInitialInputDefault(compRef, key) {
|
|
38916
|
+
if (Object.prototype.hasOwnProperty.call(this.initialInputDefaults, key)) {
|
|
38917
|
+
return;
|
|
38918
|
+
}
|
|
38919
|
+
const instance = compRef.instance;
|
|
38920
|
+
if (!instance || key === 'context') {
|
|
38921
|
+
this.initialInputDefaults[key] = undefined;
|
|
38922
|
+
return;
|
|
38923
|
+
}
|
|
38924
|
+
try {
|
|
38925
|
+
const candidate = instance[key];
|
|
38926
|
+
const rawDefault = isSignal(candidate)
|
|
38927
|
+
? untracked(() => candidate())
|
|
38928
|
+
: candidate;
|
|
38929
|
+
this.initialInputDefaults[key] =
|
|
38930
|
+
typeof rawDefault === 'function' ? undefined : this.cloneValue(rawDefault);
|
|
38931
|
+
}
|
|
38932
|
+
catch {
|
|
38933
|
+
this.initialInputDefaults[key] = undefined;
|
|
38934
|
+
}
|
|
38935
|
+
}
|
|
38340
38936
|
applyDirectInputValue(compRef, key, raw, meta, manualChanges) {
|
|
38341
38937
|
const unwrapped = isSignal(raw) ? raw() : raw;
|
|
38342
38938
|
if (key === 'context') {
|
|
@@ -38354,6 +38950,7 @@ class DynamicWidgetLoaderDirective {
|
|
|
38354
38950
|
if (hadPreviousValue && this.areInputValuesEquivalent(previousValue, value)) {
|
|
38355
38951
|
return false;
|
|
38356
38952
|
}
|
|
38953
|
+
this.captureInitialInputDefault(compRef, key);
|
|
38357
38954
|
try {
|
|
38358
38955
|
const metadataAllowsInput = !meta?.inputs?.length || meta.inputs.some((input) => input.name === key);
|
|
38359
38956
|
if (this.hasDeclaredInput(compRef, key)) {
|
|
@@ -38976,10 +39573,73 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
38976
39573
|
if (pipeName === 'lowercase' || pipeName === 'lower') {
|
|
38977
39574
|
return String(value).toLowerCase();
|
|
38978
39575
|
}
|
|
39576
|
+
if (pipeName === 'date' || pipeName === 'datetime' || pipeName === 'time') {
|
|
39577
|
+
let parsedDate;
|
|
39578
|
+
if (value instanceof Date) {
|
|
39579
|
+
parsedDate = value;
|
|
39580
|
+
}
|
|
39581
|
+
else if (typeof value === 'number' && Number.isFinite(value)) {
|
|
39582
|
+
parsedDate = new Date(value);
|
|
39583
|
+
}
|
|
39584
|
+
else {
|
|
39585
|
+
const rawStr = String(value).trim();
|
|
39586
|
+
if (!rawStr) {
|
|
39587
|
+
return undefined;
|
|
39588
|
+
}
|
|
39589
|
+
if (/^\d{10,13}$/.test(rawStr)) {
|
|
39590
|
+
const epoch = Number(rawStr);
|
|
39591
|
+
parsedDate = new Date(rawStr.length === 10 ? epoch * 1000 : epoch);
|
|
39592
|
+
}
|
|
39593
|
+
else if (/^\d{4}-\d{2}-\d{2}$/.test(rawStr)) {
|
|
39594
|
+
parsedDate = new Date(`${rawStr}T00:00:00`);
|
|
39595
|
+
}
|
|
39596
|
+
else {
|
|
39597
|
+
const brMatch = /^(\d{2})\/(\d{2})\/(\d{4})(?:\s+(\d{2}):(\d{2})(?::(\d{2}))?)?$/.exec(rawStr);
|
|
39598
|
+
if (brMatch) {
|
|
39599
|
+
const [, dd, mm, yyyy, hh = '00', min = '00', ss = '00'] = brMatch;
|
|
39600
|
+
parsedDate = new Date(`${yyyy}-${mm}-${dd}T${hh}:${min}:${ss}`);
|
|
39601
|
+
}
|
|
39602
|
+
else {
|
|
39603
|
+
parsedDate = new Date(rawStr);
|
|
39604
|
+
}
|
|
39605
|
+
}
|
|
39606
|
+
}
|
|
39607
|
+
if (Number.isNaN(parsedDate.getTime())) {
|
|
39608
|
+
return value;
|
|
39609
|
+
}
|
|
39610
|
+
const locale = unquotedArg && /^[a-z]{2}(?:-[A-Z]{2})?$/i.test(unquotedArg) ? unquotedArg : 'pt-BR';
|
|
39611
|
+
if (pipeName === 'date') {
|
|
39612
|
+
return new Intl.DateTimeFormat(locale, {
|
|
39613
|
+
day: '2-digit',
|
|
39614
|
+
month: '2-digit',
|
|
39615
|
+
year: 'numeric',
|
|
39616
|
+
}).format(parsedDate);
|
|
39617
|
+
}
|
|
39618
|
+
if (pipeName === 'time') {
|
|
39619
|
+
return new Intl.DateTimeFormat(locale, {
|
|
39620
|
+
hour: '2-digit',
|
|
39621
|
+
minute: '2-digit',
|
|
39622
|
+
}).format(parsedDate);
|
|
39623
|
+
}
|
|
39624
|
+
const datePart = new Intl.DateTimeFormat(locale, {
|
|
39625
|
+
day: '2-digit',
|
|
39626
|
+
month: '2-digit',
|
|
39627
|
+
year: 'numeric',
|
|
39628
|
+
}).format(parsedDate);
|
|
39629
|
+
const timePart = new Intl.DateTimeFormat(locale, {
|
|
39630
|
+
hour: '2-digit',
|
|
39631
|
+
minute: '2-digit',
|
|
39632
|
+
}).format(parsedDate);
|
|
39633
|
+
const connector = locale.toLowerCase().startsWith('pt') ? ' às ' : ', ';
|
|
39634
|
+
return `${datePart}${connector}${timePart}`;
|
|
39635
|
+
}
|
|
38979
39636
|
const isKnownNumericPipe = pipeName === 'round'
|
|
38980
39637
|
|| pipeName === 'number'
|
|
39638
|
+
|| pipeName === 'numbercompact'
|
|
39639
|
+
|| pipeName === 'compact'
|
|
38981
39640
|
|| pipeName === 'percent'
|
|
38982
|
-
|| pipeName === 'currency'
|
|
39641
|
+
|| pipeName === 'currency'
|
|
39642
|
+
|| pipeName === 'currencycompact';
|
|
38983
39643
|
if (!isKnownNumericPipe) {
|
|
38984
39644
|
return value;
|
|
38985
39645
|
}
|
|
@@ -39005,6 +39665,15 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39005
39665
|
maximumFractionDigits: decimals ?? 2,
|
|
39006
39666
|
}).format(numeric);
|
|
39007
39667
|
}
|
|
39668
|
+
if (pipeName === 'numbercompact' || pipeName === 'compact') {
|
|
39669
|
+
return new Intl.NumberFormat('pt-BR', {
|
|
39670
|
+
notation: 'compact',
|
|
39671
|
+
compactDisplay: 'short',
|
|
39672
|
+
maximumFractionDigits: 1,
|
|
39673
|
+
})
|
|
39674
|
+
.format(numeric)
|
|
39675
|
+
.replace(/\u00A0/g, ' ');
|
|
39676
|
+
}
|
|
39008
39677
|
if (pipeName === 'percent') {
|
|
39009
39678
|
const hasDecimals = unquotedArg !== '' && Number.isFinite(Number(unquotedArg));
|
|
39010
39679
|
const decimals = hasDecimals ? Math.max(0, Math.min(6, Math.trunc(Number(unquotedArg)))) : undefined;
|
|
@@ -39015,7 +39684,7 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39015
39684
|
}).format(pctValue);
|
|
39016
39685
|
return `${formatted}%`;
|
|
39017
39686
|
}
|
|
39018
|
-
if (pipeName === 'currency') {
|
|
39687
|
+
if (pipeName === 'currency' || pipeName === 'currencycompact') {
|
|
39019
39688
|
const rawCurrency = (unquotedArg || 'BRL').trim().toUpperCase();
|
|
39020
39689
|
const aliasMap = {
|
|
39021
39690
|
'R$': 'BRL',
|
|
@@ -39026,10 +39695,17 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39026
39695
|
};
|
|
39027
39696
|
const currency = aliasMap[rawCurrency] || (/^[A-Z]{3}$/.test(rawCurrency) ? rawCurrency : 'BRL');
|
|
39028
39697
|
const locale = currency === 'USD' ? 'en-US' : 'pt-BR';
|
|
39698
|
+
const isCompact = pipeName === 'currencycompact';
|
|
39699
|
+
const stripZeroCents = !isCompact && Math.abs(numeric) >= 1000 && Number.isInteger(numeric);
|
|
39029
39700
|
try {
|
|
39030
39701
|
return new Intl.NumberFormat(locale, {
|
|
39031
39702
|
style: 'currency',
|
|
39032
39703
|
currency,
|
|
39704
|
+
...(isCompact
|
|
39705
|
+
? { notation: 'compact', compactDisplay: 'short', maximumFractionDigits: 2 }
|
|
39706
|
+
: stripZeroCents
|
|
39707
|
+
? { minimumFractionDigits: 0, maximumFractionDigits: 0 }
|
|
39708
|
+
: {}),
|
|
39033
39709
|
})
|
|
39034
39710
|
.format(numeric)
|
|
39035
39711
|
.replace(/\u00A0/g, ' ');
|
|
@@ -39038,6 +39714,7 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39038
39714
|
return new Intl.NumberFormat('pt-BR', {
|
|
39039
39715
|
style: 'currency',
|
|
39040
39716
|
currency: 'BRL',
|
|
39717
|
+
...(stripZeroCents ? { minimumFractionDigits: 0, maximumFractionDigits: 0 } : {}),
|
|
39041
39718
|
})
|
|
39042
39719
|
.format(numeric)
|
|
39043
39720
|
.replace(/\u00A0/g, ' ');
|
|
@@ -40203,7 +40880,7 @@ class WidgetShellComponent {
|
|
|
40203
40880
|
@if (expanded || fullscreen) {
|
|
40204
40881
|
<div class="pdx-shell-backdrop" (click)="closeOverlay()"></div>
|
|
40205
40882
|
}
|
|
40206
|
-
`, isInline: true, styles: [":host{display:block;height:100%}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;height:100%;display:flex;flex-direction:column}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);-webkit-backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);overflow:hidden}.pdx-shell.dashboard{-webkit-backdrop-filter:var(--pdx-shell-card-filter, none);backdrop-filter:var(--pdx-shell-card-filter, none)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-weight:var(--pdx-shell-title-weight, 600);font-size:var(--pdx-shell-title-size, 13px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px}.pdx-action-text{padding:0 8px}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface,
|
|
40883
|
+
`, isInline: true, styles: [":host{display:block;height:100%}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;height:100%;display:flex;flex-direction:column}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);-webkit-backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);overflow:hidden}.pdx-shell.dashboard{-webkit-backdrop-filter:var(--pdx-shell-card-filter, none);backdrop-filter:var(--pdx-shell-card-filter, none)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-weight:var(--pdx-shell-title-weight, 600);font-size:var(--pdx-shell-title-size, 13px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px}.pdx-action-text{padding:0 8px}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface, var(--mat-sys-surface)));color:var(--md-sys-color-on-surface)}.pdx-shell.fullscreen>.pdx-shell-body{padding:var(--pdx-shell-fullscreen-body-padding, 24px)}.pdx-shell-overlay-surface{background:var(--md-sys-color-surface);border-radius:var(--pdx-dashboard-card-radius, 16px);pointer-events:none}.pdx-shell-backdrop{position:fixed;inset:0;z-index:var(--praxis-layer-widget-shell-backdrop, 1280);background:#0000008c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"], dependencies: [{ kind: "component", type: WidgetShellAvatarComponent, selector: "praxis-widget-shell-avatar", inputs: ["avatar"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40207
40884
|
}
|
|
40208
40885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: WidgetShellComponent, decorators: [{
|
|
40209
40886
|
type: Component,
|
|
@@ -40449,7 +41126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
40449
41126
|
@if (expanded || fullscreen) {
|
|
40450
41127
|
<div class="pdx-shell-backdrop" (click)="closeOverlay()"></div>
|
|
40451
41128
|
}
|
|
40452
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;height:100%}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;height:100%;display:flex;flex-direction:column}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);-webkit-backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);overflow:hidden}.pdx-shell.dashboard{-webkit-backdrop-filter:var(--pdx-shell-card-filter, none);backdrop-filter:var(--pdx-shell-card-filter, none)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-weight:var(--pdx-shell-title-weight, 600);font-size:var(--pdx-shell-title-size, 13px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px}.pdx-action-text{padding:0 8px}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface,
|
|
41129
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;height:100%}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;height:100%;display:flex;flex-direction:column}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);-webkit-backdrop-filter:var(--pdx-shell-card-backdrop-filter, none);overflow:hidden}.pdx-shell.dashboard{-webkit-backdrop-filter:var(--pdx-shell-card-filter, none);backdrop-filter:var(--pdx-shell-card-filter, none)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-weight:var(--pdx-shell-title-weight, 600);font-size:var(--pdx-shell-title-size, 13px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px}.pdx-action-text{padding:0 8px}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface, var(--mat-sys-surface)));color:var(--md-sys-color-on-surface)}.pdx-shell.fullscreen>.pdx-shell-body{padding:var(--pdx-shell-fullscreen-body-padding, 24px)}.pdx-shell-overlay-surface{background:var(--md-sys-color-surface);border-radius:var(--pdx-dashboard-card-radius, 16px);pointer-events:none}.pdx-shell-backdrop{position:fixed;inset:0;z-index:var(--praxis-layer-widget-shell-backdrop, 1280);background:#0000008c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"] }]
|
|
40453
41130
|
}], ctorParameters: () => [], propDecorators: { hostCollapsed: [{
|
|
40454
41131
|
type: HostBinding,
|
|
40455
41132
|
args: ['class.pdx-widget-shell-collapsed']
|
|
@@ -42039,7 +42716,8 @@ class WidgetPageDataSourceRuntimeService {
|
|
|
42039
42716
|
: 'GET');
|
|
42040
42717
|
let request$;
|
|
42041
42718
|
if (method === 'POST') {
|
|
42042
|
-
|
|
42719
|
+
const postBody = this.normalizeCanonicalStatsRequestBody(url, dataSource.query);
|
|
42720
|
+
request$ = this.http.post(url, postBody);
|
|
42043
42721
|
}
|
|
42044
42722
|
else {
|
|
42045
42723
|
let params = new HttpParams();
|
|
@@ -42061,6 +42739,54 @@ class WidgetPageDataSourceRuntimeService {
|
|
|
42061
42739
|
}
|
|
42062
42740
|
return request$.pipe(map((res) => this.transformPayload(res, dataSource)));
|
|
42063
42741
|
}
|
|
42742
|
+
normalizeCanonicalStatsRequestBody(url, rawQuery) {
|
|
42743
|
+
const base = rawQuery && typeof rawQuery === 'object' && !Array.isArray(rawQuery)
|
|
42744
|
+
? { ...rawQuery }
|
|
42745
|
+
: {};
|
|
42746
|
+
if (!/\/stats\/(?:group-by|timeseries|distribution|comparison)(?:$|\?|\/)/i.test(url)) {
|
|
42747
|
+
return base;
|
|
42748
|
+
}
|
|
42749
|
+
if (/\/stats\/group-by(?:$|\?|\/)/i.test(url) &&
|
|
42750
|
+
(!base['field'] || typeof base['field'] !== 'string' || !base['field'].trim()) &&
|
|
42751
|
+
typeof base['groupBy'] === 'string' &&
|
|
42752
|
+
base['groupBy'].trim()) {
|
|
42753
|
+
base['field'] = base['groupBy'].trim();
|
|
42754
|
+
}
|
|
42755
|
+
if (!base['filter'] || typeof base['filter'] !== 'object' || Array.isArray(base['filter'])) {
|
|
42756
|
+
base['filter'] = {};
|
|
42757
|
+
}
|
|
42758
|
+
const sanitizeMetric = (m) => {
|
|
42759
|
+
const copy = { ...m };
|
|
42760
|
+
const rawOp = typeof copy['operation'] === 'string' && copy['operation'].trim()
|
|
42761
|
+
? copy['operation'].trim()
|
|
42762
|
+
: typeof copy['op'] === 'string' && copy['op'].trim()
|
|
42763
|
+
? copy['op'].trim()
|
|
42764
|
+
: 'COUNT';
|
|
42765
|
+
const operation = rawOp.toUpperCase();
|
|
42766
|
+
copy['operation'] = operation;
|
|
42767
|
+
if (operation === 'COUNT') {
|
|
42768
|
+
delete copy['field'];
|
|
42769
|
+
if (typeof copy['alias'] !== 'string' || !copy['alias'].trim()) {
|
|
42770
|
+
copy['alias'] = 'total';
|
|
42771
|
+
}
|
|
42772
|
+
}
|
|
42773
|
+
return copy;
|
|
42774
|
+
};
|
|
42775
|
+
if (base['metric'] && typeof base['metric'] === 'object' && !Array.isArray(base['metric'])) {
|
|
42776
|
+
base['metric'] = sanitizeMetric(base['metric']);
|
|
42777
|
+
}
|
|
42778
|
+
if (Array.isArray(base['metrics']) && base['metrics'].length > 0) {
|
|
42779
|
+
base['metrics'] = base['metrics']
|
|
42780
|
+
.filter((item) => !!item && typeof item === 'object' && !Array.isArray(item))
|
|
42781
|
+
.map(sanitizeMetric);
|
|
42782
|
+
}
|
|
42783
|
+
const hasMetric = !!base['metric'];
|
|
42784
|
+
const hasMetrics = Array.isArray(base['metrics']) && base['metrics'].length > 0;
|
|
42785
|
+
if (!hasMetric && !hasMetrics) {
|
|
42786
|
+
base['metrics'] = [{ operation: 'COUNT', alias: 'total' }];
|
|
42787
|
+
}
|
|
42788
|
+
return base;
|
|
42789
|
+
}
|
|
42064
42790
|
/**
|
|
42065
42791
|
* Normaliza `page.dataSources` aceitando tanto o formato canônico em Array quanto Object Map indexado por id.
|
|
42066
42792
|
*/
|
|
@@ -42276,22 +43002,37 @@ class WidgetPageDataSourceRuntimeService {
|
|
|
42276
43002
|
let totalWeight = 0;
|
|
42277
43003
|
for (const bucket of buckets) {
|
|
42278
43004
|
const hasExplicitKey = bucket?.key !== undefined;
|
|
42279
|
-
const keyStr = String(hasExplicitKey ? bucket.key : (bucket?.value ?? ''));
|
|
43005
|
+
const keyStr = String(hasExplicitKey ? bucket.key : (bucket?.value ?? '')).trim();
|
|
43006
|
+
const labelStr = typeof bucket?.label === 'string' ? bucket.label.trim() : '';
|
|
43007
|
+
const valuesObj = bucket?.values && typeof bucket.values === 'object' && !Array.isArray(bucket.values)
|
|
43008
|
+
? bucket.values
|
|
43009
|
+
: null;
|
|
43010
|
+
const firstValuesMetric = valuesObj
|
|
43011
|
+
? Object.values(valuesObj).find((v) => typeof v === 'number' && Number.isFinite(v))
|
|
43012
|
+
: undefined;
|
|
43013
|
+
const valuesMetric = valuesObj?.['total'] ?? valuesObj?.['count'] ?? firstValuesMetric;
|
|
42280
43014
|
const val = hasExplicitKey
|
|
42281
|
-
? Number(bucket?.value ?? bucket?.count ?? 0)
|
|
42282
|
-
: Number(bucket?.count ?? bucket?.value ?? 0);
|
|
43015
|
+
? Number(bucket?.value ?? bucket?.count ?? valuesMetric ?? 0)
|
|
43016
|
+
: Number(bucket?.count ?? valuesMetric ?? bucket?.value ?? 0);
|
|
42283
43017
|
const safeVal = Number.isFinite(val) ? val : 0;
|
|
42284
43018
|
total += safeVal;
|
|
42285
43019
|
const rawWeight = bucket?.count !== undefined ? Number(bucket.count) : 1;
|
|
42286
43020
|
const safeWeight = Number.isFinite(rawWeight) && rawWeight > 0 ? rawWeight : 0;
|
|
42287
43021
|
const bucketMetric = hasExplicitKey
|
|
42288
|
-
? Number(bucket?.value ?? bucket?.key ?? 0)
|
|
42289
|
-
: Number(bucket?.value ?? 0);
|
|
43022
|
+
? Number(bucket?.value ?? valuesMetric ?? bucket?.key ?? 0)
|
|
43023
|
+
: Number(bucket?.value ?? valuesMetric ?? 0);
|
|
42290
43024
|
if (Number.isFinite(bucketMetric) && safeWeight > 0) {
|
|
42291
43025
|
weightedSum += bucketMetric * safeWeight;
|
|
42292
43026
|
totalWeight += safeWeight;
|
|
42293
43027
|
}
|
|
42294
|
-
const mappedField = mappings[keyStr]
|
|
43028
|
+
const mappedField = mappings[keyStr] ??
|
|
43029
|
+
mappings[keyStr.toUpperCase()] ??
|
|
43030
|
+
mappings[keyStr.toLowerCase()] ??
|
|
43031
|
+
(labelStr
|
|
43032
|
+
? (mappings[labelStr] ??
|
|
43033
|
+
mappings[labelStr.toUpperCase()] ??
|
|
43034
|
+
mappings[labelStr.toLowerCase()])
|
|
43035
|
+
: undefined);
|
|
42295
43036
|
if (mappedField) {
|
|
42296
43037
|
result[mappedField] = (result[mappedField] || 0) + safeVal;
|
|
42297
43038
|
}
|
|
@@ -45891,6 +46632,7 @@ const DYNAMIC_WIDGET_PAGE_I18N_CONFIG = {
|
|
|
45891
46632
|
'controls.widgetSettingsTooltip': 'Abrir configurações do widget',
|
|
45892
46633
|
'controls.widgetAssistant': 'Abrir assistente do widget',
|
|
45893
46634
|
'controls.widgetAssistantTooltip': 'Abrir o assistente Praxis com contexto deste widget',
|
|
46635
|
+
'controls.widgetDuplicate': 'Duplicar widget',
|
|
45894
46636
|
'controls.widgetRemove': 'Excluir widget',
|
|
45895
46637
|
'controls.widgetRemoveTooltip': 'Excluir este widget e limpar conexões vinculadas',
|
|
45896
46638
|
'controls.widgetRemoveConfirmTitle': 'Excluir widget?',
|
|
@@ -46056,6 +46798,7 @@ const DYNAMIC_WIDGET_PAGE_I18N_CONFIG = {
|
|
|
46056
46798
|
'controls.widgetSettingsTooltip': 'Open widget settings',
|
|
46057
46799
|
'controls.widgetAssistant': 'Open widget assistant',
|
|
46058
46800
|
'controls.widgetAssistantTooltip': 'Open the Praxis assistant with this widget context',
|
|
46801
|
+
'controls.widgetDuplicate': 'Duplicate widget',
|
|
46059
46802
|
'controls.widgetRemove': 'Delete widget',
|
|
46060
46803
|
'controls.widgetRemoveTooltip': 'Delete this widget and clean linked connections',
|
|
46061
46804
|
'controls.widgetRemoveConfirmTitle': 'Delete widget?',
|
|
@@ -47014,15 +47757,18 @@ class DynamicWidgetContextToolbarComponent {
|
|
|
47014
47757
|
showShellSettings = false;
|
|
47015
47758
|
shellSettingsLabel = '';
|
|
47016
47759
|
shellSettingsTooltip = '';
|
|
47760
|
+
showDuplicate = false;
|
|
47761
|
+
duplicateLabel = '';
|
|
47017
47762
|
showRemove = true;
|
|
47018
47763
|
moreActionsLabel = '';
|
|
47019
47764
|
removeLabel = '';
|
|
47020
47765
|
assistant = new EventEmitter();
|
|
47021
47766
|
componentSettings = new EventEmitter();
|
|
47022
47767
|
shellSettings = new EventEmitter();
|
|
47768
|
+
duplicate = new EventEmitter();
|
|
47023
47769
|
remove = new EventEmitter();
|
|
47024
47770
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicWidgetContextToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47025
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DynamicWidgetContextToolbarComponent, isStandalone: true, selector: "praxis-dynamic-widget-context-toolbar", inputs: { showSize: { classPropertyName: "showSize", publicName: "showSize", isSignal: true, isRequired: false, transformFunction: null }, sizeDisabled: { classPropertyName: "sizeDisabled", publicName: "sizeDisabled", isSignal: true, isRequired: false, transformFunction: null }, sizeLabel: { classPropertyName: "sizeLabel", publicName: "sizeLabel", isSignal: true, isRequired: false, transformFunction: null }, toolbarLabel: { classPropertyName: "toolbarLabel", publicName: "toolbarLabel", isSignal: false, isRequired: false, transformFunction: null }, contextLabel: { classPropertyName: "contextLabel", publicName: "contextLabel", isSignal: false, isRequired: false, transformFunction: null }, contextTooltip: { classPropertyName: "contextTooltip", publicName: "contextTooltip", isSignal: false, isRequired: false, transformFunction: null }, showAssistant: { classPropertyName: "showAssistant", publicName: "showAssistant", isSignal: false, isRequired: false, transformFunction: null }, assistantLabel: { classPropertyName: "assistantLabel", publicName: "assistantLabel", isSignal: false, isRequired: false, transformFunction: null }, assistantTooltip: { classPropertyName: "assistantTooltip", publicName: "assistantTooltip", isSignal: false, isRequired: false, transformFunction: null }, showComponentSettings: { classPropertyName: "showComponentSettings", publicName: "showComponentSettings", isSignal: false, isRequired: false, transformFunction: null }, componentSettingsBusy: { classPropertyName: "componentSettingsBusy", publicName: "componentSettingsBusy", isSignal: true, isRequired: false, transformFunction: null }, componentSettingsLabel: { classPropertyName: "componentSettingsLabel", publicName: "componentSettingsLabel", isSignal: false, isRequired: false, transformFunction: null }, componentSettingsTooltip: { classPropertyName: "componentSettingsTooltip", publicName: "componentSettingsTooltip", isSignal: false, isRequired: false, transformFunction: null }, showShellSettings: { classPropertyName: "showShellSettings", publicName: "showShellSettings", isSignal: false, isRequired: false, transformFunction: null }, shellSettingsLabel: { classPropertyName: "shellSettingsLabel", publicName: "shellSettingsLabel", isSignal: false, isRequired: false, transformFunction: null }, shellSettingsTooltip: { classPropertyName: "shellSettingsTooltip", publicName: "shellSettingsTooltip", isSignal: false, isRequired: false, transformFunction: null }, showRemove: { classPropertyName: "showRemove", publicName: "showRemove", isSignal: false, isRequired: false, transformFunction: null }, moreActionsLabel: { classPropertyName: "moreActionsLabel", publicName: "moreActionsLabel", isSignal: false, isRequired: false, transformFunction: null }, removeLabel: { classPropertyName: "removeLabel", publicName: "removeLabel", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { size: "size", assistant: "assistant", componentSettings: "componentSettings", shellSettings: "shellSettings", remove: "remove" }, ngImport: i0, template: `
|
|
47771
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DynamicWidgetContextToolbarComponent, isStandalone: true, selector: "praxis-dynamic-widget-context-toolbar", inputs: { showSize: { classPropertyName: "showSize", publicName: "showSize", isSignal: true, isRequired: false, transformFunction: null }, sizeDisabled: { classPropertyName: "sizeDisabled", publicName: "sizeDisabled", isSignal: true, isRequired: false, transformFunction: null }, sizeLabel: { classPropertyName: "sizeLabel", publicName: "sizeLabel", isSignal: true, isRequired: false, transformFunction: null }, toolbarLabel: { classPropertyName: "toolbarLabel", publicName: "toolbarLabel", isSignal: false, isRequired: false, transformFunction: null }, contextLabel: { classPropertyName: "contextLabel", publicName: "contextLabel", isSignal: false, isRequired: false, transformFunction: null }, contextTooltip: { classPropertyName: "contextTooltip", publicName: "contextTooltip", isSignal: false, isRequired: false, transformFunction: null }, showAssistant: { classPropertyName: "showAssistant", publicName: "showAssistant", isSignal: false, isRequired: false, transformFunction: null }, assistantLabel: { classPropertyName: "assistantLabel", publicName: "assistantLabel", isSignal: false, isRequired: false, transformFunction: null }, assistantTooltip: { classPropertyName: "assistantTooltip", publicName: "assistantTooltip", isSignal: false, isRequired: false, transformFunction: null }, showComponentSettings: { classPropertyName: "showComponentSettings", publicName: "showComponentSettings", isSignal: false, isRequired: false, transformFunction: null }, componentSettingsBusy: { classPropertyName: "componentSettingsBusy", publicName: "componentSettingsBusy", isSignal: true, isRequired: false, transformFunction: null }, componentSettingsLabel: { classPropertyName: "componentSettingsLabel", publicName: "componentSettingsLabel", isSignal: false, isRequired: false, transformFunction: null }, componentSettingsTooltip: { classPropertyName: "componentSettingsTooltip", publicName: "componentSettingsTooltip", isSignal: false, isRequired: false, transformFunction: null }, showShellSettings: { classPropertyName: "showShellSettings", publicName: "showShellSettings", isSignal: false, isRequired: false, transformFunction: null }, shellSettingsLabel: { classPropertyName: "shellSettingsLabel", publicName: "shellSettingsLabel", isSignal: false, isRequired: false, transformFunction: null }, shellSettingsTooltip: { classPropertyName: "shellSettingsTooltip", publicName: "shellSettingsTooltip", isSignal: false, isRequired: false, transformFunction: null }, showDuplicate: { classPropertyName: "showDuplicate", publicName: "showDuplicate", isSignal: false, isRequired: false, transformFunction: null }, duplicateLabel: { classPropertyName: "duplicateLabel", publicName: "duplicateLabel", isSignal: false, isRequired: false, transformFunction: null }, showRemove: { classPropertyName: "showRemove", publicName: "showRemove", isSignal: false, isRequired: false, transformFunction: null }, moreActionsLabel: { classPropertyName: "moreActionsLabel", publicName: "moreActionsLabel", isSignal: false, isRequired: false, transformFunction: null }, removeLabel: { classPropertyName: "removeLabel", publicName: "removeLabel", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { size: "size", assistant: "assistant", componentSettings: "componentSettings", shellSettings: "shellSettings", duplicate: "duplicate", remove: "remove" }, ngImport: i0, template: `
|
|
47026
47772
|
<div
|
|
47027
47773
|
class="pdx-widget-context-toolbar"
|
|
47028
47774
|
[class.pdx-widget-context-toolbar--with-context]="!!contextLabel"
|
|
@@ -47076,7 +47822,7 @@ class DynamicWidgetContextToolbarComponent {
|
|
|
47076
47822
|
(click)="shellSettings.emit()"
|
|
47077
47823
|
></button>
|
|
47078
47824
|
}
|
|
47079
|
-
@if (showRemove || showSize()) {
|
|
47825
|
+
@if (showDuplicate || showRemove || showSize()) {
|
|
47080
47826
|
<button
|
|
47081
47827
|
praxisIconButton="ms:more_horiz"
|
|
47082
47828
|
size="dense"
|
|
@@ -47092,6 +47838,12 @@ class DynamicWidgetContextToolbarComponent {
|
|
|
47092
47838
|
<mat-icon [praxisIcon]="'ms:straighten'"></mat-icon><span>{{ sizeLabel() }}</span>
|
|
47093
47839
|
</button>
|
|
47094
47840
|
}
|
|
47841
|
+
@if (showDuplicate) {
|
|
47842
|
+
<button mat-menu-item type="button" data-testid="dynamic-widget-duplicate" (click)="duplicate.emit()">
|
|
47843
|
+
<mat-icon [praxisIcon]="'content_copy'"></mat-icon>
|
|
47844
|
+
<span>{{ duplicateLabel }}</span>
|
|
47845
|
+
</button>
|
|
47846
|
+
}
|
|
47095
47847
|
@if (showRemove) {
|
|
47096
47848
|
<button mat-menu-item type="button" data-testid="dynamic-widget-remove" (click)="remove.emit()">
|
|
47097
47849
|
<mat-icon [praxisIcon]="'delete'"></mat-icon>
|
|
@@ -47165,7 +47917,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47165
47917
|
(click)="shellSettings.emit()"
|
|
47166
47918
|
></button>
|
|
47167
47919
|
}
|
|
47168
|
-
@if (showRemove || showSize()) {
|
|
47920
|
+
@if (showDuplicate || showRemove || showSize()) {
|
|
47169
47921
|
<button
|
|
47170
47922
|
praxisIconButton="ms:more_horiz"
|
|
47171
47923
|
size="dense"
|
|
@@ -47181,6 +47933,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47181
47933
|
<mat-icon [praxisIcon]="'ms:straighten'"></mat-icon><span>{{ sizeLabel() }}</span>
|
|
47182
47934
|
</button>
|
|
47183
47935
|
}
|
|
47936
|
+
@if (showDuplicate) {
|
|
47937
|
+
<button mat-menu-item type="button" data-testid="dynamic-widget-duplicate" (click)="duplicate.emit()">
|
|
47938
|
+
<mat-icon [praxisIcon]="'content_copy'"></mat-icon>
|
|
47939
|
+
<span>{{ duplicateLabel }}</span>
|
|
47940
|
+
</button>
|
|
47941
|
+
}
|
|
47184
47942
|
@if (showRemove) {
|
|
47185
47943
|
<button mat-menu-item type="button" data-testid="dynamic-widget-remove" (click)="remove.emit()">
|
|
47186
47944
|
<mat-icon [praxisIcon]="'delete'"></mat-icon>
|
|
@@ -47215,6 +47973,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47215
47973
|
type: Input
|
|
47216
47974
|
}], shellSettingsTooltip: [{
|
|
47217
47975
|
type: Input
|
|
47976
|
+
}], showDuplicate: [{
|
|
47977
|
+
type: Input
|
|
47978
|
+
}], duplicateLabel: [{
|
|
47979
|
+
type: Input
|
|
47218
47980
|
}], showRemove: [{
|
|
47219
47981
|
type: Input
|
|
47220
47982
|
}], moreActionsLabel: [{
|
|
@@ -47227,6 +47989,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47227
47989
|
type: Output
|
|
47228
47990
|
}], shellSettings: [{
|
|
47229
47991
|
type: Output
|
|
47992
|
+
}], duplicate: [{
|
|
47993
|
+
type: Output
|
|
47230
47994
|
}], remove: [{
|
|
47231
47995
|
type: Output
|
|
47232
47996
|
}] } });
|
|
@@ -49646,6 +50410,15 @@ class DynamicWidgetPageComponent {
|
|
|
49646
50410
|
isWidgetComponentSettingsPending(key) {
|
|
49647
50411
|
return this.pendingWidgetComponentSettings().has(key);
|
|
49648
50412
|
}
|
|
50413
|
+
canDuplicateWidgets() {
|
|
50414
|
+
if (!this.enableCustomization)
|
|
50415
|
+
return false;
|
|
50416
|
+
if (typeof this.authoringCapabilities?.widgetDuplication === 'boolean') {
|
|
50417
|
+
return this.authoringCapabilities.widgetDuplication;
|
|
50418
|
+
}
|
|
50419
|
+
return this.isAuthoringCapabilityEnabled('insertWidgets')
|
|
50420
|
+
&& this.isAuthoringCapabilityEnabled('widgetRemoval');
|
|
50421
|
+
}
|
|
49649
50422
|
canRemoveWidgets() {
|
|
49650
50423
|
return this.isAuthoringCapabilityEnabled('widgetRemoval');
|
|
49651
50424
|
}
|
|
@@ -49656,6 +50429,7 @@ class DynamicWidgetPageComponent {
|
|
|
49656
50429
|
return this.enableCustomization && (this.canCustomizeCanvas()
|
|
49657
50430
|
|| this.canOpenWidgetShellSettings()
|
|
49658
50431
|
|| this.isAuthoringCapabilityEnabled('widgetInputs')
|
|
50432
|
+
|| this.canDuplicateWidgets()
|
|
49659
50433
|
|| this.canRemoveWidgets()
|
|
49660
50434
|
|| this.canRequestWidgetAssistant());
|
|
49661
50435
|
}
|
|
@@ -49702,6 +50476,9 @@ class DynamicWidgetPageComponent {
|
|
|
49702
50476
|
this.selectWidget(widgetKey);
|
|
49703
50477
|
this.widgetAssistantRequested.emit(widgetKey);
|
|
49704
50478
|
}
|
|
50479
|
+
widgetDuplicateLabel() {
|
|
50480
|
+
return this.t('controls.widgetDuplicate', 'Duplicar widget');
|
|
50481
|
+
}
|
|
49705
50482
|
widgetRemoveLabel() {
|
|
49706
50483
|
return this.t('controls.widgetRemove', 'Excluir widget');
|
|
49707
50484
|
}
|
|
@@ -49845,6 +50622,16 @@ class DynamicWidgetPageComponent {
|
|
|
49845
50622
|
placement: 'header',
|
|
49846
50623
|
});
|
|
49847
50624
|
}
|
|
50625
|
+
if (this.canDuplicateWidgets()) {
|
|
50626
|
+
actions.push({
|
|
50627
|
+
id: 'widget-duplicate',
|
|
50628
|
+
label: this.widgetDuplicateLabel(),
|
|
50629
|
+
tooltip: this.widgetDuplicateLabel(),
|
|
50630
|
+
icon: 'content_copy',
|
|
50631
|
+
variant: 'icon',
|
|
50632
|
+
placement: 'menu',
|
|
50633
|
+
});
|
|
50634
|
+
}
|
|
49848
50635
|
if (this.canRemoveWidgets()) {
|
|
49849
50636
|
actions.push({
|
|
49850
50637
|
id: 'widget-remove',
|
|
@@ -49932,6 +50719,10 @@ class DynamicWidgetPageComponent {
|
|
|
49932
50719
|
this.openWidgetShellSettings(fromKey);
|
|
49933
50720
|
return;
|
|
49934
50721
|
}
|
|
50722
|
+
if (evt.id === 'widget-duplicate') {
|
|
50723
|
+
this.duplicateWidget(fromKey);
|
|
50724
|
+
return;
|
|
50725
|
+
}
|
|
49935
50726
|
if (evt.id === 'widget-remove') {
|
|
49936
50727
|
void this.confirmAndRemoveWidget(fromKey);
|
|
49937
50728
|
return;
|
|
@@ -49950,6 +50741,148 @@ class DynamicWidgetPageComponent {
|
|
|
49950
50741
|
payload: evt.payload,
|
|
49951
50742
|
});
|
|
49952
50743
|
}
|
|
50744
|
+
duplicateWidget(widgetKey) {
|
|
50745
|
+
if (!this.canDuplicateWidgets())
|
|
50746
|
+
return null;
|
|
50747
|
+
const page = this.ensurePageDefinition();
|
|
50748
|
+
const sourceIndex = (page.widgets || []).findIndex((item) => item.key === widgetKey);
|
|
50749
|
+
if (sourceIndex < 0)
|
|
50750
|
+
return null;
|
|
50751
|
+
const sourceWidget = page.widgets[sourceIndex];
|
|
50752
|
+
const componentId = sourceWidget.definition?.id || 'widget';
|
|
50753
|
+
const existingKeys = new Set((page.widgets || []).map((w) => w.key));
|
|
50754
|
+
let suffix = 1;
|
|
50755
|
+
let newKey = `${componentId}-copy-${suffix}`;
|
|
50756
|
+
while (existingKeys.has(newKey)) {
|
|
50757
|
+
suffix += 1;
|
|
50758
|
+
newKey = `${componentId}-copy-${suffix}`;
|
|
50759
|
+
}
|
|
50760
|
+
const clonedWidget = this.cloneStateValues(sourceWidget);
|
|
50761
|
+
clonedWidget.key = newKey;
|
|
50762
|
+
const next = this.clonePageDefinition(page);
|
|
50763
|
+
next.widgets = [
|
|
50764
|
+
...next.widgets.slice(0, sourceIndex + 1),
|
|
50765
|
+
clonedWidget,
|
|
50766
|
+
...next.widgets.slice(sourceIndex + 1),
|
|
50767
|
+
];
|
|
50768
|
+
if (Array.isArray(next.grouping)) {
|
|
50769
|
+
next.grouping = next.grouping.map((group) => {
|
|
50770
|
+
if (group.kind === 'tabs' && Array.isArray(group.tabs)) {
|
|
50771
|
+
return {
|
|
50772
|
+
...group,
|
|
50773
|
+
tabs: group.tabs.map((tab) => {
|
|
50774
|
+
const idx = Array.isArray(tab.widgetKeys) ? tab.widgetKeys.indexOf(widgetKey) : -1;
|
|
50775
|
+
if (idx < 0)
|
|
50776
|
+
return tab;
|
|
50777
|
+
const keys = [...tab.widgetKeys];
|
|
50778
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50779
|
+
return { ...tab, widgetKeys: keys };
|
|
50780
|
+
}),
|
|
50781
|
+
};
|
|
50782
|
+
}
|
|
50783
|
+
if ('widgetKeys' in group && Array.isArray(group.widgetKeys)) {
|
|
50784
|
+
const idx = group.widgetKeys.indexOf(widgetKey);
|
|
50785
|
+
if (idx >= 0) {
|
|
50786
|
+
const keys = [...group.widgetKeys];
|
|
50787
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50788
|
+
return { ...group, widgetKeys: keys };
|
|
50789
|
+
}
|
|
50790
|
+
}
|
|
50791
|
+
return group;
|
|
50792
|
+
});
|
|
50793
|
+
}
|
|
50794
|
+
if (next.deviceLayouts) {
|
|
50795
|
+
for (const deviceKey of ['desktop', 'tablet', 'mobile']) {
|
|
50796
|
+
const variant = next.deviceLayouts[deviceKey];
|
|
50797
|
+
if (!variant)
|
|
50798
|
+
continue;
|
|
50799
|
+
if (variant.widgetOverrides?.[widgetKey]) {
|
|
50800
|
+
variant.widgetOverrides = {
|
|
50801
|
+
...variant.widgetOverrides,
|
|
50802
|
+
[newKey]: this.cloneStateValues(variant.widgetOverrides[widgetKey]),
|
|
50803
|
+
};
|
|
50804
|
+
}
|
|
50805
|
+
if (Array.isArray(variant.groupingOverrides)) {
|
|
50806
|
+
variant.groupingOverrides = variant.groupingOverrides.map((override) => {
|
|
50807
|
+
let nextOverride = override;
|
|
50808
|
+
if (Array.isArray(override.widgetKeys)) {
|
|
50809
|
+
const idx = override.widgetKeys.indexOf(widgetKey);
|
|
50810
|
+
if (idx >= 0) {
|
|
50811
|
+
const keys = [...override.widgetKeys];
|
|
50812
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50813
|
+
nextOverride = { ...nextOverride, widgetKeys: keys };
|
|
50814
|
+
}
|
|
50815
|
+
}
|
|
50816
|
+
if (Array.isArray(override.tabs)) {
|
|
50817
|
+
nextOverride = {
|
|
50818
|
+
...nextOverride,
|
|
50819
|
+
tabs: override.tabs.map((tab) => {
|
|
50820
|
+
const idx = Array.isArray(tab.widgetKeys) ? tab.widgetKeys.indexOf(widgetKey) : -1;
|
|
50821
|
+
if (idx < 0)
|
|
50822
|
+
return tab;
|
|
50823
|
+
const keys = [...tab.widgetKeys];
|
|
50824
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50825
|
+
return { ...tab, widgetKeys: keys };
|
|
50826
|
+
}),
|
|
50827
|
+
};
|
|
50828
|
+
}
|
|
50829
|
+
return nextOverride;
|
|
50830
|
+
});
|
|
50831
|
+
}
|
|
50832
|
+
}
|
|
50833
|
+
}
|
|
50834
|
+
if (next.canvas) {
|
|
50835
|
+
const canvasColumns = Math.max(1, next.canvas.columns || 12);
|
|
50836
|
+
const sourceItem = next.canvas.items?.[widgetKey];
|
|
50837
|
+
const existingItems = Object.values(next.canvas.items || {});
|
|
50838
|
+
const colSpan = Math.min(canvasColumns, Math.max(1, sourceItem?.colSpan ?? 4));
|
|
50839
|
+
const rowSpan = Math.max(1, sourceItem?.rowSpan ?? 2);
|
|
50840
|
+
const overlapsExisting = (col, row) => {
|
|
50841
|
+
const right = col + colSpan - 1;
|
|
50842
|
+
const bottom = row + rowSpan - 1;
|
|
50843
|
+
return existingItems.some((item) => {
|
|
50844
|
+
const itemRight = item.col + item.colSpan - 1;
|
|
50845
|
+
const itemBottom = item.row + item.rowSpan - 1;
|
|
50846
|
+
return col <= itemRight && right >= item.col && row <= itemBottom && bottom >= item.row;
|
|
50847
|
+
});
|
|
50848
|
+
};
|
|
50849
|
+
const startRow = sourceItem?.row ?? (existingItems.length ? Math.max(1, ...existingItems.map((item) => item.row)) : 1);
|
|
50850
|
+
const lastRow = existingItems.length
|
|
50851
|
+
? Math.max(1, ...existingItems.map((item) => (item.row + item.rowSpan) - 1))
|
|
50852
|
+
: 0;
|
|
50853
|
+
let targetCol = 1;
|
|
50854
|
+
let targetRow = lastRow + 1;
|
|
50855
|
+
let placed = false;
|
|
50856
|
+
for (let candidateRow = startRow; candidateRow <= lastRow + 1; candidateRow += 1) {
|
|
50857
|
+
for (let col = 1; col + colSpan - 1 <= canvasColumns; col += 1) {
|
|
50858
|
+
if (!overlapsExisting(col, candidateRow)) {
|
|
50859
|
+
targetCol = col;
|
|
50860
|
+
targetRow = candidateRow;
|
|
50861
|
+
placed = true;
|
|
50862
|
+
break;
|
|
50863
|
+
}
|
|
50864
|
+
}
|
|
50865
|
+
if (placed)
|
|
50866
|
+
break;
|
|
50867
|
+
}
|
|
50868
|
+
next.canvas = {
|
|
50869
|
+
...next.canvas,
|
|
50870
|
+
items: {
|
|
50871
|
+
...(next.canvas.items || {}),
|
|
50872
|
+
[newKey]: {
|
|
50873
|
+
...(sourceItem ? this.cloneStateValues(sourceItem) : {}),
|
|
50874
|
+
col: targetCol,
|
|
50875
|
+
row: targetRow,
|
|
50876
|
+
colSpan,
|
|
50877
|
+
rowSpan,
|
|
50878
|
+
},
|
|
50879
|
+
},
|
|
50880
|
+
};
|
|
50881
|
+
}
|
|
50882
|
+
this.applyAuthoringPageUpdate(next, true);
|
|
50883
|
+
this.selectWidget(newKey);
|
|
50884
|
+
return newKey;
|
|
50885
|
+
}
|
|
49953
50886
|
handleSetInputCommand(fromKey, evt) {
|
|
49954
50887
|
if (evt?.command !== 'pdx:set-input')
|
|
49955
50888
|
return false;
|
|
@@ -50139,10 +51072,47 @@ class DynamicWidgetPageComponent {
|
|
|
50139
51072
|
widgetSettingsSelectTab;
|
|
50140
51073
|
buildWidgetSettingsContextNavigation(key, activeMode) {
|
|
50141
51074
|
const page = this.ensurePageDefinition();
|
|
50142
|
-
const
|
|
50143
|
-
|
|
50144
|
-
|
|
50145
|
-
|
|
51075
|
+
const canvasItems = page.canvas?.items;
|
|
51076
|
+
const orderedWidgets = [...(page.widgets || [])]
|
|
51077
|
+
.map((widget, index) => ({
|
|
51078
|
+
widget,
|
|
51079
|
+
index,
|
|
51080
|
+
item: canvasItems?.[widget.key],
|
|
51081
|
+
baseLabel: this.widgetContextLabel(widget),
|
|
51082
|
+
}))
|
|
51083
|
+
.sort((a, b) => {
|
|
51084
|
+
if (a.item && b.item) {
|
|
51085
|
+
if (a.item.row !== b.item.row)
|
|
51086
|
+
return a.item.row - b.item.row;
|
|
51087
|
+
if (a.item.col !== b.item.col)
|
|
51088
|
+
return a.item.col - b.item.col;
|
|
51089
|
+
}
|
|
51090
|
+
else if (a.item && !b.item) {
|
|
51091
|
+
return -1;
|
|
51092
|
+
}
|
|
51093
|
+
else if (!a.item && b.item) {
|
|
51094
|
+
return 1;
|
|
51095
|
+
}
|
|
51096
|
+
return a.index - b.index;
|
|
51097
|
+
});
|
|
51098
|
+
const labelCounts = new Map();
|
|
51099
|
+
for (const entry of orderedWidgets) {
|
|
51100
|
+
labelCounts.set(entry.baseLabel, (labelCounts.get(entry.baseLabel) ?? 0) + 1);
|
|
51101
|
+
}
|
|
51102
|
+
const labelOccurrences = new Map();
|
|
51103
|
+
const targets = orderedWidgets.map((entry) => {
|
|
51104
|
+
const totalSameLabel = labelCounts.get(entry.baseLabel) ?? 1;
|
|
51105
|
+
if (totalSameLabel <= 1) {
|
|
51106
|
+
return { id: entry.widget.key, label: entry.baseLabel };
|
|
51107
|
+
}
|
|
51108
|
+
const nextOccurrence = (labelOccurrences.get(entry.baseLabel) ?? 0) + 1;
|
|
51109
|
+
labelOccurrences.set(entry.baseLabel, nextOccurrence);
|
|
51110
|
+
const coordSuffix = entry.item ? `L${entry.item.row}·C${entry.item.col}` : `#${nextOccurrence}`;
|
|
51111
|
+
return {
|
|
51112
|
+
id: entry.widget.key,
|
|
51113
|
+
label: `${entry.baseLabel} (${coordSuffix})`,
|
|
51114
|
+
};
|
|
51115
|
+
});
|
|
50146
51116
|
const canContent = this.canOpenWidgetComponentSettings(key);
|
|
50147
51117
|
const canWidget = this.canOpenWidgetShellSettings();
|
|
50148
51118
|
const canSize = !!this.resolveSizeEditorTarget(key) ||
|
|
@@ -54881,11 +55851,14 @@ class DynamicWidgetPageComponent {
|
|
|
54881
55851
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
54882
55852
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
54883
55853
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
55854
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
55855
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
54884
55856
|
[showRemove]="canRemoveWidgets()"
|
|
54885
55857
|
[removeLabel]="widgetRemoveLabel()"
|
|
54886
55858
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
54887
55859
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
54888
55860
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
55861
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
54889
55862
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
54890
55863
|
/>
|
|
54891
55864
|
}
|
|
@@ -55017,6 +55990,8 @@ class DynamicWidgetPageComponent {
|
|
|
55017
55990
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55018
55991
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55019
55992
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
55993
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
55994
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55020
55995
|
[showRemove]="canRemoveWidgets()"
|
|
55021
55996
|
[removeLabel]="widgetRemoveLabel()"
|
|
55022
55997
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55024,6 +55999,7 @@ class DynamicWidgetPageComponent {
|
|
|
55024
55999
|
openWidgetComponentSettings(w.key)
|
|
55025
56000
|
"
|
|
55026
56001
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56002
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55027
56003
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55028
56004
|
/>
|
|
55029
56005
|
}
|
|
@@ -55092,6 +56068,8 @@ class DynamicWidgetPageComponent {
|
|
|
55092
56068
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55093
56069
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55094
56070
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56071
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56072
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55095
56073
|
[showRemove]="canRemoveWidgets()"
|
|
55096
56074
|
[removeLabel]="widgetRemoveLabel()"
|
|
55097
56075
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55099,6 +56077,7 @@ class DynamicWidgetPageComponent {
|
|
|
55099
56077
|
openWidgetComponentSettings(w.key)
|
|
55100
56078
|
"
|
|
55101
56079
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56080
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55102
56081
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55103
56082
|
/>
|
|
55104
56083
|
}
|
|
@@ -55159,11 +56138,14 @@ class DynamicWidgetPageComponent {
|
|
|
55159
56138
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55160
56139
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55161
56140
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56141
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56142
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55162
56143
|
[showRemove]="canRemoveWidgets()"
|
|
55163
56144
|
[removeLabel]="widgetRemoveLabel()"
|
|
55164
56145
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
55165
56146
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
55166
56147
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56148
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55167
56149
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55168
56150
|
/>
|
|
55169
56151
|
}
|
|
@@ -55177,7 +56159,7 @@ class DynamicWidgetPageComponent {
|
|
|
55177
56159
|
</div>
|
|
55178
56160
|
}
|
|
55179
56161
|
</div>
|
|
55180
|
-
`, isInline: true, styles: [":host{display:block;min-width:0}.pdx-page-wrapper{box-sizing:border-box;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, transparent);color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:before{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:14px;pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}.pdx-widget--canvas{align-self:stretch;--pdx-resize-gradient-diagonal-se: linear-gradient( 135deg, color-mix(in srgb, var(--md-sys-color-primary) 94%, white 6%), color-mix(in srgb, var(--md-sys-color-tertiary) 90%, white 10%), color-mix(in srgb, var(--md-sys-color-secondary) 88%, white 12%) );--pdx-active-resize-gradient: var(--pdx-resize-gradient-diagonal-se)}.pdx-widget--canvas:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-active-resize-gradient);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:hover):after,.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:focus-visible):after{opacity:.82}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--md-sys-color-primary-container)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, #ffffff);color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas:after,.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-selected:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i5$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i6$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: CanvasSizeEditorComponent, selector: "praxis-canvas-size-editor", inputs: ["layoutItems", "resetRevision", "restoredValue", "columns", "freeSpaceWidths", "northFreeSpaceHeight", "northUnavailable", "southFreeSpaceHeight", "southUnavailable", "cornerFreeSpaceSizes", "cornerUnavailable", "expandWidths", "notice", "hasUndo", "canUndo", "width", "height", "contentRows", "rowSpan", "widgetLabel", "scopeLabel", "previewPending", "error"], outputs: ["state", "undo", "preview", "apply", "cancel"] }, { kind: "component", type: DynamicWidgetContextToolbarComponent, selector: "praxis-dynamic-widget-context-toolbar", inputs: ["showSize", "sizeDisabled", "sizeLabel", "toolbarLabel", "contextLabel", "contextTooltip", "showAssistant", "assistantLabel", "assistantTooltip", "showComponentSettings", "componentSettingsBusy", "componentSettingsLabel", "componentSettingsTooltip", "showShellSettings", "shellSettingsLabel", "shellSettingsTooltip", "showRemove", "moreActionsLabel", "removeLabel"], outputs: ["size", "assistant", "componentSettings", "shellSettings", "remove"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "component", type: WidgetShellComponent, selector: "praxis-widget-shell", inputs: ["shell", "context", "dragSurfaceEnabled", "dragSurfaceLabel"], outputs: ["action", "dragSurfacePointerDown", "dragSurfaceKeydown"] }] });
|
|
56162
|
+
`, isInline: true, styles: [":host{display:block;min-width:0}.pdx-page-wrapper{box-sizing:border-box;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, transparent);color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:before{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:14px;pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}.pdx-widget--canvas{align-self:stretch;--pdx-resize-gradient-diagonal-se: linear-gradient( 135deg, color-mix(in srgb, var(--md-sys-color-primary) 94%, white 6%), color-mix(in srgb, var(--md-sys-color-tertiary) 90%, white 10%), color-mix(in srgb, var(--md-sys-color-secondary) 88%, white 12%) );--pdx-active-resize-gradient: var(--pdx-resize-gradient-diagonal-se)}.pdx-widget--canvas:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-active-resize-gradient);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:hover):after,.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:focus-visible):after{opacity:.82}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--md-sys-color-primary-container)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, var(--mat-sys-surface-container-highest));color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas:after,.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-selected:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i5$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i6$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: CanvasSizeEditorComponent, selector: "praxis-canvas-size-editor", inputs: ["layoutItems", "resetRevision", "restoredValue", "columns", "freeSpaceWidths", "northFreeSpaceHeight", "northUnavailable", "southFreeSpaceHeight", "southUnavailable", "cornerFreeSpaceSizes", "cornerUnavailable", "expandWidths", "notice", "hasUndo", "canUndo", "width", "height", "contentRows", "rowSpan", "widgetLabel", "scopeLabel", "previewPending", "error"], outputs: ["state", "undo", "preview", "apply", "cancel"] }, { kind: "component", type: DynamicWidgetContextToolbarComponent, selector: "praxis-dynamic-widget-context-toolbar", inputs: ["showSize", "sizeDisabled", "sizeLabel", "toolbarLabel", "contextLabel", "contextTooltip", "showAssistant", "assistantLabel", "assistantTooltip", "showComponentSettings", "componentSettingsBusy", "componentSettingsLabel", "componentSettingsTooltip", "showShellSettings", "shellSettingsLabel", "shellSettingsTooltip", "showDuplicate", "duplicateLabel", "showRemove", "moreActionsLabel", "removeLabel"], outputs: ["size", "assistant", "componentSettings", "shellSettings", "duplicate", "remove"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "component", type: WidgetShellComponent, selector: "praxis-widget-shell", inputs: ["shell", "context", "dragSurfaceEnabled", "dragSurfaceLabel"], outputs: ["action", "dragSurfacePointerDown", "dragSurfaceKeydown"] }] });
|
|
55181
56163
|
}
|
|
55182
56164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicWidgetPageComponent, decorators: [{
|
|
55183
56165
|
type: Component,
|
|
@@ -55390,11 +56372,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55390
56372
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55391
56373
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55392
56374
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56375
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
56376
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55393
56377
|
[showRemove]="canRemoveWidgets()"
|
|
55394
56378
|
[removeLabel]="widgetRemoveLabel()"
|
|
55395
56379
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
55396
56380
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
55397
56381
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56382
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55398
56383
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55399
56384
|
/>
|
|
55400
56385
|
}
|
|
@@ -55526,6 +56511,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55526
56511
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55527
56512
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55528
56513
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56514
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
56515
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55529
56516
|
[showRemove]="canRemoveWidgets()"
|
|
55530
56517
|
[removeLabel]="widgetRemoveLabel()"
|
|
55531
56518
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55533,6 +56520,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55533
56520
|
openWidgetComponentSettings(w.key)
|
|
55534
56521
|
"
|
|
55535
56522
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56523
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55536
56524
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55537
56525
|
/>
|
|
55538
56526
|
}
|
|
@@ -55601,6 +56589,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55601
56589
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55602
56590
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55603
56591
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56592
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56593
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55604
56594
|
[showRemove]="canRemoveWidgets()"
|
|
55605
56595
|
[removeLabel]="widgetRemoveLabel()"
|
|
55606
56596
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55608,6 +56598,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55608
56598
|
openWidgetComponentSettings(w.key)
|
|
55609
56599
|
"
|
|
55610
56600
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56601
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55611
56602
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55612
56603
|
/>
|
|
55613
56604
|
}
|
|
@@ -55668,11 +56659,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55668
56659
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55669
56660
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55670
56661
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56662
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56663
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55671
56664
|
[showRemove]="canRemoveWidgets()"
|
|
55672
56665
|
[removeLabel]="widgetRemoveLabel()"
|
|
55673
56666
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
55674
56667
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
55675
56668
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56669
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55676
56670
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55677
56671
|
/>
|
|
55678
56672
|
}
|
|
@@ -55686,7 +56680,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55686
56680
|
</div>
|
|
55687
56681
|
}
|
|
55688
56682
|
</div>
|
|
55689
|
-
`, styles: [":host{display:block;min-width:0}.pdx-page-wrapper{box-sizing:border-box;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, transparent);color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:before{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:14px;pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}.pdx-widget--canvas{align-self:stretch;--pdx-resize-gradient-diagonal-se: linear-gradient( 135deg, color-mix(in srgb, var(--md-sys-color-primary) 94%, white 6%), color-mix(in srgb, var(--md-sys-color-tertiary) 90%, white 10%), color-mix(in srgb, var(--md-sys-color-secondary) 88%, white 12%) );--pdx-active-resize-gradient: var(--pdx-resize-gradient-diagonal-se)}.pdx-widget--canvas:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-active-resize-gradient);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:hover):after,.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:focus-visible):after{opacity:.82}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--md-sys-color-primary-container)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, #ffffff);color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas:after,.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-selected:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"] }]
|
|
56683
|
+
`, styles: [":host{display:block;min-width:0}.pdx-page-wrapper{box-sizing:border-box;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, transparent);color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:before{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:14px;pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}.pdx-widget--canvas{align-self:stretch;--pdx-resize-gradient-diagonal-se: linear-gradient( 135deg, color-mix(in srgb, var(--md-sys-color-primary) 94%, white 6%), color-mix(in srgb, var(--md-sys-color-tertiary) 90%, white 10%), color-mix(in srgb, var(--md-sys-color-secondary) 88%, white 12%) );--pdx-active-resize-gradient: var(--pdx-resize-gradient-diagonal-se)}.pdx-widget--canvas:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-active-resize-gradient);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:hover):after,.pdx-widget--canvas-selected:has(>.pdx-canvas-edges .pdx-canvas-edge:focus-visible):after{opacity:.82}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--md-sys-color-primary-container)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, var(--mat-sys-surface-container-highest));color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas:after,.pdx-widget--canvas-selected:before,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-selected:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"] }]
|
|
55690
56684
|
}], ctorParameters: () => [], propDecorators: { widgetSizeTemplate: [{
|
|
55691
56685
|
type: ViewChild,
|
|
55692
56686
|
args: ['widgetSizeTemplate', { static: true }]
|
|
@@ -58621,6 +59615,7 @@ let nextQuickConnectInstanceId = 0;
|
|
|
58621
59615
|
class ResourceQuickConnectComponent {
|
|
58622
59616
|
resourcePath = '';
|
|
58623
59617
|
resourcePathChange = new EventEmitter();
|
|
59618
|
+
resourceSelected = new EventEmitter();
|
|
58624
59619
|
endpointKey;
|
|
58625
59620
|
apiUrlEntry;
|
|
58626
59621
|
intent = 'any';
|
|
@@ -58754,13 +59749,17 @@ class ResourceQuickConnectComponent {
|
|
|
58754
59749
|
if (!this.discovery) {
|
|
58755
59750
|
return;
|
|
58756
59751
|
}
|
|
59752
|
+
const requestOpts = this.requestOptions();
|
|
59753
|
+
if (typeof this.discovery.canResolveSchemas === 'function' &&
|
|
59754
|
+
!this.discovery.canResolveSchemas(requestOpts)) {
|
|
59755
|
+
return;
|
|
59756
|
+
}
|
|
58757
59757
|
const requestId = ++this.catalogRequestId;
|
|
58758
59758
|
this.catalogLoading = true;
|
|
58759
59759
|
this.catalogError = false;
|
|
58760
59760
|
this.isBusy$.next(true);
|
|
58761
59761
|
this.cdr?.markForCheck();
|
|
58762
59762
|
try {
|
|
58763
|
-
const requestOpts = this.requestOptions();
|
|
58764
59763
|
const catalog = await firstValueFrom(this.discovery.getSchemaCatalog({}, requestOpts).pipe(timeout$1(30000)));
|
|
58765
59764
|
if (requestId !== this.catalogRequestId) {
|
|
58766
59765
|
return;
|
|
@@ -58839,6 +59838,7 @@ class ResourceQuickConnectComponent {
|
|
|
58839
59838
|
this.matchesDiscoveredResource(this.resourcePath)) {
|
|
58840
59839
|
this.resourcePath = resolved;
|
|
58841
59840
|
}
|
|
59841
|
+
this.resourceSelected.emit(this.selectedResource());
|
|
58842
59842
|
}
|
|
58843
59843
|
this.syncSelectorValue();
|
|
58844
59844
|
}
|
|
@@ -58860,6 +59860,7 @@ class ResourceQuickConnectComponent {
|
|
|
58860
59860
|
this.matchesDiscoveredResource(this.resourcePath)) {
|
|
58861
59861
|
this.resourcePath = resolved;
|
|
58862
59862
|
}
|
|
59863
|
+
this.resourceSelected.emit(this.selectedResource());
|
|
58863
59864
|
}
|
|
58864
59865
|
this.syncSelectorValue();
|
|
58865
59866
|
}
|
|
@@ -58924,6 +59925,7 @@ class ResourceQuickConnectComponent {
|
|
|
58924
59925
|
const emitted = this.resourcePath;
|
|
58925
59926
|
this.cvaOnChange(emitted);
|
|
58926
59927
|
this.resourcePathChange.emit(emitted);
|
|
59928
|
+
this.resourceSelected.emit(this.selectedResource());
|
|
58927
59929
|
}
|
|
58928
59930
|
this.cdr?.markForCheck();
|
|
58929
59931
|
}
|
|
@@ -58935,6 +59937,7 @@ class ResourceQuickConnectComponent {
|
|
|
58935
59937
|
this.syncSelectorValue();
|
|
58936
59938
|
this.cvaOnChange(this.resourcePath);
|
|
58937
59939
|
this.resourcePathChange.emit(this.resourcePath);
|
|
59940
|
+
this.resourceSelected.emit(this.selectedResource());
|
|
58938
59941
|
this.cdr?.markForCheck();
|
|
58939
59942
|
}
|
|
58940
59943
|
acceptAppliedValue(value) {
|
|
@@ -59161,7 +60164,7 @@ class ResourceQuickConnectComponent {
|
|
|
59161
60164
|
return /^\/?[a-zA-Z0-9][a-zA-Z0-9/_-]*$/.test(value);
|
|
59162
60165
|
}
|
|
59163
60166
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ResourceQuickConnectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
59164
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: ResourceQuickConnectComponent, isStandalone: true, selector: "praxis-resource-quick-connect", inputs: { resourcePath: "resourcePath", endpointKey: "endpointKey", apiUrlEntry: "apiUrlEntry", intent: "intent", resources: "resources", label: "label", placeholder: "placeholder", hint: "hint", disabled: "disabled" }, outputs: { resourcePathChange: "resourcePathChange" }, providers: [
|
|
60167
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: ResourceQuickConnectComponent, isStandalone: true, selector: "praxis-resource-quick-connect", inputs: { resourcePath: "resourcePath", endpointKey: "endpointKey", apiUrlEntry: "apiUrlEntry", intent: "intent", resources: "resources", label: "label", placeholder: "placeholder", hint: "hint", disabled: "disabled" }, outputs: { resourcePathChange: "resourcePathChange", resourceSelected: "resourceSelected" }, providers: [
|
|
59165
60168
|
providePraxisI18nConfig(RESOURCE_DISCOVERY_I18N_CONFIG),
|
|
59166
60169
|
{
|
|
59167
60170
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -59189,9 +60192,11 @@ class ResourceQuickConnectComponent {
|
|
|
59189
60192
|
</div>
|
|
59190
60193
|
}
|
|
59191
60194
|
@if (selectorType && selectorInputs) {
|
|
59192
|
-
<
|
|
60195
|
+
<div class="pdx-quick-connect__selector">
|
|
60196
|
+
<ng-container *ngComponentOutlet="selectorType" />
|
|
60197
|
+
</div>
|
|
59193
60198
|
} @else if (!selectorType && discoveredResources.length) {
|
|
59194
|
-
<div class="pdx-quick-connect__fallback" data-testid="quick-connect-rich-fallback">
|
|
60199
|
+
<div class="pdx-quick-connect__Fallback pdx-quick-connect__fallback pdx-quick-connect__selector" data-testid="quick-connect-rich-fallback">
|
|
59195
60200
|
<mat-form-field appearance="outline" class="pdx-quick-connect__search-field" subscriptSizing="dynamic">
|
|
59196
60201
|
<mat-label>{{ label || tx('resource') }}</mat-label>
|
|
59197
60202
|
<mat-icon matPrefix [praxisIcon]="'search'"></mat-icon>
|
|
@@ -59312,7 +60317,7 @@ class ResourceQuickConnectComponent {
|
|
|
59312
60317
|
}
|
|
59313
60318
|
</details>
|
|
59314
60319
|
</div>
|
|
59315
|
-
`, isInline: true, styles: [".pdx-quick-connect{display:grid;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .28));background:var(--md-sys-color-surface, transparent);color:var(--md-sys-color-on-surface, inherit)}.pdx-quick-connect.is-disabled{opacity:.68}.pdx-quick-connect__status{margin:0;font-size:.85rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__error-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.pdx-quick-connect__retry{appearance:none;border:1px solid var(--md-sys-color-outline, rgba(148, 163, 184, .45));background:transparent;color:var(--md-sys-color-primary, inherit);border-radius:8px;padding:4px 10px;font-size:.8rem;font-weight:600;cursor:pointer}.pdx-quick-connect__fallback{display:grid;gap:8px}.pdx-quick-connect__search-field{width:100%}.pdx-quick-connect__option-list{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow-y:auto;padding:4px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .24));background:var(--md-sys-color-surface-container-low, rgba(148, 163, 184, .04))}.pdx-quick-connect__option-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .12s ease,border-color .12s ease}.pdx-quick-connect__option-item:hover:not(:disabled),.pdx-quick-connect__option-item.is-selected{background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 10%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 24%,transparent)}.pdx-quick-connect__option-icon,.pdx-quick-connect__selected-icon{width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 12%,transparent);color:var(--md-sys-color-primary, inherit);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.pdx-quick-connect__option-icon mat-icon,.pdx-quick-connect__selected-icon mat-icon{width:16px;height:16px;font-size:16px}.pdx-quick-connect__option-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__option-header,.pdx-quick-connect__selected-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__option-label,.pdx-quick-connect__selected-title{font-size:.86rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:600;background:color-mix(in srgb,currentColor 10%,transparent);color:color-mix(in srgb,currentColor 78%,transparent);white-space:nowrap}.pdx-quick-connect__option-code,.pdx-quick-connect__selected-path{font-family:var(--pdx-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);font-size:.72rem;color:var(--md-sys-color-primary, inherit);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-description,.pdx-quick-connect__selected-description{margin:0;font-size:.75rem;line-height:1.3;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__option-check{width:18px;height:18px;font-size:18px;color:var(--md-sys-color-primary, inherit);flex-shrink:0}.pdx-quick-connect__selected-card{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 6%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-primary, currentColor) 18%,transparent)}.pdx-quick-connect__selected-content{display:grid;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__selected-paths{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__selected-key{font-size:.7rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__hint{color:var(--md-sys-color-on-surface-variant, inherit);font-size:.82rem;line-height:1.35}.pdx-quick-connect__advanced{font-size:.85rem}.pdx-quick-connect__advanced>summary{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--md-sys-color-on-surface-variant, inherit);font-weight:500;margin-bottom:8px}.pdx-quick-connect__path-field{width:100%}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
60320
|
+
`, isInline: true, styles: [":host{display:block;container-type:inline-size;min-width:0}.pdx-quick-connect{display:grid;gap:10px;min-width:0;padding:12px;border-radius:12px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .28));background:var(--md-sys-color-surface, transparent);color:var(--md-sys-color-on-surface, inherit)}:host-context(.editor-card) .pdx-quick-connect,:host-context(.action-group) .pdx-quick-connect{padding:0;border:0;border-radius:0;background:transparent}.pdx-quick-connect__selector{min-width:0}@container (min-width: 560px){.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card){grid-template-columns:minmax(260px,1fr) minmax(260px,1.2fr);align-items:start;column-gap:14px}.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__status,.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__error-row,.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__hint,.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__advanced{grid-column:1 / -1}}.pdx-quick-connect.is-disabled{opacity:.68}.pdx-quick-connect__status{margin:0;font-size:.85rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__error-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.pdx-quick-connect__retry{appearance:none;border:1px solid var(--md-sys-color-outline, rgba(148, 163, 184, .45));background:transparent;color:var(--md-sys-color-primary, inherit);border-radius:8px;padding:4px 10px;font-size:.8rem;font-weight:600;cursor:pointer}.pdx-quick-connect__fallback{display:grid;gap:8px}.pdx-quick-connect__search-field{width:100%}.pdx-quick-connect__option-list{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow-y:auto;padding:4px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .24));background:var(--md-sys-color-surface-container-low, rgba(148, 163, 184, .04))}.pdx-quick-connect__option-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .12s ease,border-color .12s ease}.pdx-quick-connect__option-item:hover:not(:disabled),.pdx-quick-connect__option-item.is-selected{background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 10%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 24%,transparent)}.pdx-quick-connect__option-icon,.pdx-quick-connect__selected-icon{width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 12%,transparent);color:var(--md-sys-color-primary, inherit);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.pdx-quick-connect__option-icon mat-icon,.pdx-quick-connect__selected-icon mat-icon{width:16px;height:16px;font-size:16px}.pdx-quick-connect__option-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__option-header,.pdx-quick-connect__selected-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__option-label,.pdx-quick-connect__selected-title{font-size:.86rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:600;background:color-mix(in srgb,currentColor 10%,transparent);color:color-mix(in srgb,currentColor 78%,transparent);white-space:nowrap}.pdx-quick-connect__option-code,.pdx-quick-connect__selected-path{font-family:var(--pdx-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);font-size:.72rem;color:var(--md-sys-color-primary, inherit);overflow-wrap:anywhere}.pdx-quick-connect__option-code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-description,.pdx-quick-connect__selected-description{margin:0;font-size:.75rem;line-height:1.3;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__option-check{width:18px;height:18px;font-size:18px;color:var(--md-sys-color-primary, inherit);flex-shrink:0}.pdx-quick-connect__selected-card{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 6%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-primary, currentColor) 18%,transparent)}.pdx-quick-connect__selected-content{display:grid;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__selected-paths{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__selected-key{font-size:.7rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__hint{color:var(--md-sys-color-on-surface-variant, inherit);font-size:.82rem;line-height:1.35}.pdx-quick-connect__advanced{font-size:.85rem}.pdx-quick-connect__advanced>summary{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--md-sys-color-on-surface-variant, inherit);font-weight:500;margin-bottom:8px}.pdx-quick-connect__path-field{width:100%}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59316
60321
|
}
|
|
59317
60322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ResourceQuickConnectComponent, decorators: [{
|
|
59318
60323
|
type: Component,
|
|
@@ -59351,9 +60356,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
59351
60356
|
</div>
|
|
59352
60357
|
}
|
|
59353
60358
|
@if (selectorType && selectorInputs) {
|
|
59354
|
-
<
|
|
60359
|
+
<div class="pdx-quick-connect__selector">
|
|
60360
|
+
<ng-container *ngComponentOutlet="selectorType" />
|
|
60361
|
+
</div>
|
|
59355
60362
|
} @else if (!selectorType && discoveredResources.length) {
|
|
59356
|
-
<div class="pdx-quick-connect__fallback" data-testid="quick-connect-rich-fallback">
|
|
60363
|
+
<div class="pdx-quick-connect__Fallback pdx-quick-connect__fallback pdx-quick-connect__selector" data-testid="quick-connect-rich-fallback">
|
|
59357
60364
|
<mat-form-field appearance="outline" class="pdx-quick-connect__search-field" subscriptSizing="dynamic">
|
|
59358
60365
|
<mat-label>{{ label || tx('resource') }}</mat-label>
|
|
59359
60366
|
<mat-icon matPrefix [praxisIcon]="'search'"></mat-icon>
|
|
@@ -59474,11 +60481,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
59474
60481
|
}
|
|
59475
60482
|
</details>
|
|
59476
60483
|
</div>
|
|
59477
|
-
`, styles: [".pdx-quick-connect{display:grid;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .28));background:var(--md-sys-color-surface, transparent);color:var(--md-sys-color-on-surface, inherit)}.pdx-quick-connect.is-disabled{opacity:.68}.pdx-quick-connect__status{margin:0;font-size:.85rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__error-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.pdx-quick-connect__retry{appearance:none;border:1px solid var(--md-sys-color-outline, rgba(148, 163, 184, .45));background:transparent;color:var(--md-sys-color-primary, inherit);border-radius:8px;padding:4px 10px;font-size:.8rem;font-weight:600;cursor:pointer}.pdx-quick-connect__fallback{display:grid;gap:8px}.pdx-quick-connect__search-field{width:100%}.pdx-quick-connect__option-list{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow-y:auto;padding:4px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .24));background:var(--md-sys-color-surface-container-low, rgba(148, 163, 184, .04))}.pdx-quick-connect__option-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .12s ease,border-color .12s ease}.pdx-quick-connect__option-item:hover:not(:disabled),.pdx-quick-connect__option-item.is-selected{background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 10%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 24%,transparent)}.pdx-quick-connect__option-icon,.pdx-quick-connect__selected-icon{width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 12%,transparent);color:var(--md-sys-color-primary, inherit);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.pdx-quick-connect__option-icon mat-icon,.pdx-quick-connect__selected-icon mat-icon{width:16px;height:16px;font-size:16px}.pdx-quick-connect__option-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__option-header,.pdx-quick-connect__selected-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__option-label,.pdx-quick-connect__selected-title{font-size:.86rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:600;background:color-mix(in srgb,currentColor 10%,transparent);color:color-mix(in srgb,currentColor 78%,transparent);white-space:nowrap}.pdx-quick-connect__option-code,.pdx-quick-connect__selected-path{font-family:var(--pdx-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);font-size:.72rem;color:var(--md-sys-color-primary, inherit);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-description,.pdx-quick-connect__selected-description{margin:0;font-size:.75rem;line-height:1.3;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__option-check{width:18px;height:18px;font-size:18px;color:var(--md-sys-color-primary, inherit);flex-shrink:0}.pdx-quick-connect__selected-card{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 6%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-primary, currentColor) 18%,transparent)}.pdx-quick-connect__selected-content{display:grid;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__selected-paths{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__selected-key{font-size:.7rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__hint{color:var(--md-sys-color-on-surface-variant, inherit);font-size:.82rem;line-height:1.35}.pdx-quick-connect__advanced{font-size:.85rem}.pdx-quick-connect__advanced>summary{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--md-sys-color-on-surface-variant, inherit);font-weight:500;margin-bottom:8px}.pdx-quick-connect__path-field{width:100%}\n"] }]
|
|
60484
|
+
`, styles: [":host{display:block;container-type:inline-size;min-width:0}.pdx-quick-connect{display:grid;gap:10px;min-width:0;padding:12px;border-radius:12px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .28));background:var(--md-sys-color-surface, transparent);color:var(--md-sys-color-on-surface, inherit)}:host-context(.editor-card) .pdx-quick-connect,:host-context(.action-group) .pdx-quick-connect{padding:0;border:0;border-radius:0;background:transparent}.pdx-quick-connect__selector{min-width:0}@container (min-width: 560px){.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card){grid-template-columns:minmax(260px,1fr) minmax(260px,1.2fr);align-items:start;column-gap:14px}.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__status,.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__error-row,.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__hint,.pdx-quick-connect:has(>.pdx-quick-connect__selector):has(>.pdx-quick-connect__selected-card)>.pdx-quick-connect__advanced{grid-column:1 / -1}}.pdx-quick-connect.is-disabled{opacity:.68}.pdx-quick-connect__status{margin:0;font-size:.85rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__error-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.pdx-quick-connect__retry{appearance:none;border:1px solid var(--md-sys-color-outline, rgba(148, 163, 184, .45));background:transparent;color:var(--md-sys-color-primary, inherit);border-radius:8px;padding:4px 10px;font-size:.8rem;font-weight:600;cursor:pointer}.pdx-quick-connect__fallback{display:grid;gap:8px}.pdx-quick-connect__search-field{width:100%}.pdx-quick-connect__option-list{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow-y:auto;padding:4px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant, rgba(148, 163, 184, .24));background:var(--md-sys-color-surface-container-low, rgba(148, 163, 184, .04))}.pdx-quick-connect__option-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .12s ease,border-color .12s ease}.pdx-quick-connect__option-item:hover:not(:disabled),.pdx-quick-connect__option-item.is-selected{background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 10%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 24%,transparent)}.pdx-quick-connect__option-icon,.pdx-quick-connect__selected-icon{width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 12%,transparent);color:var(--md-sys-color-primary, inherit);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.pdx-quick-connect__option-icon mat-icon,.pdx-quick-connect__selected-icon mat-icon{width:16px;height:16px;font-size:16px}.pdx-quick-connect__option-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__option-header,.pdx-quick-connect__selected-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__option-label,.pdx-quick-connect__selected-title{font-size:.86rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:600;background:color-mix(in srgb,currentColor 10%,transparent);color:color-mix(in srgb,currentColor 78%,transparent);white-space:nowrap}.pdx-quick-connect__option-code,.pdx-quick-connect__selected-path{font-family:var(--pdx-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);font-size:.72rem;color:var(--md-sys-color-primary, inherit);overflow-wrap:anywhere}.pdx-quick-connect__option-code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdx-quick-connect__option-description,.pdx-quick-connect__selected-description{margin:0;font-size:.75rem;line-height:1.3;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__option-check{width:18px;height:18px;font-size:18px;color:var(--md-sys-color-primary, inherit);flex-shrink:0}.pdx-quick-connect__selected-card{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-primary, currentColor) 6%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-primary, currentColor) 18%,transparent)}.pdx-quick-connect__selected-content{display:grid;gap:2px;min-width:0;flex:1 1 auto}.pdx-quick-connect__selected-paths{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.pdx-quick-connect__selected-key{font-size:.7rem;color:var(--md-sys-color-on-surface-variant, inherit)}.pdx-quick-connect__hint{color:var(--md-sys-color-on-surface-variant, inherit);font-size:.82rem;line-height:1.35}.pdx-quick-connect__advanced{font-size:.85rem}.pdx-quick-connect__advanced>summary{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--md-sys-color-on-surface-variant, inherit);font-weight:500;margin-bottom:8px}.pdx-quick-connect__path-field{width:100%}\n"] }]
|
|
59478
60485
|
}], propDecorators: { resourcePath: [{
|
|
59479
60486
|
type: Input
|
|
59480
60487
|
}], resourcePathChange: [{
|
|
59481
60488
|
type: Output
|
|
60489
|
+
}], resourceSelected: [{
|
|
60490
|
+
type: Output
|
|
59482
60491
|
}], endpointKey: [{
|
|
59483
60492
|
type: Input
|
|
59484
60493
|
}], apiUrlEntry: [{
|
|
@@ -61139,7 +62148,7 @@ class PraxisAppShellComponent {
|
|
|
61139
62148
|
</main>
|
|
61140
62149
|
</div>
|
|
61141
62150
|
</div>
|
|
61142
|
-
`, isInline: true, styles: [":host{display:block;width:100%;height:100vh;overflow:hidden;font-family:inherit}.praxis-shell{display:flex;width:100%;height:100%;background:var(--background, #090d16);color:var(--foreground, #f0f4f8);position:relative;overflow:hidden;box-sizing:border-box}.praxis-shell__skip-link{position:absolute;top:-100px;left:16px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #ffffff);padding:8px 16px;border-radius:6px;font-weight:600;font-size:.875rem;z-index:9999;text-decoration:none;transition:top .2s ease}.praxis-shell__skip-link:focus{top:16px;outline:2px solid var(--ring, var(--primary, #0ea5e9));outline-offset:2px}.praxis-shell__progress-bar{position:absolute;top:0;left:0;right:0;height:3px;background:color-mix(in oklab,var(--primary, #0ea5e9) 15%,transparent);z-index:1000;overflow:hidden}.praxis-shell__progress-laser{width:40%;height:100%;background:linear-gradient(90deg,transparent,var(--primary, #0ea5e9),var(--primary-deep, var(--primary, #0ea5e9)),transparent);box-shadow:0 0 10px color-mix(in oklab,var(--primary, #0ea5e9) 30%,transparent);animation:praxis-laser-slide 1.4s infinite cubic-bezier(.4,0,.2,1)}@keyframes praxis-laser-slide{0%{transform:translate(-150%)}to{transform:translate(350%)}}.praxis-shell__backdrop{position:fixed;inset:0;background:var(--overlay, rgba(0, 0, 0, .55));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;animation:praxis-fade-in .2s ease}@keyframes praxis-fade-in{0%{opacity:0}to{opacity:1}}.praxis-shell__sidebar{width:260px;min-width:260px;height:100%;background:var(--sidebar, var(--card, #0f172a));color:var(--sidebar-foreground, var(--foreground, #f0f4f8));border-right:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;flex-direction:column;transition:width .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1);z-index:250;overflow:hidden}.praxis-shell--collapsed .praxis-shell__sidebar{width:72px;min-width:72px}.praxis-shell__brand{height:64px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__brand-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}.praxis-shell__brand-icon{width:40px;height:40px;border-radius:10px;background:var(--command-gradient, linear-gradient(135deg, var(--primary, #0369a1), var(--primary-deep, var(--primary, #075985))));color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-panel, 0 4px 12px color-mix(in oklab, var(--primary, #0ea5e9) 20%, transparent))}.praxis-shell__brand-logo{height:36px;max-width:140px;object-fit:contain}.praxis-shell__brand-info{display:flex;flex-direction:column;overflow:hidden}.praxis-shell__brand-title{font-weight:700;font-size:.95rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.01em}.praxis-shell__brand-meta{font-size:.72rem;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));white-space:nowrap}.praxis-shell__mobile-close-btn{display:none;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;padding:6px;border-radius:6px}.praxis-shell__nav{flex:1;padding:16px 10px;overflow-y:auto;overflow-x:hidden}.praxis-shell__nav-group{margin-bottom:20px}.praxis-shell__nav-group-title{padding:0 10px 8px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--sidebar-foreground, var(--muted-foreground, #64748b))}.praxis-shell__nav-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.praxis-shell__nav-item{margin:0}.praxis-shell__nav-link{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));text-decoration:none;font-size:.88rem;font-weight:500;transition:background .15s ease,color .15s ease;cursor:pointer;white-space:nowrap}.praxis-shell__nav-link:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__nav-link.active{background:color-mix(in oklab,var(--primary, #0ea5e9) 16%,transparent);color:var(--sidebar-primary, var(--primary, #38bdf8));font-weight:600}.praxis-shell__nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.praxis-shell__nav-icon .material-symbols-outlined{font-size:20px}.praxis-shell__nav-label{flex:1;overflow:hidden;text-overflow:ellipsis}.praxis-shell__nav-badge{font-size:.7rem;font-weight:700;padding:2px 7px;border-radius:9999px;line-height:1}.praxis-shell__nav-badge--primary{background:color-mix(in oklab,var(--primary, #0ea5e9) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--success{background:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--warning{background:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--error{background:color-mix(in oklab,var(--destructive, #b91c1c) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--info{background:color-mix(in oklab,var(--praxis-info, #2563eb) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--neutral{background:color-mix(in oklab,var(--muted-foreground, #64748b) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__sidebar-footer-status{padding:10px}.praxis-shell__status-card{padding:10px 12px;border-radius:10px;background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));border:1px solid var(--border, rgba(255, 255, 255, .07));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f0f4f8)))}.praxis-shell__status-card--success{border-color:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 30%,transparent)}.praxis-shell__status-card--warning{border-color:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 30%,transparent)}.praxis-shell__status-card--error{border-color:color-mix(in oklab,var(--destructive, #b91c1c) 30%,transparent)}.praxis-shell__status-card-header{display:flex;align-items:center;gap:8px;font-size:.75rem;font-weight:600}.praxis-shell__pulse-indicator{position:relative;display:inline-flex;width:8px;height:8px}.praxis-shell__pulse-ring{position:absolute;inset:-2px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d));opacity:.6;animation:praxis-pulse 1.8s cubic-bezier(0,0,.2,1) infinite}.praxis-shell__pulse-dot{width:8px;height:8px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d))}@keyframes praxis-pulse{0%{transform:scale(.9);opacity:.8}70%{transform:scale(2.2);opacity:0}to{transform:scale(2.2);opacity:0}}.praxis-shell__status-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-shell__status-card-metric{font-size:.7rem;color:inherit;margin-top:4px}.praxis-shell__sidebar-toggle-bar{padding:10px;border-top:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__collapse-btn{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border-radius:8px;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;font-size:.85rem;font-weight:500;transition:background .15s ease,color .15s ease}.praxis-shell__collapse-btn:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__stage{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.praxis-shell__topbar{height:64px;padding:0 20px;background:var(--surface-gradient, var(--card, #0f172a));border-bottom:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;align-items:center;gap:12px;flex-shrink:0;z-index:100}.praxis-shell__burger-btn{display:none;background:transparent;border:none;color:var(--foreground, #f8fafc);cursor:pointer;padding:8px;border-radius:8px}.praxis-shell__search-box{display:flex;align-items:center;gap:10px;width:clamp(160px,20vw,280px);min-width:140px;max-width:100%;flex-shrink:1;height:38px;padding:0 12px;background:var(--secondary, color-mix(in oklab, var(--card, #ffffff) 95%, var(--primary, #0ea5e9)));border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:9px;color:var(--muted-foreground, #94a3b8);transition:border-color .15s ease,box-shadow .15s ease}.praxis-shell__search-box:focus-within{border-color:var(--primary, #0ea5e9);box-shadow:0 0 0 2px color-mix(in oklab,var(--ring, var(--primary, #0ea5e9)) 20%,transparent);color:var(--foreground, #f8fafc)}.praxis-shell__search-icon{font-size:18px}.praxis-shell__search-input{flex:1;min-width:0;background:transparent;border:none;outline:none;color:inherit;font-size:.85rem}.praxis-shell__topbar-spacer{flex:1;min-width:4px}.praxis-shell__customization-bar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0}.praxis-shell__gov-status{font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--secondary, color-mix(in oklab, var(--card, #0f172a) 92%, var(--foreground, #f8fafc)));color:var(--muted-foreground, #94a3b8);border:1px solid var(--border, rgba(255, 255, 255, .1));white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}.praxis-shell__gov-status--customized{color:var(--primary, #0ea5e9);border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-status--busy{color:var(--warning, #f59e0b);border-color:color-mix(in oklab,var(--warning, #f59e0b) 35%,transparent);background:color-mix(in oklab,var(--warning, #f59e0b) 10%,transparent)}.praxis-shell__gov-status--error{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 45%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 12%,transparent)}.praxis-shell__gov-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:8px;font-size:.76rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .12));color:var(--foreground, #f8fafc);white-space:nowrap}.praxis-shell__gov-btn .material-symbols-outlined{font-size:16px}.praxis-shell__gov-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__gov-btn--reset{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 32%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 8%,transparent)}.praxis-shell__gov-btn--reset:hover:not(:disabled){background:color-mix(in oklab,var(--destructive, #ef4444) 16%,transparent);border-color:var(--destructive, #ef4444)}.praxis-shell__gov-btn--retry,.praxis-shell__gov-btn--reload{border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-btn--retry:hover:not(:disabled),.praxis-shell__gov-btn--reload:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border-radius:9px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent);border:1px solid color-mix(in oklab,var(--primary, #0ea5e9) 32%,transparent);color:var(--primary, #0ea5e9);white-space:nowrap}.praxis-shell__customize-toggle-btn .material-symbols-outlined{font-size:18px}.praxis-shell__customize-toggle-btn:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn--active{background:var(--ready, #10b981);border-color:var(--ready, #10b981);color:#04130d;box-shadow:0 2px 10px color-mix(in oklab,var(--ready, #10b981) 30%,transparent)}.praxis-shell__customize-toggle-btn--active:hover:not(:disabled){background:color-mix(in oklab,var(--ready, #10b981) 90%,#ffffff);border-color:var(--ready, #10b981);color:#04130d}.praxis-shell__customize-toggle-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__header-actions{display:flex;align-items:center;gap:8px}.praxis-shell__icon-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .08));color:var(--muted-foreground, #94a3b8);cursor:pointer;transition:all .15s ease}.praxis-shell__icon-btn:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));color:var(--foreground, #f8fafc);border-color:var(--border, rgba(255, 255, 255, .15))}.praxis-shell__user-profile{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 6px;border-radius:9999px;background:var(--secondary, rgba(255, 255, 255, .03));border:1px solid var(--border, rgba(255, 255, 255, .08));cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.praxis-shell__user-profile:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));border-color:var(--border, rgba(255, 255, 255, .16))}.praxis-shell__user-avatar{width:28px;height:28px;border-radius:9999px;object-fit:cover}.praxis-shell__user-initials{width:28px;height:28px;border-radius:9999px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.praxis-shell__user-info{display:flex;flex-direction:column;line-height:1.2}.praxis-shell__user-name{font-size:.82rem;font-weight:600;color:var(--foreground, #f8fafc)}.praxis-shell__user-role{font-size:.68rem;color:var(--muted-foreground, #94a3b8)}.praxis-shell__main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:24px;box-sizing:border-box;background:var(--background, #090d16)}@media(max-width:900px){.praxis-shell__burger-btn,.praxis-shell__mobile-close-btn{display:flex}.praxis-shell__sidebar{position:fixed;top:0;bottom:0;left:0;transform:translate(-100%);width:280px!important;box-shadow:4px 0 24px #00000080}.praxis-shell--mobile-open .praxis-shell__sidebar{transform:translate(0)}.praxis-shell__search-box{width:180px}.praxis-shell__user-info{display:none}.praxis-shell__gov-status{max-width:180px}}@media(max-width:600px){.praxis-shell__topbar{height:auto;min-height:56px;padding:6px 10px;gap:8px;flex-wrap:wrap}.praxis-shell__search-box{display:none}.praxis-shell__gov-status{font-size:.66rem;padding:3px 7px;max-width:130px}.praxis-shell__customize-toggle-label,.praxis-shell__gov-btn-label{display:none}.praxis-shell__customize-toggle-btn,.praxis-shell__gov-btn{padding:0 8px}.praxis-shell__main{padding:16px 12px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
62151
|
+
`, isInline: true, styles: [":host{display:block;width:100%;height:100vh;overflow:hidden;font-family:inherit}.praxis-shell{display:flex;width:100%;height:100%;background:var(--background, #090d16);color:var(--foreground, #f0f4f8);position:relative;overflow:hidden;box-sizing:border-box}.praxis-shell__skip-link{position:absolute;top:-100px;left:16px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #ffffff);padding:8px 16px;border-radius:6px;font-weight:600;font-size:.875rem;z-index:9999;text-decoration:none;transition:top .2s ease}.praxis-shell__skip-link:focus{top:16px;outline:2px solid var(--ring, var(--primary, #0ea5e9));outline-offset:2px}.praxis-shell__progress-bar{position:absolute;top:0;left:0;right:0;height:3px;background:color-mix(in oklab,var(--primary, #0ea5e9) 15%,transparent);z-index:1000;overflow:hidden}.praxis-shell__progress-laser{width:40%;height:100%;background:linear-gradient(90deg,transparent,var(--primary, #0ea5e9),var(--primary-deep, var(--primary, #0ea5e9)),transparent);box-shadow:0 0 10px color-mix(in oklab,var(--primary, #0ea5e9) 30%,transparent);animation:praxis-laser-slide 1.4s infinite cubic-bezier(.4,0,.2,1)}@keyframes praxis-laser-slide{0%{transform:translate(-150%)}to{transform:translate(350%)}}.praxis-shell__backdrop{position:fixed;inset:0;background:var(--overlay, rgba(0, 0, 0, .55));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;animation:praxis-fade-in .2s ease}@keyframes praxis-fade-in{0%{opacity:0}to{opacity:1}}.praxis-shell__sidebar{width:260px;min-width:260px;height:100%;background:var(--sidebar, var(--card, #0f172a));color:var(--sidebar-foreground, var(--foreground, #f0f4f8));border-right:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;flex-direction:column;transition:width .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1);z-index:250;overflow:hidden}.praxis-shell--collapsed .praxis-shell__sidebar{width:72px;min-width:72px}.praxis-shell__brand{height:64px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__brand-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}.praxis-shell__brand-icon{width:40px;height:40px;border-radius:10px;background:var(--command-gradient, linear-gradient(135deg, var(--primary, #0369a1), var(--primary-deep, var(--primary, #075985))));color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-panel, 0 4px 12px color-mix(in oklab, var(--primary, #0ea5e9) 20%, transparent))}.praxis-shell__brand-logo{height:36px;max-width:140px;object-fit:contain}.praxis-shell__brand-info{display:flex;flex-direction:column;overflow:hidden}.praxis-shell__brand-title{font-weight:700;font-size:.95rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.01em}.praxis-shell__brand-meta{font-size:.72rem;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));white-space:nowrap}.praxis-shell__mobile-close-btn{display:none;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;padding:6px;border-radius:6px}.praxis-shell__nav{flex:1;padding:16px 10px;overflow-y:auto;overflow-x:hidden}.praxis-shell__nav-group{margin-bottom:20px}.praxis-shell__nav-group-title{padding:0 10px 8px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--sidebar-foreground, var(--muted-foreground, #64748b))}.praxis-shell__nav-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.praxis-shell__nav-item{margin:0}.praxis-shell__nav-link{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));text-decoration:none;font-size:.88rem;font-weight:500;transition:background .15s ease,color .15s ease;cursor:pointer;white-space:nowrap}.praxis-shell__nav-link:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__nav-link.active{background:color-mix(in oklab,var(--primary, #0ea5e9) 16%,transparent);color:var(--sidebar-primary, var(--primary, #38bdf8));font-weight:600}.praxis-shell__nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.praxis-shell__nav-icon .material-symbols-outlined{font-size:20px}.praxis-shell__nav-label{flex:1;overflow:hidden;text-overflow:ellipsis}.praxis-shell__nav-badge{font-size:.7rem;font-weight:700;padding:2px 7px;border-radius:9999px;line-height:1}.praxis-shell__nav-badge--primary{background:color-mix(in oklab,var(--primary, #0ea5e9) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--success{background:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--warning{background:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--error{background:color-mix(in oklab,var(--destructive, #b91c1c) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--info{background:color-mix(in oklab,var(--praxis-info, #2563eb) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--neutral{background:color-mix(in oklab,var(--muted-foreground, #64748b) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__sidebar-footer-status{padding:10px}.praxis-shell__status-card{padding:10px 12px;border-radius:10px;background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));border:1px solid var(--border, rgba(255, 255, 255, .07));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f0f4f8)))}.praxis-shell__status-card--success{border-color:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 30%,transparent)}.praxis-shell__status-card--warning{border-color:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 30%,transparent)}.praxis-shell__status-card--error{border-color:color-mix(in oklab,var(--destructive, #b91c1c) 30%,transparent)}.praxis-shell__status-card-header{display:flex;align-items:center;gap:8px;font-size:.75rem;font-weight:600}.praxis-shell__pulse-indicator{position:relative;display:inline-flex;width:8px;height:8px}.praxis-shell__pulse-ring{position:absolute;inset:-2px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d));opacity:.6;animation:praxis-pulse 1.8s cubic-bezier(0,0,.2,1) infinite}.praxis-shell__pulse-dot{width:8px;height:8px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d))}@keyframes praxis-pulse{0%{transform:scale(.9);opacity:.8}70%{transform:scale(2.2);opacity:0}to{transform:scale(2.2);opacity:0}}.praxis-shell__status-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-shell__status-card-metric{font-size:.7rem;color:inherit;margin-top:4px}.praxis-shell__sidebar-toggle-bar{padding:10px;border-top:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__collapse-btn{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border-radius:8px;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;font-size:.85rem;font-weight:500;transition:background .15s ease,color .15s ease}.praxis-shell__collapse-btn:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__stage{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.praxis-shell__topbar{height:64px;padding:0 20px;background:var(--surface-gradient, var(--card, #0f172a));border-bottom:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;align-items:center;gap:12px;flex-shrink:0;z-index:100}.praxis-shell__burger-btn{display:none;background:transparent;border:none;color:var(--foreground, #f8fafc);cursor:pointer;padding:8px;border-radius:8px}.praxis-shell__search-box{display:flex;align-items:center;gap:10px;width:clamp(160px,20vw,280px);min-width:140px;max-width:100%;flex-shrink:1;height:38px;padding:0 12px;background:var(--secondary, color-mix(in oklab, var(--card, var(--md-sys-color-surface)) 95%, var(--primary, #0ea5e9)));border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:9px;color:var(--muted-foreground, #94a3b8);transition:border-color .15s ease,box-shadow .15s ease}.praxis-shell__search-box:focus-within{border-color:var(--primary, #0ea5e9);box-shadow:0 0 0 2px color-mix(in oklab,var(--ring, var(--primary, #0ea5e9)) 20%,transparent);color:var(--foreground, #f8fafc)}.praxis-shell__search-icon{font-size:18px}.praxis-shell__search-input{flex:1;min-width:0;background:transparent;border:none;outline:none;color:inherit;font-size:.85rem}.praxis-shell__topbar-spacer{flex:1;min-width:4px}.praxis-shell__customization-bar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0}.praxis-shell__gov-status{font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--secondary, color-mix(in oklab, var(--card, #0f172a) 92%, var(--foreground, #f8fafc)));color:var(--muted-foreground, #94a3b8);border:1px solid var(--border, rgba(255, 255, 255, .1));white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}.praxis-shell__gov-status--customized{color:var(--primary, #0ea5e9);border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-status--busy{color:var(--warning, #f59e0b);border-color:color-mix(in oklab,var(--warning, #f59e0b) 35%,transparent);background:color-mix(in oklab,var(--warning, #f59e0b) 10%,transparent)}.praxis-shell__gov-status--error{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 45%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 12%,transparent)}.praxis-shell__gov-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:8px;font-size:.76rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .12));color:var(--foreground, #f8fafc);white-space:nowrap}.praxis-shell__gov-btn .material-symbols-outlined{font-size:16px}.praxis-shell__gov-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__gov-btn--reset{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 32%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 8%,transparent)}.praxis-shell__gov-btn--reset:hover:not(:disabled){background:color-mix(in oklab,var(--destructive, #ef4444) 16%,transparent);border-color:var(--destructive, #ef4444)}.praxis-shell__gov-btn--retry,.praxis-shell__gov-btn--reload{border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-btn--retry:hover:not(:disabled),.praxis-shell__gov-btn--reload:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border-radius:9px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent);border:1px solid color-mix(in oklab,var(--primary, #0ea5e9) 32%,transparent);color:var(--primary, #0ea5e9);white-space:nowrap}.praxis-shell__customize-toggle-btn .material-symbols-outlined{font-size:18px}.praxis-shell__customize-toggle-btn:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn--active{background:var(--ready, #10b981);border-color:var(--ready, #10b981);color:#04130d;box-shadow:0 2px 10px color-mix(in oklab,var(--ready, #10b981) 30%,transparent)}.praxis-shell__customize-toggle-btn--active:hover:not(:disabled){background:color-mix(in oklab,var(--ready, #10b981) 90%,var(--md-sys-color-on-surface, currentColor));border-color:var(--ready, #10b981);color:#04130d}.praxis-shell__customize-toggle-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__header-actions{display:flex;align-items:center;gap:8px}.praxis-shell__icon-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .08));color:var(--muted-foreground, #94a3b8);cursor:pointer;transition:all .15s ease}.praxis-shell__icon-btn:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));color:var(--foreground, #f8fafc);border-color:var(--border, rgba(255, 255, 255, .15))}.praxis-shell__user-profile{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 6px;border-radius:9999px;background:var(--secondary, rgba(255, 255, 255, .03));border:1px solid var(--border, rgba(255, 255, 255, .08));cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.praxis-shell__user-profile:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));border-color:var(--border, rgba(255, 255, 255, .16))}.praxis-shell__user-avatar{width:28px;height:28px;border-radius:9999px;object-fit:cover}.praxis-shell__user-initials{width:28px;height:28px;border-radius:9999px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.praxis-shell__user-info{display:flex;flex-direction:column;line-height:1.2}.praxis-shell__user-name{font-size:.82rem;font-weight:600;color:var(--foreground, #f8fafc)}.praxis-shell__user-role{font-size:.68rem;color:var(--muted-foreground, #94a3b8)}.praxis-shell__main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:24px;box-sizing:border-box;background:var(--background, #090d16)}@media(max-width:900px){.praxis-shell__burger-btn,.praxis-shell__mobile-close-btn{display:flex}.praxis-shell__sidebar{position:fixed;top:0;bottom:0;left:0;transform:translate(-100%);width:280px!important;box-shadow:4px 0 24px #00000080}.praxis-shell--mobile-open .praxis-shell__sidebar{transform:translate(0)}.praxis-shell__search-box{width:180px}.praxis-shell__user-info{display:none}.praxis-shell__gov-status{max-width:180px}}@media(max-width:600px){.praxis-shell__topbar{height:auto;min-height:56px;padding:6px 10px;gap:8px;flex-wrap:wrap}.praxis-shell__search-box{display:none}.praxis-shell__gov-status{font-size:.66rem;padding:3px 7px;max-width:130px}.praxis-shell__customize-toggle-label,.praxis-shell__gov-btn-label{display:none}.praxis-shell__customize-toggle-btn,.praxis-shell__gov-btn{padding:0 8px}.praxis-shell__main{padding:16px 12px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61143
62152
|
}
|
|
61144
62153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisAppShellComponent, decorators: [{
|
|
61145
62154
|
type: Component,
|
|
@@ -61482,7 +62491,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
61482
62491
|
</main>
|
|
61483
62492
|
</div>
|
|
61484
62493
|
</div>
|
|
61485
|
-
`, styles: [":host{display:block;width:100%;height:100vh;overflow:hidden;font-family:inherit}.praxis-shell{display:flex;width:100%;height:100%;background:var(--background, #090d16);color:var(--foreground, #f0f4f8);position:relative;overflow:hidden;box-sizing:border-box}.praxis-shell__skip-link{position:absolute;top:-100px;left:16px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #ffffff);padding:8px 16px;border-radius:6px;font-weight:600;font-size:.875rem;z-index:9999;text-decoration:none;transition:top .2s ease}.praxis-shell__skip-link:focus{top:16px;outline:2px solid var(--ring, var(--primary, #0ea5e9));outline-offset:2px}.praxis-shell__progress-bar{position:absolute;top:0;left:0;right:0;height:3px;background:color-mix(in oklab,var(--primary, #0ea5e9) 15%,transparent);z-index:1000;overflow:hidden}.praxis-shell__progress-laser{width:40%;height:100%;background:linear-gradient(90deg,transparent,var(--primary, #0ea5e9),var(--primary-deep, var(--primary, #0ea5e9)),transparent);box-shadow:0 0 10px color-mix(in oklab,var(--primary, #0ea5e9) 30%,transparent);animation:praxis-laser-slide 1.4s infinite cubic-bezier(.4,0,.2,1)}@keyframes praxis-laser-slide{0%{transform:translate(-150%)}to{transform:translate(350%)}}.praxis-shell__backdrop{position:fixed;inset:0;background:var(--overlay, rgba(0, 0, 0, .55));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;animation:praxis-fade-in .2s ease}@keyframes praxis-fade-in{0%{opacity:0}to{opacity:1}}.praxis-shell__sidebar{width:260px;min-width:260px;height:100%;background:var(--sidebar, var(--card, #0f172a));color:var(--sidebar-foreground, var(--foreground, #f0f4f8));border-right:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;flex-direction:column;transition:width .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1);z-index:250;overflow:hidden}.praxis-shell--collapsed .praxis-shell__sidebar{width:72px;min-width:72px}.praxis-shell__brand{height:64px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__brand-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}.praxis-shell__brand-icon{width:40px;height:40px;border-radius:10px;background:var(--command-gradient, linear-gradient(135deg, var(--primary, #0369a1), var(--primary-deep, var(--primary, #075985))));color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-panel, 0 4px 12px color-mix(in oklab, var(--primary, #0ea5e9) 20%, transparent))}.praxis-shell__brand-logo{height:36px;max-width:140px;object-fit:contain}.praxis-shell__brand-info{display:flex;flex-direction:column;overflow:hidden}.praxis-shell__brand-title{font-weight:700;font-size:.95rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.01em}.praxis-shell__brand-meta{font-size:.72rem;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));white-space:nowrap}.praxis-shell__mobile-close-btn{display:none;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;padding:6px;border-radius:6px}.praxis-shell__nav{flex:1;padding:16px 10px;overflow-y:auto;overflow-x:hidden}.praxis-shell__nav-group{margin-bottom:20px}.praxis-shell__nav-group-title{padding:0 10px 8px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--sidebar-foreground, var(--muted-foreground, #64748b))}.praxis-shell__nav-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.praxis-shell__nav-item{margin:0}.praxis-shell__nav-link{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));text-decoration:none;font-size:.88rem;font-weight:500;transition:background .15s ease,color .15s ease;cursor:pointer;white-space:nowrap}.praxis-shell__nav-link:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__nav-link.active{background:color-mix(in oklab,var(--primary, #0ea5e9) 16%,transparent);color:var(--sidebar-primary, var(--primary, #38bdf8));font-weight:600}.praxis-shell__nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.praxis-shell__nav-icon .material-symbols-outlined{font-size:20px}.praxis-shell__nav-label{flex:1;overflow:hidden;text-overflow:ellipsis}.praxis-shell__nav-badge{font-size:.7rem;font-weight:700;padding:2px 7px;border-radius:9999px;line-height:1}.praxis-shell__nav-badge--primary{background:color-mix(in oklab,var(--primary, #0ea5e9) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--success{background:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--warning{background:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--error{background:color-mix(in oklab,var(--destructive, #b91c1c) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--info{background:color-mix(in oklab,var(--praxis-info, #2563eb) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--neutral{background:color-mix(in oklab,var(--muted-foreground, #64748b) 14%,var(--card, #ffffff));color:var(--foreground, #1f2937)}.praxis-shell__sidebar-footer-status{padding:10px}.praxis-shell__status-card{padding:10px 12px;border-radius:10px;background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));border:1px solid var(--border, rgba(255, 255, 255, .07));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f0f4f8)))}.praxis-shell__status-card--success{border-color:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 30%,transparent)}.praxis-shell__status-card--warning{border-color:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 30%,transparent)}.praxis-shell__status-card--error{border-color:color-mix(in oklab,var(--destructive, #b91c1c) 30%,transparent)}.praxis-shell__status-card-header{display:flex;align-items:center;gap:8px;font-size:.75rem;font-weight:600}.praxis-shell__pulse-indicator{position:relative;display:inline-flex;width:8px;height:8px}.praxis-shell__pulse-ring{position:absolute;inset:-2px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d));opacity:.6;animation:praxis-pulse 1.8s cubic-bezier(0,0,.2,1) infinite}.praxis-shell__pulse-dot{width:8px;height:8px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d))}@keyframes praxis-pulse{0%{transform:scale(.9);opacity:.8}70%{transform:scale(2.2);opacity:0}to{transform:scale(2.2);opacity:0}}.praxis-shell__status-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-shell__status-card-metric{font-size:.7rem;color:inherit;margin-top:4px}.praxis-shell__sidebar-toggle-bar{padding:10px;border-top:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__collapse-btn{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border-radius:8px;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;font-size:.85rem;font-weight:500;transition:background .15s ease,color .15s ease}.praxis-shell__collapse-btn:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__stage{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.praxis-shell__topbar{height:64px;padding:0 20px;background:var(--surface-gradient, var(--card, #0f172a));border-bottom:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;align-items:center;gap:12px;flex-shrink:0;z-index:100}.praxis-shell__burger-btn{display:none;background:transparent;border:none;color:var(--foreground, #f8fafc);cursor:pointer;padding:8px;border-radius:8px}.praxis-shell__search-box{display:flex;align-items:center;gap:10px;width:clamp(160px,20vw,280px);min-width:140px;max-width:100%;flex-shrink:1;height:38px;padding:0 12px;background:var(--secondary, color-mix(in oklab, var(--card, #ffffff) 95%, var(--primary, #0ea5e9)));border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:9px;color:var(--muted-foreground, #94a3b8);transition:border-color .15s ease,box-shadow .15s ease}.praxis-shell__search-box:focus-within{border-color:var(--primary, #0ea5e9);box-shadow:0 0 0 2px color-mix(in oklab,var(--ring, var(--primary, #0ea5e9)) 20%,transparent);color:var(--foreground, #f8fafc)}.praxis-shell__search-icon{font-size:18px}.praxis-shell__search-input{flex:1;min-width:0;background:transparent;border:none;outline:none;color:inherit;font-size:.85rem}.praxis-shell__topbar-spacer{flex:1;min-width:4px}.praxis-shell__customization-bar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0}.praxis-shell__gov-status{font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--secondary, color-mix(in oklab, var(--card, #0f172a) 92%, var(--foreground, #f8fafc)));color:var(--muted-foreground, #94a3b8);border:1px solid var(--border, rgba(255, 255, 255, .1));white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}.praxis-shell__gov-status--customized{color:var(--primary, #0ea5e9);border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-status--busy{color:var(--warning, #f59e0b);border-color:color-mix(in oklab,var(--warning, #f59e0b) 35%,transparent);background:color-mix(in oklab,var(--warning, #f59e0b) 10%,transparent)}.praxis-shell__gov-status--error{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 45%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 12%,transparent)}.praxis-shell__gov-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:8px;font-size:.76rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .12));color:var(--foreground, #f8fafc);white-space:nowrap}.praxis-shell__gov-btn .material-symbols-outlined{font-size:16px}.praxis-shell__gov-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__gov-btn--reset{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 32%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 8%,transparent)}.praxis-shell__gov-btn--reset:hover:not(:disabled){background:color-mix(in oklab,var(--destructive, #ef4444) 16%,transparent);border-color:var(--destructive, #ef4444)}.praxis-shell__gov-btn--retry,.praxis-shell__gov-btn--reload{border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-btn--retry:hover:not(:disabled),.praxis-shell__gov-btn--reload:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border-radius:9px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent);border:1px solid color-mix(in oklab,var(--primary, #0ea5e9) 32%,transparent);color:var(--primary, #0ea5e9);white-space:nowrap}.praxis-shell__customize-toggle-btn .material-symbols-outlined{font-size:18px}.praxis-shell__customize-toggle-btn:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn--active{background:var(--ready, #10b981);border-color:var(--ready, #10b981);color:#04130d;box-shadow:0 2px 10px color-mix(in oklab,var(--ready, #10b981) 30%,transparent)}.praxis-shell__customize-toggle-btn--active:hover:not(:disabled){background:color-mix(in oklab,var(--ready, #10b981) 90%,#ffffff);border-color:var(--ready, #10b981);color:#04130d}.praxis-shell__customize-toggle-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__header-actions{display:flex;align-items:center;gap:8px}.praxis-shell__icon-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .08));color:var(--muted-foreground, #94a3b8);cursor:pointer;transition:all .15s ease}.praxis-shell__icon-btn:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));color:var(--foreground, #f8fafc);border-color:var(--border, rgba(255, 255, 255, .15))}.praxis-shell__user-profile{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 6px;border-radius:9999px;background:var(--secondary, rgba(255, 255, 255, .03));border:1px solid var(--border, rgba(255, 255, 255, .08));cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.praxis-shell__user-profile:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));border-color:var(--border, rgba(255, 255, 255, .16))}.praxis-shell__user-avatar{width:28px;height:28px;border-radius:9999px;object-fit:cover}.praxis-shell__user-initials{width:28px;height:28px;border-radius:9999px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.praxis-shell__user-info{display:flex;flex-direction:column;line-height:1.2}.praxis-shell__user-name{font-size:.82rem;font-weight:600;color:var(--foreground, #f8fafc)}.praxis-shell__user-role{font-size:.68rem;color:var(--muted-foreground, #94a3b8)}.praxis-shell__main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:24px;box-sizing:border-box;background:var(--background, #090d16)}@media(max-width:900px){.praxis-shell__burger-btn,.praxis-shell__mobile-close-btn{display:flex}.praxis-shell__sidebar{position:fixed;top:0;bottom:0;left:0;transform:translate(-100%);width:280px!important;box-shadow:4px 0 24px #00000080}.praxis-shell--mobile-open .praxis-shell__sidebar{transform:translate(0)}.praxis-shell__search-box{width:180px}.praxis-shell__user-info{display:none}.praxis-shell__gov-status{max-width:180px}}@media(max-width:600px){.praxis-shell__topbar{height:auto;min-height:56px;padding:6px 10px;gap:8px;flex-wrap:wrap}.praxis-shell__search-box{display:none}.praxis-shell__gov-status{font-size:.66rem;padding:3px 7px;max-width:130px}.praxis-shell__customize-toggle-label,.praxis-shell__gov-btn-label{display:none}.praxis-shell__customize-toggle-btn,.praxis-shell__gov-btn{padding:0 8px}.praxis-shell__main{padding:16px 12px}}\n"] }]
|
|
62494
|
+
`, styles: [":host{display:block;width:100%;height:100vh;overflow:hidden;font-family:inherit}.praxis-shell{display:flex;width:100%;height:100%;background:var(--background, #090d16);color:var(--foreground, #f0f4f8);position:relative;overflow:hidden;box-sizing:border-box}.praxis-shell__skip-link{position:absolute;top:-100px;left:16px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #ffffff);padding:8px 16px;border-radius:6px;font-weight:600;font-size:.875rem;z-index:9999;text-decoration:none;transition:top .2s ease}.praxis-shell__skip-link:focus{top:16px;outline:2px solid var(--ring, var(--primary, #0ea5e9));outline-offset:2px}.praxis-shell__progress-bar{position:absolute;top:0;left:0;right:0;height:3px;background:color-mix(in oklab,var(--primary, #0ea5e9) 15%,transparent);z-index:1000;overflow:hidden}.praxis-shell__progress-laser{width:40%;height:100%;background:linear-gradient(90deg,transparent,var(--primary, #0ea5e9),var(--primary-deep, var(--primary, #0ea5e9)),transparent);box-shadow:0 0 10px color-mix(in oklab,var(--primary, #0ea5e9) 30%,transparent);animation:praxis-laser-slide 1.4s infinite cubic-bezier(.4,0,.2,1)}@keyframes praxis-laser-slide{0%{transform:translate(-150%)}to{transform:translate(350%)}}.praxis-shell__backdrop{position:fixed;inset:0;background:var(--overlay, rgba(0, 0, 0, .55));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;animation:praxis-fade-in .2s ease}@keyframes praxis-fade-in{0%{opacity:0}to{opacity:1}}.praxis-shell__sidebar{width:260px;min-width:260px;height:100%;background:var(--sidebar, var(--card, #0f172a));color:var(--sidebar-foreground, var(--foreground, #f0f4f8));border-right:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;flex-direction:column;transition:width .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1);z-index:250;overflow:hidden}.praxis-shell--collapsed .praxis-shell__sidebar{width:72px;min-width:72px}.praxis-shell__brand{height:64px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__brand-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}.praxis-shell__brand-icon{width:40px;height:40px;border-radius:10px;background:var(--command-gradient, linear-gradient(135deg, var(--primary, #0369a1), var(--primary-deep, var(--primary, #075985))));color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-panel, 0 4px 12px color-mix(in oklab, var(--primary, #0ea5e9) 20%, transparent))}.praxis-shell__brand-logo{height:36px;max-width:140px;object-fit:contain}.praxis-shell__brand-info{display:flex;flex-direction:column;overflow:hidden}.praxis-shell__brand-title{font-weight:700;font-size:.95rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.01em}.praxis-shell__brand-meta{font-size:.72rem;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));white-space:nowrap}.praxis-shell__mobile-close-btn{display:none;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;padding:6px;border-radius:6px}.praxis-shell__nav{flex:1;padding:16px 10px;overflow-y:auto;overflow-x:hidden}.praxis-shell__nav-group{margin-bottom:20px}.praxis-shell__nav-group-title{padding:0 10px 8px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--sidebar-foreground, var(--muted-foreground, #64748b))}.praxis-shell__nav-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.praxis-shell__nav-item{margin:0}.praxis-shell__nav-link{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));text-decoration:none;font-size:.88rem;font-weight:500;transition:background .15s ease,color .15s ease;cursor:pointer;white-space:nowrap}.praxis-shell__nav-link:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__nav-link.active{background:color-mix(in oklab,var(--primary, #0ea5e9) 16%,transparent);color:var(--sidebar-primary, var(--primary, #38bdf8));font-weight:600}.praxis-shell__nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.praxis-shell__nav-icon .material-symbols-outlined{font-size:20px}.praxis-shell__nav-label{flex:1;overflow:hidden;text-overflow:ellipsis}.praxis-shell__nav-badge{font-size:.7rem;font-weight:700;padding:2px 7px;border-radius:9999px;line-height:1}.praxis-shell__nav-badge--primary{background:color-mix(in oklab,var(--primary, #0ea5e9) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--success{background:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--warning{background:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--error{background:color-mix(in oklab,var(--destructive, #b91c1c) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--info{background:color-mix(in oklab,var(--praxis-info, #2563eb) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__nav-badge--neutral{background:color-mix(in oklab,var(--muted-foreground, #64748b) 14%,var(--card, var(--md-sys-color-surface)));color:var(--foreground, #1f2937)}.praxis-shell__sidebar-footer-status{padding:10px}.praxis-shell__status-card{padding:10px 12px;border-radius:10px;background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));border:1px solid var(--border, rgba(255, 255, 255, .07));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f0f4f8)))}.praxis-shell__status-card--success{border-color:color-mix(in oklab,var(--praxis-success, var(--ready, #15803d)) 30%,transparent)}.praxis-shell__status-card--warning{border-color:color-mix(in oklab,var(--praxis-warning, var(--warning, #a16207)) 30%,transparent)}.praxis-shell__status-card--error{border-color:color-mix(in oklab,var(--destructive, #b91c1c) 30%,transparent)}.praxis-shell__status-card-header{display:flex;align-items:center;gap:8px;font-size:.75rem;font-weight:600}.praxis-shell__pulse-indicator{position:relative;display:inline-flex;width:8px;height:8px}.praxis-shell__pulse-ring{position:absolute;inset:-2px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d));opacity:.6;animation:praxis-pulse 1.8s cubic-bezier(0,0,.2,1) infinite}.praxis-shell__pulse-dot{width:8px;height:8px;border-radius:9999px;background:var(--praxis-success, var(--ready, #15803d))}@keyframes praxis-pulse{0%{transform:scale(.9);opacity:.8}70%{transform:scale(2.2);opacity:0}to{transform:scale(2.2);opacity:0}}.praxis-shell__status-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-shell__status-card-metric{font-size:.7rem;color:inherit;margin-top:4px}.praxis-shell__sidebar-toggle-bar{padding:10px;border-top:1px solid var(--border, rgba(255, 255, 255, .06))}.praxis-shell__collapse-btn{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border-radius:8px;background:transparent;border:none;color:var(--sidebar-foreground, var(--muted-foreground, #94a3b8));cursor:pointer;font-size:.85rem;font-weight:500;transition:background .15s ease,color .15s ease}.praxis-shell__collapse-btn:hover{background:var(--sidebar-accent, color-mix(in oklab, var(--sidebar-foreground, var(--foreground, #f0f4f8)) 10%, transparent));color:var(--sidebar-accent-foreground, var(--sidebar-foreground, var(--foreground, #f8fafc)))}.praxis-shell__stage{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.praxis-shell__topbar{height:64px;padding:0 20px;background:var(--surface-gradient, var(--card, #0f172a));border-bottom:1px solid var(--border, rgba(255, 255, 255, .08));display:flex;align-items:center;gap:12px;flex-shrink:0;z-index:100}.praxis-shell__burger-btn{display:none;background:transparent;border:none;color:var(--foreground, #f8fafc);cursor:pointer;padding:8px;border-radius:8px}.praxis-shell__search-box{display:flex;align-items:center;gap:10px;width:clamp(160px,20vw,280px);min-width:140px;max-width:100%;flex-shrink:1;height:38px;padding:0 12px;background:var(--secondary, color-mix(in oklab, var(--card, var(--md-sys-color-surface)) 95%, var(--primary, #0ea5e9)));border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:9px;color:var(--muted-foreground, #94a3b8);transition:border-color .15s ease,box-shadow .15s ease}.praxis-shell__search-box:focus-within{border-color:var(--primary, #0ea5e9);box-shadow:0 0 0 2px color-mix(in oklab,var(--ring, var(--primary, #0ea5e9)) 20%,transparent);color:var(--foreground, #f8fafc)}.praxis-shell__search-icon{font-size:18px}.praxis-shell__search-input{flex:1;min-width:0;background:transparent;border:none;outline:none;color:inherit;font-size:.85rem}.praxis-shell__topbar-spacer{flex:1;min-width:4px}.praxis-shell__customization-bar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0}.praxis-shell__gov-status{font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--secondary, color-mix(in oklab, var(--card, #0f172a) 92%, var(--foreground, #f8fafc)));color:var(--muted-foreground, #94a3b8);border:1px solid var(--border, rgba(255, 255, 255, .1));white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}.praxis-shell__gov-status--customized{color:var(--primary, #0ea5e9);border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-status--busy{color:var(--warning, #f59e0b);border-color:color-mix(in oklab,var(--warning, #f59e0b) 35%,transparent);background:color-mix(in oklab,var(--warning, #f59e0b) 10%,transparent)}.praxis-shell__gov-status--error{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 45%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 12%,transparent)}.praxis-shell__gov-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:8px;font-size:.76rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .12));color:var(--foreground, #f8fafc);white-space:nowrap}.praxis-shell__gov-btn .material-symbols-outlined{font-size:16px}.praxis-shell__gov-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__gov-btn--reset{color:var(--destructive, #ef4444);border-color:color-mix(in oklab,var(--destructive, #ef4444) 32%,transparent);background:color-mix(in oklab,var(--destructive, #ef4444) 8%,transparent)}.praxis-shell__gov-btn--reset:hover:not(:disabled){background:color-mix(in oklab,var(--destructive, #ef4444) 16%,transparent);border-color:var(--destructive, #ef4444)}.praxis-shell__gov-btn--retry,.praxis-shell__gov-btn--reload{border-color:color-mix(in oklab,var(--primary, #0ea5e9) 35%,transparent);background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent)}.praxis-shell__gov-btn--retry:hover:not(:disabled),.praxis-shell__gov-btn--reload:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border-radius:9px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .15s ease;background:color-mix(in oklab,var(--primary, #0ea5e9) 10%,transparent);border:1px solid color-mix(in oklab,var(--primary, #0ea5e9) 32%,transparent);color:var(--primary, #0ea5e9);white-space:nowrap}.praxis-shell__customize-toggle-btn .material-symbols-outlined{font-size:18px}.praxis-shell__customize-toggle-btn:hover:not(:disabled){background:color-mix(in oklab,var(--primary, #0ea5e9) 18%,transparent);border-color:var(--primary, #0ea5e9)}.praxis-shell__customize-toggle-btn--active{background:var(--ready, #10b981);border-color:var(--ready, #10b981);color:#04130d;box-shadow:0 2px 10px color-mix(in oklab,var(--ready, #10b981) 30%,transparent)}.praxis-shell__customize-toggle-btn--active:hover:not(:disabled){background:color-mix(in oklab,var(--ready, #10b981) 90%,var(--md-sys-color-on-surface, currentColor));border-color:var(--ready, #10b981);color:#04130d}.praxis-shell__customize-toggle-btn:disabled{opacity:.5;cursor:not-allowed}.praxis-shell__header-actions{display:flex;align-items:center;gap:8px}.praxis-shell__icon-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:transparent;border:1px solid var(--border, rgba(255, 255, 255, .08));color:var(--muted-foreground, #94a3b8);cursor:pointer;transition:all .15s ease}.praxis-shell__icon-btn:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));color:var(--foreground, #f8fafc);border-color:var(--border, rgba(255, 255, 255, .15))}.praxis-shell__user-profile{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 6px;border-radius:9999px;background:var(--secondary, rgba(255, 255, 255, .03));border:1px solid var(--border, rgba(255, 255, 255, .08));cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.praxis-shell__user-profile:hover{background:var(--accent, color-mix(in oklab, var(--primary, #0ea5e9) 8%, transparent));border-color:var(--border, rgba(255, 255, 255, .16))}.praxis-shell__user-avatar{width:28px;height:28px;border-radius:9999px;object-fit:cover}.praxis-shell__user-initials{width:28px;height:28px;border-radius:9999px;background:var(--primary, #0ea5e9);color:var(--primary-foreground, #fff);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.praxis-shell__user-info{display:flex;flex-direction:column;line-height:1.2}.praxis-shell__user-name{font-size:.82rem;font-weight:600;color:var(--foreground, #f8fafc)}.praxis-shell__user-role{font-size:.68rem;color:var(--muted-foreground, #94a3b8)}.praxis-shell__main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:24px;box-sizing:border-box;background:var(--background, #090d16)}@media(max-width:900px){.praxis-shell__burger-btn,.praxis-shell__mobile-close-btn{display:flex}.praxis-shell__sidebar{position:fixed;top:0;bottom:0;left:0;transform:translate(-100%);width:280px!important;box-shadow:4px 0 24px #00000080}.praxis-shell--mobile-open .praxis-shell__sidebar{transform:translate(0)}.praxis-shell__search-box{width:180px}.praxis-shell__user-info{display:none}.praxis-shell__gov-status{max-width:180px}}@media(max-width:600px){.praxis-shell__topbar{height:auto;min-height:56px;padding:6px 10px;gap:8px;flex-wrap:wrap}.praxis-shell__search-box{display:none}.praxis-shell__gov-status{font-size:.66rem;padding:3px 7px;max-width:130px}.praxis-shell__customize-toggle-label,.praxis-shell__gov-btn-label{display:none}.praxis-shell__customize-toggle-btn,.praxis-shell__gov-btn{padding:0 8px}.praxis-shell__main{padding:16px 12px}}\n"] }]
|
|
61486
62495
|
}], propDecorators: { brand: [{
|
|
61487
62496
|
type: Input
|
|
61488
62497
|
}], navigation: [{
|