@praxisui/core 9.0.4-rc.41 → 9.0.4-rc.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-10T20:23:53.082Z",
|
|
4
4
|
"packageName": "@praxisui/core",
|
|
5
|
-
"packageVersion": "9.0.4-rc.
|
|
5
|
+
"packageVersion": "9.0.4-rc.43",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 4,
|
|
@@ -7453,6 +7453,7 @@ class ComponentMetadataRegistry {
|
|
|
7453
7453
|
metadataMap = new Map();
|
|
7454
7454
|
rawMetadataMap = new Map();
|
|
7455
7455
|
editorialMetadataMap = new Map();
|
|
7456
|
+
rawEditorialMetadataMap = new Map();
|
|
7456
7457
|
editorialControlTypeIndex = new Map();
|
|
7457
7458
|
legacyControlTypeIndex = new Map();
|
|
7458
7459
|
componentTypeAliases = {
|
|
@@ -7468,7 +7469,9 @@ class ComponentMetadataRegistry {
|
|
|
7468
7469
|
/** Register a component metadata entry. */
|
|
7469
7470
|
register(meta) {
|
|
7470
7471
|
const normalized = this.normalizeMeta(meta);
|
|
7471
|
-
|
|
7472
|
+
const existing = this.metadataMap.get(normalized.id);
|
|
7473
|
+
if (this.rawMetadataMap.get(normalized.id) === meta ||
|
|
7474
|
+
(existing && this.isEquivalentRegistration(existing, normalized))) {
|
|
7472
7475
|
return;
|
|
7473
7476
|
}
|
|
7474
7477
|
this.assertCanRegisterMetadata(normalized);
|
|
@@ -7482,7 +7485,13 @@ class ComponentMetadataRegistry {
|
|
|
7482
7485
|
/** Register an editorial descriptor that can later be resolved by controlType or metadata id. */
|
|
7483
7486
|
registerEditorial(meta) {
|
|
7484
7487
|
const normalized = this.normalizeEditorialDescriptor(meta);
|
|
7488
|
+
const existing = this.editorialMetadataMap.get(normalized.componentMetaId);
|
|
7489
|
+
if (this.rawEditorialMetadataMap.get(normalized.componentMetaId) === meta ||
|
|
7490
|
+
(existing && this.isEquivalentRegistration(existing, normalized))) {
|
|
7491
|
+
return;
|
|
7492
|
+
}
|
|
7485
7493
|
this.assertCanRegisterEditorialMetadata(normalized);
|
|
7494
|
+
this.rawEditorialMetadataMap.set(normalized.componentMetaId, meta);
|
|
7486
7495
|
this.editorialMetadataMap.set(normalized.componentMetaId, normalized);
|
|
7487
7496
|
this.editorialControlTypeIndex.set(this.normalizeComponentType(normalized.controlType), normalized.componentMetaId);
|
|
7488
7497
|
}
|
|
@@ -7610,6 +7619,38 @@ class ComponentMetadataRegistry {
|
|
|
7610
7619
|
tags: meta.tags?.slice(),
|
|
7611
7620
|
};
|
|
7612
7621
|
}
|
|
7622
|
+
isEquivalentRegistration(left, right, propertyKey) {
|
|
7623
|
+
if (Object.is(left, right)) {
|
|
7624
|
+
return true;
|
|
7625
|
+
}
|
|
7626
|
+
if (typeof left !== typeof right || left === null || right === null) {
|
|
7627
|
+
return false;
|
|
7628
|
+
}
|
|
7629
|
+
if (typeof left === 'function' && typeof right === 'function') {
|
|
7630
|
+
if (propertyKey === 'component') {
|
|
7631
|
+
return true;
|
|
7632
|
+
}
|
|
7633
|
+
return Function.prototype.toString.call(left) === Function.prototype.toString.call(right);
|
|
7634
|
+
}
|
|
7635
|
+
if (Array.isArray(left) || Array.isArray(right)) {
|
|
7636
|
+
if (!Array.isArray(left) || !Array.isArray(right) || left.length !== right.length) {
|
|
7637
|
+
return false;
|
|
7638
|
+
}
|
|
7639
|
+
return left.every((value, index) => this.isEquivalentRegistration(value, right[index]));
|
|
7640
|
+
}
|
|
7641
|
+
if (typeof left !== 'object' || typeof right !== 'object') {
|
|
7642
|
+
return false;
|
|
7643
|
+
}
|
|
7644
|
+
const leftRecord = left;
|
|
7645
|
+
const rightRecord = right;
|
|
7646
|
+
const leftKeys = Object.keys(leftRecord);
|
|
7647
|
+
const rightKeys = Object.keys(rightRecord);
|
|
7648
|
+
if (leftKeys.length !== rightKeys.length) {
|
|
7649
|
+
return false;
|
|
7650
|
+
}
|
|
7651
|
+
return leftKeys.every((key) => Object.prototype.hasOwnProperty.call(rightRecord, key) &&
|
|
7652
|
+
this.isEquivalentRegistration(leftRecord[key], rightRecord[key], key));
|
|
7653
|
+
}
|
|
7613
7654
|
assertCanRegisterMetadata(meta) {
|
|
7614
7655
|
if (this.metadataMap.has(meta.id)) {
|
|
7615
7656
|
throw new Error(`Component metadata id collision: ${meta.id}`);
|
|
@@ -16285,6 +16326,7 @@ class SurfaceOpenMaterializerService {
|
|
|
16285
16326
|
formId: `${formIdPrefix}.create`,
|
|
16286
16327
|
icon: 'add',
|
|
16287
16328
|
color: 'primary',
|
|
16329
|
+
appearance: 'filled',
|
|
16288
16330
|
type: 'button',
|
|
16289
16331
|
position: 'end',
|
|
16290
16332
|
target: { scope: 'collection' },
|
|
@@ -16301,6 +16343,7 @@ class SurfaceOpenMaterializerService {
|
|
|
16301
16343
|
formId: `${formIdPrefix}.edit`,
|
|
16302
16344
|
icon: 'edit',
|
|
16303
16345
|
color: 'primary',
|
|
16346
|
+
appearance: 'tonal',
|
|
16304
16347
|
type: 'button',
|
|
16305
16348
|
position: 'end',
|
|
16306
16349
|
target: {
|
|
@@ -16320,6 +16363,7 @@ class SurfaceOpenMaterializerService {
|
|
|
16320
16363
|
formId: `${formIdPrefix}.delete`,
|
|
16321
16364
|
icon: 'delete',
|
|
16322
16365
|
color: 'warn',
|
|
16366
|
+
appearance: 'text',
|
|
16323
16367
|
type: 'button',
|
|
16324
16368
|
position: 'end',
|
|
16325
16369
|
target: {
|
|
@@ -32227,7 +32271,7 @@ class PraxisResourceIdentityComponent {
|
|
|
32227
32271
|
</div>
|
|
32228
32272
|
}
|
|
32229
32273
|
</div>
|
|
32230
|
-
`, isInline: true, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.4 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant)}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline)}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.identity__meta-label{color:var(--md-sys-color-
|
|
32274
|
+
`, isInline: true, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.4 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant)}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline)}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.identity__meta-label{color:var(--md-sys-color-on-surface-variant);font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32231
32275
|
}
|
|
32232
32276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourceIdentityComponent, decorators: [{
|
|
32233
32277
|
type: Component,
|
|
@@ -32266,7 +32310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
32266
32310
|
</div>
|
|
32267
32311
|
}
|
|
32268
32312
|
</div>
|
|
32269
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.4 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant)}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline)}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.identity__meta-label{color:var(--md-sys-color-
|
|
32313
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.4 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant)}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline)}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.identity__meta-label{color:var(--md-sys-color-on-surface-variant);font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"] }]
|
|
32270
32314
|
}], propDecorators: { identity: [{
|
|
32271
32315
|
type: Input
|
|
32272
32316
|
}], emptyTitle: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/core",
|
|
3
|
-
"version": "9.0.4-rc.
|
|
3
|
+
"version": "9.0.4-rc.43",
|
|
4
4
|
"description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
package/types/praxisui-core.d.ts
CHANGED
|
@@ -9084,6 +9084,7 @@ declare class ComponentMetadataRegistry {
|
|
|
9084
9084
|
private readonly metadataMap;
|
|
9085
9085
|
private readonly rawMetadataMap;
|
|
9086
9086
|
private readonly editorialMetadataMap;
|
|
9087
|
+
private readonly rawEditorialMetadataMap;
|
|
9087
9088
|
private readonly editorialControlTypeIndex;
|
|
9088
9089
|
private readonly legacyControlTypeIndex;
|
|
9089
9090
|
private readonly componentTypeAliases;
|
|
@@ -9109,6 +9110,7 @@ declare class ComponentMetadataRegistry {
|
|
|
9109
9110
|
*/
|
|
9110
9111
|
private normalizeMeta;
|
|
9111
9112
|
private normalizeEditorialDescriptor;
|
|
9113
|
+
private isEquivalentRegistration;
|
|
9112
9114
|
private assertCanRegisterMetadata;
|
|
9113
9115
|
private assertCanRegisterEditorialMetadata;
|
|
9114
9116
|
private resolveEditorialDescriptor;
|