@uni-design-system/uni-angular 11.0.0 → 11.1.0
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/CHANGELOG.md +23 -0
- package/fesm2022/uni-design-system-uni-angular.mjs +460 -73
- package/fesm2022/uni-design-system-uni-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +46 -10
- package/types/uni-design-system-uni-angular.d.ts +185 -13
- package/types/uni-design-system-uni-angular.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-angular",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/core": "^22.0.0",
|
|
23
23
|
"@angular/forms": "^22.0.0",
|
|
24
24
|
"@emotion/css": "^11.0.0",
|
|
25
|
-
"@uni-design-system/uni-core": "^11.
|
|
25
|
+
"@uni-design-system/uni-core": "^11.1.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "fesm2022/uni-design-system-uni-angular.mjs",
|
|
28
28
|
"typings": "types/uni-design-system-uni-angular.d.ts",
|
|
@@ -813,7 +813,7 @@ var BaseTypography = {
|
|
|
813
813
|
fontFamily: "Red Hat Display",
|
|
814
814
|
fontSize: 15,
|
|
815
815
|
lineHeight: 20,
|
|
816
|
-
fontWeight:
|
|
816
|
+
fontWeight: 500
|
|
817
817
|
},
|
|
818
818
|
input: {
|
|
819
819
|
fontFamily: "Red Hat Display",
|
|
@@ -946,14 +946,26 @@ var SELECTION_ACCENTS = {
|
|
|
946
946
|
var tagVariant = (c, role) => ({ [role]: {
|
|
947
947
|
backgroundColor: c[`${role}-container`],
|
|
948
948
|
color: c[`on-${role}-container`],
|
|
949
|
-
"&.
|
|
949
|
+
"&.tag-selected": {
|
|
950
950
|
backgroundColor: c[role],
|
|
951
951
|
color: c[`on-${role}`]
|
|
952
952
|
},
|
|
953
|
+
"&.tag-interactive:hover": { filter: "brightness(0.95)" },
|
|
954
|
+
"&.tone-solid": {
|
|
955
|
+
backgroundColor: c[role],
|
|
956
|
+
color: c[`on-${role}`],
|
|
957
|
+
"&.tag-selected": { filter: "brightness(0.9)" },
|
|
958
|
+
"&.tag-selected.tag-interactive:hover": { filter: "brightness(0.85)" }
|
|
959
|
+
},
|
|
953
960
|
"&.tone-outline": {
|
|
954
961
|
backgroundColor: "transparent",
|
|
955
962
|
color: c[role],
|
|
956
|
-
borderColor: c[`on-${role}-container-border`] ?? c[role]
|
|
963
|
+
borderColor: c[`on-${role}-container-border`] ?? c[role],
|
|
964
|
+
"&.tag-selected": {
|
|
965
|
+
backgroundColor: c[role],
|
|
966
|
+
color: c[`on-${role}`],
|
|
967
|
+
borderColor: c[role]
|
|
968
|
+
}
|
|
957
969
|
}
|
|
958
970
|
} });
|
|
959
971
|
var buildComponents = (c) => ({
|
|
@@ -1294,7 +1306,8 @@ var buildComponents = (c) => ({
|
|
|
1294
1306
|
gap: "xs",
|
|
1295
1307
|
removeIcon: "close",
|
|
1296
1308
|
selectedIcon: "check",
|
|
1297
|
-
motion: "control"
|
|
1309
|
+
motion: "control",
|
|
1310
|
+
endInset: "auto"
|
|
1298
1311
|
},
|
|
1299
1312
|
fixed: {
|
|
1300
1313
|
display: "inline-flex",
|
|
@@ -1311,13 +1324,25 @@ var buildComponents = (c) => ({
|
|
|
1311
1324
|
ghost: {
|
|
1312
1325
|
backgroundColor: "transparent",
|
|
1313
1326
|
color: c["on-background"],
|
|
1314
|
-
"&.
|
|
1327
|
+
"&.tag-selected": {
|
|
1315
1328
|
backgroundColor: c["surface-variant"],
|
|
1316
1329
|
color: c["on-surface-variant"]
|
|
1317
1330
|
},
|
|
1331
|
+
"&.tag-interactive:hover": { filter: "brightness(0.95)" },
|
|
1332
|
+
"&.tone-solid": {
|
|
1333
|
+
backgroundColor: c["surface-variant"],
|
|
1334
|
+
color: c["on-surface-variant"],
|
|
1335
|
+
"&.tag-selected": { filter: "brightness(0.9)" },
|
|
1336
|
+
"&.tag-selected.tag-interactive:hover": { filter: "brightness(0.85)" }
|
|
1337
|
+
},
|
|
1318
1338
|
"&.tone-outline": {
|
|
1319
1339
|
backgroundColor: "transparent",
|
|
1320
|
-
borderColor: c.outline
|
|
1340
|
+
borderColor: c.outline,
|
|
1341
|
+
"&.tag-selected": {
|
|
1342
|
+
backgroundColor: c["surface-variant"],
|
|
1343
|
+
color: c["on-surface-variant"],
|
|
1344
|
+
borderColor: c.outline
|
|
1345
|
+
}
|
|
1321
1346
|
}
|
|
1322
1347
|
},
|
|
1323
1348
|
disabled: {
|
|
@@ -1337,20 +1362,31 @@ var buildComponents = (c) => ({
|
|
|
1337
1362
|
sm: {
|
|
1338
1363
|
height: 20,
|
|
1339
1364
|
fontSize: 12,
|
|
1340
|
-
|
|
1365
|
+
paddingInline: 8
|
|
1341
1366
|
},
|
|
1342
1367
|
md: {
|
|
1343
1368
|
height: 24,
|
|
1344
1369
|
fontSize: 13,
|
|
1345
|
-
|
|
1370
|
+
paddingInline: 10
|
|
1346
1371
|
},
|
|
1347
1372
|
lg: {
|
|
1348
1373
|
height: 32,
|
|
1349
1374
|
fontSize: 15,
|
|
1350
|
-
|
|
1375
|
+
paddingInline: 12
|
|
1351
1376
|
}
|
|
1352
1377
|
}
|
|
1353
1378
|
},
|
|
1379
|
+
tagGroup: {
|
|
1380
|
+
options: {
|
|
1381
|
+
gap: "xs",
|
|
1382
|
+
rowGap: "xs"
|
|
1383
|
+
},
|
|
1384
|
+
fixed: {
|
|
1385
|
+
display: "flex",
|
|
1386
|
+
flexWrap: "wrap",
|
|
1387
|
+
alignItems: "center"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1354
1390
|
tagInput: { options: {
|
|
1355
1391
|
chipGap: "xs",
|
|
1356
1392
|
chipSize: "md",
|
|
@@ -2233,7 +2269,7 @@ var UniThemes = {
|
|
|
2233
2269
|
Object.keys(UniThemes)[0];
|
|
2234
2270
|
//#endregion
|
|
2235
2271
|
//#region package.json
|
|
2236
|
-
var version = "11.
|
|
2272
|
+
var version = "11.1.0";
|
|
2237
2273
|
//#endregion
|
|
2238
2274
|
//#region schematics-src/ng-add/transforms.ts
|
|
2239
2275
|
var addDependencies = (packageJsonText, deps) => {
|
|
@@ -6114,27 +6114,74 @@ interface UniTagOptions {
|
|
|
6114
6114
|
removeIcon?: IconName;
|
|
6115
6115
|
/** Icon primitive shown in the lead slot when the chip is selected. */
|
|
6116
6116
|
selectedIcon?: IconName;
|
|
6117
|
+
/**
|
|
6118
|
+
* How far a lead element or the remove control tucks into the chip's rounded
|
|
6119
|
+
* end, in px. Defaults to `auto`, which derives it from the chip so the lead
|
|
6120
|
+
* sits concentric with the cap — and which declines to tuck at all when the
|
|
6121
|
+
* end is too square to flow into.
|
|
6122
|
+
*/
|
|
6123
|
+
endInset?: number | 'auto';
|
|
6117
6124
|
}
|
|
6118
6125
|
/** The value a tag echoes back on `removed` / `activated`. */
|
|
6119
6126
|
type UniTagValue = string | number | undefined;
|
|
6127
|
+
/**
|
|
6128
|
+
* One chip in a {@link UniTagGroupComponent}. The group renders its own chips
|
|
6129
|
+
* rather than projecting them, which is what lets it drive `selected` and the
|
|
6130
|
+
* roving tab index without an app binding per chip.
|
|
6131
|
+
*/
|
|
6132
|
+
interface UniTagGroupItem<T extends UniTagValue = UniTagValue> {
|
|
6133
|
+
label: string;
|
|
6134
|
+
value: T;
|
|
6135
|
+
/** Colour role, overriding the group's own. */
|
|
6136
|
+
variant?: Variant;
|
|
6137
|
+
/** Style archetype, overriding the group's own. */
|
|
6138
|
+
tone?: TagTone;
|
|
6139
|
+
iconName?: IconName;
|
|
6140
|
+
symbolName?: string;
|
|
6141
|
+
avatarSrc?: string;
|
|
6142
|
+
/** Initials fallback when `avatarSrc` is absent or fails to load. */
|
|
6143
|
+
avatarName?: string;
|
|
6144
|
+
dot?: boolean;
|
|
6145
|
+
disabled?: boolean;
|
|
6146
|
+
/** Adds a remove control to this chip; the group re-emits it on `removed`. */
|
|
6147
|
+
removable?: boolean;
|
|
6148
|
+
/** Truncation budget, e.g. `'14ch'`. A number is treated as px. */
|
|
6149
|
+
maxWidth?: string | number;
|
|
6150
|
+
}
|
|
6151
|
+
/** Theme options for the `tagGroup` component entry. */
|
|
6152
|
+
interface UniTagGroupOptions {
|
|
6153
|
+
/** Space between chips in a row. Defaults to `xs`. */
|
|
6154
|
+
gap?: NullableSize;
|
|
6155
|
+
/** Space between wrapped rows. Defaults to `xs`. */
|
|
6156
|
+
rowGap?: NullableSize;
|
|
6157
|
+
/** Size every chip takes unless the group's `size` input says otherwise. */
|
|
6158
|
+
chipSize?: Size;
|
|
6159
|
+
/** Resting tone for every chip. */
|
|
6160
|
+
chipTone?: TagTone;
|
|
6161
|
+
/** Colour role for every chip. */
|
|
6162
|
+
chipVariant?: Variant;
|
|
6163
|
+
}
|
|
6120
6164
|
|
|
6121
6165
|
/**
|
|
6122
6166
|
* Compact chip for categories, states, filters and tokens.
|
|
6123
6167
|
*
|
|
6124
6168
|
* Two orthogonal style axes: `variant` picks the colour role and `tone` picks
|
|
6125
6169
|
* the archetype (soft / solid / outline). Both live in the theme's `tag` entry,
|
|
6126
|
-
* so a theme restyles every chip in the app without touching markup.
|
|
6170
|
+
* so a theme restyles every chip in the app without touching markup. Two state
|
|
6171
|
+
* classes ride alongside the tone class for the same reason: `tag-selected` and
|
|
6172
|
+
* `tag-interactive` let the theme paint selection and hover beside the colours
|
|
6173
|
+
* they belong to, instead of an app swapping `tone` by hand on every chip.
|
|
6127
6174
|
*
|
|
6128
6175
|
* Structurally a chip is **body + trailing action as siblings**, never nested
|
|
6129
6176
|
* buttons: an interactive chip whose body is a `<button>` cannot contain the
|
|
6130
6177
|
* remove `<button>` (invalid HTML, and the inner control becomes unreachable
|
|
6131
6178
|
* for keyboard users). Both stay independently operable.
|
|
6132
6179
|
*/
|
|
6133
|
-
declare class UniTagComponent extends BaseComponent<UniTagOptions> {
|
|
6180
|
+
declare class UniTagComponent<T extends UniTagValue = UniTagValue> extends BaseComponent<UniTagOptions> {
|
|
6134
6181
|
size: _angular_core.InputSignal<Size>;
|
|
6135
6182
|
tone: _angular_core.InputSignal<TagTone>;
|
|
6136
6183
|
label: _angular_core.InputSignal<string | undefined>;
|
|
6137
|
-
value: _angular_core.InputSignal<
|
|
6184
|
+
value: _angular_core.InputSignal<T | undefined>;
|
|
6138
6185
|
/** Truncation budget, e.g. `'14ch'`. A number is treated as px. */
|
|
6139
6186
|
maxWidth: _angular_core.InputSignal<string | number | undefined>;
|
|
6140
6187
|
avatarSrc: _angular_core.InputSignal<string | undefined>;
|
|
@@ -6161,33 +6208,158 @@ declare class UniTagComponent extends BaseComponent<UniTagOptions> {
|
|
|
6161
6208
|
removeLabel: _angular_core.InputSignal<string | undefined>;
|
|
6162
6209
|
/**
|
|
6163
6210
|
* Tab position of the chip's controls. A composite that owns its own
|
|
6164
|
-
* roving focus — `uni-tag-input`, where the whole
|
|
6165
|
-
* passes `-1` so Tab does not walk through every
|
|
6166
|
-
* control.
|
|
6211
|
+
* roving focus — `uni-tag-input` or `uni-tag-group`, where the whole
|
|
6212
|
+
* thing is one tab stop — passes `-1` so Tab does not walk through every
|
|
6213
|
+
* chip to reach the next control.
|
|
6167
6214
|
*/
|
|
6168
6215
|
controlTabIndex: _angular_core.InputSignal<number>;
|
|
6169
|
-
removed: _angular_core.OutputEmitterRef<
|
|
6170
|
-
activated: _angular_core.OutputEmitterRef<
|
|
6216
|
+
removed: _angular_core.OutputEmitterRef<T | undefined>;
|
|
6217
|
+
activated: _angular_core.OutputEmitterRef<T | undefined>;
|
|
6171
6218
|
/** A disabled chip wears the theme's `disabled` role, whatever its variant. */
|
|
6172
6219
|
protected readonly resolvedVariant: _angular_core.Signal<keyof _uni_design_system_uni_core.UniVariantRegistry>;
|
|
6173
6220
|
protected readonly themeStyle: _angular_core.Signal<{
|
|
6174
6221
|
[x: string]: string | number | _uni_design_system_uni_core.StyleExpression | undefined;
|
|
6175
6222
|
}>;
|
|
6223
|
+
protected readonly height: _angular_core.Signal<number>;
|
|
6176
6224
|
/** Lead elements derive from the chip height, so no second size token. */
|
|
6177
6225
|
protected readonly leadSize: _angular_core.Signal<number>;
|
|
6178
6226
|
/** Remove glyph, proportional to the chip rather than to the icon-button. */
|
|
6179
6227
|
protected readonly removeGlyphSize: _angular_core.Signal<number>;
|
|
6180
6228
|
protected readonly initials: _angular_core.Signal<string>;
|
|
6229
|
+
/** Glyph the theme shows in the lead slot for a selected chip, if any. */
|
|
6230
|
+
protected readonly selectedIcon: _angular_core.Signal<IconName | undefined>;
|
|
6231
|
+
/**
|
|
6232
|
+
* The chip is a toggle: `selected` was bound, so the chip is one of a set the
|
|
6233
|
+
* user switches on and off — the same tri-state that gates `aria-pressed`.
|
|
6234
|
+
*/
|
|
6235
|
+
protected readonly isToggle: _angular_core.Signal<boolean>;
|
|
6236
|
+
/** A lead element the chip renders itself, rather than the projected slot. */
|
|
6237
|
+
protected readonly hasOwnLead: _angular_core.Signal<boolean>;
|
|
6238
|
+
/**
|
|
6239
|
+
* A toggle chip with nothing else in the lead holds the check's place while
|
|
6240
|
+
* unselected. Without it the chip grows by a glyph the moment it is picked
|
|
6241
|
+
* and the whole row reflows — and a row that jumps under the pointer is worse
|
|
6242
|
+
* than one with a little space in front of each label.
|
|
6243
|
+
*/
|
|
6244
|
+
protected readonly reservesSlot: _angular_core.Signal<boolean>;
|
|
6245
|
+
/** Whether the chip paints a lead box at all, so the start end tucks. */
|
|
6246
|
+
protected readonly showsLead: _angular_core.Signal<boolean>;
|
|
6247
|
+
/** Status dots are their own size — a lead box would dwarf one. */
|
|
6248
|
+
protected readonly dotSize: _angular_core.Signal<number>;
|
|
6249
|
+
/** Width the lead actually occupies, which a dot changes. */
|
|
6250
|
+
private readonly leadWidth;
|
|
6251
|
+
/**
|
|
6252
|
+
* Whether the ends are round enough to tuck anything into.
|
|
6253
|
+
*
|
|
6254
|
+
* The theme's documented `borderRadius: 'xs'` switch to rectangular labels
|
|
6255
|
+
* leaves no curve to flow into, and a glyph jammed against a corner is worse
|
|
6256
|
+
* than one sitting in a gutter.
|
|
6257
|
+
*/
|
|
6258
|
+
private readonly tucks;
|
|
6259
|
+
/**
|
|
6260
|
+
* How far an element of `size` sits from its end of the chip.
|
|
6261
|
+
*
|
|
6262
|
+
* `auto` centres it in the cap: an element `size` tall has `(height - size)/2`
|
|
6263
|
+
* of chip above and below it, so the same inset horizontally makes it
|
|
6264
|
+
* concentric with the curve. A lead box lands 3px in — flowing into the round
|
|
6265
|
+
* end rather than beginning where the radius ends — while a 6px status dot
|
|
6266
|
+
* keeps its distance, because a dot pushed that far in reads as a smudge on
|
|
6267
|
+
* the edge.
|
|
6268
|
+
*/
|
|
6269
|
+
private inset;
|
|
6270
|
+
/** The themed `gap` as a number, for the padding arithmetic. */
|
|
6271
|
+
private readonly gapSize;
|
|
6272
|
+
/**
|
|
6273
|
+
* Inline padding: the ends tuck, and a lead is balanced against.
|
|
6274
|
+
*
|
|
6275
|
+
* A lead pushes the label off centre, so the far side grows to match it —
|
|
6276
|
+
* each end asks for the room it needs (its own inset, plus whatever it holds,
|
|
6277
|
+
* plus the gap) and the wider ask wins for both. The tuck costs less than the
|
|
6278
|
+
* old gutter did, so that balance is largely paid for rather than added.
|
|
6279
|
+
*
|
|
6280
|
+
* The remove control is not balanced against on its own. It reads as an
|
|
6281
|
+
* affordance rather than as content, so a chip with nothing but a remove
|
|
6282
|
+
* button keeps the size token's gutter at the start and simply tucks the
|
|
6283
|
+
* glyph into the trailing curve — padding the other side to match would leave
|
|
6284
|
+
* a plain label sitting behind a stretch of empty chip.
|
|
6285
|
+
*/
|
|
6286
|
+
protected readonly padding: _angular_core.Signal<{
|
|
6287
|
+
start: number;
|
|
6288
|
+
end: number;
|
|
6289
|
+
}>;
|
|
6181
6290
|
protected readonly hostClass: _angular_core.Signal<string>;
|
|
6182
|
-
/**
|
|
6291
|
+
/**
|
|
6292
|
+
* Truncating label. It grows, so a chip stretched to fill a justified row
|
|
6293
|
+
* puts the slack around its text instead of behind it — the tucked ends stay
|
|
6294
|
+
* where they are and the label stays centred. `title` exposes the full text
|
|
6295
|
+
* when a budget is set.
|
|
6296
|
+
*/
|
|
6183
6297
|
protected readonly labelClass: string;
|
|
6184
6298
|
protected readonly bodyClass: _angular_core.Signal<string>;
|
|
6185
6299
|
protected readonly leadClass: _angular_core.Signal<string>;
|
|
6300
|
+
/** The held-open check slot: the lead's footprint and nothing in it. */
|
|
6301
|
+
protected readonly slotClass: _angular_core.Signal<string>;
|
|
6186
6302
|
protected readonly dotClass: _angular_core.Signal<string>;
|
|
6187
6303
|
protected remove(): void;
|
|
6188
6304
|
protected activate(): void;
|
|
6189
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniTagComponent
|
|
6190
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniTagComponent
|
|
6305
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniTagComponent<any>, never>;
|
|
6306
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniTagComponent<any>, "uni-tag", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "avatarSrc": { "alias": "avatarSrc"; "required": false; "isSignal": true; }; "avatarName": { "alias": "avatarName"; "required": false; "isSignal": true; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "symbolName": { "alias": "symbolName"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; "controlTabIndex": { "alias": "controlTabIndex"; "required": false; "isSignal": true; }; }, { "removed": "removed"; "activated": "activated"; }, never, ["[tag-lead]", "*"], true, never>;
|
|
6307
|
+
}
|
|
6308
|
+
|
|
6309
|
+
/**
|
|
6310
|
+
* A row of chips the user picks from: filters, facets, a set of labels.
|
|
6311
|
+
*
|
|
6312
|
+
* The group **renders its own chips** from `items` rather than projecting them.
|
|
6313
|
+
* That is what lets it own the things an app was otherwise wiring per chip —
|
|
6314
|
+
* which one is selected, which one holds the tab stop — since a parent cannot
|
|
6315
|
+
* write a projected child's inputs. `uni-tag` is unchanged by this component;
|
|
6316
|
+
* `controlTabIndex` was already its hook for a composite that manages focus.
|
|
6317
|
+
*
|
|
6318
|
+
* Keyboard model is the toolbar pattern: one tab stop for the whole group, and
|
|
6319
|
+
* the arrow keys move within it. Twelve filter chips should cost one Tab to
|
|
6320
|
+
* pass, not twelve.
|
|
6321
|
+
*/
|
|
6322
|
+
declare class UniTagGroupComponent<T extends UniTagValue = UniTagValue> extends BaseComponent<UniTagGroupOptions> {
|
|
6323
|
+
items: _angular_core.InputSignal<readonly UniTagGroupItem<T>[]>;
|
|
6324
|
+
/**
|
|
6325
|
+
* `wrap` lets chips keep their natural widths. `justify` stretches each
|
|
6326
|
+
* filled row flush to both edges, leaving the last row ragged; chips put the
|
|
6327
|
+
* extra width around their labels, so tucked leads and remove controls stay
|
|
6328
|
+
* tucked.
|
|
6329
|
+
*/
|
|
6330
|
+
layout: _angular_core.InputSignal<"justify" | "wrap">;
|
|
6331
|
+
/** Allow more than one chip at a time. Single select replaces instead. */
|
|
6332
|
+
multiple: _angular_core.InputSignal<boolean>;
|
|
6333
|
+
/**
|
|
6334
|
+
* The selected values — one array in both modes, as `uni-tag-input` keeps one
|
|
6335
|
+
* array for its items. Single select simply never holds more than one, which
|
|
6336
|
+
* spares callers a `T[] | T | null` union at every call site.
|
|
6337
|
+
*/
|
|
6338
|
+
value: _angular_core.ModelSignal<T[]>;
|
|
6339
|
+
/** The chip the user just activated, selected or deselected. */
|
|
6340
|
+
activated: _angular_core.OutputEmitterRef<T | undefined>;
|
|
6341
|
+
removed: _angular_core.OutputEmitterRef<T | undefined>;
|
|
6342
|
+
chipTone: _angular_core.InputSignal<TagTone | undefined>;
|
|
6343
|
+
chipSize: _angular_core.InputSignal<Size | undefined>;
|
|
6344
|
+
chipVariant: _angular_core.InputSignal<keyof _uni_design_system_uni_core.UniVariantRegistry | undefined>;
|
|
6345
|
+
protected readonly resolvedTone: _angular_core.Signal<TagTone>;
|
|
6346
|
+
protected readonly resolvedSize: _angular_core.Signal<Size>;
|
|
6347
|
+
protected readonly resolvedVariant: _angular_core.Signal<keyof _uni_design_system_uni_core.UniVariantRegistry>;
|
|
6348
|
+
/**
|
|
6349
|
+
* Which chip holds the group's tab stop. It moves with the arrow keys and
|
|
6350
|
+
* follows selection, so tabbing back into the group lands where the user
|
|
6351
|
+
* left off rather than at the start.
|
|
6352
|
+
*/
|
|
6353
|
+
protected readonly focusedIndex: _angular_core.WritableSignal<number>;
|
|
6354
|
+
private readonly chipRefs;
|
|
6355
|
+
protected readonly fillerClass: string;
|
|
6356
|
+
protected readonly hostClass: _angular_core.Signal<string>;
|
|
6357
|
+
protected isSelected(value: T): boolean;
|
|
6358
|
+
protected toggle(item: UniTagGroupItem<T>): void;
|
|
6359
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
6360
|
+
private focusChip;
|
|
6361
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniTagGroupComponent<any>, never>;
|
|
6362
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniTagGroupComponent<any>, "uni-tag-group", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "chipTone": { "alias": "chipTone"; "required": false; "isSignal": true; }; "chipSize": { "alias": "chipSize"; "required": false; "isSignal": true; }; "chipVariant": { "alias": "chipVariant"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "activated": "activated"; "removed": "removed"; }, never, never, true, never>;
|
|
6191
6363
|
}
|
|
6192
6364
|
|
|
6193
6365
|
interface Preset {
|
|
@@ -6465,6 +6637,6 @@ declare class DragAndDropDirective {
|
|
|
6465
6637
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DragAndDropDirective, "[uni-drag-n-drop], [dragAndDrop]", never, {}, { "fileDropped": "fileDropped"; }, never, never, true, never>;
|
|
6466
6638
|
}
|
|
6467
6639
|
|
|
6468
|
-
export { BodyRenderDirective, ConfirmationDialogComponent, DRAWER_PANEL, DragAndDropDirective, FOCUSABLE_SELECTOR, ListboxNavigation, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, TRANSFORM_ORIGINS, ThemeService, UNI_FORMS, UNI_LAYOUT, UNI_THEMES, UniAlertComponent, UniAppBarComponent, UniAvatarComponent, UniAvatarGroupComponent, UniBackgroundComponent, UniBadgeComponent, UniBaseDatasource, UniBoxDirective, UniBreadcrumbComponent, UniButtonComponent, UniButtonGroupComponent, UniCalendarComponent, UniCalloutComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterDirective, UniCheckboxComponent, UniComboboxComponent, UniDataSearchComponent, UniDataTableComponent, UniDateInputComponent, UniDateTimeInputComponent, UniDebounceInputComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDrawerButtonsComponent, UniDrawerComponent, UniDrawerHeaderComponent, UniDropdownComponent, UniExpandAreaComponent, UniExpandComponent, UniExpandToggleComponent, UniFileDropZoneComponent, UniGridAreaDirective, UniGridDirective, UniIconButtonComponent, UniIconComponent, UniInlineButtonComponent, UniInputBoxComponent, UniInputComponent, UniJsonViewComponent, UniMenuComponent, UniMultiSelectComponent, UniMultiSelectDropdownComponent, UniNotificationBadgeComponent, UniNumberInputComponent, UniNumberRangeInputComponent, UniPaginatorComponent, UniPopoverComponent, UniProgressBarComponent, UniProgressGaugeComponent, UniQuantityStepperComponent, UniRadioComponent, UniRecordDatasource, UniRowDirective, UniScrollAreaComponent, UniSearchInputComponent, UniSelectComponent, UniServerSideDatasource, UniSkeletonComponent, UniSliderComponent, UniSnackbarComponent, UniSortHeaderComponent, UniStackDirective, UniStatComponent, UniSymbolComponent, UniTabComponent, UniTabsComponent, UniTagComponent, UniTagInputComponent, UniTextDirective, UniTextareaComponent, UniThemeBuilderComponent, UniThemeSwitchComponent, UniTimeInputComponent, UniToggleComponent, UniTooltipComponent, UniTourComponent, UniWrapDirective, acceptableFile, addDays, addMonths, anchorArrowStyles, anchorStyles, buildMonthGrid, clampDecimal, clearAnchorName, compareDecimal, createAnnouncer, createListboxNavigation, createPressRepeat, dayOfWeek, daysInMonth, decimalScale, discreteOverlayTransition, evaluateExpression, focusableElements, formatDate, formatMonthHeading, formatNumber, formatTime, fromScaled, getFileExtension, inclusiveDayCount, isCanonicalDecimal, isDivider, isToggleOpen, isValidDate, isoDate, joinDateTime, listboxPopupAttr, listboxPopupStyles, localeDatePlaceholder, localeDefaultHour12, localeFieldOrder, localeMonthNames, localeNumberParts, localeWeekStart, losesPrecision, monthOf, motionSafe, newAnchorName, newListboxAnchor, normalizeDecimal, parseDateText, parseNumber, parseTimeText, promoteListboxPopup, rawNumberText, resolveElement, resolveFocusTarget, resolveNumberFormat, restoreOverlayFocus, roundDecimal, setAnchorName, settleNumber, shiftDecimal, speakNumber, splitDateTime, spotlightStyles, stepDecimal, supportsAnchoredPopup, timeSlots, toAsciiDigits, toDecimal, toNumber, toScaled, todayIso, transformOriginFor, uniqueId, useTimer, visuallyHidden, weekdayNames };
|
|
6469
|
-
export type { Alert, AnchorOffset, AnchorRect, Announcer, BrandPaletteConfig, BreadcrumbItem, ButtonGroupConfig, ButtonGroupItem, ColumnDefinition, Confirmation, DataLoader, DrawerBackground, DrawerCloseReason, DrawerMode, DrawerPosition, ImagePosition, ListboxNavigationConfig, MenuDivider, MenuItem, MenuItemWithLabel, MenuItemWithTemplate, Option, Options, PageRequest, PageResponse, Placement, PressRepeat, PressRepeatConfig, PressRepeatTiming, ScrollbarAppearance, SkeletonShape, SkeletonSweepDirection, Snackbar, Sort, SortDirection, SpotlightOptions, SpotlightStyles, UniAppBarOptions, UniAvatarGroupOptions, UniAvatarOptions, UniBreadcrumbOptions, UniCalendarMarker, UniCalendarMode, UniCalendarOptions, UniCalendarValue, UniCalloutDismissal, UniCalloutOptions, UniCheckboxOptions, UniCheckboxVariant, UniComboboxOptions, UniComboboxRejection, UniDataSearchOptions, UniDataTableOptions, UniDatasource, UniDate, UniDateInputOptions, UniDateInputRejection, UniDateRange, UniDateTime, UniDateTimeInputOptions, UniDrawerButtonsOptions, UniDrawerCloseRequest, UniDrawerHeaderOptions, UniDrawerOptions, UniDrawerPanel, UniExpandOptions, UniInlineButtonOptions, UniInputBoxOptions, UniInputMode, UniInputType, UniListboxPopupOptions, UniLocaleNumberParts, UniMenuItemOptions, UniMenuOptions, UniMonthGridCell, UniMultiSelectDropdownOptions, UniNotificationBadgeOptions, UniNumberClamp, UniNumberFormatConfig, UniNumberGrouping, UniNumberInputOptions, UniNumberParseResult, UniNumberPreset, UniNumberRange, UniNumberRangeInputOptions, UniNumberRangePart, UniNumberRangeRejection, UniNumberRejectReason, UniNumberRejection, UniNumberStepConfig, UniNumberStepped, UniPaginatorOptions, UniPopoverOptions, UniQuantityStepperOptions, UniRadioOption, UniRadioOptions, UniRadioVariant, UniResolvedNumberFormat, UniRoundingMode, UniSearchInputOptions, UniSelectOptions, UniSkeletonOptions, UniSliderMark, UniSliderOptions, UniSliderThumb, UniStatOptions, UniStepperLayout, UniTabsOptions, UniTagInputOptions, UniTagItem, UniTagOptions, UniTagRejection, UniTagSuggestion, UniTagValue, UniTextareaOptions, UniTime, UniTimeInputOptions, UniTimeInputRejection, UniToggleOptions, UniToggleVariant, UniTourAdvance, UniTourOptions, UniTourStep, UniWeekdayName };
|
|
6640
|
+
export { BodyRenderDirective, ConfirmationDialogComponent, DRAWER_PANEL, DragAndDropDirective, FOCUSABLE_SELECTOR, ListboxNavigation, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, TRANSFORM_ORIGINS, ThemeService, UNI_FORMS, UNI_LAYOUT, UNI_THEMES, UniAlertComponent, UniAppBarComponent, UniAvatarComponent, UniAvatarGroupComponent, UniBackgroundComponent, UniBadgeComponent, UniBaseDatasource, UniBoxDirective, UniBreadcrumbComponent, UniButtonComponent, UniButtonGroupComponent, UniCalendarComponent, UniCalloutComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterDirective, UniCheckboxComponent, UniComboboxComponent, UniDataSearchComponent, UniDataTableComponent, UniDateInputComponent, UniDateTimeInputComponent, UniDebounceInputComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDrawerButtonsComponent, UniDrawerComponent, UniDrawerHeaderComponent, UniDropdownComponent, UniExpandAreaComponent, UniExpandComponent, UniExpandToggleComponent, UniFileDropZoneComponent, UniGridAreaDirective, UniGridDirective, UniIconButtonComponent, UniIconComponent, UniInlineButtonComponent, UniInputBoxComponent, UniInputComponent, UniJsonViewComponent, UniMenuComponent, UniMultiSelectComponent, UniMultiSelectDropdownComponent, UniNotificationBadgeComponent, UniNumberInputComponent, UniNumberRangeInputComponent, UniPaginatorComponent, UniPopoverComponent, UniProgressBarComponent, UniProgressGaugeComponent, UniQuantityStepperComponent, UniRadioComponent, UniRecordDatasource, UniRowDirective, UniScrollAreaComponent, UniSearchInputComponent, UniSelectComponent, UniServerSideDatasource, UniSkeletonComponent, UniSliderComponent, UniSnackbarComponent, UniSortHeaderComponent, UniStackDirective, UniStatComponent, UniSymbolComponent, UniTabComponent, UniTabsComponent, UniTagComponent, UniTagGroupComponent, UniTagInputComponent, UniTextDirective, UniTextareaComponent, UniThemeBuilderComponent, UniThemeSwitchComponent, UniTimeInputComponent, UniToggleComponent, UniTooltipComponent, UniTourComponent, UniWrapDirective, acceptableFile, addDays, addMonths, anchorArrowStyles, anchorStyles, buildMonthGrid, clampDecimal, clearAnchorName, compareDecimal, createAnnouncer, createListboxNavigation, createPressRepeat, dayOfWeek, daysInMonth, decimalScale, discreteOverlayTransition, evaluateExpression, focusableElements, formatDate, formatMonthHeading, formatNumber, formatTime, fromScaled, getFileExtension, inclusiveDayCount, isCanonicalDecimal, isDivider, isToggleOpen, isValidDate, isoDate, joinDateTime, listboxPopupAttr, listboxPopupStyles, localeDatePlaceholder, localeDefaultHour12, localeFieldOrder, localeMonthNames, localeNumberParts, localeWeekStart, losesPrecision, monthOf, motionSafe, newAnchorName, newListboxAnchor, normalizeDecimal, parseDateText, parseNumber, parseTimeText, promoteListboxPopup, rawNumberText, resolveElement, resolveFocusTarget, resolveNumberFormat, restoreOverlayFocus, roundDecimal, setAnchorName, settleNumber, shiftDecimal, speakNumber, splitDateTime, spotlightStyles, stepDecimal, supportsAnchoredPopup, timeSlots, toAsciiDigits, toDecimal, toNumber, toScaled, todayIso, transformOriginFor, uniqueId, useTimer, visuallyHidden, weekdayNames };
|
|
6641
|
+
export type { Alert, AnchorOffset, AnchorRect, Announcer, BrandPaletteConfig, BreadcrumbItem, ButtonGroupConfig, ButtonGroupItem, ColumnDefinition, Confirmation, DataLoader, DrawerBackground, DrawerCloseReason, DrawerMode, DrawerPosition, ImagePosition, ListboxNavigationConfig, MenuDivider, MenuItem, MenuItemWithLabel, MenuItemWithTemplate, Option, Options, PageRequest, PageResponse, Placement, PressRepeat, PressRepeatConfig, PressRepeatTiming, ScrollbarAppearance, SkeletonShape, SkeletonSweepDirection, Snackbar, Sort, SortDirection, SpotlightOptions, SpotlightStyles, UniAppBarOptions, UniAvatarGroupOptions, UniAvatarOptions, UniBreadcrumbOptions, UniCalendarMarker, UniCalendarMode, UniCalendarOptions, UniCalendarValue, UniCalloutDismissal, UniCalloutOptions, UniCheckboxOptions, UniCheckboxVariant, UniComboboxOptions, UniComboboxRejection, UniDataSearchOptions, UniDataTableOptions, UniDatasource, UniDate, UniDateInputOptions, UniDateInputRejection, UniDateRange, UniDateTime, UniDateTimeInputOptions, UniDrawerButtonsOptions, UniDrawerCloseRequest, UniDrawerHeaderOptions, UniDrawerOptions, UniDrawerPanel, UniExpandOptions, UniInlineButtonOptions, UniInputBoxOptions, UniInputMode, UniInputType, UniListboxPopupOptions, UniLocaleNumberParts, UniMenuItemOptions, UniMenuOptions, UniMonthGridCell, UniMultiSelectDropdownOptions, UniNotificationBadgeOptions, UniNumberClamp, UniNumberFormatConfig, UniNumberGrouping, UniNumberInputOptions, UniNumberParseResult, UniNumberPreset, UniNumberRange, UniNumberRangeInputOptions, UniNumberRangePart, UniNumberRangeRejection, UniNumberRejectReason, UniNumberRejection, UniNumberStepConfig, UniNumberStepped, UniPaginatorOptions, UniPopoverOptions, UniQuantityStepperOptions, UniRadioOption, UniRadioOptions, UniRadioVariant, UniResolvedNumberFormat, UniRoundingMode, UniSearchInputOptions, UniSelectOptions, UniSkeletonOptions, UniSliderMark, UniSliderOptions, UniSliderThumb, UniStatOptions, UniStepperLayout, UniTabsOptions, UniTagGroupItem, UniTagGroupOptions, UniTagInputOptions, UniTagItem, UniTagOptions, UniTagRejection, UniTagSuggestion, UniTagValue, UniTextareaOptions, UniTime, UniTimeInputOptions, UniTimeInputRejection, UniToggleOptions, UniToggleVariant, UniTourAdvance, UniTourOptions, UniTourStep, UniWeekdayName };
|
|
6470
6642
|
//# sourceMappingURL=uni-design-system-uni-angular.d.ts.map
|