@praxisui/core 10.0.0-rc.34 → 10.0.0-rc.36
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 +6 -0
- package/ai/component-registry.json +5 -5
- package/fesm2022/praxisui-core-schema.mjs +240 -14
- package/fesm2022/praxisui-core.mjs +1105 -166
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +11 -3
- package/types/praxisui-core.d.ts +145 -13
|
@@ -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
|
|
@@ -18618,6 +19284,9 @@ class DomainRuleService {
|
|
|
18618
19284
|
getDefinitionFacts(definitionId, options = {}) {
|
|
18619
19285
|
return this.http.get(this.discovery.resolveHref(`${DEFINITIONS_HREF}/${encodeURIComponent(definitionId)}/facts`, options), { headers: this.resolveHeaders(options) });
|
|
18620
19286
|
}
|
|
19287
|
+
getDefinitionParameters(definitionId, options = {}) {
|
|
19288
|
+
return this.http.get(this.discovery.resolveHref(`${DEFINITIONS_HREF}/${encodeURIComponent(definitionId)}/parameters`, options), { headers: this.resolveHeaders(options) });
|
|
19289
|
+
}
|
|
18621
19290
|
updateChangeWorkspaceDraft(workspaceId, request, etag, options = {}) {
|
|
18622
19291
|
const headers = (this.resolveHeaders(options) ?? new HttpHeaders())
|
|
18623
19292
|
.set('If-Match', this.strongEntityTag(etag));
|
|
@@ -18753,15 +19422,14 @@ class DomainRuleService {
|
|
|
18753
19422
|
return this.http.get(this.discovery.resolveHref(`${ROLLOUTS_HREF}/${encodeURIComponent(rolloutId)}/readiness`, options), { headers: this.resolveHeaders(options) });
|
|
18754
19423
|
}
|
|
18755
19424
|
createRollout(request, headEtag, options = {}) {
|
|
18756
|
-
const resolved = this.
|
|
18757
|
-
return this.http.post(this.discovery.resolveHref(ROLLOUTS_HREF, options), request, { headers: resolved
|
|
19425
|
+
const resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
19426
|
+
return this.http.post(this.discovery.resolveHref(ROLLOUTS_HREF, options), request, { headers: resolved });
|
|
18758
19427
|
}
|
|
18759
19428
|
cancelRollout(rolloutId, options = {}) {
|
|
18760
19429
|
return this.http.post(this.discovery.resolveHref(`${ROLLOUTS_HREF}/${encodeURIComponent(rolloutId)}/cancel`, options), null, { headers: this.resolveHeaders(options) });
|
|
18761
19430
|
}
|
|
18762
19431
|
activateSnapshotCandidate(snapshotKey, headEtag, rolloutId, options = {}) {
|
|
18763
|
-
let resolved = this.
|
|
18764
|
-
resolved = resolved.set('If-Match', this.strongEntityTag(headEtag));
|
|
19432
|
+
let resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
18765
19433
|
resolved = resolved.set('X-Rule-Rollout-ID', rolloutId);
|
|
18766
19434
|
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/activate`, options), null, { headers: resolved });
|
|
18767
19435
|
}
|
|
@@ -18772,19 +19440,16 @@ class DomainRuleService {
|
|
|
18772
19440
|
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/composition-approvals`, options), request, { headers: this.resolveHeaders(options) });
|
|
18773
19441
|
}
|
|
18774
19442
|
publishSnapshot(request, currentHeadEtag, options = {}) {
|
|
18775
|
-
|
|
18776
|
-
headers = currentHeadEtag
|
|
18777
|
-
? headers.set('If-Match', this.strongEntityTag(currentHeadEtag))
|
|
18778
|
-
: headers.set('If-None-Match', '*');
|
|
19443
|
+
const headers = this.snapshotHeadPrecondition(currentHeadEtag, options);
|
|
18779
19444
|
return this.http.post(this.discovery.resolveHref(SNAPSHOTS_HREF, options), request, { headers });
|
|
18780
19445
|
}
|
|
18781
19446
|
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
|
|
19447
|
+
const resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
19448
|
+
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/activate`, options), null, { headers: resolved });
|
|
18784
19449
|
}
|
|
18785
19450
|
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
|
|
19451
|
+
const resolved = this.snapshotHeadPrecondition(headEtag, options);
|
|
19452
|
+
return this.http.post(this.discovery.resolveHref(`${SNAPSHOTS_HREF}/${encodeURIComponent(snapshotKey)}/rollback`, options), null, { headers: resolved });
|
|
18788
19453
|
}
|
|
18789
19454
|
buildParams(filters) {
|
|
18790
19455
|
let params = new HttpParams();
|
|
@@ -18795,6 +19460,13 @@ class DomainRuleService {
|
|
|
18795
19460
|
});
|
|
18796
19461
|
return params;
|
|
18797
19462
|
}
|
|
19463
|
+
snapshotHeadPrecondition(headEtag, options) {
|
|
19464
|
+
const headers = (this.resolveHeaders(options) ?? new HttpHeaders())
|
|
19465
|
+
.delete('If-Match').delete('If-None-Match');
|
|
19466
|
+
return headEtag === null
|
|
19467
|
+
? headers.set('If-None-Match', '*')
|
|
19468
|
+
: headers.set('If-Match', this.strongEntityTag(headEtag));
|
|
19469
|
+
}
|
|
18798
19470
|
strongEntityTag(value) {
|
|
18799
19471
|
const trimmed = value.trim();
|
|
18800
19472
|
if (/^"[^"\r\n]*"$/.test(trimmed))
|
|
@@ -24526,117 +25198,6 @@ function isPlainRecord(value) {
|
|
|
24526
25198
|
return prototype === Object.prototype || prototype === null;
|
|
24527
25199
|
}
|
|
24528
25200
|
|
|
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
25201
|
const DEFAULT_LOCALE = 'en-US';
|
|
24641
25202
|
const DEFAULT_DATE_TIME = {
|
|
24642
25203
|
dateFormat: 'shortDate',
|
|
@@ -34398,7 +34959,7 @@ const CAPS = [
|
|
|
34398
34959
|
path: 'page.widgets[].definition.inputs',
|
|
34399
34960
|
category: 'widgets',
|
|
34400
34961
|
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.',
|
|
34962
|
+
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
34963
|
},
|
|
34403
34964
|
{
|
|
34404
34965
|
path: 'page.widgets[].definition.inputs.hostCapabilities',
|
|
@@ -35082,7 +35643,7 @@ const DYNAMIC_PAGE_AI_CAPABILITIES = {
|
|
|
35082
35643
|
'Nested component ports usam endpoint component-port com nestedPath; o owner em ref.widget continua sendo o widget top-level.',
|
|
35083
35644
|
'Objetivo: compor widgets e relacionamentos canonicos (ex.: master-detail).',
|
|
35084
35645
|
'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.',
|
|
35646
|
+
'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
35647
|
],
|
|
35087
35648
|
capabilities: CAPS,
|
|
35088
35649
|
};
|
|
@@ -37951,6 +38512,7 @@ class DynamicWidgetLoaderDirective {
|
|
|
37951
38512
|
currentUsesInitialBindings = false;
|
|
37952
38513
|
currentInitialBindingSignature = null;
|
|
37953
38514
|
boundInputValues = {};
|
|
38515
|
+
initialInputDefaults = {};
|
|
37954
38516
|
resolvedWidgetLocalContext = null;
|
|
37955
38517
|
signalEffects = new Map();
|
|
37956
38518
|
inputObservableSubs = new Map();
|
|
@@ -38139,11 +38701,11 @@ class DynamicWidgetLoaderDirective {
|
|
|
38139
38701
|
let inputsChanged = false;
|
|
38140
38702
|
// Faz o binding com coerção de tipos quando possível
|
|
38141
38703
|
if (!this.currentUsesInitialBindings) {
|
|
38142
|
-
inputsChanged = this.bindInputs(this.compRef, def.id, inputs, def.bindingOrder, meta || undefined);
|
|
38704
|
+
inputsChanged = this.bindInputs(this.compRef, def.id, inputs, def.bindingOrder, meta || undefined, !recreated);
|
|
38143
38705
|
}
|
|
38144
38706
|
else {
|
|
38145
38707
|
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);
|
|
38708
|
+
inputsChanged = this.bindInputs(this.compRef, def.id, mutableInputs, def.bindingOrder, meta || undefined, !recreated ? MUTABLE_INITIAL_BINDING_INPUTS : false);
|
|
38147
38709
|
}
|
|
38148
38710
|
this.bindOutputs(this.compRef.instance, def.id, outputs, meta || undefined);
|
|
38149
38711
|
if (recreated || inputsChanged) {
|
|
@@ -38228,6 +38790,7 @@ class DynamicWidgetLoaderDirective {
|
|
|
38228
38790
|
this.currentUsesInitialBindings = false;
|
|
38229
38791
|
this.currentInitialBindingSignature = null;
|
|
38230
38792
|
this.boundInputValues = {};
|
|
38793
|
+
this.initialInputDefaults = {};
|
|
38231
38794
|
this.resolvedWidgetLocalContext = null;
|
|
38232
38795
|
}
|
|
38233
38796
|
this.vcRef.clear();
|
|
@@ -38320,10 +38883,25 @@ class DynamicWidgetLoaderDirective {
|
|
|
38320
38883
|
}
|
|
38321
38884
|
return this.applyDirectInputValue(compRef, key, raw, meta, manualChanges);
|
|
38322
38885
|
}
|
|
38323
|
-
bindInputs(compRef, id, inputs, bindingOrder, meta) {
|
|
38886
|
+
bindInputs(compRef, id, inputs, bindingOrder, meta, clearRemovedInputs = false) {
|
|
38324
38887
|
const prioritized = this.orderedInputEntries(id, inputs, bindingOrder);
|
|
38325
38888
|
const manualChanges = {};
|
|
38326
38889
|
let changed = false;
|
|
38890
|
+
if (clearRemovedInputs) {
|
|
38891
|
+
for (const previousKey of Object.keys(this.boundInputValues)) {
|
|
38892
|
+
const canClearKey = clearRemovedInputs === true || clearRemovedInputs.has(previousKey);
|
|
38893
|
+
if (canClearKey && !Object.prototype.hasOwnProperty.call(inputs, previousKey)) {
|
|
38894
|
+
this.cleanupInputReactiveBinding(previousKey);
|
|
38895
|
+
const factoryDefault = Object.prototype.hasOwnProperty.call(this.initialInputDefaults, previousKey)
|
|
38896
|
+
? this.cloneValue(this.initialInputDefaults[previousKey])
|
|
38897
|
+
: undefined;
|
|
38898
|
+
if (this.applyDirectInputValue(compRef, previousKey, factoryDefault, meta, manualChanges)) {
|
|
38899
|
+
changed = true;
|
|
38900
|
+
}
|
|
38901
|
+
delete this.boundInputValues[previousKey];
|
|
38902
|
+
}
|
|
38903
|
+
}
|
|
38904
|
+
}
|
|
38327
38905
|
// Apply every input before the final detectChanges. ComponentRef.setInput marks
|
|
38328
38906
|
// OnPush views for checking and lets Angular deliver one coherent ngOnChanges cycle.
|
|
38329
38907
|
for (const [key, raw] of prioritized) {
|
|
@@ -38337,6 +38915,27 @@ class DynamicWidgetLoaderDirective {
|
|
|
38337
38915
|
}
|
|
38338
38916
|
return changed;
|
|
38339
38917
|
}
|
|
38918
|
+
captureInitialInputDefault(compRef, key) {
|
|
38919
|
+
if (Object.prototype.hasOwnProperty.call(this.initialInputDefaults, key)) {
|
|
38920
|
+
return;
|
|
38921
|
+
}
|
|
38922
|
+
const instance = compRef.instance;
|
|
38923
|
+
if (!instance || key === 'context') {
|
|
38924
|
+
this.initialInputDefaults[key] = undefined;
|
|
38925
|
+
return;
|
|
38926
|
+
}
|
|
38927
|
+
try {
|
|
38928
|
+
const candidate = instance[key];
|
|
38929
|
+
const rawDefault = isSignal(candidate)
|
|
38930
|
+
? untracked(() => candidate())
|
|
38931
|
+
: candidate;
|
|
38932
|
+
this.initialInputDefaults[key] =
|
|
38933
|
+
typeof rawDefault === 'function' ? undefined : this.cloneValue(rawDefault);
|
|
38934
|
+
}
|
|
38935
|
+
catch {
|
|
38936
|
+
this.initialInputDefaults[key] = undefined;
|
|
38937
|
+
}
|
|
38938
|
+
}
|
|
38340
38939
|
applyDirectInputValue(compRef, key, raw, meta, manualChanges) {
|
|
38341
38940
|
const unwrapped = isSignal(raw) ? raw() : raw;
|
|
38342
38941
|
if (key === 'context') {
|
|
@@ -38354,6 +38953,7 @@ class DynamicWidgetLoaderDirective {
|
|
|
38354
38953
|
if (hadPreviousValue && this.areInputValuesEquivalent(previousValue, value)) {
|
|
38355
38954
|
return false;
|
|
38356
38955
|
}
|
|
38956
|
+
this.captureInitialInputDefault(compRef, key);
|
|
38357
38957
|
try {
|
|
38358
38958
|
const metadataAllowsInput = !meta?.inputs?.length || meta.inputs.some((input) => input.name === key);
|
|
38359
38959
|
if (this.hasDeclaredInput(compRef, key)) {
|
|
@@ -38976,10 +39576,73 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
38976
39576
|
if (pipeName === 'lowercase' || pipeName === 'lower') {
|
|
38977
39577
|
return String(value).toLowerCase();
|
|
38978
39578
|
}
|
|
39579
|
+
if (pipeName === 'date' || pipeName === 'datetime' || pipeName === 'time') {
|
|
39580
|
+
let parsedDate;
|
|
39581
|
+
if (value instanceof Date) {
|
|
39582
|
+
parsedDate = value;
|
|
39583
|
+
}
|
|
39584
|
+
else if (typeof value === 'number' && Number.isFinite(value)) {
|
|
39585
|
+
parsedDate = new Date(value);
|
|
39586
|
+
}
|
|
39587
|
+
else {
|
|
39588
|
+
const rawStr = String(value).trim();
|
|
39589
|
+
if (!rawStr) {
|
|
39590
|
+
return undefined;
|
|
39591
|
+
}
|
|
39592
|
+
if (/^\d{10,13}$/.test(rawStr)) {
|
|
39593
|
+
const epoch = Number(rawStr);
|
|
39594
|
+
parsedDate = new Date(rawStr.length === 10 ? epoch * 1000 : epoch);
|
|
39595
|
+
}
|
|
39596
|
+
else if (/^\d{4}-\d{2}-\d{2}$/.test(rawStr)) {
|
|
39597
|
+
parsedDate = new Date(`${rawStr}T00:00:00`);
|
|
39598
|
+
}
|
|
39599
|
+
else {
|
|
39600
|
+
const brMatch = /^(\d{2})\/(\d{2})\/(\d{4})(?:\s+(\d{2}):(\d{2})(?::(\d{2}))?)?$/.exec(rawStr);
|
|
39601
|
+
if (brMatch) {
|
|
39602
|
+
const [, dd, mm, yyyy, hh = '00', min = '00', ss = '00'] = brMatch;
|
|
39603
|
+
parsedDate = new Date(`${yyyy}-${mm}-${dd}T${hh}:${min}:${ss}`);
|
|
39604
|
+
}
|
|
39605
|
+
else {
|
|
39606
|
+
parsedDate = new Date(rawStr);
|
|
39607
|
+
}
|
|
39608
|
+
}
|
|
39609
|
+
}
|
|
39610
|
+
if (Number.isNaN(parsedDate.getTime())) {
|
|
39611
|
+
return value;
|
|
39612
|
+
}
|
|
39613
|
+
const locale = unquotedArg && /^[a-z]{2}(?:-[A-Z]{2})?$/i.test(unquotedArg) ? unquotedArg : 'pt-BR';
|
|
39614
|
+
if (pipeName === 'date') {
|
|
39615
|
+
return new Intl.DateTimeFormat(locale, {
|
|
39616
|
+
day: '2-digit',
|
|
39617
|
+
month: '2-digit',
|
|
39618
|
+
year: 'numeric',
|
|
39619
|
+
}).format(parsedDate);
|
|
39620
|
+
}
|
|
39621
|
+
if (pipeName === 'time') {
|
|
39622
|
+
return new Intl.DateTimeFormat(locale, {
|
|
39623
|
+
hour: '2-digit',
|
|
39624
|
+
minute: '2-digit',
|
|
39625
|
+
}).format(parsedDate);
|
|
39626
|
+
}
|
|
39627
|
+
const datePart = new Intl.DateTimeFormat(locale, {
|
|
39628
|
+
day: '2-digit',
|
|
39629
|
+
month: '2-digit',
|
|
39630
|
+
year: 'numeric',
|
|
39631
|
+
}).format(parsedDate);
|
|
39632
|
+
const timePart = new Intl.DateTimeFormat(locale, {
|
|
39633
|
+
hour: '2-digit',
|
|
39634
|
+
minute: '2-digit',
|
|
39635
|
+
}).format(parsedDate);
|
|
39636
|
+
const connector = locale.toLowerCase().startsWith('pt') ? ' às ' : ', ';
|
|
39637
|
+
return `${datePart}${connector}${timePart}`;
|
|
39638
|
+
}
|
|
38979
39639
|
const isKnownNumericPipe = pipeName === 'round'
|
|
38980
39640
|
|| pipeName === 'number'
|
|
39641
|
+
|| pipeName === 'numbercompact'
|
|
39642
|
+
|| pipeName === 'compact'
|
|
38981
39643
|
|| pipeName === 'percent'
|
|
38982
|
-
|| pipeName === 'currency'
|
|
39644
|
+
|| pipeName === 'currency'
|
|
39645
|
+
|| pipeName === 'currencycompact';
|
|
38983
39646
|
if (!isKnownNumericPipe) {
|
|
38984
39647
|
return value;
|
|
38985
39648
|
}
|
|
@@ -39005,6 +39668,15 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39005
39668
|
maximumFractionDigits: decimals ?? 2,
|
|
39006
39669
|
}).format(numeric);
|
|
39007
39670
|
}
|
|
39671
|
+
if (pipeName === 'numbercompact' || pipeName === 'compact') {
|
|
39672
|
+
return new Intl.NumberFormat('pt-BR', {
|
|
39673
|
+
notation: 'compact',
|
|
39674
|
+
compactDisplay: 'short',
|
|
39675
|
+
maximumFractionDigits: 1,
|
|
39676
|
+
})
|
|
39677
|
+
.format(numeric)
|
|
39678
|
+
.replace(/\u00A0/g, ' ');
|
|
39679
|
+
}
|
|
39008
39680
|
if (pipeName === 'percent') {
|
|
39009
39681
|
const hasDecimals = unquotedArg !== '' && Number.isFinite(Number(unquotedArg));
|
|
39010
39682
|
const decimals = hasDecimals ? Math.max(0, Math.min(6, Math.trunc(Number(unquotedArg)))) : undefined;
|
|
@@ -39015,7 +39687,7 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39015
39687
|
}).format(pctValue);
|
|
39016
39688
|
return `${formatted}%`;
|
|
39017
39689
|
}
|
|
39018
|
-
if (pipeName === 'currency') {
|
|
39690
|
+
if (pipeName === 'currency' || pipeName === 'currencycompact') {
|
|
39019
39691
|
const rawCurrency = (unquotedArg || 'BRL').trim().toUpperCase();
|
|
39020
39692
|
const aliasMap = {
|
|
39021
39693
|
'R$': 'BRL',
|
|
@@ -39026,10 +39698,17 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39026
39698
|
};
|
|
39027
39699
|
const currency = aliasMap[rawCurrency] || (/^[A-Z]{3}$/.test(rawCurrency) ? rawCurrency : 'BRL');
|
|
39028
39700
|
const locale = currency === 'USD' ? 'en-US' : 'pt-BR';
|
|
39701
|
+
const isCompact = pipeName === 'currencycompact';
|
|
39702
|
+
const stripZeroCents = !isCompact && Math.abs(numeric) >= 1000 && Number.isInteger(numeric);
|
|
39029
39703
|
try {
|
|
39030
39704
|
return new Intl.NumberFormat(locale, {
|
|
39031
39705
|
style: 'currency',
|
|
39032
39706
|
currency,
|
|
39707
|
+
...(isCompact
|
|
39708
|
+
? { notation: 'compact', compactDisplay: 'short', maximumFractionDigits: 2 }
|
|
39709
|
+
: stripZeroCents
|
|
39710
|
+
? { minimumFractionDigits: 0, maximumFractionDigits: 0 }
|
|
39711
|
+
: {}),
|
|
39033
39712
|
})
|
|
39034
39713
|
.format(numeric)
|
|
39035
39714
|
.replace(/\u00A0/g, ' ');
|
|
@@ -39038,6 +39717,7 @@ function applyDeclarativeValuePipe(value, pipeSpec) {
|
|
|
39038
39717
|
return new Intl.NumberFormat('pt-BR', {
|
|
39039
39718
|
style: 'currency',
|
|
39040
39719
|
currency: 'BRL',
|
|
39720
|
+
...(stripZeroCents ? { minimumFractionDigits: 0, maximumFractionDigits: 0 } : {}),
|
|
39041
39721
|
})
|
|
39042
39722
|
.format(numeric)
|
|
39043
39723
|
.replace(/\u00A0/g, ' ');
|
|
@@ -40203,7 +40883,7 @@ class WidgetShellComponent {
|
|
|
40203
40883
|
@if (expanded || fullscreen) {
|
|
40204
40884
|
<div class="pdx-shell-backdrop" (click)="closeOverlay()"></div>
|
|
40205
40885
|
}
|
|
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,
|
|
40886
|
+
`, 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
40887
|
}
|
|
40208
40888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: WidgetShellComponent, decorators: [{
|
|
40209
40889
|
type: Component,
|
|
@@ -40449,7 +41129,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
40449
41129
|
@if (expanded || fullscreen) {
|
|
40450
41130
|
<div class="pdx-shell-backdrop" (click)="closeOverlay()"></div>
|
|
40451
41131
|
}
|
|
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,
|
|
41132
|
+
`, 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
41133
|
}], ctorParameters: () => [], propDecorators: { hostCollapsed: [{
|
|
40454
41134
|
type: HostBinding,
|
|
40455
41135
|
args: ['class.pdx-widget-shell-collapsed']
|
|
@@ -45955,6 +46635,7 @@ const DYNAMIC_WIDGET_PAGE_I18N_CONFIG = {
|
|
|
45955
46635
|
'controls.widgetSettingsTooltip': 'Abrir configurações do widget',
|
|
45956
46636
|
'controls.widgetAssistant': 'Abrir assistente do widget',
|
|
45957
46637
|
'controls.widgetAssistantTooltip': 'Abrir o assistente Praxis com contexto deste widget',
|
|
46638
|
+
'controls.widgetDuplicate': 'Duplicar widget',
|
|
45958
46639
|
'controls.widgetRemove': 'Excluir widget',
|
|
45959
46640
|
'controls.widgetRemoveTooltip': 'Excluir este widget e limpar conexões vinculadas',
|
|
45960
46641
|
'controls.widgetRemoveConfirmTitle': 'Excluir widget?',
|
|
@@ -46120,6 +46801,7 @@ const DYNAMIC_WIDGET_PAGE_I18N_CONFIG = {
|
|
|
46120
46801
|
'controls.widgetSettingsTooltip': 'Open widget settings',
|
|
46121
46802
|
'controls.widgetAssistant': 'Open widget assistant',
|
|
46122
46803
|
'controls.widgetAssistantTooltip': 'Open the Praxis assistant with this widget context',
|
|
46804
|
+
'controls.widgetDuplicate': 'Duplicate widget',
|
|
46123
46805
|
'controls.widgetRemove': 'Delete widget',
|
|
46124
46806
|
'controls.widgetRemoveTooltip': 'Delete this widget and clean linked connections',
|
|
46125
46807
|
'controls.widgetRemoveConfirmTitle': 'Delete widget?',
|
|
@@ -47078,15 +47760,18 @@ class DynamicWidgetContextToolbarComponent {
|
|
|
47078
47760
|
showShellSettings = false;
|
|
47079
47761
|
shellSettingsLabel = '';
|
|
47080
47762
|
shellSettingsTooltip = '';
|
|
47763
|
+
showDuplicate = false;
|
|
47764
|
+
duplicateLabel = '';
|
|
47081
47765
|
showRemove = true;
|
|
47082
47766
|
moreActionsLabel = '';
|
|
47083
47767
|
removeLabel = '';
|
|
47084
47768
|
assistant = new EventEmitter();
|
|
47085
47769
|
componentSettings = new EventEmitter();
|
|
47086
47770
|
shellSettings = new EventEmitter();
|
|
47771
|
+
duplicate = new EventEmitter();
|
|
47087
47772
|
remove = new EventEmitter();
|
|
47088
47773
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicWidgetContextToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47089
|
-
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: `
|
|
47774
|
+
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: `
|
|
47090
47775
|
<div
|
|
47091
47776
|
class="pdx-widget-context-toolbar"
|
|
47092
47777
|
[class.pdx-widget-context-toolbar--with-context]="!!contextLabel"
|
|
@@ -47140,7 +47825,7 @@ class DynamicWidgetContextToolbarComponent {
|
|
|
47140
47825
|
(click)="shellSettings.emit()"
|
|
47141
47826
|
></button>
|
|
47142
47827
|
}
|
|
47143
|
-
@if (showRemove || showSize()) {
|
|
47828
|
+
@if (showDuplicate || showRemove || showSize()) {
|
|
47144
47829
|
<button
|
|
47145
47830
|
praxisIconButton="ms:more_horiz"
|
|
47146
47831
|
size="dense"
|
|
@@ -47156,6 +47841,12 @@ class DynamicWidgetContextToolbarComponent {
|
|
|
47156
47841
|
<mat-icon [praxisIcon]="'ms:straighten'"></mat-icon><span>{{ sizeLabel() }}</span>
|
|
47157
47842
|
</button>
|
|
47158
47843
|
}
|
|
47844
|
+
@if (showDuplicate) {
|
|
47845
|
+
<button mat-menu-item type="button" data-testid="dynamic-widget-duplicate" (click)="duplicate.emit()">
|
|
47846
|
+
<mat-icon [praxisIcon]="'content_copy'"></mat-icon>
|
|
47847
|
+
<span>{{ duplicateLabel }}</span>
|
|
47848
|
+
</button>
|
|
47849
|
+
}
|
|
47159
47850
|
@if (showRemove) {
|
|
47160
47851
|
<button mat-menu-item type="button" data-testid="dynamic-widget-remove" (click)="remove.emit()">
|
|
47161
47852
|
<mat-icon [praxisIcon]="'delete'"></mat-icon>
|
|
@@ -47229,7 +47920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47229
47920
|
(click)="shellSettings.emit()"
|
|
47230
47921
|
></button>
|
|
47231
47922
|
}
|
|
47232
|
-
@if (showRemove || showSize()) {
|
|
47923
|
+
@if (showDuplicate || showRemove || showSize()) {
|
|
47233
47924
|
<button
|
|
47234
47925
|
praxisIconButton="ms:more_horiz"
|
|
47235
47926
|
size="dense"
|
|
@@ -47245,6 +47936,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47245
47936
|
<mat-icon [praxisIcon]="'ms:straighten'"></mat-icon><span>{{ sizeLabel() }}</span>
|
|
47246
47937
|
</button>
|
|
47247
47938
|
}
|
|
47939
|
+
@if (showDuplicate) {
|
|
47940
|
+
<button mat-menu-item type="button" data-testid="dynamic-widget-duplicate" (click)="duplicate.emit()">
|
|
47941
|
+
<mat-icon [praxisIcon]="'content_copy'"></mat-icon>
|
|
47942
|
+
<span>{{ duplicateLabel }}</span>
|
|
47943
|
+
</button>
|
|
47944
|
+
}
|
|
47248
47945
|
@if (showRemove) {
|
|
47249
47946
|
<button mat-menu-item type="button" data-testid="dynamic-widget-remove" (click)="remove.emit()">
|
|
47250
47947
|
<mat-icon [praxisIcon]="'delete'"></mat-icon>
|
|
@@ -47279,6 +47976,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47279
47976
|
type: Input
|
|
47280
47977
|
}], shellSettingsTooltip: [{
|
|
47281
47978
|
type: Input
|
|
47979
|
+
}], showDuplicate: [{
|
|
47980
|
+
type: Input
|
|
47981
|
+
}], duplicateLabel: [{
|
|
47982
|
+
type: Input
|
|
47282
47983
|
}], showRemove: [{
|
|
47283
47984
|
type: Input
|
|
47284
47985
|
}], moreActionsLabel: [{
|
|
@@ -47291,6 +47992,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
47291
47992
|
type: Output
|
|
47292
47993
|
}], shellSettings: [{
|
|
47293
47994
|
type: Output
|
|
47995
|
+
}], duplicate: [{
|
|
47996
|
+
type: Output
|
|
47294
47997
|
}], remove: [{
|
|
47295
47998
|
type: Output
|
|
47296
47999
|
}] } });
|
|
@@ -49710,6 +50413,15 @@ class DynamicWidgetPageComponent {
|
|
|
49710
50413
|
isWidgetComponentSettingsPending(key) {
|
|
49711
50414
|
return this.pendingWidgetComponentSettings().has(key);
|
|
49712
50415
|
}
|
|
50416
|
+
canDuplicateWidgets() {
|
|
50417
|
+
if (!this.enableCustomization)
|
|
50418
|
+
return false;
|
|
50419
|
+
if (typeof this.authoringCapabilities?.widgetDuplication === 'boolean') {
|
|
50420
|
+
return this.authoringCapabilities.widgetDuplication;
|
|
50421
|
+
}
|
|
50422
|
+
return this.isAuthoringCapabilityEnabled('insertWidgets')
|
|
50423
|
+
&& this.isAuthoringCapabilityEnabled('widgetRemoval');
|
|
50424
|
+
}
|
|
49713
50425
|
canRemoveWidgets() {
|
|
49714
50426
|
return this.isAuthoringCapabilityEnabled('widgetRemoval');
|
|
49715
50427
|
}
|
|
@@ -49720,6 +50432,7 @@ class DynamicWidgetPageComponent {
|
|
|
49720
50432
|
return this.enableCustomization && (this.canCustomizeCanvas()
|
|
49721
50433
|
|| this.canOpenWidgetShellSettings()
|
|
49722
50434
|
|| this.isAuthoringCapabilityEnabled('widgetInputs')
|
|
50435
|
+
|| this.canDuplicateWidgets()
|
|
49723
50436
|
|| this.canRemoveWidgets()
|
|
49724
50437
|
|| this.canRequestWidgetAssistant());
|
|
49725
50438
|
}
|
|
@@ -49766,6 +50479,9 @@ class DynamicWidgetPageComponent {
|
|
|
49766
50479
|
this.selectWidget(widgetKey);
|
|
49767
50480
|
this.widgetAssistantRequested.emit(widgetKey);
|
|
49768
50481
|
}
|
|
50482
|
+
widgetDuplicateLabel() {
|
|
50483
|
+
return this.t('controls.widgetDuplicate', 'Duplicar widget');
|
|
50484
|
+
}
|
|
49769
50485
|
widgetRemoveLabel() {
|
|
49770
50486
|
return this.t('controls.widgetRemove', 'Excluir widget');
|
|
49771
50487
|
}
|
|
@@ -49909,6 +50625,16 @@ class DynamicWidgetPageComponent {
|
|
|
49909
50625
|
placement: 'header',
|
|
49910
50626
|
});
|
|
49911
50627
|
}
|
|
50628
|
+
if (this.canDuplicateWidgets()) {
|
|
50629
|
+
actions.push({
|
|
50630
|
+
id: 'widget-duplicate',
|
|
50631
|
+
label: this.widgetDuplicateLabel(),
|
|
50632
|
+
tooltip: this.widgetDuplicateLabel(),
|
|
50633
|
+
icon: 'content_copy',
|
|
50634
|
+
variant: 'icon',
|
|
50635
|
+
placement: 'menu',
|
|
50636
|
+
});
|
|
50637
|
+
}
|
|
49912
50638
|
if (this.canRemoveWidgets()) {
|
|
49913
50639
|
actions.push({
|
|
49914
50640
|
id: 'widget-remove',
|
|
@@ -49996,6 +50722,10 @@ class DynamicWidgetPageComponent {
|
|
|
49996
50722
|
this.openWidgetShellSettings(fromKey);
|
|
49997
50723
|
return;
|
|
49998
50724
|
}
|
|
50725
|
+
if (evt.id === 'widget-duplicate') {
|
|
50726
|
+
this.duplicateWidget(fromKey);
|
|
50727
|
+
return;
|
|
50728
|
+
}
|
|
49999
50729
|
if (evt.id === 'widget-remove') {
|
|
50000
50730
|
void this.confirmAndRemoveWidget(fromKey);
|
|
50001
50731
|
return;
|
|
@@ -50014,6 +50744,148 @@ class DynamicWidgetPageComponent {
|
|
|
50014
50744
|
payload: evt.payload,
|
|
50015
50745
|
});
|
|
50016
50746
|
}
|
|
50747
|
+
duplicateWidget(widgetKey) {
|
|
50748
|
+
if (!this.canDuplicateWidgets())
|
|
50749
|
+
return null;
|
|
50750
|
+
const page = this.ensurePageDefinition();
|
|
50751
|
+
const sourceIndex = (page.widgets || []).findIndex((item) => item.key === widgetKey);
|
|
50752
|
+
if (sourceIndex < 0)
|
|
50753
|
+
return null;
|
|
50754
|
+
const sourceWidget = page.widgets[sourceIndex];
|
|
50755
|
+
const componentId = sourceWidget.definition?.id || 'widget';
|
|
50756
|
+
const existingKeys = new Set((page.widgets || []).map((w) => w.key));
|
|
50757
|
+
let suffix = 1;
|
|
50758
|
+
let newKey = `${componentId}-copy-${suffix}`;
|
|
50759
|
+
while (existingKeys.has(newKey)) {
|
|
50760
|
+
suffix += 1;
|
|
50761
|
+
newKey = `${componentId}-copy-${suffix}`;
|
|
50762
|
+
}
|
|
50763
|
+
const clonedWidget = this.cloneStateValues(sourceWidget);
|
|
50764
|
+
clonedWidget.key = newKey;
|
|
50765
|
+
const next = this.clonePageDefinition(page);
|
|
50766
|
+
next.widgets = [
|
|
50767
|
+
...next.widgets.slice(0, sourceIndex + 1),
|
|
50768
|
+
clonedWidget,
|
|
50769
|
+
...next.widgets.slice(sourceIndex + 1),
|
|
50770
|
+
];
|
|
50771
|
+
if (Array.isArray(next.grouping)) {
|
|
50772
|
+
next.grouping = next.grouping.map((group) => {
|
|
50773
|
+
if (group.kind === 'tabs' && Array.isArray(group.tabs)) {
|
|
50774
|
+
return {
|
|
50775
|
+
...group,
|
|
50776
|
+
tabs: group.tabs.map((tab) => {
|
|
50777
|
+
const idx = Array.isArray(tab.widgetKeys) ? tab.widgetKeys.indexOf(widgetKey) : -1;
|
|
50778
|
+
if (idx < 0)
|
|
50779
|
+
return tab;
|
|
50780
|
+
const keys = [...tab.widgetKeys];
|
|
50781
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50782
|
+
return { ...tab, widgetKeys: keys };
|
|
50783
|
+
}),
|
|
50784
|
+
};
|
|
50785
|
+
}
|
|
50786
|
+
if ('widgetKeys' in group && Array.isArray(group.widgetKeys)) {
|
|
50787
|
+
const idx = group.widgetKeys.indexOf(widgetKey);
|
|
50788
|
+
if (idx >= 0) {
|
|
50789
|
+
const keys = [...group.widgetKeys];
|
|
50790
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50791
|
+
return { ...group, widgetKeys: keys };
|
|
50792
|
+
}
|
|
50793
|
+
}
|
|
50794
|
+
return group;
|
|
50795
|
+
});
|
|
50796
|
+
}
|
|
50797
|
+
if (next.deviceLayouts) {
|
|
50798
|
+
for (const deviceKey of ['desktop', 'tablet', 'mobile']) {
|
|
50799
|
+
const variant = next.deviceLayouts[deviceKey];
|
|
50800
|
+
if (!variant)
|
|
50801
|
+
continue;
|
|
50802
|
+
if (variant.widgetOverrides?.[widgetKey]) {
|
|
50803
|
+
variant.widgetOverrides = {
|
|
50804
|
+
...variant.widgetOverrides,
|
|
50805
|
+
[newKey]: this.cloneStateValues(variant.widgetOverrides[widgetKey]),
|
|
50806
|
+
};
|
|
50807
|
+
}
|
|
50808
|
+
if (Array.isArray(variant.groupingOverrides)) {
|
|
50809
|
+
variant.groupingOverrides = variant.groupingOverrides.map((override) => {
|
|
50810
|
+
let nextOverride = override;
|
|
50811
|
+
if (Array.isArray(override.widgetKeys)) {
|
|
50812
|
+
const idx = override.widgetKeys.indexOf(widgetKey);
|
|
50813
|
+
if (idx >= 0) {
|
|
50814
|
+
const keys = [...override.widgetKeys];
|
|
50815
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50816
|
+
nextOverride = { ...nextOverride, widgetKeys: keys };
|
|
50817
|
+
}
|
|
50818
|
+
}
|
|
50819
|
+
if (Array.isArray(override.tabs)) {
|
|
50820
|
+
nextOverride = {
|
|
50821
|
+
...nextOverride,
|
|
50822
|
+
tabs: override.tabs.map((tab) => {
|
|
50823
|
+
const idx = Array.isArray(tab.widgetKeys) ? tab.widgetKeys.indexOf(widgetKey) : -1;
|
|
50824
|
+
if (idx < 0)
|
|
50825
|
+
return tab;
|
|
50826
|
+
const keys = [...tab.widgetKeys];
|
|
50827
|
+
keys.splice(idx + 1, 0, newKey);
|
|
50828
|
+
return { ...tab, widgetKeys: keys };
|
|
50829
|
+
}),
|
|
50830
|
+
};
|
|
50831
|
+
}
|
|
50832
|
+
return nextOverride;
|
|
50833
|
+
});
|
|
50834
|
+
}
|
|
50835
|
+
}
|
|
50836
|
+
}
|
|
50837
|
+
if (next.canvas) {
|
|
50838
|
+
const canvasColumns = Math.max(1, next.canvas.columns || 12);
|
|
50839
|
+
const sourceItem = next.canvas.items?.[widgetKey];
|
|
50840
|
+
const existingItems = Object.values(next.canvas.items || {});
|
|
50841
|
+
const colSpan = Math.min(canvasColumns, Math.max(1, sourceItem?.colSpan ?? 4));
|
|
50842
|
+
const rowSpan = Math.max(1, sourceItem?.rowSpan ?? 2);
|
|
50843
|
+
const overlapsExisting = (col, row) => {
|
|
50844
|
+
const right = col + colSpan - 1;
|
|
50845
|
+
const bottom = row + rowSpan - 1;
|
|
50846
|
+
return existingItems.some((item) => {
|
|
50847
|
+
const itemRight = item.col + item.colSpan - 1;
|
|
50848
|
+
const itemBottom = item.row + item.rowSpan - 1;
|
|
50849
|
+
return col <= itemRight && right >= item.col && row <= itemBottom && bottom >= item.row;
|
|
50850
|
+
});
|
|
50851
|
+
};
|
|
50852
|
+
const startRow = sourceItem?.row ?? (existingItems.length ? Math.max(1, ...existingItems.map((item) => item.row)) : 1);
|
|
50853
|
+
const lastRow = existingItems.length
|
|
50854
|
+
? Math.max(1, ...existingItems.map((item) => (item.row + item.rowSpan) - 1))
|
|
50855
|
+
: 0;
|
|
50856
|
+
let targetCol = 1;
|
|
50857
|
+
let targetRow = lastRow + 1;
|
|
50858
|
+
let placed = false;
|
|
50859
|
+
for (let candidateRow = startRow; candidateRow <= lastRow + 1; candidateRow += 1) {
|
|
50860
|
+
for (let col = 1; col + colSpan - 1 <= canvasColumns; col += 1) {
|
|
50861
|
+
if (!overlapsExisting(col, candidateRow)) {
|
|
50862
|
+
targetCol = col;
|
|
50863
|
+
targetRow = candidateRow;
|
|
50864
|
+
placed = true;
|
|
50865
|
+
break;
|
|
50866
|
+
}
|
|
50867
|
+
}
|
|
50868
|
+
if (placed)
|
|
50869
|
+
break;
|
|
50870
|
+
}
|
|
50871
|
+
next.canvas = {
|
|
50872
|
+
...next.canvas,
|
|
50873
|
+
items: {
|
|
50874
|
+
...(next.canvas.items || {}),
|
|
50875
|
+
[newKey]: {
|
|
50876
|
+
...(sourceItem ? this.cloneStateValues(sourceItem) : {}),
|
|
50877
|
+
col: targetCol,
|
|
50878
|
+
row: targetRow,
|
|
50879
|
+
colSpan,
|
|
50880
|
+
rowSpan,
|
|
50881
|
+
},
|
|
50882
|
+
},
|
|
50883
|
+
};
|
|
50884
|
+
}
|
|
50885
|
+
this.applyAuthoringPageUpdate(next, true);
|
|
50886
|
+
this.selectWidget(newKey);
|
|
50887
|
+
return newKey;
|
|
50888
|
+
}
|
|
50017
50889
|
handleSetInputCommand(fromKey, evt) {
|
|
50018
50890
|
if (evt?.command !== 'pdx:set-input')
|
|
50019
50891
|
return false;
|
|
@@ -50203,10 +51075,47 @@ class DynamicWidgetPageComponent {
|
|
|
50203
51075
|
widgetSettingsSelectTab;
|
|
50204
51076
|
buildWidgetSettingsContextNavigation(key, activeMode) {
|
|
50205
51077
|
const page = this.ensurePageDefinition();
|
|
50206
|
-
const
|
|
50207
|
-
|
|
50208
|
-
|
|
50209
|
-
|
|
51078
|
+
const canvasItems = page.canvas?.items;
|
|
51079
|
+
const orderedWidgets = [...(page.widgets || [])]
|
|
51080
|
+
.map((widget, index) => ({
|
|
51081
|
+
widget,
|
|
51082
|
+
index,
|
|
51083
|
+
item: canvasItems?.[widget.key],
|
|
51084
|
+
baseLabel: this.widgetContextLabel(widget),
|
|
51085
|
+
}))
|
|
51086
|
+
.sort((a, b) => {
|
|
51087
|
+
if (a.item && b.item) {
|
|
51088
|
+
if (a.item.row !== b.item.row)
|
|
51089
|
+
return a.item.row - b.item.row;
|
|
51090
|
+
if (a.item.col !== b.item.col)
|
|
51091
|
+
return a.item.col - b.item.col;
|
|
51092
|
+
}
|
|
51093
|
+
else if (a.item && !b.item) {
|
|
51094
|
+
return -1;
|
|
51095
|
+
}
|
|
51096
|
+
else if (!a.item && b.item) {
|
|
51097
|
+
return 1;
|
|
51098
|
+
}
|
|
51099
|
+
return a.index - b.index;
|
|
51100
|
+
});
|
|
51101
|
+
const labelCounts = new Map();
|
|
51102
|
+
for (const entry of orderedWidgets) {
|
|
51103
|
+
labelCounts.set(entry.baseLabel, (labelCounts.get(entry.baseLabel) ?? 0) + 1);
|
|
51104
|
+
}
|
|
51105
|
+
const labelOccurrences = new Map();
|
|
51106
|
+
const targets = orderedWidgets.map((entry) => {
|
|
51107
|
+
const totalSameLabel = labelCounts.get(entry.baseLabel) ?? 1;
|
|
51108
|
+
if (totalSameLabel <= 1) {
|
|
51109
|
+
return { id: entry.widget.key, label: entry.baseLabel };
|
|
51110
|
+
}
|
|
51111
|
+
const nextOccurrence = (labelOccurrences.get(entry.baseLabel) ?? 0) + 1;
|
|
51112
|
+
labelOccurrences.set(entry.baseLabel, nextOccurrence);
|
|
51113
|
+
const coordSuffix = entry.item ? `L${entry.item.row}·C${entry.item.col}` : `#${nextOccurrence}`;
|
|
51114
|
+
return {
|
|
51115
|
+
id: entry.widget.key,
|
|
51116
|
+
label: `${entry.baseLabel} (${coordSuffix})`,
|
|
51117
|
+
};
|
|
51118
|
+
});
|
|
50210
51119
|
const canContent = this.canOpenWidgetComponentSettings(key);
|
|
50211
51120
|
const canWidget = this.canOpenWidgetShellSettings();
|
|
50212
51121
|
const canSize = !!this.resolveSizeEditorTarget(key) ||
|
|
@@ -54945,11 +55854,14 @@ class DynamicWidgetPageComponent {
|
|
|
54945
55854
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
54946
55855
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
54947
55856
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
55857
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
55858
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
54948
55859
|
[showRemove]="canRemoveWidgets()"
|
|
54949
55860
|
[removeLabel]="widgetRemoveLabel()"
|
|
54950
55861
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
54951
55862
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
54952
55863
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
55864
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
54953
55865
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
54954
55866
|
/>
|
|
54955
55867
|
}
|
|
@@ -55081,6 +55993,8 @@ class DynamicWidgetPageComponent {
|
|
|
55081
55993
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55082
55994
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55083
55995
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
55996
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
55997
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55084
55998
|
[showRemove]="canRemoveWidgets()"
|
|
55085
55999
|
[removeLabel]="widgetRemoveLabel()"
|
|
55086
56000
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55088,6 +56002,7 @@ class DynamicWidgetPageComponent {
|
|
|
55088
56002
|
openWidgetComponentSettings(w.key)
|
|
55089
56003
|
"
|
|
55090
56004
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56005
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55091
56006
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55092
56007
|
/>
|
|
55093
56008
|
}
|
|
@@ -55156,6 +56071,8 @@ class DynamicWidgetPageComponent {
|
|
|
55156
56071
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55157
56072
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55158
56073
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56074
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56075
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55159
56076
|
[showRemove]="canRemoveWidgets()"
|
|
55160
56077
|
[removeLabel]="widgetRemoveLabel()"
|
|
55161
56078
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55163,6 +56080,7 @@ class DynamicWidgetPageComponent {
|
|
|
55163
56080
|
openWidgetComponentSettings(w.key)
|
|
55164
56081
|
"
|
|
55165
56082
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56083
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55166
56084
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55167
56085
|
/>
|
|
55168
56086
|
}
|
|
@@ -55223,11 +56141,14 @@ class DynamicWidgetPageComponent {
|
|
|
55223
56141
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55224
56142
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55225
56143
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56144
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56145
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55226
56146
|
[showRemove]="canRemoveWidgets()"
|
|
55227
56147
|
[removeLabel]="widgetRemoveLabel()"
|
|
55228
56148
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
55229
56149
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
55230
56150
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56151
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55231
56152
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55232
56153
|
/>
|
|
55233
56154
|
}
|
|
@@ -55241,7 +56162,7 @@ class DynamicWidgetPageComponent {
|
|
|
55241
56162
|
</div>
|
|
55242
56163
|
}
|
|
55243
56164
|
</div>
|
|
55244
|
-
`, 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"] }] });
|
|
56165
|
+
`, 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"] }] });
|
|
55245
56166
|
}
|
|
55246
56167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicWidgetPageComponent, decorators: [{
|
|
55247
56168
|
type: Component,
|
|
@@ -55454,11 +56375,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55454
56375
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55455
56376
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55456
56377
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56378
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
56379
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55457
56380
|
[showRemove]="canRemoveWidgets()"
|
|
55458
56381
|
[removeLabel]="widgetRemoveLabel()"
|
|
55459
56382
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
55460
56383
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
55461
56384
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56385
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55462
56386
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55463
56387
|
/>
|
|
55464
56388
|
}
|
|
@@ -55590,6 +56514,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55590
56514
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55591
56515
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55592
56516
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56517
|
+
[showDuplicate]="canRemoveWidgets()"
|
|
56518
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55593
56519
|
[showRemove]="canRemoveWidgets()"
|
|
55594
56520
|
[removeLabel]="widgetRemoveLabel()"
|
|
55595
56521
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55597,6 +56523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55597
56523
|
openWidgetComponentSettings(w.key)
|
|
55598
56524
|
"
|
|
55599
56525
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56526
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55600
56527
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55601
56528
|
/>
|
|
55602
56529
|
}
|
|
@@ -55665,6 +56592,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55665
56592
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55666
56593
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55667
56594
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56595
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56596
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55668
56597
|
[showRemove]="canRemoveWidgets()"
|
|
55669
56598
|
[removeLabel]="widgetRemoveLabel()"
|
|
55670
56599
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
@@ -55672,6 +56601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55672
56601
|
openWidgetComponentSettings(w.key)
|
|
55673
56602
|
"
|
|
55674
56603
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56604
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55675
56605
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55676
56606
|
/>
|
|
55677
56607
|
}
|
|
@@ -55732,11 +56662,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55732
56662
|
[shellSettingsLabel]="widgetSettingsLabel()"
|
|
55733
56663
|
[shellSettingsTooltip]="widgetSettingsTooltip()"
|
|
55734
56664
|
[moreActionsLabel]="moreWidgetActionsLabel()"
|
|
56665
|
+
[showDuplicate]="canDuplicateWidgets()"
|
|
56666
|
+
[duplicateLabel]="widgetDuplicateLabel()"
|
|
55735
56667
|
[showRemove]="canRemoveWidgets()"
|
|
55736
56668
|
[removeLabel]="widgetRemoveLabel()"
|
|
55737
56669
|
(assistant)="requestWidgetAssistant(w.key)"
|
|
55738
56670
|
(componentSettings)="openWidgetComponentSettings(w.key)"
|
|
55739
56671
|
(shellSettings)="openWidgetShellSettings(w.key)"
|
|
56672
|
+
(duplicate)="duplicateWidget(w.key)"
|
|
55740
56673
|
(remove)="confirmAndRemoveWidget(w.key)"
|
|
55741
56674
|
/>
|
|
55742
56675
|
}
|
|
@@ -55750,7 +56683,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
55750
56683
|
</div>
|
|
55751
56684
|
}
|
|
55752
56685
|
</div>
|
|
55753
|
-
`, 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"] }]
|
|
56686
|
+
`, 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"] }]
|
|
55754
56687
|
}], ctorParameters: () => [], propDecorators: { widgetSizeTemplate: [{
|
|
55755
56688
|
type: ViewChild,
|
|
55756
56689
|
args: ['widgetSizeTemplate', { static: true }]
|
|
@@ -58908,6 +59841,7 @@ class ResourceQuickConnectComponent {
|
|
|
58908
59841
|
this.matchesDiscoveredResource(this.resourcePath)) {
|
|
58909
59842
|
this.resourcePath = resolved;
|
|
58910
59843
|
}
|
|
59844
|
+
this.resourceSelected.emit(this.selectedResource());
|
|
58911
59845
|
}
|
|
58912
59846
|
this.syncSelectorValue();
|
|
58913
59847
|
}
|
|
@@ -58929,6 +59863,7 @@ class ResourceQuickConnectComponent {
|
|
|
58929
59863
|
this.matchesDiscoveredResource(this.resourcePath)) {
|
|
58930
59864
|
this.resourcePath = resolved;
|
|
58931
59865
|
}
|
|
59866
|
+
this.resourceSelected.emit(this.selectedResource());
|
|
58932
59867
|
}
|
|
58933
59868
|
this.syncSelectorValue();
|
|
58934
59869
|
}
|
|
@@ -59260,9 +60195,11 @@ class ResourceQuickConnectComponent {
|
|
|
59260
60195
|
</div>
|
|
59261
60196
|
}
|
|
59262
60197
|
@if (selectorType && selectorInputs) {
|
|
59263
|
-
<
|
|
60198
|
+
<div class="pdx-quick-connect__selector">
|
|
60199
|
+
<ng-container *ngComponentOutlet="selectorType" />
|
|
60200
|
+
</div>
|
|
59264
60201
|
} @else if (!selectorType && discoveredResources.length) {
|
|
59265
|
-
<div class="pdx-quick-connect__fallback" data-testid="quick-connect-rich-fallback">
|
|
60202
|
+
<div class="pdx-quick-connect__Fallback pdx-quick-connect__fallback pdx-quick-connect__selector" data-testid="quick-connect-rich-fallback">
|
|
59266
60203
|
<mat-form-field appearance="outline" class="pdx-quick-connect__search-field" subscriptSizing="dynamic">
|
|
59267
60204
|
<mat-label>{{ label || tx('resource') }}</mat-label>
|
|
59268
60205
|
<mat-icon matPrefix [praxisIcon]="'search'"></mat-icon>
|
|
@@ -59383,7 +60320,7 @@ class ResourceQuickConnectComponent {
|
|
|
59383
60320
|
}
|
|
59384
60321
|
</details>
|
|
59385
60322
|
</div>
|
|
59386
|
-
`, 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 });
|
|
60323
|
+
`, 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 });
|
|
59387
60324
|
}
|
|
59388
60325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ResourceQuickConnectComponent, decorators: [{
|
|
59389
60326
|
type: Component,
|
|
@@ -59422,9 +60359,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
59422
60359
|
</div>
|
|
59423
60360
|
}
|
|
59424
60361
|
@if (selectorType && selectorInputs) {
|
|
59425
|
-
<
|
|
60362
|
+
<div class="pdx-quick-connect__selector">
|
|
60363
|
+
<ng-container *ngComponentOutlet="selectorType" />
|
|
60364
|
+
</div>
|
|
59426
60365
|
} @else if (!selectorType && discoveredResources.length) {
|
|
59427
|
-
<div class="pdx-quick-connect__fallback" data-testid="quick-connect-rich-fallback">
|
|
60366
|
+
<div class="pdx-quick-connect__Fallback pdx-quick-connect__fallback pdx-quick-connect__selector" data-testid="quick-connect-rich-fallback">
|
|
59428
60367
|
<mat-form-field appearance="outline" class="pdx-quick-connect__search-field" subscriptSizing="dynamic">
|
|
59429
60368
|
<mat-label>{{ label || tx('resource') }}</mat-label>
|
|
59430
60369
|
<mat-icon matPrefix [praxisIcon]="'search'"></mat-icon>
|
|
@@ -59545,7 +60484,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
59545
60484
|
}
|
|
59546
60485
|
</details>
|
|
59547
60486
|
</div>
|
|
59548
|
-
`, 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"] }]
|
|
60487
|
+
`, 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"] }]
|
|
59549
60488
|
}], propDecorators: { resourcePath: [{
|
|
59550
60489
|
type: Input
|
|
59551
60490
|
}], resourcePathChange: [{
|
|
@@ -61212,7 +62151,7 @@ class PraxisAppShellComponent {
|
|
|
61212
62151
|
</main>
|
|
61213
62152
|
</div>
|
|
61214
62153
|
</div>
|
|
61215
|
-
`, 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 });
|
|
62154
|
+
`, 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 });
|
|
61216
62155
|
}
|
|
61217
62156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisAppShellComponent, decorators: [{
|
|
61218
62157
|
type: Component,
|
|
@@ -61555,7 +62494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
61555
62494
|
</main>
|
|
61556
62495
|
</div>
|
|
61557
62496
|
</div>
|
|
61558
|
-
`, 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"] }]
|
|
62497
|
+
`, 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"] }]
|
|
61559
62498
|
}], propDecorators: { brand: [{
|
|
61560
62499
|
type: Input
|
|
61561
62500
|
}], navigation: [{
|