@masterteam/client-components 0.0.113 → 0.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +206 -0
- package/assets/client-components.css +1 -1
- package/fesm2022/masterteam-client-components-client-list.mjs +143 -3
- package/fesm2022/masterteam-client-components-client-list.mjs.map +1 -1
- package/fesm2022/masterteam-client-components-studio.mjs +2882 -0
- package/fesm2022/masterteam-client-components-studio.mjs.map +1 -0
- package/package.json +9 -5
- package/types/masterteam-client-components-client-list.d.ts +36 -1
- package/types/masterteam-client-components-studio.d.ts +232 -0
package/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# @masterteam/client-components
|
|
2
|
+
|
|
3
|
+
Runtime client surfaces shared by the products (pplus, splus, diwan). Every
|
|
4
|
+
surface is a secondary entry; the main entry (`@masterteam/client-components`)
|
|
5
|
+
is empty and must stay that way, so a host that imports one surface never pays
|
|
6
|
+
for another.
|
|
7
|
+
|
|
8
|
+
| Entry | What it is |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| `@masterteam/client-components/client-list` | `mt-client-list`: form tables, cards and informative dashboards for an opaque `contextKey` |
|
|
11
|
+
| `@masterteam/client-components/client-instance-preview` | `mt-client-instance-preview`: one record's preview card |
|
|
12
|
+
| `@masterteam/client-components/escalation-runtime` | escalation dialogs and history |
|
|
13
|
+
| `@masterteam/client-components/studio` | `mt-client-studio`: Studio (records, record workspace, analysis, comparison, export) |
|
|
14
|
+
|
|
15
|
+
All of them call the backend with relative URLs through `HttpClient`; the
|
|
16
|
+
host's HTTP interceptor adds the base URL, auth and language headers.
|
|
17
|
+
|
|
18
|
+
## Studio — `mt-client-studio`
|
|
19
|
+
|
|
20
|
+
Studio is one page with no navigation:
|
|
21
|
+
|
|
22
|
+
- a records grid (`mt-standard-grid`, no pager) whose detail row is the
|
|
23
|
+
record's **workspace**: underline tabs for the workspace groups and modules,
|
|
24
|
+
with the active module's grid below;
|
|
25
|
+
- module grids are paged on the client at 50 rows;
|
|
26
|
+
- connected child schemas are delivered but hidden by default
|
|
27
|
+
(`options.showConnections`);
|
|
28
|
+
- row checkboxes or a cell range across records open the **comparison**
|
|
29
|
+
dialog (properties in rows, one column per record, no pager);
|
|
30
|
+
- module summaries as extra record columns, a cross-record module analysis,
|
|
31
|
+
and a combined Excel export (record, level, descendants);
|
|
32
|
+
- every grid keeps its view (columns, sort, filters, groups) per user through
|
|
33
|
+
`MtTablePreferences` (roles `studio-records`, `studio-module`,
|
|
34
|
+
`studio-cross-record`, `studio-connected-level`), and its charts through the
|
|
35
|
+
standard grid's chart persistence (see *Charts* below).
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import { ClientStudio } from '@masterteam/client-components/studio';
|
|
39
|
+
|
|
40
|
+
@Component({
|
|
41
|
+
imports: [ClientStudio],
|
|
42
|
+
template: `<mt-client-studio
|
|
43
|
+
[context]="'Level:' + levelId()"
|
|
44
|
+
(loaded)="ready()"
|
|
45
|
+
(errored)="failed($event.message)" />`,
|
|
46
|
+
})
|
|
47
|
+
export default class LevelStudioPage { … }
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Inputs and outputs
|
|
51
|
+
|
|
52
|
+
| Member | Type | Notes |
|
|
53
|
+
| --- | --- | --- |
|
|
54
|
+
| `context` (required) | `ClientStudioContext \| string` | A string is shorthand for `{ contextKey }`. |
|
|
55
|
+
| `options` | `ClientStudioOptions` | `showConnections` (default `false`), `title` (grid label, chart context and export name; defaults to the schema name), `chartStore` (`'server'`, the default, or `'local'`; see *Charts*), `recordOpen` (default `false`; see *Host events*). |
|
|
56
|
+
| `height` | `number \| 'fill'` | `'fill'` (default) fills the window below the Studio's top, minus 24px, at least 400px, and follows resizes. |
|
|
57
|
+
| `loaded` | `void` | The first records load of a context finished. A new context (key, filters, schema or `key`) announces again. |
|
|
58
|
+
| `errored` | `{ message }` | The catalog or the records failed; `message` is the text the section shows ("Unable to load this section."). |
|
|
59
|
+
| `recordOpen` | `ClientStudioRecordOpen` | The user chose **Open record** on a row. Only offered while `options.recordOpen` is `true`; see *Host events*. |
|
|
60
|
+
| `dataLoaded` | `ClientStudioDataLoaded` | The root records load finished; see *Host events*. |
|
|
61
|
+
|
|
62
|
+
### Host events
|
|
63
|
+
|
|
64
|
+
Both outputs are opt-in and additive: a host that ignores them sees no change.
|
|
65
|
+
|
|
66
|
+
**`recordOpen`.** With `options: { recordOpen: true }` every grid (root,
|
|
67
|
+
module and connected-level rows) gets an **Open record** item in its row
|
|
68
|
+
context menu. It leads the menu, above the clipboard, export and chart items
|
|
69
|
+
(through `mt-standard-grid`'s `rowMenuLeadItems`); Compare stays at the end.
|
|
70
|
+
Choosing it emits `{ recordId, schemaId, name, owner }`. `name` is the title the
|
|
71
|
+
grid shows: the record's name, or for a module row (whose record usually has
|
|
72
|
+
no name) the value of the module's `Name` property; empty only when neither
|
|
73
|
+
exists. A plain click still only expands the
|
|
74
|
+
detail row; opening is the host's decision (navigate, drawer, …). The host
|
|
75
|
+
tells the rows apart like this:
|
|
76
|
+
|
|
77
|
+
| Row | `schemaId` | `owner` |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| Root record | the Studio's schema | `null` |
|
|
80
|
+
| Connected-level record | the connected schema | `null` |
|
|
81
|
+
| Module row | the owning record's schema | the owning record (`recordId`, `levelId`, `moduleId`, `contextKey`); `recordId` is the module row's own id |
|
|
82
|
+
|
|
83
|
+
**`dataLoaded`.** Emitted for each completed **root** records load (the first
|
|
84
|
+
load, a reload, a context or `key` change, a changed locale or column set;
|
|
85
|
+
cache hits do not repeat it). Module, connected-level and cross-record reads
|
|
86
|
+
never emit. The payload is a pass-through of what the root `fetch/query`
|
|
87
|
+
returned, so Studio stays free of any one schema's semantics:
|
|
88
|
+
|
|
89
|
+
- `schemas`: the first page's `schemas`, as received. A KPI schema carries
|
|
90
|
+
`statuses` and `updateStatuses` with their counts; a schema without status
|
|
91
|
+
tracking has neither key. Absent keys mean "not tracked", not zero.
|
|
92
|
+
- `records`: every page's records in query order, **without `values`**. Other
|
|
93
|
+
top-level fields the backend sends (`updateStatus`, `paceStatus`, …) pass
|
|
94
|
+
through; a field the backend omitted for a record is absent on it.
|
|
95
|
+
- `totalCount`, plus `contextKey`, `key` and `schemaId`: the context the load
|
|
96
|
+
was requested for. Studio drops a load a later context change replaced; a
|
|
97
|
+
host that keeps its own copy should still compare these tags.
|
|
98
|
+
- An empty root emits too (`records: []`, `totalCount: 0`).
|
|
99
|
+
|
|
100
|
+
Studio loads the whole root dataset and filters and sorts it in the browser,
|
|
101
|
+
so the `statuses` counts are server totals for the context's `filters`, not
|
|
102
|
+
for filters the user applies inside the grid.
|
|
103
|
+
|
|
104
|
+
### Context grammar
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
interface ClientStudioContext {
|
|
108
|
+
contextKey: string; // opaque: 'Level:12', 'ComponentSchema:7'
|
|
109
|
+
schemaId?: number; // default: Number(contextKey.split('/')[0].split(':')[1])
|
|
110
|
+
filters?: ClientListFetchRequestFilter[]; // extra scope for the ROOT records query only
|
|
111
|
+
key?: string; // cache salt: changing it drops every cached read and reloads
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
- The context key is opaque, exactly like `mt-client-list`'s. Studio never
|
|
116
|
+
parses it beyond the default `schemaId`.
|
|
117
|
+
- A module's context is always `${contextKey}/Module:{moduleId}`.
|
|
118
|
+
- Another schema reached from the root (a connected level, a descendant in an
|
|
119
|
+
export) uses the same grammar with its own id: `Level:3` beside `Level:12`.
|
|
120
|
+
- `schemaId` is the id in the layout, module-settings and preference routes,
|
|
121
|
+
and the schema boundary for charts: changing it (or the actor) closes the
|
|
122
|
+
retained chart popups.
|
|
123
|
+
- A context without a schema id renders nothing.
|
|
124
|
+
- `filters` are added to the root records query only, never to module,
|
|
125
|
+
record or connected-level reads.
|
|
126
|
+
|
|
127
|
+
### Endpoint adapter
|
|
128
|
+
|
|
129
|
+
`provideClientStudio(config?: Partial<ClientStudioEndpoints>)` sets
|
|
130
|
+
`MT_CLIENT_STUDIO_ENDPOINTS`; unset entries keep the defaults, which are
|
|
131
|
+
today's pplus routes:
|
|
132
|
+
|
|
133
|
+
| Endpoint | Default |
|
|
134
|
+
| --- | --- |
|
|
135
|
+
| `catalog(contextKey)` | `GET fetch/catalog?contextKey={encoded}` |
|
|
136
|
+
| `layout(schemaId)` + `layoutMapper(raw, schemaId)` | `GET levels/{id}/workspaceBuilder`, identity mapper (pplus `WorkspaceBuilderData`) |
|
|
137
|
+
| `moduleSettings(schemaId, moduleId)` | `GET LevelData/levels/{id}/modules/{m}/table-display-settings/catalog?surfaceKey=table` |
|
|
138
|
+
| `recordState(recordId)` | `GET LevelData/{recordId}/workspace-state` |
|
|
139
|
+
| `query` | `POST fetch/query` |
|
|
140
|
+
| `chartsEndpoint` | `grid-charts/me` (`GET ?gridKey=`, `GET /level/{id}`, `PUT`, `DELETE ?gridKey=`); optional |
|
|
141
|
+
|
|
142
|
+
`layoutMapper` normalises another backend's layout into `ClientStudioLayout`
|
|
143
|
+
(`tabs` of modules or module groups, optional `childLevels`). The record
|
|
144
|
+
state needs only `modules[].moduleId` / `visible`. Both payload types live in
|
|
145
|
+
the package (`ClientStudioLayout`, `ClientStudioRecordState`), so a host does
|
|
146
|
+
not share its store models with Studio. Without a provider the defaults apply,
|
|
147
|
+
so pplus needs none.
|
|
148
|
+
|
|
149
|
+
### Charts
|
|
150
|
+
|
|
151
|
+
Studio has no chart code of its own: every Studio grid is an `mt-standard-grid`
|
|
152
|
+
with `[chartPersistence]`, so a chart is live, docks into the grid's Charts
|
|
153
|
+
panel, and after a refresh comes back **docked** until the user removes it.
|
|
154
|
+
|
|
155
|
+
- **Keys.** The view is the grid's preference identity — records
|
|
156
|
+
`{ level: schemaId, role: 'studio-records' }`, a module grid
|
|
157
|
+
`{ level, module: moduleKey, role: 'studio-module' }`, plus
|
|
158
|
+
`studio-cross-record` and `studio-connected-level` — and the scope is the
|
|
159
|
+
data source's `viewScopeKey` (the key Studio's version-1 charts used, so they
|
|
160
|
+
migrate). A grid keeps charts only while it holds the complete result; a
|
|
161
|
+
partial (server-paged) result has none, as before.
|
|
162
|
+
- **Store.** Studio provides `MT_GRID_CHART_STORE` itself (`StudioChartStore`):
|
|
163
|
+
with `options.chartStore: 'server'` (the default) it is `MtServerChartStore`
|
|
164
|
+
at `chartsEndpoint` (default `grid-charts/me`, the Pplus5.BE per-user chart
|
|
165
|
+
sets): the browser copy answers at once, the backend set follows and
|
|
166
|
+
replaces it while the user has changed nothing. `'local'` keeps the browser
|
|
167
|
+
copy only, for a backend without the route. Both stores read the identity
|
|
168
|
+
Studio sees.
|
|
169
|
+
- **One request per visit.** On load, and on a schema or actor change, Studio
|
|
170
|
+
calls `prefetch({ level: schemaId })` once: one `GET {chartsEndpoint}/level/{id}`
|
|
171
|
+
answers every grid of the schema instead of one `GET` per grid.
|
|
172
|
+
- **Columns.** A restored or open chart's columns (category, series, ranges;
|
|
173
|
+
a synthetic measure's counted column) join the fields the grid requests, so
|
|
174
|
+
their values load.
|
|
175
|
+
- **Schema or actor change.** Every grid removes its charts without saving the
|
|
176
|
+
removal (a new chart key or identity), then restores the new one's; the
|
|
177
|
+
popups kept from torn-down grids (`MtGridChartScope`) close after that render.
|
|
178
|
+
|
|
179
|
+
### Providers and the light-entry rule
|
|
180
|
+
|
|
181
|
+
- `mt-client-studio` provides its own services (transport, chart scope, chart
|
|
182
|
+
store, text). The host provides only the usual app setup: `HttpClient`
|
|
183
|
+
with its interceptors, Transloco, `provideMTDataTables` (the actor identity
|
|
184
|
+
that partitions caches and preferences) and `provideMTGridIcons`.
|
|
185
|
+
- **Load it from a lazy route.** The studio entry carries the grid. Put
|
|
186
|
+
`provideClientStudio(...)` in that lazy route's `providers`, never in the
|
|
187
|
+
app config: importing anything from `/studio` at startup puts the grid in
|
|
188
|
+
the initial bundle. The main entry never imports `/studio` (a spec checks
|
|
189
|
+
its exports).
|
|
190
|
+
- Text comes from `components.clientComponents.studio.*` in the components
|
|
191
|
+
i18n files; built-in English/Arabic labels are the fallback.
|
|
192
|
+
|
|
193
|
+
The showcase page `/client-studio` renders Studio against a route-scoped
|
|
194
|
+
in-memory backend (`apps/showcase/src/app/client-studio/`), with a demo
|
|
195
|
+
identity and sample `grid-charts/me` routes kept in the browser's storage, so
|
|
196
|
+
its charts survive a refresh.
|
|
197
|
+
|
|
198
|
+
## Shared helpers (client-list)
|
|
199
|
+
|
|
200
|
+
`mergeStakeholderPreviewEntities` (record previews and Studio cells) and
|
|
201
|
+
`mergeStakeholderNameColumns` (ClientList table results) merge the Stakeholder
|
|
202
|
+
module's mutually exclusive `internal_username` / `external_username` name
|
|
203
|
+
columns by the row's Stakeholder Type (`position`), and project an internal
|
|
204
|
+
user's email into the Email cell. They are not the same helpers as
|
|
205
|
+
`@masterteam/components/entities`' `mergeStakeholderName*`, which decide by
|
|
206
|
+
which value is present; keep the import path explicit.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-400:oklch(75% .183 55.934);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-950:oklch(26.6% .079 36.259);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.end-0{inset-inline-end:calc(var(--spacing) * 0)}.end-2{inset-inline-end:calc(var(--spacing) * 2)}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.z-10{z-index:10}.z-20{z-index:20}.col-span-1{grid-column:span 1/span 1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.my-1{margin-block:var(--spacing)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-\[18px\]{height:18px}.min-h-\[20rem\]{min-height:20rem}.min-h-\[22rem\]{min-height:22rem}.min-h-\[420px\]{min-height:420px}.w-1{width:var(--spacing)}.w-7{width:calc(var(--spacing) * 7)}.w-28{width:calc(var(--spacing) * 28)}.w-40{width:calc(var(--spacing) * 40)}.w-\[20px\]{width:20px}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-44{min-width:calc(var(--spacing) * 44)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-red-200{border-color:var(--color-red-200)}.border-surface-200{border-color:var(--p-surface-200)}@supports (color:color-mix(in lab, red, red)){.border-surface-200{border-color:color-mix(in srgb, var(--p-surface-200) calc(100% * 1), transparent)}}.border-surface-300{border-color:var(--p-surface-300)}@supports (color:color-mix(in lab, red, red)){.border-surface-300{border-color:color-mix(in srgb, var(--p-surface-300) calc(100% * 1), transparent)}}.bg-primary-50{background-color:var(--p-primary-50)}@supports (color:color-mix(in lab, red, red)){.bg-primary-50{background-color:color-mix(in srgb, var(--p-primary-50) calc(100% * 1), transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-surface-50{background-color:var(--p-surface-50)}@supports (color:color-mix(in lab, red, red)){.bg-surface-50{background-color:color-mix(in srgb, var(--p-surface-50) calc(100% * 1), transparent)}}.bg-surface-200{background-color:var(--p-surface-200)}@supports (color:color-mix(in lab, red, red)){.bg-surface-200{background-color:color-mix(in srgb, var(--p-surface-200) calc(100% * 1), transparent)}}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-orange-600{color:var(--color-orange-600)}.text-primary-700{color:var(--p-primary-700)}@supports (color:color-mix(in lab, red, red)){.text-primary-700{color:color-mix(in srgb, var(--p-primary-700) calc(100% * 1), transparent)}}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-surface-500{color:var(--p-surface-500)}@supports (color:color-mix(in lab, red, red)){.text-surface-500{color:color-mix(in srgb, var(--p-surface-500) calc(100% * 1), transparent)}}.uppercase{text-transform:uppercase}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-orange-50:hover{background-color:var(--color-orange-50)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-primary-500:focus-visible{--tw-ring-color:var(--p-primary-500)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-primary-500:focus-visible{--tw-ring-color:color-mix(in srgb, var(--p-primary-500) calc(100% * 1), transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media (min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:border-surface-700:where(.dark,.dark *){border-color:var(--p-surface-700)}@supports (color:color-mix(in lab, red, red)){.dark\:border-surface-700:where(.dark,.dark *){border-color:color-mix(in srgb, var(--p-surface-700) calc(100% * 1), transparent)}}.dark\:bg-primary-950:where(.dark,.dark *){background-color:var(--p-primary-950)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-primary-950:where(.dark,.dark *){background-color:color-mix(in srgb, var(--p-primary-950) calc(100% * 1), transparent)}}.dark\:bg-surface-900:where(.dark,.dark *){background-color:var(--p-surface-900)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-surface-900:where(.dark,.dark *){background-color:color-mix(in srgb, var(--p-surface-900) calc(100% * 1), transparent)}}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-orange-400:where(.dark,.dark *){color:var(--color-orange-400)}.dark\:text-primary-300:where(.dark,.dark *){color:var(--p-primary-300)}@supports (color:color-mix(in lab, red, red)){.dark\:text-primary-300:where(.dark,.dark *){color:color-mix(in srgb, var(--p-primary-300) calc(100% * 1), transparent)}}@media (hover:hover){.dark\:hover\:bg-orange-950:where(.dark,.dark *):hover{background-color:var(--color-orange-950)}.dark\:hover\:bg-red-950:where(.dark,.dark *):hover{background-color:var(--color-red-950)}.dark\:hover\:bg-surface-700:where(.dark,.dark *):hover{background-color:var(--p-surface-700)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-surface-700:where(.dark,.dark *):hover{background-color:color-mix(in srgb, var(--p-surface-700) calc(100% * 1), transparent)}}.dark\:hover\:text-gray-100:where(.dark,.dark *):hover{color:var(--color-gray-100)}}}@keyframes enter{0%{opacity:var(--p-enter-opacity,1);transform:translate3d(var(--p-enter-translate-x,0), var(--p-enter-translate-y,0), 0) scale3d(var(--p-enter-scale,1), var(--p-enter-scale,1), var(--p-enter-scale,1)) rotate(var(--p-enter-rotate,0))}}@keyframes leave{to{opacity:var(--p-leave-opacity,1);transform:translate3d(var(--p-leave-translate-x,0), var(--p-leave-translate-y,0), 0) scale3d(var(--p-leave-scale,1), var(--p-leave-scale,1), var(--p-leave-scale,1)) rotate(var(--p-leave-rotate,0))}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-400:oklch(75% .183 55.934);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-950:oklch(26.6% .079 36.259);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.end-0{inset-inline-end:calc(var(--spacing) * 0)}.end-2{inset-inline-end:calc(var(--spacing) * 2)}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.z-10{z-index:10}.z-20{z-index:20}.col-span-1{grid-column:span 1/span 1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.my-1{margin-block:var(--spacing)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-\[18px\]{height:18px}.min-h-\[20rem\]{min-height:20rem}.min-h-\[22rem\]{min-height:22rem}.min-h-\[420px\]{min-height:420px}.w-1{width:var(--spacing)}.w-7{width:calc(var(--spacing) * 7)}.w-28{width:calc(var(--spacing) * 28)}.w-40{width:calc(var(--spacing) * 40)}.w-\[20px\]{width:20px}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-44{min-width:calc(var(--spacing) * 44)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-red-200{border-color:var(--color-red-200)}.border-surface-200{border-color:var(--p-surface-200)}@supports (color:color-mix(in lab, red, red)){.border-surface-200{border-color:color-mix(in srgb, var(--p-surface-200) calc(100% * 1), transparent)}}.border-surface-300{border-color:var(--p-surface-300)}@supports (color:color-mix(in lab, red, red)){.border-surface-300{border-color:color-mix(in srgb, var(--p-surface-300) calc(100% * 1), transparent)}}.bg-primary-50{background-color:var(--p-primary-50)}@supports (color:color-mix(in lab, red, red)){.bg-primary-50{background-color:color-mix(in srgb, var(--p-primary-50) calc(100% * 1), transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-surface-50{background-color:var(--p-surface-50)}@supports (color:color-mix(in lab, red, red)){.bg-surface-50{background-color:color-mix(in srgb, var(--p-surface-50) calc(100% * 1), transparent)}}.bg-surface-200{background-color:var(--p-surface-200)}@supports (color:color-mix(in lab, red, red)){.bg-surface-200{background-color:color-mix(in srgb, var(--p-surface-200) calc(100% * 1), transparent)}}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-orange-600{color:var(--color-orange-600)}.text-primary-700{color:var(--p-primary-700)}@supports (color:color-mix(in lab, red, red)){.text-primary-700{color:color-mix(in srgb, var(--p-primary-700) calc(100% * 1), transparent)}}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-surface-500{color:var(--p-surface-500)}@supports (color:color-mix(in lab, red, red)){.text-surface-500{color:color-mix(in srgb, var(--p-surface-500) calc(100% * 1), transparent)}}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-orange-50:hover{background-color:var(--color-orange-50)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-primary-500:focus-visible{--tw-ring-color:var(--p-primary-500)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-primary-500:focus-visible{--tw-ring-color:color-mix(in srgb, var(--p-primary-500) calc(100% * 1), transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media (min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:border-surface-700:where(.dark,.dark *){border-color:var(--p-surface-700)}@supports (color:color-mix(in lab, red, red)){.dark\:border-surface-700:where(.dark,.dark *){border-color:color-mix(in srgb, var(--p-surface-700) calc(100% * 1), transparent)}}.dark\:bg-primary-950:where(.dark,.dark *){background-color:var(--p-primary-950)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-primary-950:where(.dark,.dark *){background-color:color-mix(in srgb, var(--p-primary-950) calc(100% * 1), transparent)}}.dark\:bg-surface-900:where(.dark,.dark *){background-color:var(--p-surface-900)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-surface-900:where(.dark,.dark *){background-color:color-mix(in srgb, var(--p-surface-900) calc(100% * 1), transparent)}}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-orange-400:where(.dark,.dark *){color:var(--color-orange-400)}.dark\:text-primary-300:where(.dark,.dark *){color:var(--p-primary-300)}@supports (color:color-mix(in lab, red, red)){.dark\:text-primary-300:where(.dark,.dark *){color:color-mix(in srgb, var(--p-primary-300) calc(100% * 1), transparent)}}@media (hover:hover){.dark\:hover\:bg-orange-950:where(.dark,.dark *):hover{background-color:var(--color-orange-950)}.dark\:hover\:bg-red-950:where(.dark,.dark *):hover{background-color:var(--color-red-950)}.dark\:hover\:bg-surface-700:where(.dark,.dark *):hover{background-color:var(--p-surface-700)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-surface-700:where(.dark,.dark *):hover{background-color:color-mix(in srgb, var(--p-surface-700) calc(100% * 1), transparent)}}.dark\:hover\:text-gray-100:where(.dark,.dark *):hover{color:var(--color-gray-100)}}}@keyframes enter{0%{opacity:var(--p-enter-opacity,1);transform:translate3d(var(--p-enter-translate-x,0), var(--p-enter-translate-y,0), 0) scale3d(var(--p-enter-scale,1), var(--p-enter-scale,1), var(--p-enter-scale,1)) rotate(var(--p-enter-rotate,0))}}@keyframes leave{to{opacity:var(--p-leave-opacity,1);transform:translate3d(var(--p-leave-translate-x,0), var(--p-leave-translate-y,0), 0) scale3d(var(--p-leave-scale,1), var(--p-leave-scale,1), var(--p-leave-scale,1)) rotate(var(--p-leave-rotate,0))}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -1698,6 +1698,11 @@ class ClientListTableView {
|
|
|
1698
1698
|
role: 'client-list-native',
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
+
/** The charts persist with the view it hydrates and saves, per toolbar bucket. */
|
|
1702
|
+
chartPersistence = computed(() => ({
|
|
1703
|
+
view: this.view(),
|
|
1704
|
+
scope: this.state().key,
|
|
1705
|
+
}), ...(ngDevMode ? [{ debugName: "chartPersistence" }] : /* istanbul ignore next */ []));
|
|
1701
1706
|
constructor() {
|
|
1702
1707
|
effect(() => {
|
|
1703
1708
|
const api = this.ready(), view = this.view(), key = this.preferences.key(view);
|
|
@@ -1836,11 +1841,11 @@ class ClientListTableView {
|
|
|
1836
1841
|
};
|
|
1837
1842
|
}
|
|
1838
1843
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ClientListTableView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1839
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ClientListTableView, isStandalone: true, selector: "mt-client-list-table-view", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: true, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, actionShape: { classPropertyName: "actionShape", publicName: "actionShape", isSignal: true, isRequired: false, transformFunction: null }, rowActionsLoadingFn: { classPropertyName: "rowActionsLoadingFn", publicName: "rowActionsLoadingFn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nativeGridReady: "nativeGridReady", lazyLoad: "lazyLoad", rowClick: "rowClick", rowActionsRequested: "rowActionsRequested" }, ngImport: i0, template: "<div class=\"grid gap-4\" [style.gridTemplateColumns]=\"gridTemplateColumns\">\
|
|
1844
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ClientListTableView, isStandalone: true, selector: "mt-client-list-table-view", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: true, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, actionShape: { classPropertyName: "actionShape", publicName: "actionShape", isSignal: true, isRequired: false, transformFunction: null }, rowActionsLoadingFn: { classPropertyName: "rowActionsLoadingFn", publicName: "rowActionsLoadingFn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nativeGridReady: "nativeGridReady", lazyLoad: "lazyLoad", rowClick: "rowClick", rowActionsRequested: "rowActionsRequested" }, ngImport: i0, template: "<div class=\"grid gap-4\" [style.gridTemplateColumns]=\"gridTemplateColumns\">\n @if (table().config.contentStart) {\n <div [style.gridColumn]=\"slotGridSpan(table().config.layout.startSpan)\">\n <ng-container\n [ngTemplateOutlet]=\"table().config.contentStart\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n </div>\n }\n\n <div [style.gridColumn]=\"slotGridSpan(table().config.layout.tableSpan)\">\n @if (table().error) {\n <div\n class=\"rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-700\"\n >\n {{ table().error }}\n </div>\n } @else {\n @if (table().config.toolbarStart || table().config.toolbarEnd) {\n <div class=\"mb-3 flex flex-wrap items-center justify-between gap-3\">\n <ng-container\n [ngTemplateOutlet]=\"table().config.toolbarStart ?? null\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n <ng-container\n [ngTemplateOutlet]=\"table().config.toolbarEnd ?? null\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n </div>\n }\n <mt-standard-grid\n [rows]=\"table().rows\"\n [columns]=\"columns()\"\n [rowId]=\"rowId\"\n [label]=\"table().title\"\n [loading]=\"table().loading\"\n [height]=\"520\"\n [search]=\"bucket().filterTerm()\"\n [pageSize]=\"pageSize()\"\n [exportButtons]=\"true\"\n [exportFormats]=\"exportFormats()\"\n [exportName]=\"table().title\"\n [clickableRows]=\"true\"\n [cellClickFilter]=\"true\"\n [chartPersistence]=\"chartPersistence()\"\n (gridReady)=\"onReady($event)\"\n (viewChanged)=\"changed()\"\n (rowClicked)=\"rowClick.emit($event)\"\n />\n }\n </div>\n\n @if (table().config.contentEnd) {\n <div [style.gridColumn]=\"slotGridSpan(table().config.layout.endSpan)\">\n <ng-container\n [ngTemplateOutlet]=\"table().config.contentEnd\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MtStandardGridComponent, selector: "mt-standard-grid", inputs: ["rows", "columns", "rowId", "label", "loading", "height", "rowHeight", "selection", "exportable", "exportButtons", "exportName", "exportFormats", "exporter", "rowMenuItems", "rowMenuLeadItems", "server", "paged", "pageSize", "clickableRows", "cellClickFilter", "rowClass", "detail", "chartContext", "search", "emptyTitle", "emptyDescription", "view", "chartPersistence"], outputs: ["gridReady", "rowClicked", "selectionChanged", "sortChanged", "filterChanged", "paginationChanged", "rowGroupOpened", "viewChanged", "chartsChanged"] }] });
|
|
1840
1845
|
}
|
|
1841
1846
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ClientListTableView, decorators: [{
|
|
1842
1847
|
type: Component,
|
|
1843
|
-
args: [{ selector: 'mt-client-list-table-view', standalone: true, imports: [CommonModule, MtStandardGridComponent], template: "<div class=\"grid gap-4\" [style.gridTemplateColumns]=\"gridTemplateColumns\">\
|
|
1848
|
+
args: [{ selector: 'mt-client-list-table-view', standalone: true, imports: [CommonModule, MtStandardGridComponent], template: "<div class=\"grid gap-4\" [style.gridTemplateColumns]=\"gridTemplateColumns\">\n @if (table().config.contentStart) {\n <div [style.gridColumn]=\"slotGridSpan(table().config.layout.startSpan)\">\n <ng-container\n [ngTemplateOutlet]=\"table().config.contentStart\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n </div>\n }\n\n <div [style.gridColumn]=\"slotGridSpan(table().config.layout.tableSpan)\">\n @if (table().error) {\n <div\n class=\"rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-700\"\n >\n {{ table().error }}\n </div>\n } @else {\n @if (table().config.toolbarStart || table().config.toolbarEnd) {\n <div class=\"mb-3 flex flex-wrap items-center justify-between gap-3\">\n <ng-container\n [ngTemplateOutlet]=\"table().config.toolbarStart ?? null\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n <ng-container\n [ngTemplateOutlet]=\"table().config.toolbarEnd ?? null\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n </div>\n }\n <mt-standard-grid\n [rows]=\"table().rows\"\n [columns]=\"columns()\"\n [rowId]=\"rowId\"\n [label]=\"table().title\"\n [loading]=\"table().loading\"\n [height]=\"520\"\n [search]=\"bucket().filterTerm()\"\n [pageSize]=\"pageSize()\"\n [exportButtons]=\"true\"\n [exportFormats]=\"exportFormats()\"\n [exportName]=\"table().title\"\n [clickableRows]=\"true\"\n [cellClickFilter]=\"true\"\n [chartPersistence]=\"chartPersistence()\"\n (gridReady)=\"onReady($event)\"\n (viewChanged)=\"changed()\"\n (rowClicked)=\"rowClick.emit($event)\"\n />\n }\n </div>\n\n @if (table().config.contentEnd) {\n <div [style.gridColumn]=\"slotGridSpan(table().config.layout.endSpan)\">\n <ng-container\n [ngTemplateOutlet]=\"table().config.contentEnd\"\n [ngTemplateOutletContext]=\"templateContext(table())\"\n />\n </div>\n }\n</div>\n" }]
|
|
1844
1849
|
}], ctorParameters: () => [], propDecorators: { nativeGridReady: [{ type: i0.Output, args: ["nativeGridReady"] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: true }] }], rowActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowActions", required: false }] }], actionShape: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionShape", required: false }] }], rowActionsLoadingFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowActionsLoadingFn", required: false }] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], rowActionsRequested: [{ type: i0.Output, args: ["rowActionsRequested"] }] } });
|
|
1845
1850
|
|
|
1846
1851
|
const EMPTY_KEY_SET = new Set();
|
|
@@ -4031,9 +4036,144 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
4031
4036
|
], template: "<div class=\"flex flex-col gap-4\">\r\n @for (item of items(); track item.key) {\r\n <section class=\"flex flex-col gap-4\">\r\n @if (item.config.showHeader) {\r\n <div class=\"flex w-full items-center gap-2\">\r\n <div class=\"flex min-w-0 flex-1 items-center gap-2\">\r\n @if (item.config.collapse.enabled) {\r\n <mt-button\r\n variant=\"text\"\r\n severity=\"secondary\"\r\n [icon]=\"\r\n item.expanded\r\n ? item.config.collapse.collapseIcon\r\n : item.config.collapse.expandIcon\r\n \"\r\n (onClick)=\"toggleExpanded(item.key)\"\r\n />\r\n }\r\n <h3 class=\"m-0 text-lg font-semibold\">\r\n {{ item.title || item.moduleKey || defaultTitle(item) }}\r\n </h3>\r\n @if (item.config.headerStart) {\r\n <div class=\"flex items-center gap-2\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"item.config.headerStart\"\r\n [ngTemplateOutletContext]=\"templateContext(item)\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n @if (item.config.headerEnd) {\r\n <div class=\"ml-auto flex shrink-0 items-center gap-2\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"item.config.headerEnd\"\r\n [ngTemplateOutletContext]=\"templateContext(item)\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n @if (item.expanded || !item.config.collapse.enabled) {\r\n @if (item.config.templateContent) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"item.config.templateContent\"\r\n [ngTemplateOutletContext]=\"templateContext(item)\"\r\n />\r\n } @else if (item.type === \"informative\") {\r\n <mt-client-list-informative-view [state]=\"item\" />\r\n } @else if (item.areaType === \"table\") {\r\n <mt-client-list-table-view\r\n [state]=\"item\"\r\n [rowActions]=\"rowActionsFor(item)\"\r\n [actionShape]=\"item.config.actionShape\"\r\n [rowActionsLoadingFn]=\"rowActionsLoadingFnFor(item)\"\r\n (rowActionsRequested)=\"onRowActionsRequested(item, $event)\"\r\n (nativeGridReady)=\"gridReady.emit({ key: item.key, event: $event })\"\r\n (lazyLoad)=\"onLazyLoad(item.key, $event)\"\r\n (rowClick)=\"onTableRowClick(item, $event)\"\r\n />\r\n } @else {\r\n <mt-client-list-cards-view\r\n [state]=\"item\"\r\n [rowActions]=\"rowActionsFor(item)\"\r\n [rowActionsLoadingFn]=\"rowActionsLoadingFnFor(item)\"\r\n (rowActionsRequested)=\"onRowActionsRequested(item, $event)\"\r\n (lazyLoad)=\"onLazyLoad(item.key, $event)\"\r\n (loadMore)=\"loadMoreCards(item.key)\"\r\n (cardClick)=\"onCardClick(item, $event)\"\r\n />\r\n }\r\n }\r\n </section>\r\n }\r\n</div>\r\n" }]
|
|
4032
4037
|
}], ctorParameters: () => [], propDecorators: { configurations: [{ type: i0.Input, args: [{ isSignal: true, alias: "configurations", required: true }] }], defaultTake: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTake", required: false }] }], gridReady: [{ type: i0.Output, args: ["gridReady"] }], loaded: [{ type: i0.Output, args: ["loaded"] }], errored: [{ type: i0.Output, args: ["errored"] }], itemClicked: [{ type: i0.Output, args: ["itemClicked"] }] } });
|
|
4033
4038
|
|
|
4039
|
+
/** Projection (normalized) keys for the Stakeholder module's name columns. */
|
|
4040
|
+
const POSITION_KEY = 'position';
|
|
4041
|
+
const INTERNAL_NAME_KEY = 'internal_username';
|
|
4042
|
+
const EXTERNAL_NAME_KEY = 'external_username';
|
|
4043
|
+
const EMAIL_KEY = 'email';
|
|
4044
|
+
function entityMatchesKey(entity, normalizedKey) {
|
|
4045
|
+
return entity.normalizedKey === normalizedKey || entity.key === normalizedKey;
|
|
4046
|
+
}
|
|
4047
|
+
function findEntity(entities, normalizedKey) {
|
|
4048
|
+
return entities.find((entity) => entityMatchesKey(entity, normalizedKey));
|
|
4049
|
+
}
|
|
4050
|
+
/** Reads the Stakeholder Type lookup value off its `position` entity. */
|
|
4051
|
+
function readStakeholderType(cell) {
|
|
4052
|
+
const value = cell?.value;
|
|
4053
|
+
const key = value && typeof value === 'object' ? value.key : value;
|
|
4054
|
+
return String(key ?? '').toLowerCase();
|
|
4055
|
+
}
|
|
4056
|
+
/** Reads the selected internal user's email from the User entity cell. */
|
|
4057
|
+
function readInternalUserEmail(cell) {
|
|
4058
|
+
if (cell?.viewType !== 'User') {
|
|
4059
|
+
return null;
|
|
4060
|
+
}
|
|
4061
|
+
const email = cell.value.email?.trim();
|
|
4062
|
+
return email || null;
|
|
4063
|
+
}
|
|
4064
|
+
/** Projects an internal user's email while retaining the Email cell metadata. */
|
|
4065
|
+
function projectInternalUserEmail(row) {
|
|
4066
|
+
const email = readInternalUserEmail(row[INTERNAL_NAME_KEY]);
|
|
4067
|
+
const emailCell = row[EMAIL_KEY];
|
|
4068
|
+
if (!email || !emailCell) {
|
|
4069
|
+
return row;
|
|
4070
|
+
}
|
|
4071
|
+
return {
|
|
4072
|
+
...row,
|
|
4073
|
+
[EMAIL_KEY]: {
|
|
4074
|
+
...emailCell,
|
|
4075
|
+
rawValue: email,
|
|
4076
|
+
value: email,
|
|
4077
|
+
},
|
|
4078
|
+
};
|
|
4079
|
+
}
|
|
4080
|
+
/**
|
|
4081
|
+
* Stakeholder tables expose two mutually-exclusive name columns — "Stakeholder
|
|
4082
|
+
* Name" (User, `internal_username`) and "External Username" (Text,
|
|
4083
|
+
* `external_username`): internal rows fill the user, external rows fill the
|
|
4084
|
+
* text. This merges them into the single "Stakeholder Name" column so each row
|
|
4085
|
+
* shows whichever one applies. Internal rows also derive the existing Email
|
|
4086
|
+
* cell from the selected User value; external rows retain their stored email.
|
|
4087
|
+
*
|
|
4088
|
+
* Works because `mt-table` renders each cell from its own `EntityData.viewType`
|
|
4089
|
+
* (User → avatar, Text → plain text), so one column with mixed cells renders
|
|
4090
|
+
* correctly without a custom cell template.
|
|
4091
|
+
*
|
|
4092
|
+
* Self-gating: returns the input unchanged when the two columns are absent, so
|
|
4093
|
+
* it is safe to attach to every module's ClientList config.
|
|
4094
|
+
*/
|
|
4095
|
+
function mergeStakeholderNameColumns(result) {
|
|
4096
|
+
const { columns, rows } = result;
|
|
4097
|
+
const hasInternal = columns.some((column) => column.key === INTERNAL_NAME_KEY);
|
|
4098
|
+
const hasExternal = columns.some((column) => column.key === EXTERNAL_NAME_KEY);
|
|
4099
|
+
if (!hasInternal || !hasExternal) {
|
|
4100
|
+
return result;
|
|
4101
|
+
}
|
|
4102
|
+
return {
|
|
4103
|
+
columns: columns.filter((column) => column.key !== EXTERNAL_NAME_KEY),
|
|
4104
|
+
rows: rows.map((row) => {
|
|
4105
|
+
const stakeholderType = readStakeholderType(row[POSITION_KEY]);
|
|
4106
|
+
if (stakeholderType === 'external') {
|
|
4107
|
+
return { ...row, [INTERNAL_NAME_KEY]: row[EXTERNAL_NAME_KEY] };
|
|
4108
|
+
}
|
|
4109
|
+
return stakeholderType === 'internal'
|
|
4110
|
+
? projectInternalUserEmail(row)
|
|
4111
|
+
: row;
|
|
4112
|
+
}),
|
|
4113
|
+
};
|
|
4114
|
+
}
|
|
4115
|
+
/**
|
|
4116
|
+
* Applies the same mutually-exclusive Stakeholder name projection to a record
|
|
4117
|
+
* preview. The internal-user tile is the stable visual slot: internal records
|
|
4118
|
+
* keep it, while external records render the external text value with that
|
|
4119
|
+
* slot's label, order, and layout configuration. The second name tile is then
|
|
4120
|
+
* removed. Internal records also project the selected user's email into the
|
|
4121
|
+
* existing Email tile, matching the table behaviour.
|
|
4122
|
+
*
|
|
4123
|
+
* Matching uses `normalizedKey`, because preview entity `key` values are the
|
|
4124
|
+
* template-specific backend keys. The `key` fallback keeps the helper useful
|
|
4125
|
+
* for already-normalized data. It returns the original array when either name
|
|
4126
|
+
* property or a recognized Stakeholder Type is absent.
|
|
4127
|
+
*/
|
|
4128
|
+
function mergeStakeholderPreviewEntities(entities) {
|
|
4129
|
+
const internalName = findEntity(entities, INTERNAL_NAME_KEY);
|
|
4130
|
+
const externalName = findEntity(entities, EXTERNAL_NAME_KEY);
|
|
4131
|
+
if (!internalName || !externalName) {
|
|
4132
|
+
return entities;
|
|
4133
|
+
}
|
|
4134
|
+
const stakeholderType = readStakeholderType(findEntity(entities, POSITION_KEY));
|
|
4135
|
+
if (stakeholderType !== 'internal' && stakeholderType !== 'external') {
|
|
4136
|
+
return entities;
|
|
4137
|
+
}
|
|
4138
|
+
const email = findEntity(entities, EMAIL_KEY);
|
|
4139
|
+
const internalUserEmail = readInternalUserEmail(internalName);
|
|
4140
|
+
const projectedName = stakeholderType === 'external'
|
|
4141
|
+
? {
|
|
4142
|
+
...internalName,
|
|
4143
|
+
rawValue: externalName.rawValue,
|
|
4144
|
+
value: externalName.value,
|
|
4145
|
+
viewType: externalName.viewType,
|
|
4146
|
+
type: externalName.type,
|
|
4147
|
+
propertyConfiguration: externalName.propertyConfiguration,
|
|
4148
|
+
nestedProperties: externalName.nestedProperties,
|
|
4149
|
+
comparison: externalName.comparison,
|
|
4150
|
+
}
|
|
4151
|
+
: internalName;
|
|
4152
|
+
return entities.flatMap((entity) => {
|
|
4153
|
+
if (entity === externalName) {
|
|
4154
|
+
return [];
|
|
4155
|
+
}
|
|
4156
|
+
if (entity === internalName) {
|
|
4157
|
+
return [projectedName];
|
|
4158
|
+
}
|
|
4159
|
+
if (stakeholderType === 'internal' &&
|
|
4160
|
+
entity === email &&
|
|
4161
|
+
internalUserEmail) {
|
|
4162
|
+
return [
|
|
4163
|
+
{
|
|
4164
|
+
...entity,
|
|
4165
|
+
rawValue: internalUserEmail,
|
|
4166
|
+
value: internalUserEmail,
|
|
4167
|
+
},
|
|
4168
|
+
];
|
|
4169
|
+
}
|
|
4170
|
+
return [entity];
|
|
4171
|
+
});
|
|
4172
|
+
}
|
|
4173
|
+
|
|
4034
4174
|
/**
|
|
4035
4175
|
* Generated bundle index. Do not edit.
|
|
4036
4176
|
*/
|
|
4037
4177
|
|
|
4038
|
-
export { CLIENT_LIST_DEFAULT_INCLUDE_STATE, CLIENT_LIST_RECORD_ID_FILTER_KEY, CLIENT_LIST_RECORD_SOURCE_KEY, CLIENT_LIST_RECORD_STATE_KEY, ClientList, ClientListApiService, ClientListRuntimeActionsService, ClientListStateService, ClientListToolbarService, MAX_BACKGROUND_REFRESH_RECORDS, defaultResolveRecordId, findClientListSourceGroup, findClientListTotal, isClientListTotalIncomplete, readClientListRowSource };
|
|
4178
|
+
export { CLIENT_LIST_DEFAULT_INCLUDE_STATE, CLIENT_LIST_RECORD_ID_FILTER_KEY, CLIENT_LIST_RECORD_SOURCE_KEY, CLIENT_LIST_RECORD_STATE_KEY, ClientList, ClientListApiService, ClientListRuntimeActionsService, ClientListStateService, ClientListToolbarService, MAX_BACKGROUND_REFRESH_RECORDS, defaultResolveRecordId, findClientListSourceGroup, findClientListTotal, isClientListTotalIncomplete, mergeStakeholderNameColumns, mergeStakeholderPreviewEntities, readClientListRowSource };
|
|
4039
4179
|
//# sourceMappingURL=masterteam-client-components-client-list.mjs.map
|