@masterteam/components 0.0.300 → 0.0.302
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/assets/common.css +1 -1
- package/assets/i18n/ar.json +392 -391
- package/assets/i18n/en.json +392 -391
- package/fesm2022/masterteam-components-business-fields.mjs +696 -51
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-checkbox-field.mjs +2 -2
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +363 -293
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs +2 -2
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +23 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +1 -1
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +43 -2
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +259 -29
- package/types/masterteam-components-entities.d.ts +252 -111
- package/types/masterteam-components-select-field.d.ts +14 -0
- package/types/masterteam-components.d.ts +27 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as _masterteam_components_entities from '@masterteam/components/entities';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
3
2
|
import { InjectionToken, Type, ElementRef, NgZone, Signal } from '@angular/core';
|
|
3
|
+
import * as _masterteam_components_entities from '@masterteam/components/entities';
|
|
4
4
|
import { MTDateFormatType } from '@masterteam/components';
|
|
5
5
|
import { MTIcon } from '@masterteam/icons';
|
|
6
6
|
import { HttpContext } from '@angular/common/http';
|
|
@@ -493,18 +493,10 @@ interface EntityScheduleItemValue {
|
|
|
493
493
|
moduleKey?: string;
|
|
494
494
|
itemType?: string;
|
|
495
495
|
}
|
|
496
|
-
/** One cell of an `EntityList` row.
|
|
496
|
+
/** One cell of an `EntityList` row. Values are always sent as strings. */
|
|
497
497
|
interface EntityListValueItem {
|
|
498
498
|
propertyKey: string;
|
|
499
499
|
rawValue?: string | null;
|
|
500
|
-
/**
|
|
501
|
-
* The backend's resolved counterpart of `rawValue` — a user object, a
|
|
502
|
-
* formatted date. `process-form-load` emits it beside every row value (see
|
|
503
|
-
* `toDisplayMap` in `mt-entity-list-field`); the `fetch` Card projection
|
|
504
|
-
* currently does not, which is why a snapshot-backed preview renders the
|
|
505
|
-
* stored id. Read when present so that stays a backend-only fix.
|
|
506
|
-
*/
|
|
507
|
-
value?: unknown;
|
|
508
500
|
}
|
|
509
501
|
/** One row of an `EntityList` value. */
|
|
510
502
|
interface EntityListRowValue {
|
|
@@ -513,27 +505,102 @@ interface EntityListRowValue {
|
|
|
513
505
|
values?: EntityListValueItem[];
|
|
514
506
|
}
|
|
515
507
|
/**
|
|
516
|
-
* The stored `EntityList` payload, as the backend renders it.
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
* source. An inline list keeps its rows in `rows`; a **module-backed** list
|
|
520
|
-
* keeps the linked target records in `snapshot.entities` and uses `rows` only
|
|
521
|
-
* for creates/updates the backend has not applied yet. Reading `rows` alone
|
|
522
|
-
* therefore shows nothing for the common module case — see
|
|
523
|
-
* `buildEntityListRows`, which merges the two.
|
|
524
|
-
*
|
|
525
|
-
* `entityIds` and the operation-marker arrays exist for the writable runtime,
|
|
526
|
-
* not for reading.
|
|
508
|
+
* The stored `EntityList` payload, as the backend renders it. `rows` is the
|
|
509
|
+
* only part this view type displays — `entityIds` and the operation-marker
|
|
510
|
+
* arrays exist for the writable runtime, not for reading.
|
|
527
511
|
*/
|
|
528
512
|
interface EntityListEntityValue {
|
|
529
513
|
entityIds?: number[];
|
|
530
514
|
rows?: EntityListRowValue[];
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
515
|
+
}
|
|
516
|
+
/** A `{ en, ar }` pair, as the backend's `Translatable` serializes. */
|
|
517
|
+
interface EntityListTranslatable {
|
|
518
|
+
en?: string | null;
|
|
519
|
+
ar?: string | null;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* The source property definition a Local list captured when its schema was
|
|
523
|
+
* published (`PropertyDefinitionReadDto`). Server-owned and response-only: the
|
|
524
|
+
* backend never trusts one sent back, and pins it so saved values stay
|
|
525
|
+
* readable after the source field or module changes or is deleted.
|
|
526
|
+
*/
|
|
527
|
+
interface EntityListLocalFieldDefinition {
|
|
528
|
+
key: string;
|
|
529
|
+
name?: string | null;
|
|
530
|
+
nameEn?: string | null;
|
|
531
|
+
nameAr?: string | null;
|
|
532
|
+
viewType: string;
|
|
533
|
+
isRequired?: boolean;
|
|
534
|
+
isTranslatable?: boolean;
|
|
535
|
+
configuration?: Record<string, unknown> | string | null;
|
|
536
|
+
}
|
|
537
|
+
/** A field's share of a row, as the form builder sizes it: ¼, ½ or full. */
|
|
538
|
+
type EntityListLocalFieldWidth = '25' | '50' | '100';
|
|
539
|
+
/**
|
|
540
|
+
* One field of a Local list's schema. `id` is the stable local identity cells
|
|
541
|
+
* are keyed by — a UUID, not the source property id. `label` is an optional
|
|
542
|
+
* local override of the source label, and `required` is local to the list.
|
|
543
|
+
*/
|
|
544
|
+
interface EntityListLocalSchemaField {
|
|
545
|
+
id?: string;
|
|
546
|
+
sourceKey: string;
|
|
547
|
+
label?: EntityListTranslatable | null;
|
|
548
|
+
required?: boolean;
|
|
549
|
+
hidden?: boolean;
|
|
550
|
+
order?: number;
|
|
551
|
+
/**
|
|
552
|
+
* The field's size in the row dialog. Sent by the configuration screen but
|
|
553
|
+
* **not yet stored by the backend** (`LocalEntityListField` has no such
|
|
554
|
+
* member), so it is absent from what comes back and the dialog falls back
|
|
555
|
+
* to its default until the backend adds it.
|
|
556
|
+
*/
|
|
557
|
+
width?: EntityListLocalFieldWidth | null;
|
|
558
|
+
definition?: EntityListLocalFieldDefinition | null;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* A published Local schema. `version` is a UUID that changes whenever the
|
|
562
|
+
* field set does; every mutation names the version it was built against.
|
|
563
|
+
*/
|
|
564
|
+
interface EntityListLocalSchema {
|
|
565
|
+
lineageId?: string;
|
|
566
|
+
version?: string;
|
|
567
|
+
fields: EntityListLocalSchemaField[];
|
|
568
|
+
}
|
|
569
|
+
/** One cell of a Local row. `value` is the rendered counterpart, read-only. */
|
|
570
|
+
interface EntityListLocalCell {
|
|
571
|
+
fieldId: string;
|
|
572
|
+
rawValue: string | null;
|
|
573
|
+
value?: unknown;
|
|
574
|
+
}
|
|
575
|
+
/** One Local row. `rowId` is a client-generated UUID, not a record id. */
|
|
576
|
+
interface EntityListLocalRow {
|
|
577
|
+
rowId: string;
|
|
578
|
+
order: number;
|
|
579
|
+
version: number;
|
|
580
|
+
cells: EntityListLocalCell[];
|
|
536
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* A Local `EntityList` value (`storageMode: "Local"`): rows owned by the parent
|
|
584
|
+
* record, stored inside it rather than as records of the source module.
|
|
585
|
+
*
|
|
586
|
+
* Arrives from `process-form-load` as the *projected* document — current
|
|
587
|
+
* versions, rendered cells, and `schema` with hidden fields already removed —
|
|
588
|
+
* and leaves as a *mutation* carrying only what changed, a fresh `mutationId`,
|
|
589
|
+
* and no `schema`. See `.github/instructions/properties/EntityList.md`.
|
|
590
|
+
*/
|
|
591
|
+
interface EntityListLocalDocument {
|
|
592
|
+
storageMode: 'Local';
|
|
593
|
+
formatVersion: number;
|
|
594
|
+
schemaVersion: string;
|
|
595
|
+
version: number;
|
|
596
|
+
mutationId?: string;
|
|
597
|
+
localRows: EntityListLocalRow[];
|
|
598
|
+
deletedRowIds?: string[];
|
|
599
|
+
/** Response-only: the schema the rows were projected against. */
|
|
600
|
+
schema?: EntityListLocalSchema | null;
|
|
601
|
+
}
|
|
602
|
+
/** Whether a stored or rendered `EntityList` value is a Local document. */
|
|
603
|
+
declare function isEntityListLocalDocument(value: unknown): value is EntityListLocalDocument;
|
|
537
604
|
/**
|
|
538
605
|
* One field definition of an inline `EntityList`, from its property
|
|
539
606
|
* configuration's `inlineFields`. This is the only description of the nested
|
|
@@ -545,13 +612,6 @@ interface EntityListInlineFieldMeta {
|
|
|
545
612
|
order?: number;
|
|
546
613
|
required?: boolean;
|
|
547
614
|
configuration?: EntityPropertyConfiguration;
|
|
548
|
-
/**
|
|
549
|
-
* Display label. Absent on a genuine `inlineFields` entry — inline
|
|
550
|
-
* configuration has no labels, which is what `humanizeEntityListKey` exists
|
|
551
|
-
* for. Set when the columns are derived from `catalog.nestedProperties`,
|
|
552
|
-
* whose entries carry the target module's own label.
|
|
553
|
-
*/
|
|
554
|
-
label?: string;
|
|
555
615
|
}
|
|
556
616
|
/**
|
|
557
617
|
* Catalog metadata for a property nested inside another property's value.
|
|
@@ -686,6 +746,56 @@ declare function resolveEntityLabelPosition(configuration?: EntityConfiguration
|
|
|
686
746
|
*/
|
|
687
747
|
declare function normalizeNumerals(input: string): string;
|
|
688
748
|
|
|
749
|
+
/**
|
|
750
|
+
* The runtime ids an entity renderer needs to fetch anything of its own.
|
|
751
|
+
*
|
|
752
|
+
* A rendered `EntityData` describes one *value*; it carries no idea of which
|
|
753
|
+
* level or level-data row it was read from. Most view types never need one —
|
|
754
|
+
* the value is the whole answer. `EntityList` is the exception: a module-backed
|
|
755
|
+
* list's rows live in another module and are scoped by the owning level-data
|
|
756
|
+
* row, so the renderer cannot resolve them from the value alone.
|
|
757
|
+
*
|
|
758
|
+
* Hosts that know these ids publish them through `EntityRuntimeContextStore`;
|
|
759
|
+
* hosts that do not simply leave it unprovided and every renderer keeps its
|
|
760
|
+
* value-only behaviour.
|
|
761
|
+
*/
|
|
762
|
+
interface EntityRuntimeContext {
|
|
763
|
+
/** Owning level id — addresses the per-level configuration override. */
|
|
764
|
+
levelId?: number | string | null;
|
|
765
|
+
/** Owning level-data row — what related records are scoped to. */
|
|
766
|
+
levelDataId?: number | string | null;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* Publishes an `EntityRuntimeContext` to a subtree of entity renderers.
|
|
770
|
+
*
|
|
771
|
+
* Deliberately **not** `providedIn: 'root'`: an unprovided store is the signal
|
|
772
|
+
* that the host has no runtime context, and every consumer injects it
|
|
773
|
+
* `{ optional: true }`. Providing it on a component scopes it to that
|
|
774
|
+
* component's view — which is also how a nested renderer shuts the context
|
|
775
|
+
* off for its own children (see `EntityListField`, whose table cells must not
|
|
776
|
+
* re-enter the fetching path).
|
|
777
|
+
*/
|
|
778
|
+
declare class EntityRuntimeContextStore {
|
|
779
|
+
readonly context: _angular_core.WritableSignal<EntityRuntimeContext | null>;
|
|
780
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityRuntimeContextStore, never>;
|
|
781
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<EntityRuntimeContextStore>;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* The component `mt-entity-list-preview` renders inline instead of its
|
|
785
|
+
* count-and-drawer trigger, when a runtime context is available.
|
|
786
|
+
*
|
|
787
|
+
* Indirection rather than a direct import because the real renderer is
|
|
788
|
+
* `mt-entity-list-field` (`@masterteam/components/business-fields`), which
|
|
789
|
+
* builds on `mt-table` — and `table` already imports `entities`, so importing
|
|
790
|
+
* it back here would make the two entry points circular. The provider lives
|
|
791
|
+
* with the component: `provideEntityListTablePreview()`.
|
|
792
|
+
*
|
|
793
|
+
* The component is created with `NgComponentOutlet` and receives
|
|
794
|
+
* `propertyId`, `runtimeContext`, `configuration`, `initialValue`, `readonly`
|
|
795
|
+
* and `label` as inputs.
|
|
796
|
+
*/
|
|
797
|
+
declare const ENTITY_LIST_TABLE_COMPONENT: InjectionToken<Type<unknown>>;
|
|
798
|
+
|
|
689
799
|
type EntityFieldGap = 'compact' | 'normal' | 'relaxed';
|
|
690
800
|
declare class EntityField {
|
|
691
801
|
readonly label: _angular_core.InputSignal<string>;
|
|
@@ -907,7 +1017,6 @@ declare class EntityCheckbox {
|
|
|
907
1017
|
readonly emptyLabel = "_";
|
|
908
1018
|
readonly hideName: _angular_core.Signal<boolean>;
|
|
909
1019
|
readonly checkboxState: _angular_core.Signal<boolean | null>;
|
|
910
|
-
private parseBoolean;
|
|
911
1020
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCheckbox, never>;
|
|
912
1021
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCheckbox, "mt-entity-checkbox", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rawValue": { "alias": "rawValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
913
1022
|
}
|
|
@@ -1095,22 +1204,16 @@ declare function humanizeEntityListKey(key: string): string;
|
|
|
1095
1204
|
/**
|
|
1096
1205
|
* Turns an `EntityList` entity into rendered rows.
|
|
1097
1206
|
*
|
|
1098
|
-
* Nothing is fetched
|
|
1099
|
-
*
|
|
1100
|
-
*
|
|
1101
|
-
* `
|
|
1102
|
-
*
|
|
1103
|
-
* ordered by `readFields`; that yields humanized labels and plain text rather
|
|
1104
|
-
* than the target module's own labels and view types, which only that module's
|
|
1105
|
-
* catalog knows and this renderer never loads.
|
|
1106
|
-
*
|
|
1107
|
-
* Shared by the trigger (`mt-entity-list-preview`, which needs the count and
|
|
1108
|
-
* the titles) and the drawer that renders them in full.
|
|
1207
|
+
* Nothing is fetched: the value already carries `rows[]`, and the property
|
|
1208
|
+
* configuration's `inlineFields` is the only description of the nested columns
|
|
1209
|
+
* — the rows themselves carry bare keys. Shared by the trigger
|
|
1210
|
+
* (`mt-entity-list-preview`, which needs the count and the titles) and the
|
|
1211
|
+
* drawer that renders them in full.
|
|
1109
1212
|
*
|
|
1110
1213
|
* `allowed` narrows to those keys, in that order; empty renders every field
|
|
1111
1214
|
* that survives the companion and identifier rules.
|
|
1112
1215
|
*/
|
|
1113
|
-
declare function buildEntityListRows(data: EntityData, allowed?: readonly string[]): EntityListRenderedRow[];
|
|
1216
|
+
declare function buildEntityListRows(data: EntityData, allowed?: readonly string[], lang?: string): EntityListRenderedRow[];
|
|
1114
1217
|
/**
|
|
1115
1218
|
* Plain-text summary of the rows, for the trigger's tooltip. Caps the list so
|
|
1116
1219
|
* a forty-item checklist does not become a forty-line tooltip.
|
|
@@ -1121,50 +1224,69 @@ declare function summarizeEntityListRows(rows: readonly EntityListRenderedRow[],
|
|
|
1121
1224
|
};
|
|
1122
1225
|
|
|
1123
1226
|
/**
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
*
|
|
1127
|
-
* `levelDataId` is the parent record's scope, which the fetch Card projection
|
|
1128
|
-
* does not carry at all — the host reads it from the route. A call site that
|
|
1129
|
-
* cannot supply them leaves the context null and keeps the compact renderer.
|
|
1227
|
+
* Pure helpers shared by everything that reads a Local `EntityList`
|
|
1228
|
+
* (`storageMode: "Local"`) — the runtime field that edits it and the preview
|
|
1229
|
+
* that only renders it. See `.github/instructions/properties/EntityList.md`.
|
|
1130
1230
|
*/
|
|
1131
|
-
interface EntityListPreviewContext {
|
|
1132
|
-
levelId?: number | string | null;
|
|
1133
|
-
levelDataId?: number | string | null;
|
|
1134
|
-
}
|
|
1135
1231
|
/**
|
|
1136
|
-
* The
|
|
1137
|
-
* `mt-entity-list-field` in practice, registered by `provideEntityListTable()`
|
|
1138
|
-
* from `@masterteam/components/business-fields`.
|
|
1139
|
-
*
|
|
1140
|
-
* It is a token rather than a direct import because `business-fields` already
|
|
1141
|
-
* imports this package: rendering the field from here would close the cycle.
|
|
1142
|
-
* The same reason `ENTITY_LIST_ADD_DIALOG_COMPONENT` exists one layer up.
|
|
1232
|
+
* The schema's fields a row is rendered with, in order.
|
|
1143
1233
|
*
|
|
1144
|
-
*
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1234
|
+
* A removed field stays in the stored schema as `hidden` so its values survive
|
|
1235
|
+
* and come back if it is re-added. The projected schema of a loaded value has
|
|
1236
|
+
* already dropped them, but the configuration's copy — what a create form falls
|
|
1237
|
+
* back to — has not.
|
|
1148
1238
|
*/
|
|
1149
|
-
declare
|
|
1239
|
+
declare function visibleLocalSchemaFields(schema: EntityListLocalSchema | null | undefined): EntityListLocalSchemaField[];
|
|
1240
|
+
/**
|
|
1241
|
+
* The label a field renders under: its local override, then the source label
|
|
1242
|
+
* captured when it was published, then its key. The publisher writes an
|
|
1243
|
+
* override into the captured definition as well, so either path shows it.
|
|
1244
|
+
*/
|
|
1245
|
+
declare function resolveLocalFieldLabel(field: EntityListLocalSchemaField, lang?: string): string;
|
|
1246
|
+
/** The source view type the field captured; `Text` when none was. */
|
|
1247
|
+
declare function resolveLocalFieldViewType(field: EntityListLocalSchemaField): string;
|
|
1248
|
+
/**
|
|
1249
|
+
* The captured source configuration (lookup id, percentage colour rules …).
|
|
1250
|
+
* `PropertyDefinitionReadDto.configuration` is typed `object?`, so the backend
|
|
1251
|
+
* writes whatever the source held — an object, or its JSON text.
|
|
1252
|
+
*/
|
|
1253
|
+
declare function resolveLocalFieldConfiguration(field: EntityListLocalSchemaField): Record<string, unknown> | null;
|
|
1254
|
+
/** A row's cells keyed by field id. */
|
|
1255
|
+
declare function localCellsByFieldId(row: EntityListLocalRow): Map<string, EntityListLocalCell>;
|
|
1256
|
+
/** Rows in their stored order. */
|
|
1257
|
+
declare function sortLocalRows(rows: readonly EntityListLocalRow[] | null | undefined): EntityListLocalRow[];
|
|
1150
1258
|
|
|
1259
|
+
/** What `NgComponentOutlet` needs to render the inline table. */
|
|
1260
|
+
interface EntityListTableHost {
|
|
1261
|
+
component: Type<unknown>;
|
|
1262
|
+
inputs: Record<string, unknown>;
|
|
1263
|
+
}
|
|
1151
1264
|
/**
|
|
1152
|
-
* Read-only renderer for an `EntityList` value
|
|
1153
|
-
*
|
|
1154
|
-
*
|
|
1155
|
-
*
|
|
1265
|
+
* Read-only renderer for an `EntityList` value. It has two shapes, and which
|
|
1266
|
+
* one applies is decided by what the host gave it — never by the value.
|
|
1267
|
+
*
|
|
1268
|
+
* **Inline table.** When the host published an `EntityRuntimeContext` and the
|
|
1269
|
+
* property is module-backed, the rows are the target module's own records and
|
|
1270
|
+
* live behind `Properties/{id}/entitylist/table-metadata` + `fetch/query`.
|
|
1271
|
+
* Nothing in the value describes them — a `Realtime` list's value is literally
|
|
1272
|
+
* `null` — so the whole table is fetched, by handing the work to the read-only
|
|
1273
|
+
* `mt-entity-list-field` through `ENTITY_LIST_TABLE_COMPONENT`. That component
|
|
1274
|
+
* already owns the metadata call, the authorization boundary (`403` is a
|
|
1275
|
+
* notice, not an error) and the column projection; duplicating it here would
|
|
1276
|
+
* be a second implementation of the same contract. This is the shape a card
|
|
1277
|
+
* preview gets.
|
|
1156
1278
|
*
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1160
|
-
*
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1279
|
+
* **Count + drawer.** Otherwise the value carries its own `rows[]` and the
|
|
1280
|
+
* property configuration's `inlineFields` is the only description of the
|
|
1281
|
+
* columns — a calculated inline list, phase gate checklists being the case
|
|
1282
|
+
* this was written for. Those render inside a *table cell* (`mt-table` builds
|
|
1283
|
+
* its entity cells through `mt-entity-preview`), where inline rows would own
|
|
1284
|
+
* the height of every row in the grid: three lines per checklist item, times
|
|
1285
|
+
* however many the phase gate has. The rows go in a drawer instead, and the
|
|
1286
|
+
* tooltip names them so "which ones are these?" is answered without opening
|
|
1287
|
+
* anything. A table cell publishes no runtime context, so it keeps this shape.
|
|
1163
1288
|
*
|
|
1164
|
-
*
|
|
1165
|
-
* configuration's `inlineFields` carries the only description of the columns.
|
|
1166
|
-
* There is no writable path here by design — calculated inline lists are
|
|
1167
|
-
* `access: Read` at the source.
|
|
1289
|
+
* There is no writable path in either case.
|
|
1168
1290
|
*/
|
|
1169
1291
|
declare class EntityListPreview {
|
|
1170
1292
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
@@ -1172,10 +1294,22 @@ declare class EntityListPreview {
|
|
|
1172
1294
|
* Restricts rendering to these nested field keys, in this order. Left empty,
|
|
1173
1295
|
* every field in `inlineFields` renders — what the generic table path wants;
|
|
1174
1296
|
* a host that knows the list narrows it here. Forwarded to the drawer.
|
|
1297
|
+
*
|
|
1298
|
+
* Applies to the drawer shape only: an inline table's columns come from the
|
|
1299
|
+
* backend's own projection, which already reflects the configured read
|
|
1300
|
+
* fields for this level.
|
|
1175
1301
|
*/
|
|
1176
1302
|
readonly fields: _angular_core.InputSignal<string[]>;
|
|
1177
1303
|
private readonly modal;
|
|
1178
1304
|
private readonly transloco;
|
|
1305
|
+
/**
|
|
1306
|
+
* Both optional, and both have to be present for the inline table: the
|
|
1307
|
+
* component says the host *can* render one, the context says it knows which
|
|
1308
|
+
* level-data row to scope the rows to. A host that provides neither — every
|
|
1309
|
+
* `mt-table` cell — keeps the drawer.
|
|
1310
|
+
*/
|
|
1311
|
+
private readonly tableComponent;
|
|
1312
|
+
private readonly runtimeContextStore;
|
|
1179
1313
|
/**
|
|
1180
1314
|
* Read inside every computed that translates. `transloco.translate()` is a
|
|
1181
1315
|
* one-shot read with no signal of its own, so without this dependency the
|
|
@@ -1188,6 +1322,28 @@ declare class EntityListPreview {
|
|
|
1188
1322
|
readonly rows: _angular_core.Signal<EntityListRenderedRow[]>;
|
|
1189
1323
|
readonly count: _angular_core.Signal<number>;
|
|
1190
1324
|
readonly hasRows: _angular_core.Signal<boolean>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Whether the list's rows are records of another module rather than values
|
|
1327
|
+
* held inside this one.
|
|
1328
|
+
*
|
|
1329
|
+
* Mirrors the backend's own `ResolveSourceType`: an explicit `sourceType`
|
|
1330
|
+
* wins, and a configuration written before that field existed is module-
|
|
1331
|
+
* backed exactly when it names a module. Read from the stored configuration
|
|
1332
|
+
* because it is the only description available before the metadata request —
|
|
1333
|
+
* the effective, level-overridden one comes back from that endpoint, and the
|
|
1334
|
+
* table component gates on it again.
|
|
1335
|
+
*/
|
|
1336
|
+
private readonly moduleBacked;
|
|
1337
|
+
/**
|
|
1338
|
+
* The inline table's component and inputs, or null when this instance
|
|
1339
|
+
* renders the drawer trigger instead.
|
|
1340
|
+
*
|
|
1341
|
+
* A `computed` rather than a template expression on purpose: the object is
|
|
1342
|
+
* re-created only when its inputs actually change, and `NgComponentOutlet`
|
|
1343
|
+
* re-applies inputs on identity change — a fresh object per change-detection
|
|
1344
|
+
* pass would re-write every input on every tick.
|
|
1345
|
+
*/
|
|
1346
|
+
protected readonly tableHost: _angular_core.Signal<EntityListTableHost | null>;
|
|
1191
1347
|
/**
|
|
1192
1348
|
* An empty list reads as the standard empty value, not as a sentence — this
|
|
1193
1349
|
* sits in a table cell, where a "no related items" line would be louder than
|
|
@@ -1205,6 +1361,13 @@ declare class EntityListPreview {
|
|
|
1205
1361
|
* the button's own wording when no row has a title to show.
|
|
1206
1362
|
*/
|
|
1207
1363
|
readonly tooltip: _angular_core.Signal<string>;
|
|
1364
|
+
/**
|
|
1365
|
+
* The untouched catalog configuration. `configuration` is read as a fallback
|
|
1366
|
+
* because the table merges its own display flags into that object when it
|
|
1367
|
+
* builds a cell, and a `LeafDetails` catalog entry is an array — neither is
|
|
1368
|
+
* an `EntityList` configuration, so both are rejected here.
|
|
1369
|
+
*/
|
|
1370
|
+
private readonly propertyConfiguration;
|
|
1208
1371
|
private viewLabel;
|
|
1209
1372
|
protected openDrawer(): void;
|
|
1210
1373
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityListPreview, never>;
|
|
@@ -1229,6 +1392,8 @@ declare class EntityListDrawer {
|
|
|
1229
1392
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1230
1393
|
/** Ordered allowlist of nested field keys; empty renders all of them. */
|
|
1231
1394
|
readonly fields: _angular_core.InputSignal<string[]>;
|
|
1395
|
+
/** A Local list's labels are `{ en, ar }` pairs; see `sharedActiveLang`. */
|
|
1396
|
+
private readonly activeLang;
|
|
1232
1397
|
readonly rows: _angular_core.Signal<EntityListRenderedRow[]>;
|
|
1233
1398
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityListDrawer, never>;
|
|
1234
1399
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityListDrawer, "mt-entity-list-drawer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1513,8 +1678,6 @@ declare class EntityPreview {
|
|
|
1513
1678
|
private readonly transloco;
|
|
1514
1679
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1515
1680
|
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
1516
|
-
/** Forwarded to the body; see `EntityPreviewBody.entityListContext`. */
|
|
1517
|
-
readonly entityListContext: _angular_core.InputSignal<EntityListPreviewContext | null>;
|
|
1518
1681
|
private readonly activeLang;
|
|
1519
1682
|
/**
|
|
1520
1683
|
* The admin-authored note for the active language, or `''` when the property
|
|
@@ -1526,7 +1689,7 @@ declare class EntityPreview {
|
|
|
1526
1689
|
readonly infoText: _angular_core.Signal<string>;
|
|
1527
1690
|
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
1528
1691
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
1529
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; };
|
|
1692
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1530
1693
|
}
|
|
1531
1694
|
|
|
1532
1695
|
/**
|
|
@@ -1538,28 +1701,8 @@ declare class EntityPreview {
|
|
|
1538
1701
|
declare class EntityPreviewBody {
|
|
1539
1702
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1540
1703
|
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
1541
|
-
/**
|
|
1542
|
-
* Runtime ids that opt an `EntityList` into its full read-only table instead
|
|
1543
|
-
* of the compact count-and-drawer. Null — the default, and what every table
|
|
1544
|
-
* cell passes — keeps the compact renderer.
|
|
1545
|
-
*/
|
|
1546
|
-
readonly entityListContext: _angular_core.InputSignal<EntityListPreviewContext | null>;
|
|
1547
|
-
private readonly tableComponent;
|
|
1548
|
-
/**
|
|
1549
|
-
* The expanded table, when this call site asked for one, a host registered a
|
|
1550
|
-
* component to render it, and the ids that component needs are present. The
|
|
1551
|
-
* property id addresses the metadata endpoint and the level scopes it, so
|
|
1552
|
-
* without either there is nothing to render and the compact view stands in.
|
|
1553
|
-
*/
|
|
1554
|
-
protected readonly entityListTable: _angular_core.Signal<Type<unknown> | null>;
|
|
1555
|
-
/**
|
|
1556
|
-
* Inputs for the registered table. `label` is deliberately blank: the
|
|
1557
|
-
* surrounding `mt-entity-field` already prints the property name, and the
|
|
1558
|
-
* field would otherwise print a second one in its own style.
|
|
1559
|
-
*/
|
|
1560
|
-
protected readonly entityListTableInputs: _angular_core.Signal<Record<string, unknown>>;
|
|
1561
1704
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
1562
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; };
|
|
1705
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1563
1706
|
}
|
|
1564
1707
|
|
|
1565
1708
|
declare class ComparisonValue {
|
|
@@ -1630,8 +1773,6 @@ declare class EntitiesPreview {
|
|
|
1630
1773
|
/** Array of entity data to display */
|
|
1631
1774
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
1632
1775
|
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
1633
|
-
/** Forwarded to every entity; see `EntityPreviewBody.entityListContext`. */
|
|
1634
|
-
readonly entityListContext: _angular_core.InputSignal<EntityListPreviewContext | null>;
|
|
1635
1776
|
/**
|
|
1636
1777
|
* Soft "stack every field full-width when the host is narrower than the
|
|
1637
1778
|
* 24-column grid reads well" behavior (the ≤400px container-query fallback,
|
|
@@ -1689,7 +1830,7 @@ declare class EntitiesPreview {
|
|
|
1689
1830
|
protected readonly slotGroups: _angular_core.Signal<EntitySlotGroup[]>;
|
|
1690
1831
|
protected onSlotClick(source: MouseEvent, slot: EntitySlot): void;
|
|
1691
1832
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesPreview, never>;
|
|
1692
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesPreview, "mt-entities-preview", never, { "entities": { "alias": "entities"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; "
|
|
1833
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesPreview, "mt-entities-preview", never, { "entities": { "alias": "entities"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; "stackOnNarrow": { "alias": "stackOnNarrow"; "required": false; "isSignal": true; }; "clickableKeys": { "alias": "clickableKeys"; "required": false; "isSignal": true; }; "activeKeys": { "alias": "activeKeys"; "required": false; "isSignal": true; }; "clickableTooltip": { "alias": "clickableTooltip"; "required": false; "isSignal": true; }; "activeTooltip": { "alias": "activeTooltip"; "required": false; "isSignal": true; }; }, { "entityClick": "entityClick"; }, never, never, true, never>;
|
|
1693
1834
|
}
|
|
1694
1835
|
|
|
1695
1836
|
/**
|
|
@@ -1809,5 +1950,5 @@ declare class FitText {
|
|
|
1809
1950
|
|
|
1810
1951
|
declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
|
|
1811
1952
|
|
|
1812
|
-
export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_LIST_TABLE_COMPONENT, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, readEntityValueColor, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, splitConnectionKey, splitLeafKey, summarizeEntityListRows };
|
|
1813
|
-
export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta,
|
|
1953
|
+
export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_LIST_TABLE_COMPONENT, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntityListLocalDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, readEntityValueColor, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
|
|
1954
|
+
export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRuntimeContext, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorMode, PercentageColorPropertyRef, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
@@ -42,6 +42,11 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
|
|
|
42
42
|
readonly filter: _angular_core.InputSignal<boolean | undefined>;
|
|
43
43
|
readonly filterBy: _angular_core.InputSignal<string | undefined>;
|
|
44
44
|
readonly dataKey: _angular_core.InputSignal<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Clear button. Left unset it follows {@link isRequiredField}: an optional
|
|
47
|
+
* select has to be able to go back to empty, a required one has nothing to
|
|
48
|
+
* clear to. Pass an explicit `true` / `false` to override that.
|
|
49
|
+
*/
|
|
45
50
|
readonly showClear: _angular_core.InputSignal<boolean | undefined>;
|
|
46
51
|
readonly clearAfterSelect: _angular_core.InputSignal<boolean | undefined>;
|
|
47
52
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
@@ -91,6 +96,15 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
|
|
|
91
96
|
registerOnTouched(fn: any): void;
|
|
92
97
|
setDisabledState(disabled: boolean): void;
|
|
93
98
|
isGrouped(): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Required through the input or through a `Validators.required` on the bound
|
|
101
|
+
* control — DynamicForm and hand-written reactive forms take the second route.
|
|
102
|
+
* A method, not a computed: validators are mutable and carry no signal, so
|
|
103
|
+
* only re-reading them per change detection keeps this truthful.
|
|
104
|
+
*/
|
|
105
|
+
isRequiredField(): boolean;
|
|
106
|
+
/** Explicit `showClear` wins; otherwise every optional select is clearable. */
|
|
107
|
+
isClearable(): boolean;
|
|
94
108
|
clearSelection(): void;
|
|
95
109
|
getOptionLabelValue(option: any): string;
|
|
96
110
|
/**
|
|
@@ -342,7 +342,8 @@ declare class SelectFieldConfig extends BaseFieldConfig {
|
|
|
342
342
|
filter: boolean;
|
|
343
343
|
filterBy: string;
|
|
344
344
|
filterPlaceholder: string;
|
|
345
|
-
|
|
345
|
+
/** Unset lets mt-select-field decide: clearable unless the field is required. */
|
|
346
|
+
showClear?: boolean;
|
|
346
347
|
emptyMessage: string;
|
|
347
348
|
size: string;
|
|
348
349
|
hasPlaceholderPrefix: boolean;
|
|
@@ -1273,6 +1274,30 @@ declare function formatClockTime(parts: ClockTimeParts): string;
|
|
|
1273
1274
|
/** Seconds since midnight — the comparable form of a wall-clock time. */
|
|
1274
1275
|
declare function clockTimeToSeconds(parts: ClockTimeParts): number;
|
|
1275
1276
|
|
|
1277
|
+
/**
|
|
1278
|
+
* Helpers for `Checkbox` property values — a boolean the backend stores and
|
|
1279
|
+
* returns as **text**.
|
|
1280
|
+
*
|
|
1281
|
+
* A property value is persisted as a string, and the render pipeline formats a
|
|
1282
|
+
* checkbox as the literal `"True"` / `"False"` (`PropertyRenderingService`), so
|
|
1283
|
+
* a loaded checkbox arrives as `'True'`, not `true`. `mt-toggle-field` hands
|
|
1284
|
+
* whatever it is given straight to `p-toggleswitch`, which decides "checked" by
|
|
1285
|
+
* `modelValue === trueValue` — a strict comparison a string can never win. The
|
|
1286
|
+
* result is a checked record whose edit form renders every toggle off, and a
|
|
1287
|
+
* silent flip to `false` the moment the user saves without touching it.
|
|
1288
|
+
*
|
|
1289
|
+
* The truth set mirrors the backend's own `string.ToBool()`, which accepts
|
|
1290
|
+
* `1` / `true` / `yes` / `ok` case-insensitively.
|
|
1291
|
+
*/
|
|
1292
|
+
/**
|
|
1293
|
+
* Coerce a stored checkbox value to a real boolean.
|
|
1294
|
+
*
|
|
1295
|
+
* Returns `null` for a value that was never set (`null`, `undefined`, blank
|
|
1296
|
+
* text) rather than `false`, so an untouched checkbox stays "empty" for the
|
|
1297
|
+
* callers that decide whether a field carries anything to submit.
|
|
1298
|
+
*/
|
|
1299
|
+
declare function coerceCheckboxValue(value: unknown): boolean | null;
|
|
1300
|
+
|
|
1276
1301
|
type MTDateFormatType = 'date' | 'dateTime' | 'time';
|
|
1277
1302
|
declare class MTDateFormatPipe implements PipeTransform {
|
|
1278
1303
|
private readonly locale;
|
|
@@ -1282,5 +1307,5 @@ declare class MTDateFormatPipe implements PipeTransform {
|
|
|
1282
1307
|
static ɵpipe: i0.ɵɵPipeDeclaration<MTDateFormatPipe, "mtDateFormat", true>;
|
|
1283
1308
|
}
|
|
1284
1309
|
|
|
1285
|
-
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DS_BLUE, DS_CHART_SERIES, DS_CONTROL_HEIGHT, DS_DEFAULT_PRIMARY_COLOR, DS_ERROR, DS_FONT_FAMILY, DS_GRAY, DS_INDIGO, DS_RADIUS, DS_SEMANTIC, DS_SHADOW, DS_SUCCESS, DS_WARNING, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MT_DESIGN_IDENTITY_CLASS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, READABLE_DARK_INK, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, WCAG_AA_NORMAL_TEXT, applyDesignIdentityClass, changeBackgroundColor, changePrimaryColor, changeTextColor, clockTimeToSeconds, contrastRatio, createCustomValidator, createEntityAdapter, dsChartSeries, dsIdentityConfigs, endLoading, formatClockTime, generateTailwindPalette, getContrastColor, getLightColor, getMTDesignIdentity, handleApiRequest, isInvalid, newFieldId, parseClockTime, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, readableTextOn, relativeLuminance, setLoadingError, setMTDesignIdentity, startLoading, toAngularDateFormat, toClockTimeParts, wrapValidatorWithMessage };
|
|
1310
|
+
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DS_BLUE, DS_CHART_SERIES, DS_CONTROL_HEIGHT, DS_DEFAULT_PRIMARY_COLOR, DS_ERROR, DS_FONT_FAMILY, DS_GRAY, DS_INDIGO, DS_RADIUS, DS_SEMANTIC, DS_SHADOW, DS_SUCCESS, DS_WARNING, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MT_DESIGN_IDENTITY_CLASS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, READABLE_DARK_INK, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, WCAG_AA_NORMAL_TEXT, applyDesignIdentityClass, changeBackgroundColor, changePrimaryColor, changeTextColor, clockTimeToSeconds, coerceCheckboxValue, contrastRatio, createCustomValidator, createEntityAdapter, dsChartSeries, dsIdentityConfigs, endLoading, formatClockTime, generateTailwindPalette, getContrastColor, getLightColor, getMTDesignIdentity, handleApiRequest, isInvalid, newFieldId, parseClockTime, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, readableTextOn, relativeLuminance, setLoadingError, setMTDesignIdentity, startLoading, toAngularDateFormat, toClockTimeParts, wrapValidatorWithMessage };
|
|
1286
1311
|
export type { ApiRequestConfig, BaseFieldConstructorConfig, ClockTimeParts, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DSColorScale, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupCheckListPropertyConfig, LookupMatrixCellConfig, LookupModuleCheckListFieldRuntimeContext, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTDesignIdentity, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SchemaConnectionFieldRuntimeContext, SectionConfig, ValidatorType };
|