@ngstarter-ui/components 21.0.57 → 21.0.59
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/ai/component-registry.json +26 -20
- package/fesm2022/ngstarter-ui-components-avatar.mjs +333 -83
- package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button.mjs +2 -2
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-chips.mjs +6 -6
- package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-empty-state.mjs +2 -2
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +4 -4
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/package.json +1 -3
- package/styles/_tokens.scss +3 -3
- package/types/ngstarter-ui-components-avatar.d.ts +33 -27
|
@@ -474,8 +474,8 @@
|
|
|
474
474
|
"sourceRoot": "projects/components/avatar/src",
|
|
475
475
|
"docsPath": "/components/avatar",
|
|
476
476
|
"docsOverviewSource": "projects/docs/src/app/components/avatar/overview/overview.html",
|
|
477
|
-
"purpose": "Represent users, teams, or entities with
|
|
478
|
-
"useWhen": "Use in account menus, lists, comments, assignees, collaborators, and activity feeds.",
|
|
477
|
+
"purpose": "Represent users, teams, or entities with images, initials, icons, generated key-based avatar appearances, and presence.",
|
|
478
|
+
"useWhen": "Use in account menus, lists, comments, assignees, collaborators, and activity feeds. Use the default appearance for normal image, label, or icon avatars. Use appearance=\"identicon\" or appearance=\"initials\" with a stable key for deterministic generated placeholders, optionally with backgroundColors and foregroundColors. Set a global default with provideAvatar({ appearance }) and override individual avatars with appearance=\"default\" when generated placeholders should be disabled.",
|
|
479
479
|
"exampleTopics": [
|
|
480
480
|
"Basic Avatar",
|
|
481
481
|
"Avatar Variants",
|
|
@@ -486,9 +486,9 @@
|
|
|
486
486
|
"Grouped Avatars",
|
|
487
487
|
"Grouped and Total Avatars",
|
|
488
488
|
"Avatar automatic color",
|
|
489
|
-
"Avatar
|
|
489
|
+
"Generated Avatar",
|
|
490
490
|
"Avatar presence indicator",
|
|
491
|
-
"Avatar
|
|
491
|
+
"Avatar generated"
|
|
492
492
|
],
|
|
493
493
|
"minimalExample": "<div class=\"flex gap-6\">\n <ngs-avatar label=\"PS\"/>\n <ngs-avatar label=\"N\" class=\"bg-pink-500 text-white\"/>\n <ngs-avatar label=\"OP\" class=\"bg-blue-500 text-white\"/>\n</div>",
|
|
494
494
|
"exampleFiles": [
|
|
@@ -505,10 +505,10 @@
|
|
|
505
505
|
"source": "<div class=\"flex flex-col gap-10\">\n <div class=\"flex gap-6\">\n <ngs-avatar label=\"PS\" automaticColor=\"#fcd6bb\"/>\n <ngs-avatar label=\"N\" automaticColor=\"#a7f3d0\"/>\n <ngs-avatar label=\"OP\" automaticColor=\"#eecff3\"/>\n </div>\n <div class=\"flex flex-col gap-8\">\n <div class=\"flex gap-6 items-center\">\n <ngs-avatar automaticColor=\"#eecff3\">\n <ngs-icon name=\"fluent:folder-24-regular\"/>\n </ngs-avatar>\n <ngs-avatar automaticColor=\"#fcd6bb\">\n <ngs-icon name=\"fluent:cloud-download-24-regular\"/>\n </ngs-avatar>\n <ngs-avatar automaticColor=\"#a7f3d0\">\n <ngs-icon name=\"fluent:person-24-regular\"/>\n </ngs-avatar>\n </div>\n <div class=\"flex gap-6 items-center\">\n <ngs-avatar class=\"size-7\" automaticColor=\"#fde68a\">\n <ngs-icon name=\"fluent:folder-24-regular\" class=\"size-5\"/>\n </ngs-avatar>\n <ngs-avatar class=\"size-7\" automaticColor=\"#a7f3d0\">\n <ngs-icon name=\"fluent:cloud-download-24-regular\" class=\"size-5\"/>\n </ngs-avatar>\n <ngs-avatar class=\"size-7\" automaticColor=\"#eecff3\">\n <ngs-icon name=\"fluent:person-24-regular\" class=\"size-5\"/>\n </ngs-avatar>\n </div>\n </div>\n <ngs-avatar-group>\n <ngs-avatar label=\"am\" automaticColor=\"#bfdbfe\"/>\n <ngs-avatar label=\"ps\" automaticColor=\"#a7f3d0\"/>\n <ngs-avatar label=\"br\" automaticColor=\"#eecff3\"/>\n <ngs-avatar-more>+20</ngs-avatar-more>\n </ngs-avatar-group>\n</div>"
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
|
-
"name": "avatar-
|
|
509
|
-
"title": "Avatar
|
|
510
|
-
"file": "projects/docs/src/app/components/avatar/_examples/avatar-
|
|
511
|
-
"source": "<div class=\"flex flex-col gap-10\">\n <div class=\"flex items-center gap-6\">\n <ngs-
|
|
508
|
+
"name": "avatar-generated-example",
|
|
509
|
+
"title": "Avatar generated",
|
|
510
|
+
"file": "projects/docs/src/app/components/avatar/_examples/avatar-generated-example/avatar-generated-example.html",
|
|
511
|
+
"source": "<div class=\"flex flex-col gap-10\">\n <div class=\"flex items-center gap-6\">\n <ngs-avatar appearance=\"identicon\" key=\"Pavel Salauyou\" class=\"size-6\"/>\n <ngs-avatar appearance=\"identicon\" key=\"PS\"/>\n <ngs-avatar appearance=\"identicon\" key=\"N\" class=\"size-16\"/>\n <ngs-avatar appearance=\"identicon\" key=\"OP\" class=\"size-32\"/>\n </div>\n <ngs-avatar-group>\n <ngs-avatar appearance=\"identicon\" key=\"am\"/>\n <ngs-avatar appearance=\"identicon\" key=\"ps\"/>\n <ngs-avatar appearance=\"identicon\" key=\"br\"/>\n <ngs-avatar appearance=\"identicon\" key=\"brn\"/>\n <ngs-avatar appearance=\"identicon\" key=\"brt\"/>\n <ngs-avatar appearance=\"identicon\" key=\"ps1\"/>\n </ngs-avatar-group>\n <div class=\"flex items-center gap-6\">\n <ngs-avatar key=\"Pavel Salauyou\" appearance=\"initials\" class=\"size-6\"/>\n <ngs-avatar key=\"Tate Stafford\" appearance=\"initials\"/>\n <ngs-avatar key=\"Oscar Bristol\" appearance=\"initials\" class=\"size-16\"/>\n <ngs-avatar key=\"Andrew Notley\" appearance=\"initials\" class=\"size-32\"/>\n </div>\n <ngs-avatar-group>\n <ngs-avatar key=\"Pavel Salauyou\" appearance=\"initials\"/>\n <ngs-avatar key=\"Tate Stafford\" appearance=\"initials\"/>\n <ngs-avatar key=\"Oscar Bristol\" appearance=\"initials\"/>\n <ngs-avatar key=\"Andrew Notley\" appearance=\"initials\"/>\n </ngs-avatar-group>\n</div>"
|
|
512
512
|
}
|
|
513
513
|
],
|
|
514
514
|
"previewAsset": "projects/components/avatar/preview.svg",
|
|
@@ -516,33 +516,40 @@
|
|
|
516
516
|
"[ngs-avatar-more]",
|
|
517
517
|
"[ngs-avatar-total]",
|
|
518
518
|
"[ngs-avatar]",
|
|
519
|
-
"[ngs-dicebear]",
|
|
520
519
|
"ngs-avatar",
|
|
521
520
|
"ngs-avatar-group",
|
|
522
521
|
"ngs-avatar-more",
|
|
523
|
-
"ngs-avatar-total"
|
|
524
|
-
"ngs-dicebear"
|
|
522
|
+
"ngs-avatar-total"
|
|
525
523
|
],
|
|
526
524
|
"exportedSymbols": [
|
|
527
525
|
"Avatar",
|
|
528
526
|
"AVATAR_ACCESSOR",
|
|
527
|
+
"AVATAR_CONFIG",
|
|
528
|
+
"AvatarAppearance",
|
|
529
|
+
"AvatarConfig",
|
|
530
|
+
"AvatarGenerator",
|
|
531
|
+
"AvatarGeneratorOptions",
|
|
529
532
|
"AvatarGroup",
|
|
533
|
+
"AvatarKey",
|
|
530
534
|
"AvatarMore",
|
|
531
535
|
"AvatarPresenceIndicator",
|
|
532
536
|
"AvatarTotal",
|
|
533
537
|
"AvatarVariant",
|
|
534
|
-
"
|
|
535
|
-
"
|
|
538
|
+
"GeneratedAvatar",
|
|
539
|
+
"GeneratedAvatarCell",
|
|
540
|
+
"provideAvatar"
|
|
536
541
|
],
|
|
537
542
|
"inputs": [
|
|
538
543
|
"alt",
|
|
544
|
+
"appearance",
|
|
539
545
|
"automaticColor",
|
|
546
|
+
"backgroundColors",
|
|
540
547
|
"clickable",
|
|
548
|
+
"foregroundColors",
|
|
541
549
|
"image",
|
|
542
550
|
"key",
|
|
543
551
|
"label",
|
|
544
552
|
"presenceIndicator",
|
|
545
|
-
"preset",
|
|
546
553
|
"variant"
|
|
547
554
|
],
|
|
548
555
|
"outputs": [],
|
|
@@ -581,7 +588,6 @@
|
|
|
581
588
|
"--ngs-color-primary",
|
|
582
589
|
"--ngs-color-success",
|
|
583
590
|
"--ngs-color-surface",
|
|
584
|
-
"--ngs-color-surface-container-high",
|
|
585
591
|
"--ngs-color-surface-container-highest",
|
|
586
592
|
"--ngs-color-warning",
|
|
587
593
|
"--ngs-font-size-xs"
|
|
@@ -965,7 +971,7 @@
|
|
|
965
971
|
"--ngs-button-tonal-color",
|
|
966
972
|
"--ngs-color-danger",
|
|
967
973
|
"--ngs-color-danger-container",
|
|
968
|
-
"--ngs-color-
|
|
974
|
+
"--ngs-color-muted",
|
|
969
975
|
"--ngs-color-on-danger",
|
|
970
976
|
"--ngs-color-on-danger-container",
|
|
971
977
|
"--ngs-color-on-primary",
|
|
@@ -6562,25 +6568,25 @@
|
|
|
6562
6568
|
"Notification variants",
|
|
6563
6569
|
"Notification list"
|
|
6564
6570
|
],
|
|
6565
|
-
"minimalExample": "<ngs-notification class=\"w-2/3 p-4\">\n <ngs-
|
|
6571
|
+
"minimalExample": "<ngs-notification class=\"w-2/3 p-4\">\n <ngs-avatar appearance=\"identicon\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Sam Anderson</a>\n commented your post <a routerLink=\"/\" class=\"link\">Super article</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>1 day ago</ngs-notification-time>\n</ngs-notification>\n<ngs-notification class=\"w-2/3 border border-muted rounded-xl p-4 mt-7\">\n <ngs-avatar appearance=\"identicon\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Sam Anderson</a>\n commented your post <a routerLink=\"/\" class=\"link\">Super article</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>1 day ago</ngs-notification-time>\n</ngs-notification>\n<ngs-notification class=\"w-2/3 bg-surface-container-low rounded-xl p-4 mt-7\">\n <ngs-avatar appearance=\"identicon\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Sam Anderson</a>\n commented your post <a routerLink=\"/\" class=\"link\">Super article</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>1 day ago</ngs-notification-time>\n</ngs-notification>\n<ngs-\n...",
|
|
6566
6572
|
"exampleFiles": [
|
|
6567
6573
|
{
|
|
6568
6574
|
"name": "basic-notifications-example",
|
|
6569
6575
|
"title": "Basic notifications",
|
|
6570
6576
|
"file": "projects/docs/src/app/components/notifications/_examples/basic-notifications-example/basic-notifications-example.html",
|
|
6571
|
-
"source": "<ngs-notification class=\"w-2/3 p-4\">\n <ngs-
|
|
6577
|
+
"source": "<ngs-notification class=\"w-2/3 p-4\">\n <ngs-avatar appearance=\"identicon\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Sam Anderson</a>\n commented your post <a routerLink=\"/\" class=\"link\">Super article</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>1 day ago</ngs-notification-time>\n</ngs-notification>\n<ngs-notification class=\"w-2/3 border border-muted rounded-xl p-4 mt-7\">\n <ngs-avatar appearance=\"identicon\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Sam Anderson</a>\n commented your post <a routerLink=\"/\" class=\"link\">Super article</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>1 day ago</ngs-notification-time>\n</ngs-notification>\n<ngs-notification class=\"w-2/3 bg-surface-container-low rounded-xl p-4 mt-7\">\n <ngs-avatar appearance=\"identicon\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Sam Anderson</a>\n commented your post <a routerLink=\"/\" class=\"link\">Super article</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>1 day ago</ngs-notification-time>\n</ngs-notification>\n<ngs-\n..."
|
|
6572
6578
|
},
|
|
6573
6579
|
{
|
|
6574
6580
|
"name": "notification-list-example",
|
|
6575
6581
|
"title": "Notification list",
|
|
6576
6582
|
"file": "projects/docs/src/app/components/notifications/_examples/notification-list-example/notification-list-example.html",
|
|
6577
|
-
"source": "<ngs-notification-list [notifications]=\"notifications\" [static]=\"false\">\n <ng-template ngsNotificationDef=\"mentionedInComment\" let-notification>\n <ngs-notification [isUnread]=\"notification.isUnread\">\n <ngs-
|
|
6583
|
+
"source": "<ngs-notification-list [notifications]=\"notifications\" [static]=\"false\">\n <ng-template ngsNotificationDef=\"mentionedInComment\" let-notification>\n <ngs-notification [isUnread]=\"notification.isUnread\">\n <ngs-avatar appearance=\"identicon\" [key]=\"notification.actor.id\"\n [image]=\"notification.actor.avatarUrl\"\n ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>{{ notification.actor.name }}</a>\n {{ notification.message }}\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n This is a comment.\n </ngs-notification-content>\n <ngs-notification-time>{{ notification.createdAt }}</ngs-notification-time>\n </ngs-notification>\n </ng-template>\n <ng-template ngsNotificationDef=\"inviteToEditFilesInFolder\" let-notification>\n <ngs-notification [isUnread]=\"notification.isUnread\">\n <ngs-avatar appearance=\"identicon\" [key]=\"notification.actor.id\"\n [image]=\"notification.actor.avatarUrl\"\n ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>{{ notification.actor.name }}</a>\n invited you to edit <a routerLink=\"/\" class=\"link\">{{ notification.payload.folderName }}</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"border border-muted rounded-lg p-2.5 text-sm\">\n <div class=\"flex items-center gap-2\">\n <ngs-icon name=\"fluent:folder-24-regular\" class=\"text-on-surfac\n..."
|
|
6578
6584
|
},
|
|
6579
6585
|
{
|
|
6580
6586
|
"name": "notification-variants-example",
|
|
6581
6587
|
"title": "Notification variants",
|
|
6582
6588
|
"file": "projects/docs/src/app/components/notifications/_examples/notification-variants-example/notification-variants-example.html",
|
|
6583
|
-
"source": "<div class=\"flex flex-col gap-5\">\n <ngs-notification class=\"border border-muted\">\n <ngs-
|
|
6589
|
+
"source": "<div class=\"flex flex-col gap-5\">\n <ngs-notification class=\"border border-muted\">\n <ngs-avatar appearance=\"identicon\" key=\"mila-ray\" image=\"assets/avatars/1.svg\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Mila Ray</a>\n mentioned you in <a routerLink=\"/\" class=\"link\">Launch planning</a>\n </ngs-notification-message>\n <ngs-notification-content class=\"notification-preview\">\n Can you confirm the rollout window before we lock the customer email?\n </ngs-notification-content>\n <ngs-notification-time>Just now</ngs-notification-time>\n </ngs-notification>\n <ngs-notification isUnread class=\"border border-muted\">\n <ngs-avatar appearance=\"identicon\" key=\"nolan-kim\" image=\"assets/avatars/2.svg\" ngsNotificationAvatar/>\n <ngs-notification-message>\n <a routerLink=\"/\" ngs-notification-actor>Nolan Kim</a>\n requested access to <a routerLink=\"/\" class=\"link\">Q3 Pipeline</a>\n </ngs-notification-message>\n <ngs-notification-content>\n <div class=\"notification-preview\">\n Workspace role: Editor\n </div>\n <div class=\"mt-3 flex flex-wrap gap-2\">\n <button ngsButton=\"filled\">Approve</button>\n <button ngsButton=\"outlined\">Decline</button>\n </div>\n </ngs-notification-content>\n <ngs-notification-time>8 minutes ago</ngs-notification-time>\n </ngs-notification>\n <ngs-notification class=\"border border-muted\">\n <ngs-icon\n name=\"fluent:checkmark-circle-24-regular\"\n class=\"notification-icon-avatar notification-icon-avatar--success\"\n ngsNotific\n..."
|
|
6584
6590
|
}
|
|
6585
6591
|
],
|
|
6586
6592
|
"previewAsset": "projects/components/notifications/preview.svg",
|