@masterteam/components 0.0.333 → 0.0.334
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/fesm2022/masterteam-components-client-page.mjs +10 -4
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +112 -112
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +8 -3
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +4 -4
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +2 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs +2 -2
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs +11 -3
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +3 -662
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-client-page.d.ts +7 -2
- package/types/masterteam-components-entities.d.ts +8 -5
- package/types/masterteam-components-tooltip.d.ts +1 -0
- package/types/masterteam-components.d.ts +2 -174
- package/assets/ds-components/button.css +0 -385
- package/assets/ds-components/content-switcher.css +0 -124
- package/assets/ds-components/feedback.css +0 -220
- package/assets/ds-components/field.css +0 -526
- package/assets/ds-components/misc.css +0 -252
- package/assets/ds-components/overlay.css +0 -268
- package/assets/ds-components/pagination.css +0 -140
- package/assets/ds-components/selection-controls.css +0 -245
- package/assets/ds-components/surfaces.css +0 -173
- package/assets/ds-components/table.css +0 -142
- package/assets/ds-components/tabs.css +0 -331
- package/assets/ds-identity.css +0 -275
- package/assets/fonts/IBMPlexSansArabic-400-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-400-latin.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-500-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-500-latin.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-600-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-600-latin.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-700-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-700-latin.woff2 +0 -0
- package/assets/ibm-plex-sans-arabic.css +0 -100
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
3
|
import { ClientPageMenuItem } from '@masterteam/components/client-page-menu';
|
|
4
|
+
import { MTIcon } from '@masterteam/icons';
|
|
4
5
|
|
|
5
6
|
declare class ClientPage implements OnDestroy {
|
|
6
7
|
private readonly platformId;
|
|
@@ -15,6 +16,7 @@ declare class ClientPage implements OnDestroy {
|
|
|
15
16
|
readonly isRtl: _angular_core.Signal<boolean>;
|
|
16
17
|
/** Icon for the left sidebar header */
|
|
17
18
|
readonly menuIcon: _angular_core.InputSignal<string | undefined>;
|
|
19
|
+
protected readonly sidebarIcon: _angular_core.Signal<MTIcon | undefined>;
|
|
18
20
|
/** Title for the left sidebar header */
|
|
19
21
|
readonly menuTitle: _angular_core.InputSignal<string | undefined>;
|
|
20
22
|
/** List of menu items for the left sidebar */
|
|
@@ -27,6 +29,8 @@ declare class ClientPage implements OnDestroy {
|
|
|
27
29
|
readonly activeItem: _angular_core.InputSignal<string | undefined>;
|
|
28
30
|
/** Whether the sidebar menu is collapsed (two-way bindable) */
|
|
29
31
|
readonly collapsed: _angular_core.ModelSignal<boolean>;
|
|
32
|
+
/** Allows the item-count heuristic; disable when the host owns collapse state. */
|
|
33
|
+
readonly autoCollapse: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
34
|
/** Enables desktop sidebar resizing from the divider */
|
|
31
35
|
readonly resizable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
32
36
|
/**
|
|
@@ -63,6 +67,7 @@ declare class ClientPage implements OnDestroy {
|
|
|
63
67
|
* identical to `selectedItem` and its real `subtitle` description shows as-is.
|
|
64
68
|
*/
|
|
65
69
|
readonly headerItem: _angular_core.Signal<ClientPageMenuItem | null>;
|
|
70
|
+
protected readonly headerIcon: _angular_core.Signal<MTIcon | undefined>;
|
|
66
71
|
/** Whether the initial default selection has been emitted */
|
|
67
72
|
private initialEmitted;
|
|
68
73
|
/** Whether the sidebar area is being hovered */
|
|
@@ -84,7 +89,7 @@ declare class ClientPage implements OnDestroy {
|
|
|
84
89
|
/** Whether the current state allows divider dragging */
|
|
85
90
|
readonly canResize: _angular_core.Signal<boolean>;
|
|
86
91
|
/** Icon for the collapse toggle button */
|
|
87
|
-
readonly toggleIcon: _angular_core.Signal<"arrow.chevron-
|
|
92
|
+
readonly toggleIcon: _angular_core.Signal<"arrow.chevron-down" | "arrow.chevron-left" | "arrow.chevron-right" | "arrow.chevron-up">;
|
|
88
93
|
/** Accessible label for the toggle button */
|
|
89
94
|
readonly toggleAriaLabel: _angular_core.Signal<string>;
|
|
90
95
|
constructor();
|
|
@@ -111,7 +116,7 @@ declare class ClientPage implements OnDestroy {
|
|
|
111
116
|
private readPersistedState;
|
|
112
117
|
private writePersistedState;
|
|
113
118
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientPage, never>;
|
|
114
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientPage, "mt-client-page", never, { "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "menuTitle": { "alias": "menuTitle"; "required": false; "isSignal": true; }; "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "menuItemsLoading": { "alias": "menuItemsLoading"; "required": false; "isSignal": true; }; "showExpandIcon": { "alias": "showExpandIcon"; "required": false; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "minSidebarWidth": { "alias": "minSidebarWidth"; "required": false; "isSignal": true; }; "maxSidebarWidth": { "alias": "maxSidebarWidth"; "required": false; "isSignal": true; }; "defaultSidebarWidth": { "alias": "defaultSidebarWidth"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "menuItemClick": "menuItemClick"; "loadChildren": "loadChildren"; }, ["headerEnd"], ["*"], true, never>;
|
|
119
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientPage, "mt-client-page", never, { "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "menuTitle": { "alias": "menuTitle"; "required": false; "isSignal": true; }; "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "menuItemsLoading": { "alias": "menuItemsLoading"; "required": false; "isSignal": true; }; "showExpandIcon": { "alias": "showExpandIcon"; "required": false; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "autoCollapse": { "alias": "autoCollapse"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "minSidebarWidth": { "alias": "minSidebarWidth"; "required": false; "isSignal": true; }; "maxSidebarWidth": { "alias": "maxSidebarWidth"; "required": false; "isSignal": true; }; "defaultSidebarWidth": { "alias": "defaultSidebarWidth"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "menuItemClick": "menuItemClick"; "loadChildren": "loadChildren"; }, ["headerEnd"], ["*"], true, never>;
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
export { ClientPage };
|
|
@@ -964,7 +964,10 @@ declare class EntityText {
|
|
|
964
964
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
965
965
|
readonly value: _angular_core.InputSignal<string | undefined>;
|
|
966
966
|
readonly displayName: _angular_core.Signal<string>;
|
|
967
|
+
protected readonly hideLabel: _angular_core.Signal<boolean>;
|
|
968
|
+
protected readonly alignEnd: _angular_core.Signal<boolean>;
|
|
967
969
|
readonly displayValue: _angular_core.Signal<string>;
|
|
970
|
+
protected readonly hasMarkup: _angular_core.Signal<boolean>;
|
|
968
971
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityText, never>;
|
|
969
972
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityText, "mt-entity-text", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
970
973
|
}
|
|
@@ -1378,7 +1381,7 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
1378
1381
|
declare class EntityAttachment {
|
|
1379
1382
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
1380
1383
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
1381
|
-
readonly shape: _angular_core.InputSignal<"
|
|
1384
|
+
readonly shape: _angular_core.InputSignal<"default" | "compact">;
|
|
1382
1385
|
readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
|
|
1383
1386
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
1384
1387
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
@@ -2053,7 +2056,7 @@ declare class EntityHeader {
|
|
|
2053
2056
|
declare class EntityPreview {
|
|
2054
2057
|
private readonly transloco;
|
|
2055
2058
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
2056
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
2059
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
2057
2060
|
private readonly activeLang;
|
|
2058
2061
|
/**
|
|
2059
2062
|
* The admin-authored note for the active language, or `''` when the property
|
|
@@ -2063,7 +2066,7 @@ declare class EntityPreview {
|
|
|
2063
2066
|
* `mt-entity-preview` usages in the app.
|
|
2064
2067
|
*/
|
|
2065
2068
|
readonly infoText: _angular_core.Signal<string>;
|
|
2066
|
-
readonly comparisonKind: _angular_core.Signal<"
|
|
2069
|
+
readonly comparisonKind: _angular_core.Signal<"EntityList" | "Value" | null>;
|
|
2067
2070
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
2068
2071
|
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>;
|
|
2069
2072
|
}
|
|
@@ -2076,7 +2079,7 @@ declare class EntityPreview {
|
|
|
2076
2079
|
*/
|
|
2077
2080
|
declare class EntityPreviewBody {
|
|
2078
2081
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
2079
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
2082
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
2080
2083
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
2081
2084
|
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>;
|
|
2082
2085
|
}
|
|
@@ -2150,7 +2153,7 @@ declare class EntitiesPreview {
|
|
|
2150
2153
|
private readonly transloco;
|
|
2151
2154
|
/** Array of entity data to display */
|
|
2152
2155
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
2153
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
2156
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
2154
2157
|
/**
|
|
2155
2158
|
* Soft "stack every field full-width when the host is narrower than the
|
|
2156
2159
|
* 24-column grid reads well" behavior (the ≤400px container-query fallback,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EnvironmentProviders, InjectionToken, Signal, PipeTransform } from '@angular/core';
|
|
3
|
-
import { Preset } from '@primeuix/themes/types';
|
|
4
|
-
import { AuraBaseDesignTokens } from '@primeuix/themes/aura/base';
|
|
5
3
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
6
4
|
import { HttpContext, HttpContextToken } from '@angular/common/http';
|
|
7
5
|
import { AbstractControl, ValidatorFn } from '@angular/forms';
|
|
@@ -9,186 +7,16 @@ import * as _masterteam_components from '@masterteam/components';
|
|
|
9
7
|
import { StateContext } from '@ngxs/store';
|
|
10
8
|
import { Observable } from 'rxjs';
|
|
11
9
|
|
|
12
|
-
/**
|
|
13
|
-
* Masterteam Design System — experimental identity, expressed as a PrimeUIX
|
|
14
|
-
* preset.
|
|
15
|
-
*
|
|
16
|
-
* Every `mt-*` component is a thin wrapper over a PrimeNG component, so the
|
|
17
|
-
* identity is applied here rather than in 200 component stylesheets: retune the
|
|
18
|
-
* preset and buttons, fields, tables, overlays, tabs and toasts all move
|
|
19
|
-
* together. Only the handful of things a design token cannot express — the
|
|
20
|
-
* font, the double focus ring, the animated input underline — live in
|
|
21
|
-
* `assets/ds-identity.css`.
|
|
22
|
-
*
|
|
23
|
-
* This preset is *additive*: it is merged over the classic MT configuration, so
|
|
24
|
-
* anything it does not mention keeps its current behaviour.
|
|
25
|
-
*/
|
|
26
|
-
type MTDesignIdentity = 'classic' | 'experimental';
|
|
27
|
-
/** Root class that gates the CSS half of the identity. */
|
|
28
|
-
declare const MT_DESIGN_IDENTITY_CLASS = "mt-ds";
|
|
29
|
-
/** DS primary button background. Used when the host does not brand the app. */
|
|
30
|
-
declare const DS_DEFAULT_PRIMARY_COLOR: string;
|
|
31
|
-
/**
|
|
32
|
-
* The DS identity as a partial preset.
|
|
33
|
-
*
|
|
34
|
-
* @param primaryColor Optional brand override. Tenants that white-label the
|
|
35
|
-
* product still need their own colour; when omitted the DS blue is used.
|
|
36
|
-
* Note the DS itself treats the blue as fixed — an override is a deliberate
|
|
37
|
-
* deviation, not a supported DS variant.
|
|
38
|
-
*/
|
|
39
|
-
declare function dsIdentityConfigs(primaryColor?: string): Preset<AuraBaseDesignTokens>;
|
|
40
|
-
/** The DS chart ramp, for hosts that render charts outside PrimeNG. */
|
|
41
|
-
declare const dsChartSeries: readonly string[];
|
|
42
|
-
/**
|
|
43
|
-
* Adds or removes the root class that activates the CSS half of the identity.
|
|
44
|
-
* No-ops outside the browser so SSR builds stay safe.
|
|
45
|
-
*/
|
|
46
|
-
declare function applyDesignIdentityClass(identity: MTDesignIdentity): void;
|
|
47
|
-
|
|
48
10
|
interface MTThemeOptions {
|
|
49
11
|
primaryColor?: string;
|
|
50
12
|
textColor?: string;
|
|
51
13
|
backgroundColor?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Which visual identity to render.
|
|
54
|
-
*
|
|
55
|
-
* - `'classic'` (default) — the shipped MT look. Unchanged.
|
|
56
|
-
* - `'experimental'` — the Masterteam Design System identity (IBM Plex Sans
|
|
57
|
-
* Arabic, DS blue, 4px control radius, DS elevation and focus ring).
|
|
58
|
-
* Opt-in while the DS is being evaluated; see
|
|
59
|
-
* `.claude/skills/mt-design-identity/SKILL.md`.
|
|
60
|
-
*/
|
|
61
|
-
designIdentity?: MTDesignIdentity;
|
|
62
14
|
}
|
|
63
|
-
declare function getMTDesignIdentity(): MTDesignIdentity;
|
|
64
15
|
declare function changePrimaryColor(color: string): void;
|
|
65
16
|
declare function changeBackgroundColor(color?: string): void;
|
|
66
17
|
declare function changeTextColor(color: string): void;
|
|
67
|
-
/**
|
|
68
|
-
* Switches identity at runtime — for the showcase toggle and for side-by-side
|
|
69
|
-
* review. Replaces the active preset outright (rather than merging into it, as
|
|
70
|
-
* `updatePreset` would) so switching back to classic is lossless.
|
|
71
|
-
*/
|
|
72
|
-
declare function setMTDesignIdentity(identity: MTDesignIdentity, themeOptions?: Omit<MTThemeOptions, 'designIdentity'>): void;
|
|
73
18
|
declare function provideMTComponents(themeOptions?: MTThemeOptions): EnvironmentProviders;
|
|
74
19
|
|
|
75
|
-
/**
|
|
76
|
-
* Masterteam Design System — raw palettes and scales.
|
|
77
|
-
*
|
|
78
|
-
* Transcribed from the DS Storybook foundations (Figma
|
|
79
|
-
* `WTmRAkJVvw0IvZMA7wBdTC`). These are primitives: they name colours, not
|
|
80
|
-
* roles. The mapping from primitive to role lives in `ds-identity.preset.ts`.
|
|
81
|
-
*
|
|
82
|
-
* Adding a value here without a corresponding Figma variable is how a design
|
|
83
|
-
* system drifts — extend the Figma file first, then mirror it.
|
|
84
|
-
*/
|
|
85
|
-
interface DSColorScale {
|
|
86
|
-
readonly 25: string;
|
|
87
|
-
readonly 50: string;
|
|
88
|
-
readonly 100: string;
|
|
89
|
-
readonly 200: string;
|
|
90
|
-
readonly 300: string;
|
|
91
|
-
readonly 400: string;
|
|
92
|
-
readonly 500: string;
|
|
93
|
-
readonly 600: string;
|
|
94
|
-
readonly 700: string;
|
|
95
|
-
readonly 800: string;
|
|
96
|
-
readonly 900: string;
|
|
97
|
-
readonly 950: string;
|
|
98
|
-
}
|
|
99
|
-
/** Primary blue. 800 is the primary button background. */
|
|
100
|
-
declare const DS_BLUE: DSColorScale;
|
|
101
|
-
/** Secondary indigo — accents, tags, selected states. */
|
|
102
|
-
declare const DS_INDIGO: DSColorScale;
|
|
103
|
-
declare const DS_SUCCESS: DSColorScale;
|
|
104
|
-
declare const DS_WARNING: DSColorScale;
|
|
105
|
-
declare const DS_ERROR: DSColorScale;
|
|
106
|
-
/** Neutral scale. Note it stops at 900 in Figma; 0/25/950 are extrapolated
|
|
107
|
-
* because PrimeUIX requires a full 0–950 surface ramp. */
|
|
108
|
-
declare const DS_GRAY: {
|
|
109
|
-
readonly 0: "#FFFFFF";
|
|
110
|
-
readonly 25: "#FCFCFD";
|
|
111
|
-
readonly 50: "#F9FAFB";
|
|
112
|
-
readonly 100: "#F3F4F6";
|
|
113
|
-
readonly 200: "#E5E7EB";
|
|
114
|
-
readonly 300: "#D1D5DB";
|
|
115
|
-
readonly 400: "#9CA3AF";
|
|
116
|
-
readonly 500: "#6B7280";
|
|
117
|
-
readonly 600: "#4B5563";
|
|
118
|
-
readonly 700: "#374151";
|
|
119
|
-
readonly 800: "#1F2937";
|
|
120
|
-
readonly 900: "#111827";
|
|
121
|
-
readonly 950: "#0A0F1C";
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Semantic values that are not part of a ramp. Each one is a named Figma
|
|
125
|
-
* variable in its own right.
|
|
126
|
-
*/
|
|
127
|
-
declare const DS_SEMANTIC: {
|
|
128
|
-
/** Default body / label text. Deliberately navy-black, not gray-900. */
|
|
129
|
-
readonly textStrong: "#000B36";
|
|
130
|
-
readonly textSecondary: "#3C5073";
|
|
131
|
-
readonly textPlaceholder: "#B6BDCA";
|
|
132
|
-
readonly textHelper: "#384250";
|
|
133
|
-
readonly surface: "#FFFFFF";
|
|
134
|
-
readonly border: "#E5E7EB";
|
|
135
|
-
/** Disabled is a colour swap, never an opacity fade. */
|
|
136
|
-
readonly disabledBg: "#D2D6DB";
|
|
137
|
-
readonly disabledText: "#6C7C96";
|
|
138
|
-
readonly inputBorder: "#D2D6DB";
|
|
139
|
-
readonly inputBorderHover: "#1F2A37";
|
|
140
|
-
readonly inputBorderReadonly: "#CED3DC";
|
|
141
|
-
readonly inputBgPressed: "#F3F4F6";
|
|
142
|
-
/** Destructive red. Distinct from the error ramp — this is the button colour. */
|
|
143
|
-
readonly danger: "#A30000";
|
|
144
|
-
readonly dangerSecondaryBg: "#FCDAD7";
|
|
145
|
-
readonly dangerSecondaryBgHover: "#F8BAB5";
|
|
146
|
-
readonly dangerSecondaryBgPressed: "#F3908A";
|
|
147
|
-
/** Tinted secondary button, expressed as primary-at-opacity. */
|
|
148
|
-
readonly secondaryBg: "rgba(24, 73, 169, 0.2)";
|
|
149
|
-
readonly secondaryBgHover: "rgba(24, 73, 169, 0.1)";
|
|
150
|
-
readonly focusRing: "#1849A9";
|
|
151
|
-
readonly focusOutline: "#FFFFFF";
|
|
152
|
-
readonly tooltipBg: "#1A2236";
|
|
153
|
-
};
|
|
154
|
-
/** Figma effect styles. Never invent a shadow outside this set. */
|
|
155
|
-
declare const DS_SHADOW: {
|
|
156
|
-
readonly xs: "0 1px 2px 0 rgba(16, 24, 40, 0.05)";
|
|
157
|
-
readonly sm: "0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06)";
|
|
158
|
-
readonly md: "0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06)";
|
|
159
|
-
readonly lg: "0 12px 16px -6px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03)";
|
|
160
|
-
readonly xl: "0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03)";
|
|
161
|
-
readonly '2xl': "0 24px 48px -12px rgba(16, 24, 40, 0.18)";
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Radius scale. The DS names differ from the PrimeUIX names by one step —
|
|
165
|
-
* DS `radius-sm` (4px, the default for buttons and inputs) lands on PrimeUIX
|
|
166
|
-
* `md`, because that is the key PrimeNG components reference. Mapping them
|
|
167
|
-
* here keeps the shift in one place instead of spreading it across overrides.
|
|
168
|
-
*/
|
|
169
|
-
declare const DS_RADIUS: {
|
|
170
|
-
readonly none: "0";
|
|
171
|
-
/** DS radius-xs — code badges, small tags */
|
|
172
|
-
readonly xs: "2px";
|
|
173
|
-
/** DS radius-xs..sm boundary */
|
|
174
|
-
readonly sm: "4px";
|
|
175
|
-
/** DS radius-sm — buttons, inputs, dropdowns (PrimeNG's default reference) */
|
|
176
|
-
readonly md: "4px";
|
|
177
|
-
/** DS radius-md — cards, tooltips, popovers */
|
|
178
|
-
readonly lg: "8px";
|
|
179
|
-
/** DS radius-lg — modals, drawers */
|
|
180
|
-
readonly xl: "16px";
|
|
181
|
-
};
|
|
182
|
-
/** Control heights, in px, from the Figma button spacing frame. */
|
|
183
|
-
declare const DS_CONTROL_HEIGHT: {
|
|
184
|
-
readonly sm: 24;
|
|
185
|
-
readonly md: 32;
|
|
186
|
-
readonly lg: 40;
|
|
187
|
-
};
|
|
188
|
-
declare const DS_FONT_FAMILY = "'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif";
|
|
189
|
-
/** Ordered chart series. Six is the hard maximum. */
|
|
190
|
-
declare const DS_CHART_SERIES: readonly ["#1849A9", "#175CD3", "#2E90FA", "#53B1FD", "#B2DDFF", "#D1E9FF"];
|
|
191
|
-
|
|
192
20
|
declare function provideMTMessages(): typeof MessageService;
|
|
193
21
|
|
|
194
22
|
declare function provideMTConfirmation(): typeof ConfirmationService;
|
|
@@ -1367,5 +1195,5 @@ declare class MTDateFormatPipe implements PipeTransform {
|
|
|
1367
1195
|
static ɵpipe: i0.ɵɵPipeDeclaration<MTDateFormatPipe, "mtDateFormat", true>;
|
|
1368
1196
|
}
|
|
1369
1197
|
|
|
1370
|
-
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS,
|
|
1371
|
-
export type { ApiRequestConfig, BaseFieldConstructorConfig, ClockTimeParts, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig,
|
|
1198
|
+
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, 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, changeBackgroundColor, changePrimaryColor, changeTextColor, clockTimeToSeconds, coerceCheckboxValue, contrastRatio, createCustomValidator, createEntityAdapter, endLoading, formatClockTime, generateTailwindPalette, getContrastColor, getLightColor, handleApiRequest, isInvalid, newFieldId, parseClockTime, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, readableTextOn, relativeLuminance, setLoadingError, startLoading, toAngularDateFormat, toClockTimeParts, wrapValidatorWithMessage };
|
|
1199
|
+
export type { ApiRequestConfig, BaseFieldConstructorConfig, ClockTimeParts, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldOptionsFilterConfig, FieldOptionsFilterState, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupCheckListPropertyConfig, LookupMatrixCellConfig, LookupModuleCheckListFieldRuntimeContext, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SchemaConnectionFieldRuntimeContext, SectionConfig, ValidatorType };
|