simetra 0.3.0-next.2 → 0.3.0-next.4
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/dist/compiler/index.d.ts +18 -1
- package/dist/compiler/index.js +393 -49
- package/dist/model/index.d.ts +157 -3
- package/dist/model/index.js +47 -4
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/shell/index.d.ts +12 -0
- package/dist/shell/index.js +12 -1
- package/dist/ui/index.js +25 -2
- package/package.json +2 -2
- package/schemas/project.schema.json +179 -0
- package/schemas/rights-sets.schema.json +15 -0
- package/schemas/roles.schema.json +15 -0
package/dist/model/index.d.ts
CHANGED
|
@@ -2751,6 +2751,10 @@ export declare const rightsSetSchema: z.ZodObject<{
|
|
|
2751
2751
|
}, z.core.$strict>]>;
|
|
2752
2752
|
}, z.core.$strict>;
|
|
2753
2753
|
}, z.core.$strict>]>>>;
|
|
2754
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
2755
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
2756
|
+
en: z.ZodOptional<z.ZodString>;
|
|
2757
|
+
}, z.core.$strict>>;
|
|
2754
2758
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2755
2759
|
name: z.ZodString;
|
|
2756
2760
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -2887,6 +2891,10 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
2887
2891
|
}, z.core.$strict>]>>;
|
|
2888
2892
|
}, z.core.$strict>;
|
|
2889
2893
|
}, z.core.$strict>]>>>;
|
|
2894
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
2895
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
2896
|
+
en: z.ZodOptional<z.ZodString>;
|
|
2897
|
+
}, z.core.$strict>>;
|
|
2890
2898
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2891
2899
|
name: z.ZodString;
|
|
2892
2900
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -3608,8 +3616,8 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
3608
3616
|
en: z.ZodOptional<z.ZodString>;
|
|
3609
3617
|
}, z.core.$strict>>;
|
|
3610
3618
|
defaultLocale: z.ZodDefault<z.ZodEnum<{
|
|
3611
|
-
en: "en";
|
|
3612
3619
|
uk: "uk";
|
|
3620
|
+
en: "en";
|
|
3613
3621
|
}>>;
|
|
3614
3622
|
primaryDataLanguage: z.ZodOptional<z.ZodString>;
|
|
3615
3623
|
defaultSchema: z.ZodDefault<z.ZodString>;
|
|
@@ -3627,6 +3635,65 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
3627
3635
|
}, z.core.$strict>>;
|
|
3628
3636
|
timezone: z.ZodDefault<z.ZodString>;
|
|
3629
3637
|
selfSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
3638
|
+
selfSignUpAccepted: z.ZodOptional<z.ZodObject<{
|
|
3639
|
+
objects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3640
|
+
object: z.ZodObject<{
|
|
3641
|
+
kind: z.ZodEnum<{
|
|
3642
|
+
Catalog: "Catalog";
|
|
3643
|
+
Document: "Document";
|
|
3644
|
+
Enumeration: "Enumeration";
|
|
3645
|
+
InformationRegister: "InformationRegister";
|
|
3646
|
+
AccumulationRegister: "AccumulationRegister";
|
|
3647
|
+
Constant: "Constant";
|
|
3648
|
+
CustomTable: "CustomTable";
|
|
3649
|
+
PgEnum: "PgEnum";
|
|
3650
|
+
EventSubscription: "EventSubscription";
|
|
3651
|
+
RightsSet: "RightsSet";
|
|
3652
|
+
Role: "Role";
|
|
3653
|
+
}>;
|
|
3654
|
+
name: z.ZodString;
|
|
3655
|
+
}, z.core.$strict>;
|
|
3656
|
+
published: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3657
|
+
}, z.core.$strict>>>;
|
|
3658
|
+
grants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3659
|
+
role: z.ZodObject<{
|
|
3660
|
+
kind: z.ZodEnum<{
|
|
3661
|
+
Catalog: "Catalog";
|
|
3662
|
+
Document: "Document";
|
|
3663
|
+
Enumeration: "Enumeration";
|
|
3664
|
+
InformationRegister: "InformationRegister";
|
|
3665
|
+
AccumulationRegister: "AccumulationRegister";
|
|
3666
|
+
Constant: "Constant";
|
|
3667
|
+
CustomTable: "CustomTable";
|
|
3668
|
+
PgEnum: "PgEnum";
|
|
3669
|
+
EventSubscription: "EventSubscription";
|
|
3670
|
+
RightsSet: "RightsSet";
|
|
3671
|
+
Role: "Role";
|
|
3672
|
+
}>;
|
|
3673
|
+
name: z.ZodString;
|
|
3674
|
+
}, z.core.$strict>;
|
|
3675
|
+
object: z.ZodObject<{
|
|
3676
|
+
kind: z.ZodEnum<{
|
|
3677
|
+
Catalog: "Catalog";
|
|
3678
|
+
Document: "Document";
|
|
3679
|
+
Enumeration: "Enumeration";
|
|
3680
|
+
InformationRegister: "InformationRegister";
|
|
3681
|
+
AccumulationRegister: "AccumulationRegister";
|
|
3682
|
+
Constant: "Constant";
|
|
3683
|
+
CustomTable: "CustomTable";
|
|
3684
|
+
PgEnum: "PgEnum";
|
|
3685
|
+
EventSubscription: "EventSubscription";
|
|
3686
|
+
RightsSet: "RightsSet";
|
|
3687
|
+
Role: "Role";
|
|
3688
|
+
}>;
|
|
3689
|
+
name: z.ZodString;
|
|
3690
|
+
}, z.core.$strict>;
|
|
3691
|
+
actions: z.ZodArray<z.ZodString>;
|
|
3692
|
+
extent: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodLiteral<"own">, z.ZodObject<{
|
|
3693
|
+
dimension: z.ZodString;
|
|
3694
|
+
}, z.core.$strict>]>;
|
|
3695
|
+
}, z.core.$strict>>>;
|
|
3696
|
+
}, z.core.$strict>>;
|
|
3630
3697
|
scopeKinds: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3631
3698
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3632
3699
|
name: z.ZodString;
|
|
@@ -3892,11 +3959,11 @@ export declare const pgEnumSchema: z.ZodObject<{
|
|
|
3892
3959
|
en: z.ZodOptional<z.ZodString>;
|
|
3893
3960
|
}, z.core.$strict>>;
|
|
3894
3961
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3962
|
+
name: z.ZodString;
|
|
3895
3963
|
description: z.ZodOptional<z.ZodObject<{
|
|
3896
3964
|
uk: z.ZodOptional<z.ZodString>;
|
|
3897
3965
|
en: z.ZodOptional<z.ZodString>;
|
|
3898
3966
|
}, z.core.$strict>>;
|
|
3899
|
-
name: z.ZodString;
|
|
3900
3967
|
schema: z.ZodOptional<z.ZodString>;
|
|
3901
3968
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3902
3969
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
@@ -3952,11 +4019,11 @@ export declare const eventSubscriptionSchema: z.ZodObject<{
|
|
|
3952
4019
|
en: z.ZodOptional<z.ZodString>;
|
|
3953
4020
|
}, z.core.$strict>>;
|
|
3954
4021
|
id: z.ZodOptional<z.ZodUUID>;
|
|
4022
|
+
name: z.ZodString;
|
|
3955
4023
|
description: z.ZodOptional<z.ZodObject<{
|
|
3956
4024
|
uk: z.ZodOptional<z.ZodString>;
|
|
3957
4025
|
en: z.ZodOptional<z.ZodString>;
|
|
3958
4026
|
}, z.core.$strict>>;
|
|
3959
|
-
name: z.ZodString;
|
|
3960
4027
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3961
4028
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
3962
4029
|
}, z.core.$strict>;
|
|
@@ -6272,6 +6339,41 @@ export declare const catalogAdoptedFactsSchema: z.ZodObject<{
|
|
|
6272
6339
|
membershipKinds: z.ZodArray<z.ZodGUID>;
|
|
6273
6340
|
assignments: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6274
6341
|
}, z.core.$strict>;
|
|
6342
|
+
/**
|
|
6343
|
+
* Рівень ролі в каталозі: `global`, `everyUser`, вид скоупу чи контейнер
|
|
6344
|
+
* (спека «Споживач поза монорепо» §5.4); вид і контейнер — за id.
|
|
6345
|
+
*/
|
|
6346
|
+
export declare const catalogRoleLevelSchema: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6347
|
+
scopeKind: z.ZodString;
|
|
6348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6349
|
+
container: z.ZodString;
|
|
6350
|
+
}, z.core.$strict>]>;
|
|
6351
|
+
/** Роль у спільній частині каталогу: клієнт показує `title` чи `name`. */
|
|
6352
|
+
export declare const catalogRoleSchema: z.ZodObject<{
|
|
6353
|
+
id: z.ZodString;
|
|
6354
|
+
name: z.ZodString;
|
|
6355
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6356
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6357
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6358
|
+
}, z.core.$strict>>;
|
|
6359
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6360
|
+
scopeKind: z.ZodString;
|
|
6361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6362
|
+
container: z.ZodString;
|
|
6363
|
+
}, z.core.$strict>]>;
|
|
6364
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6365
|
+
assignable: z.ZodBoolean;
|
|
6366
|
+
fullAccess: z.ZodBoolean;
|
|
6367
|
+
}, z.core.$strict>;
|
|
6368
|
+
/** Набір прав у спільній частині каталогу. */
|
|
6369
|
+
export declare const catalogRightsSetSchema: z.ZodObject<{
|
|
6370
|
+
id: z.ZodString;
|
|
6371
|
+
name: z.ZodString;
|
|
6372
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6373
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6374
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6375
|
+
}, z.core.$strict>>;
|
|
6376
|
+
}, z.core.$strict>;
|
|
6275
6377
|
/** The runtime catalog: a projection of the compiled model (P4 spec §6.3). */
|
|
6276
6378
|
export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
6277
6379
|
format: z.ZodLiteral<1>;
|
|
@@ -6286,6 +6388,30 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6286
6388
|
membershipKinds: z.ZodArray<z.ZodGUID>;
|
|
6287
6389
|
assignments: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6288
6390
|
}, z.core.$strict>>;
|
|
6391
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6392
|
+
id: z.ZodString;
|
|
6393
|
+
name: z.ZodString;
|
|
6394
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6395
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6396
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6397
|
+
}, z.core.$strict>>;
|
|
6398
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6399
|
+
scopeKind: z.ZodString;
|
|
6400
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6401
|
+
container: z.ZodString;
|
|
6402
|
+
}, z.core.$strict>]>;
|
|
6403
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6404
|
+
assignable: z.ZodBoolean;
|
|
6405
|
+
fullAccess: z.ZodBoolean;
|
|
6406
|
+
}, z.core.$strict>>>;
|
|
6407
|
+
rightsSets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6408
|
+
id: z.ZodString;
|
|
6409
|
+
name: z.ZodString;
|
|
6410
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6411
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6412
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6413
|
+
}, z.core.$strict>>;
|
|
6414
|
+
}, z.core.$strict>>>;
|
|
6289
6415
|
objects: z.ZodArray<z.ZodObject<{
|
|
6290
6416
|
id: z.ZodGUID;
|
|
6291
6417
|
name: z.ZodString;
|
|
@@ -6654,6 +6780,8 @@ export type RuntimeSection = z.infer<typeof runtimeSectionSchema>;
|
|
|
6654
6780
|
export type RuntimeOperationTarget = z.infer<typeof runtimeOperationTargetSchema>;
|
|
6655
6781
|
export type RuntimeRootCreate = z.infer<typeof runtimeRootCreateSchema>;
|
|
6656
6782
|
export type RuntimeObject = z.infer<typeof runtimeObjectSchema>;
|
|
6783
|
+
export type CatalogRole = z.infer<typeof catalogRoleSchema>;
|
|
6784
|
+
export type CatalogRightsSet = z.infer<typeof catalogRightsSetSchema>;
|
|
6657
6785
|
export type RuntimeCatalog = z.infer<typeof runtimeCatalogSchema>;
|
|
6658
6786
|
export type CatalogRightsCarrier = z.infer<typeof catalogRightsCarrierSchema>;
|
|
6659
6787
|
export type CatalogRightsSubject = z.infer<typeof catalogRightsSubjectSchema>;
|
|
@@ -6676,6 +6804,30 @@ export declare const clientCatalogSchema: z.ZodObject<{
|
|
|
6676
6804
|
membershipKinds: z.ZodArray<z.ZodGUID>;
|
|
6677
6805
|
assignments: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6678
6806
|
}, z.core.$strict>>;
|
|
6807
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6808
|
+
id: z.ZodString;
|
|
6809
|
+
name: z.ZodString;
|
|
6810
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6811
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6812
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6813
|
+
}, z.core.$strict>>;
|
|
6814
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6815
|
+
scopeKind: z.ZodString;
|
|
6816
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6817
|
+
container: z.ZodString;
|
|
6818
|
+
}, z.core.$strict>]>;
|
|
6819
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6820
|
+
assignable: z.ZodBoolean;
|
|
6821
|
+
fullAccess: z.ZodBoolean;
|
|
6822
|
+
}, z.core.$strict>>>;
|
|
6823
|
+
rightsSets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6824
|
+
id: z.ZodString;
|
|
6825
|
+
name: z.ZodString;
|
|
6826
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6827
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6828
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6829
|
+
}, z.core.$strict>>;
|
|
6830
|
+
}, z.core.$strict>>>;
|
|
6679
6831
|
objects: z.ZodArray<z.ZodObject<{
|
|
6680
6832
|
id: z.ZodGUID;
|
|
6681
6833
|
name: z.ZodString;
|
|
@@ -8782,6 +8934,8 @@ type ReferenceRole = "attribute.ref" | "attribute.allowedType" |
|
|
|
8782
8934
|
"search.field" | "posting.movementsBlock" | "customTable.foreignKey" | "customTable.foreignKeyTarget" | "customTable.column" | "customTable.pgEnum" | "customTable.scopeColumn" | "object.scope" | "scopeKind.root" |
|
|
8783
8935
|
/** Вид скоупу в `project.storageBuckets[].scopeKind`. */
|
|
8784
8936
|
"storage.scopeKind" |
|
|
8937
|
+
/** Об'єкт чи роль у `project.selfSignUpAccepted` (прийняття самореєстрації). */
|
|
8938
|
+
"selfSignUp.accepted" |
|
|
8785
8939
|
/** Об'єкт-джерело підписки на подію. */
|
|
8786
8940
|
"eventSubscription.source" |
|
|
8787
8941
|
/** Реквізит джерела в `whenChanged` підписки. */
|
package/dist/model/index.js
CHANGED
|
@@ -1297,14 +1297,14 @@ const roleAssignedOnSchema = z.union([assignedOnSchema, z.literal("everyUser").m
|
|
|
1297
1297
|
/**
|
|
1298
1298
|
* Шапка декларацій прав: без PG-схеми, скоупу й фізичного імені — у базі
|
|
1299
1299
|
* набір і роль живуть лише в згенерованій проєкції, а в даних їх називає
|
|
1300
|
-
* UUID. `title
|
|
1301
|
-
*
|
|
1300
|
+
* UUID. `title` — необов'язкова назва для екрана призначення (без
|
|
1301
|
+
* значення за замовчуванням: хеш проєкту без неї не змінюється);
|
|
1302
|
+
* `description` відкладено (спека «Споживач поза монорепо» §5.4).
|
|
1302
1303
|
*/
|
|
1303
1304
|
const rightsDeclarationHeader = z.object(objectHeaderShape).omit({
|
|
1304
1305
|
schema: true,
|
|
1305
1306
|
scope: true,
|
|
1306
1307
|
physicalName: true,
|
|
1307
|
-
title: true,
|
|
1308
1308
|
description: true
|
|
1309
1309
|
}).shape;
|
|
1310
1310
|
const includeSchema$1 = z.array(metadataRefSchema).default([]).meta({ description: "Rights sets whose grants this declaration includes." });
|
|
@@ -2833,6 +2833,18 @@ const projectSchema = z.strictObject({
|
|
|
2833
2833
|
*/
|
|
2834
2834
|
timezone: z.string().min(1).default("UTC").meta({ description: "IANA time zone in which the platform determines day, month, quarter and year." }),
|
|
2835
2835
|
selfSignUp: z.boolean().optional().meta({ description: "Whether users may register themselves; enables the self sign-up warning and host start check." }),
|
|
2836
|
+
selfSignUpAccepted: z.strictObject({
|
|
2837
|
+
objects: z.array(z.strictObject({
|
|
2838
|
+
object: metadataRefSchema.meta({ description: "Object with publicRead authenticated accepted as open to anyone." }),
|
|
2839
|
+
published: z.literal(true).optional().meta({ description: "Accept only the published rows (the conditional publicRead); without it every row is accepted." })
|
|
2840
|
+
})).default([]).meta({ description: "Objects accepted as open to every signed-in user (publicRead authenticated)." }),
|
|
2841
|
+
grants: z.array(z.strictObject({
|
|
2842
|
+
role: metadataRefSchema.meta({ description: "Role of the everyUser level." }),
|
|
2843
|
+
object: metadataRefSchema.meta({ description: "Object of the grant." }),
|
|
2844
|
+
actions: z.array(elementNameSchema).min(1).meta({ description: "Accepted actions: standard words or custom action names." }),
|
|
2845
|
+
extent: extentSchema
|
|
2846
|
+
})).default([]).meta({ description: "Grants of everyUser roles accepted as open to anyone." })
|
|
2847
|
+
}).optional().meta({ description: "What the self sign-up warning no longer reports: it names only objects and grants open to anyone that are not listed here." }),
|
|
2836
2848
|
scopeKinds: z.array(scopeKindSchema).default([]).meta({ description: "Scope kinds of the application; leave empty for a single-tenant application." }),
|
|
2837
2849
|
accessDimensions: z.array(accessDimensionSchema).default([]).meta({ description: "Access dimensions of the application: value catalogs that grants may restrict rows by." }),
|
|
2838
2850
|
membershipSources: z.array(membershipSourceSchema).default([]).meta({ description: "Adopted tables that hold the membership of a scope kind instead of a membership catalog." }),
|
|
@@ -4010,6 +4022,32 @@ const catalogAdoptedFactsSchema = z.strictObject({
|
|
|
4010
4022
|
membershipKinds: z.array(z.guid()),
|
|
4011
4023
|
assignments: z.literal(true).optional()
|
|
4012
4024
|
});
|
|
4025
|
+
/**
|
|
4026
|
+
* Рівень ролі в каталозі: `global`, `everyUser`, вид скоупу чи контейнер
|
|
4027
|
+
* (спека «Споживач поза монорепо» §5.4); вид і контейнер — за id.
|
|
4028
|
+
*/
|
|
4029
|
+
const catalogRoleLevelSchema = z.union([
|
|
4030
|
+
z.literal("global"),
|
|
4031
|
+
z.literal("everyUser"),
|
|
4032
|
+
z.strictObject({ scopeKind: z.string() }),
|
|
4033
|
+
z.strictObject({ container: z.string() })
|
|
4034
|
+
]);
|
|
4035
|
+
/** Роль у спільній частині каталогу: клієнт показує `title` чи `name`. */
|
|
4036
|
+
const catalogRoleSchema = z.strictObject({
|
|
4037
|
+
id: z.string(),
|
|
4038
|
+
name: z.string(),
|
|
4039
|
+
title: localizedStringSchema.optional(),
|
|
4040
|
+
level: catalogRoleLevelSchema,
|
|
4041
|
+
order: z.number().int().nonnegative().optional(),
|
|
4042
|
+
assignable: z.boolean(),
|
|
4043
|
+
fullAccess: z.boolean()
|
|
4044
|
+
});
|
|
4045
|
+
/** Набір прав у спільній частині каталогу. */
|
|
4046
|
+
const catalogRightsSetSchema = z.strictObject({
|
|
4047
|
+
id: z.string(),
|
|
4048
|
+
name: z.string(),
|
|
4049
|
+
title: localizedStringSchema.optional()
|
|
4050
|
+
});
|
|
4013
4051
|
/** The runtime catalog: a projection of the compiled model (P4 spec §6.3). */
|
|
4014
4052
|
const runtimeCatalogSchema = z.strictObject({
|
|
4015
4053
|
format: z.literal(1),
|
|
@@ -4020,6 +4058,9 @@ const runtimeCatalogSchema = z.strictObject({
|
|
|
4020
4058
|
/** Проєкт дозволяє самореєстрацію: host відмовляє старту `open` без нього. */
|
|
4021
4059
|
selfSignUp: z.literal(true).optional(),
|
|
4022
4060
|
adoptedFacts: catalogAdoptedFactsSchema.optional(),
|
|
4061
|
+
/** Немає в проєкті без ролей; порядок — за `order`, далі за `name`. */
|
|
4062
|
+
roles: z.array(catalogRoleSchema).optional(),
|
|
4063
|
+
rightsSets: z.array(catalogRightsSetSchema).optional(),
|
|
4023
4064
|
objects: z.array(runtimeObjectSchema)
|
|
4024
4065
|
}).superRefine((catalog, ctx) => {
|
|
4025
4066
|
catalog.objects.forEach((object, index) => {
|
|
@@ -4053,6 +4094,8 @@ const clientCatalogSchema = z.strictObject({
|
|
|
4053
4094
|
rightsSnapshot: z.literal(true).optional(),
|
|
4054
4095
|
/** Факти прийнятих джерел свіжіють за інтервалом (П4-B §8.2). */
|
|
4055
4096
|
adoptedFacts: catalogAdoptedFactsSchema.optional(),
|
|
4097
|
+
roles: z.array(catalogRoleSchema).optional(),
|
|
4098
|
+
rightsSets: z.array(catalogRightsSetSchema).optional(),
|
|
4056
4099
|
objects: z.array(catalogEntrySchema)
|
|
4057
4100
|
}).superRefine((catalog, ctx) => {
|
|
4058
4101
|
const ids = new Set(catalog.objects.map((o) => o.id));
|
|
@@ -8702,4 +8745,4 @@ const ASSIGNED_ONCE = [
|
|
|
8702
8745
|
field: "primaryDataLanguage"
|
|
8703
8746
|
}
|
|
8704
8747
|
];
|
|
8705
|
-
export { APPLIED_SNAPSHOT_HASH_FUNCTION_NAME, ASSIGNED_ONCE, ATTRIBUTE_CASES, BATCH_MAX, CAST_TYPES, CENTRIFUGO_CHANNEL_MAX, COMMAND_CORE_ERRORS, COMMAND_ERROR_CODES, COMMAND_SETTING, CURRENT_USER_FUNCTION_NAME, CommandFailure, DATABASE_PROVIDERS, DEFAULT_MAIN_PRESENTATION, DEFAULT_SEARCH_MODE, DELETE_EVENTS, ELEMENT_ID_SEPARATOR, FILTER_DEPTH_MAX, FILTER_IN_MAX, FILTER_NODES_MAX, FILTER_OPERATORS, FUNCTIONS_FILE_SUFFIX, HEAD_READABLE_SETTINGS, HIERARCHY_ISOLATION_ERROR, INCLUDE_MAX, INTEGER_TEXT, JSONB_PAIRS_PER_CALL, KIND_REGISTRY, KNOWN_MARKER, LIMIT_REASONS, LOGICAL_TYPES, LOGIN_ROLE_PARENTS, LOGIN_ROLE_REQUEST_PURPOSES, LOGIN_ROLE_SETTINGS, MAX_PHYSICAL_NAME_BYTES, MEMBERSHIP_SET_FUNCTION, METADATA_KINDS, NO_SCOPE, OBJECT_MODULE_KEYS, OBJECT_OPERATIONS, OPERATION_EVENTS, ORDER_BY_MAX, PAYLOAD_MAX_BYTES, PINNED_SESSION_SETTINGS, PLATFORM_LOGIN_ROLES, PLATFORM_ROLES, PLATFORM_ROLES_NOT_PURPOSES, PLATFORM_SCHEMA, PLATFORM_SETTING_PREFIX, PLATFORM_STATE_TABLES, PRIVILEGED_LOGIN_REASONS, PROJECT_KEY_ORDER, PROTECTED_SESSION_SETTINGS, PROVIDER_API_ROLES, PROVIDER_EVENT_SOURCES, PROVIDER_EXPRESSION_FUNCTIONS, PROVIDER_FUNCTIONS, PROVIDER_IDENTITY_SOURCES, PROVIDER_LOGIN_ROLES, PROVIDER_OWNER_ROLES, PROVIDER_SCHEMAS, PUBLIC_READ_PURPOSES, PUBLIC_READ_ROLES, READ_BATCH_MAX, READ_BATCH_STATEMENTS_MAX, READ_COUNT_CAP, READ_LIMIT_MAX, READ_OFFSET_MAX, RESPONSE_BUDGET_BYTES, RICH_TEXT_MAX_DEPTH, RICH_TEXT_PROFILE, RICH_TEXT_WHITESPACE, RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME, RIGHTS_COLUMNS, RIGHTS_DELTA_SECTION, RIGHTS_DIMENSION_VALUES_MAX, RIGHTS_MAINTENANCE_SETTING, RIGHTS_REQUIRE_ERROR, ROW_VERSION_EPOCH_FUNCTION_NAME, SCHEMA_RULES, SEARCH_MODES, SEARCH_PREFIX_CHARS, SESSION_CLAIMS_SETTING, SIGNAL_INVALIDATE_FUNCTION_NAME, SIGNAL_MERGE_MODE, SIGNAL_MERGE_THRESHOLD, SIGNAL_MODE_SETTING, SIGNAL_NOTIFY_CHANNEL, SIGNAL_OUTBOX, SIGNAL_PAYLOAD_MAX_BYTES, SIGNAL_TOPIC_ALLOWED_FUNCTION_NAME, SQL_DEBT_FILE, SQL_FUNCTION_CALLERS, SQL_UNIT_CLASSES, STANDARD_ACTIONS, STORAGE_ERRORS, STORAGE_FUNCTIONS, STORAGE_MAX_BYTES, STORAGE_REASONS, STORAGE_TABLES, STRUCTURAL_PATH_WORDS, SUBSCRIPTION_EVENTS, TABULAR_LINES_MAX, TOPIC_UUID_PATTERN, USER_PLATFORM_COLUMNS, UUID_TEXT, VALUE_REASONS, WireDecodeError, WireEncodeError, ZERO_UUID, accessDimensionSchema, accessMappingSchema, accessSchema, accumulationRegisterSchema, actionRequires, appSchemaNameSchema, assignPhysicalName, assignedOnSchema, assignmentSourceSchema, attributeSchema, authorColumns, batchSchema, castTypeSchema, catalogAdoptedFactsSchema, catalogAttributeSchema, catalogEntryAttributeSchema, catalogEntrySchema, catalogEntrySectionSchema, catalogFromSnapshot, catalogIndex, catalogRightsCarrierSchema, catalogRightsExtentSchema, catalogRightsSchema, catalogRightsSubjectSchema, catalogSchema, changeSignalSchema, changesFromWire, changesToWire, channelTopic, checkRichText, chooseConstraintName, clientCatalogSchema, clipBytes, closeRequires, compositeIndexesSchema, constantSchema, customActionSchema, customActionsSchema, customTableColumnSchema, customTableSchema, dataRequestSchema, dataResponseSchema, decodeRow, decodeValues, defaultMayRepeat, defaultViolatesValueChecks, defineObjectModule, deletionMarkColumn, diffCatalogModels, documentSchema, effectiveMaxBytes, effectiveSearch, elementIdSchema, elementNameSchema, encodeAttributeValue, encodeAttributes, encodeItemValue, encodePair, encodeRow, enumValueSchema, enumerationSchema, errorFromWire, errorToWire, eventSubscriptionSchema, expectsKindLabel, extentSchema, fileObjectKey, filePlatformColumns, filterSchema, filterWithinLimits, formatMetaFile, formatProjectFile, formatSqlDebtFile, formatSqlFunctionsFile, grantEntryForm, grantEntrySchema, includeSchema, informationRegisterSchema, invalidateSignalSchema, isDate, isDateTime, isFileObjectKey, isFileObjectPrefix, isObjectOrigin, isObjectTable, isPlainObject, isRecordKeyAt, isRichTextEmpty, isScalarDefault, isSqlReservedWord, isTextEncodedType, isUuidColumn, isWithinType, jsonBytes, jsonbBuildObject, kernelHashSchema, keyColumn, keysetFilter, keysetNodesMax, kindByDir, knownFormAllowed, knownSchema, lengthLimited, lineNumberColumn, localizedStringSchema, logicalElementName, logicalObjectName, logicalTypeOf, loginRoleParentNames, makeObjectName, matchesAttributeCase, membershipSourceSchema, metadataIdSchema, metadataKindSchema, metadataRefSchema, monthColumn, namedCollections, normalDateTime, objectColumns, objectHeaderShape, objectNameSchema, objectSelectorSchema, objectTable, operationFromWire, operationSchema, operationToWire, orderBySchema, ownershipSchema, parseExpression, parsePublicRead, parseStandardElementId, parseTopic, pathFromWire, pathToWire, pgEnumSchema, pgEnumTypeName, pgTypeOf, physicalNameSchema, postsMovements, predefinedNameColumn, projectSchema, publicReadConditionalSchema, publicReadSchema, publicationCarriers, publishedColumn, qualifiedNameSchema, queryFormSchema, quoteIdent, readPartFromWire, readPartToWire, readQueryFromWire, readQuerySchema, readQueryToWire, readResultFromWire, readResultToWire, receivedChangeSchema, receivedInvalidateSchema, receivedRightsSchema, refineValueType, resourceSchema, richTextDepthOk, rightsCarrierSchema, rightsDimensionValuesSchema, rightsMemberSchema, rightsRowSchema, rightsSetSchema, rightsSignalSchema, rightsSnapshotSchema, rightsValueSchema, rightsVersionSchema, roleAssignedOnSchema, roleSchema, rowWithoutSearch, runtimeAttributeSchema, runtimeCatalogSchema, runtimeConstraintSchema, runtimeObjectSchema, runtimeOperationTargetSchema, runtimeRootCreateSchema, runtimeSectionSchema, scopeKindSchema, searchColumnName, searchNormalization, searchPrefixNormalization, searchSchema, serviceDateColumns, sessionClaimsSchema, setGrantEntrySchema, singleUuidKeyColumn, singletonColumn, sourceConditionSchema, splitKnownMarker, sqlDebtSchema, sqlFunctionDeclarationSchema, sqlFunctionsFileSchema, standardAttributeOverridesSchema, standardElementId, standardLogicalName, storageSchema, tabularParentColumn, tabularSectionSchema, toSnakeCase, truncatedPeriodExpression, updateOperationObjectSchema, userPlatformColumns, valueTypeShape, versionColumn, versionEpochSchema, versionValueSchema, walkExpr, wireChangeSchema, wireCommandErrorSchema, wireOperationSchema, wireReadPartSchema, wireReadPartsResultSchema, wireReadQuerySchema, wireReadResultSchema, wireRunResultSchema };
|
|
8748
|
+
export { APPLIED_SNAPSHOT_HASH_FUNCTION_NAME, ASSIGNED_ONCE, ATTRIBUTE_CASES, BATCH_MAX, CAST_TYPES, CENTRIFUGO_CHANNEL_MAX, COMMAND_CORE_ERRORS, COMMAND_ERROR_CODES, COMMAND_SETTING, CURRENT_USER_FUNCTION_NAME, CommandFailure, DATABASE_PROVIDERS, DEFAULT_MAIN_PRESENTATION, DEFAULT_SEARCH_MODE, DELETE_EVENTS, ELEMENT_ID_SEPARATOR, FILTER_DEPTH_MAX, FILTER_IN_MAX, FILTER_NODES_MAX, FILTER_OPERATORS, FUNCTIONS_FILE_SUFFIX, HEAD_READABLE_SETTINGS, HIERARCHY_ISOLATION_ERROR, INCLUDE_MAX, INTEGER_TEXT, JSONB_PAIRS_PER_CALL, KIND_REGISTRY, KNOWN_MARKER, LIMIT_REASONS, LOGICAL_TYPES, LOGIN_ROLE_PARENTS, LOGIN_ROLE_REQUEST_PURPOSES, LOGIN_ROLE_SETTINGS, MAX_PHYSICAL_NAME_BYTES, MEMBERSHIP_SET_FUNCTION, METADATA_KINDS, NO_SCOPE, OBJECT_MODULE_KEYS, OBJECT_OPERATIONS, OPERATION_EVENTS, ORDER_BY_MAX, PAYLOAD_MAX_BYTES, PINNED_SESSION_SETTINGS, PLATFORM_LOGIN_ROLES, PLATFORM_ROLES, PLATFORM_ROLES_NOT_PURPOSES, PLATFORM_SCHEMA, PLATFORM_SETTING_PREFIX, PLATFORM_STATE_TABLES, PRIVILEGED_LOGIN_REASONS, PROJECT_KEY_ORDER, PROTECTED_SESSION_SETTINGS, PROVIDER_API_ROLES, PROVIDER_EVENT_SOURCES, PROVIDER_EXPRESSION_FUNCTIONS, PROVIDER_FUNCTIONS, PROVIDER_IDENTITY_SOURCES, PROVIDER_LOGIN_ROLES, PROVIDER_OWNER_ROLES, PROVIDER_SCHEMAS, PUBLIC_READ_PURPOSES, PUBLIC_READ_ROLES, READ_BATCH_MAX, READ_BATCH_STATEMENTS_MAX, READ_COUNT_CAP, READ_LIMIT_MAX, READ_OFFSET_MAX, RESPONSE_BUDGET_BYTES, RICH_TEXT_MAX_DEPTH, RICH_TEXT_PROFILE, RICH_TEXT_WHITESPACE, RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME, RIGHTS_COLUMNS, RIGHTS_DELTA_SECTION, RIGHTS_DIMENSION_VALUES_MAX, RIGHTS_MAINTENANCE_SETTING, RIGHTS_REQUIRE_ERROR, ROW_VERSION_EPOCH_FUNCTION_NAME, SCHEMA_RULES, SEARCH_MODES, SEARCH_PREFIX_CHARS, SESSION_CLAIMS_SETTING, SIGNAL_INVALIDATE_FUNCTION_NAME, SIGNAL_MERGE_MODE, SIGNAL_MERGE_THRESHOLD, SIGNAL_MODE_SETTING, SIGNAL_NOTIFY_CHANNEL, SIGNAL_OUTBOX, SIGNAL_PAYLOAD_MAX_BYTES, SIGNAL_TOPIC_ALLOWED_FUNCTION_NAME, SQL_DEBT_FILE, SQL_FUNCTION_CALLERS, SQL_UNIT_CLASSES, STANDARD_ACTIONS, STORAGE_ERRORS, STORAGE_FUNCTIONS, STORAGE_MAX_BYTES, STORAGE_REASONS, STORAGE_TABLES, STRUCTURAL_PATH_WORDS, SUBSCRIPTION_EVENTS, TABULAR_LINES_MAX, TOPIC_UUID_PATTERN, USER_PLATFORM_COLUMNS, UUID_TEXT, VALUE_REASONS, WireDecodeError, WireEncodeError, ZERO_UUID, accessDimensionSchema, accessMappingSchema, accessSchema, accumulationRegisterSchema, actionRequires, appSchemaNameSchema, assignPhysicalName, assignedOnSchema, assignmentSourceSchema, attributeSchema, authorColumns, batchSchema, castTypeSchema, catalogAdoptedFactsSchema, catalogAttributeSchema, catalogEntryAttributeSchema, catalogEntrySchema, catalogEntrySectionSchema, catalogFromSnapshot, catalogIndex, catalogRightsCarrierSchema, catalogRightsExtentSchema, catalogRightsSchema, catalogRightsSetSchema, catalogRightsSubjectSchema, catalogRoleLevelSchema, catalogRoleSchema, catalogSchema, changeSignalSchema, changesFromWire, changesToWire, channelTopic, checkRichText, chooseConstraintName, clientCatalogSchema, clipBytes, closeRequires, compositeIndexesSchema, constantSchema, customActionSchema, customActionsSchema, customTableColumnSchema, customTableSchema, dataRequestSchema, dataResponseSchema, decodeRow, decodeValues, defaultMayRepeat, defaultViolatesValueChecks, defineObjectModule, deletionMarkColumn, diffCatalogModels, documentSchema, effectiveMaxBytes, effectiveSearch, elementIdSchema, elementNameSchema, encodeAttributeValue, encodeAttributes, encodeItemValue, encodePair, encodeRow, enumValueSchema, enumerationSchema, errorFromWire, errorToWire, eventSubscriptionSchema, expectsKindLabel, extentSchema, fileObjectKey, filePlatformColumns, filterSchema, filterWithinLimits, formatMetaFile, formatProjectFile, formatSqlDebtFile, formatSqlFunctionsFile, grantEntryForm, grantEntrySchema, includeSchema, informationRegisterSchema, invalidateSignalSchema, isDate, isDateTime, isFileObjectKey, isFileObjectPrefix, isObjectOrigin, isObjectTable, isPlainObject, isRecordKeyAt, isRichTextEmpty, isScalarDefault, isSqlReservedWord, isTextEncodedType, isUuidColumn, isWithinType, jsonBytes, jsonbBuildObject, kernelHashSchema, keyColumn, keysetFilter, keysetNodesMax, kindByDir, knownFormAllowed, knownSchema, lengthLimited, lineNumberColumn, localizedStringSchema, logicalElementName, logicalObjectName, logicalTypeOf, loginRoleParentNames, makeObjectName, matchesAttributeCase, membershipSourceSchema, metadataIdSchema, metadataKindSchema, metadataRefSchema, monthColumn, namedCollections, normalDateTime, objectColumns, objectHeaderShape, objectNameSchema, objectSelectorSchema, objectTable, operationFromWire, operationSchema, operationToWire, orderBySchema, ownershipSchema, parseExpression, parsePublicRead, parseStandardElementId, parseTopic, pathFromWire, pathToWire, pgEnumSchema, pgEnumTypeName, pgTypeOf, physicalNameSchema, postsMovements, predefinedNameColumn, projectSchema, publicReadConditionalSchema, publicReadSchema, publicationCarriers, publishedColumn, qualifiedNameSchema, queryFormSchema, quoteIdent, readPartFromWire, readPartToWire, readQueryFromWire, readQuerySchema, readQueryToWire, readResultFromWire, readResultToWire, receivedChangeSchema, receivedInvalidateSchema, receivedRightsSchema, refineValueType, resourceSchema, richTextDepthOk, rightsCarrierSchema, rightsDimensionValuesSchema, rightsMemberSchema, rightsRowSchema, rightsSetSchema, rightsSignalSchema, rightsSnapshotSchema, rightsValueSchema, rightsVersionSchema, roleAssignedOnSchema, roleSchema, rowWithoutSearch, runtimeAttributeSchema, runtimeCatalogSchema, runtimeConstraintSchema, runtimeObjectSchema, runtimeOperationTargetSchema, runtimeRootCreateSchema, runtimeSectionSchema, scopeKindSchema, searchColumnName, searchNormalization, searchPrefixNormalization, searchSchema, serviceDateColumns, sessionClaimsSchema, setGrantEntrySchema, singleUuidKeyColumn, singletonColumn, sourceConditionSchema, splitKnownMarker, sqlDebtSchema, sqlFunctionDeclarationSchema, sqlFunctionsFileSchema, standardAttributeOverridesSchema, standardElementId, standardLogicalName, storageSchema, tabularParentColumn, tabularSectionSchema, toSnakeCase, truncatedPeriodExpression, updateOperationObjectSchema, userPlatformColumns, valueTypeShape, versionColumn, versionEpochSchema, versionValueSchema, walkExpr, wireChangeSchema, wireCommandErrorSchema, wireOperationSchema, wireReadPartSchema, wireReadPartsResultSchema, wireReadQuerySchema, wireReadResultSchema, wireRunResultSchema };
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1021,7 +1021,7 @@ export declare function checkOwnerAttributes(tx: ApplyTransaction, provider: Dat
|
|
|
1021
1021
|
* тримає тест, а не читання маніфесту під час виконання: ярус не звертається
|
|
1022
1022
|
* до файлової системи.
|
|
1023
1023
|
*/
|
|
1024
|
-
export declare const PLATFORM_VERSION = "0.3.0-next.
|
|
1024
|
+
export declare const PLATFORM_VERSION = "0.3.0-next.4";
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Структурний ключ таблиці для множин і мап: ім'я з крапкою не злипається зі
|
|
1027
1027
|
* схемою, як злиплося б у `schema.name`. Складені ключі підоб'єктів — так
|
package/dist/schema/index.js
CHANGED
|
@@ -3893,7 +3893,7 @@ async function readSessionSearchPath(tx) {
|
|
|
3893
3893
|
* тримає тест, а не читання маніфесту під час виконання: ярус не звертається
|
|
3894
3894
|
* до файлової системи.
|
|
3895
3895
|
*/
|
|
3896
|
-
const PLATFORM_VERSION = "0.3.0-next.
|
|
3896
|
+
const PLATFORM_VERSION = "0.3.0-next.4";
|
|
3897
3897
|
// src/schema/apply/state.ts
|
|
3898
3898
|
/**
|
|
3899
3899
|
* Форма стану застосування (платформна спека §6.1). Читач приймає лише її:
|
package/dist/shell/index.d.ts
CHANGED
|
@@ -97,4 +97,16 @@ export declare function entityCardRoute(entity: EntityDescriptor): {
|
|
|
97
97
|
* route the one with `simetraList`; the path comes from the app's route tree.
|
|
98
98
|
*/
|
|
99
99
|
export declare function routerNavigation(router: AnyRouter): NavigationAdapter;
|
|
100
|
+
/**
|
|
101
|
+
* Маркер кінця гідратації (спека «Споживач поза монорепо» §5.5, T6):
|
|
102
|
+
* `<html data-hydrated="true">` ставиться раз, після того як клієнт узяв
|
|
103
|
+
* серверну розмітку під себе. Тест застосунку чекає `html[data-hydrated]`
|
|
104
|
+
* замість таймера; атрибут є й у production-збірці. Корінь застосунку кличе
|
|
105
|
+
* цю функцію в ефекті гідратації.
|
|
106
|
+
*/
|
|
107
|
+
export declare function markHydrated(doc: {
|
|
108
|
+
readonly documentElement: {
|
|
109
|
+
setAttribute(name: string, value: string): void;
|
|
110
|
+
};
|
|
111
|
+
}): void;
|
|
100
112
|
export type { EntityDescriptor, EntityListRouteOptions, SimetraApp, SimetraRouterContext };
|
package/dist/shell/index.js
CHANGED
|
@@ -145,4 +145,15 @@ function routerNavigation(router) {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
// src/shell/hydration.ts
|
|
149
|
+
/**
|
|
150
|
+
* Маркер кінця гідратації (спека «Споживач поза монорепо» §5.5, T6):
|
|
151
|
+
* `<html data-hydrated="true">` ставиться раз, після того як клієнт узяв
|
|
152
|
+
* серверну розмітку під себе. Тест застосунку чекає `html[data-hydrated]`
|
|
153
|
+
* замість таймера; атрибут є й у production-збірці. Корінь застосунку кличе
|
|
154
|
+
* цю функцію в ефекті гідратації.
|
|
155
|
+
*/
|
|
156
|
+
function markHydrated(doc) {
|
|
157
|
+
doc.documentElement.setAttribute("data-hydrated", "true");
|
|
158
|
+
}
|
|
159
|
+
export { entityCardRoute, entityListRoute, markHydrated, routerNavigation, simetraApp };
|
package/dist/ui/index.js
CHANGED
|
@@ -421,6 +421,27 @@ const STATE_CELL_WIDTH = "var(--simetra-state-cell-width, 160px)";
|
|
|
421
421
|
const SELECTION_PANEL_HEIGHT = "var(--simetra-selection-panel-height, 32px)";
|
|
422
422
|
/** Width of the reserved selection-count slot; override with `--simetra-selection-count-width`. */
|
|
423
423
|
const SELECTION_COUNT_WIDTH = "var(--simetra-selection-count-width, 96px)";
|
|
424
|
+
// src/ui/view-markers.ts
|
|
425
|
+
/**
|
|
426
|
+
* `loading` — даних ще немає; `refreshing` — дані є, перечитуються; усе
|
|
427
|
+
* інше (`ready`, `error`, `purged`) — `ready`: подання вже не чекає даних, а
|
|
428
|
+
* причину відмови показує власний слот.
|
|
429
|
+
*/
|
|
430
|
+
function viewStateOf(status) {
|
|
431
|
+
return status === "loading" || status === "refreshing" ? status : "ready";
|
|
432
|
+
}
|
|
433
|
+
/** `pending`, коли хоч один рядок області чекає запису: стан `pending` чи `unknown`. */
|
|
434
|
+
function writesOf(rows) {
|
|
435
|
+
for (const row of rows) if (row.state === "pending" || row.state === "unknown") return "pending";
|
|
436
|
+
return "idle";
|
|
437
|
+
}
|
|
438
|
+
/** Атрибути області `[data-region="list"]` і `[data-region="card"]`. */
|
|
439
|
+
function viewMarkers(status, rows) {
|
|
440
|
+
return {
|
|
441
|
+
"data-view-state": viewStateOf(status),
|
|
442
|
+
"data-writes": writesOf(rows)
|
|
443
|
+
};
|
|
444
|
+
}
|
|
424
445
|
// src/ui/list/selection-panel.ts
|
|
425
446
|
function Button$1(props) {
|
|
426
447
|
return createElement("button", {
|
|
@@ -668,7 +689,8 @@ function ListHost(props) {
|
|
|
668
689
|
return createElement("div", {
|
|
669
690
|
"data-region": "list",
|
|
670
691
|
"data-object": object,
|
|
671
|
-
role: "grid"
|
|
692
|
+
role: "grid",
|
|
693
|
+
...viewMarkers(view.status, rows)
|
|
672
694
|
}, createElement(SelectionPanel, { view }), createElement("div", {
|
|
673
695
|
role: "row",
|
|
674
696
|
style: {
|
|
@@ -1049,7 +1071,8 @@ function CardBody(props) {
|
|
|
1049
1071
|
"data-object": object,
|
|
1050
1072
|
"data-key": id,
|
|
1051
1073
|
"data-state": row === void 0 ? void 0 : displayState(row),
|
|
1052
|
-
"data-draft": draft.state
|
|
1074
|
+
"data-draft": draft.state,
|
|
1075
|
+
...viewMarkers(card.status, row === void 0 ? [] : [row])
|
|
1053
1076
|
}, createElement("div", { "data-region": "card-status" }, createElement("span", {
|
|
1054
1077
|
"aria-live": "polite",
|
|
1055
1078
|
"data-card": "status"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simetra",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.4",
|
|
4
4
|
"description": "Metadata-driven platform for business applications on Postgres: metamodel, compiler and schema engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metadata",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"publishConfig": {
|
|
136
136
|
"access": "public"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "ff6b3e68ad97ec97f9c9f6948bc678485a4142be",
|
|
139
139
|
"scripts": {
|
|
140
140
|
"build": "tsc --noEmit",
|
|
141
141
|
"build:package": "tsdown",
|