@leavittsoftware/web 4.13.0 → 4.14.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leavittsoftware/web",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"url": "https://github.com/LeavittSoftware/titanium-elements/issues"
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/LeavittSoftware/titanium-elements/#readme",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "67d4201d9d29c5bdd97f3e7915f49ead63d749e9"
|
|
44
44
|
}
|
|
@@ -23,6 +23,10 @@ export declare class TitaniumProfilePictureStack extends LitElement {
|
|
|
23
23
|
* This will only work if the person has an Id.
|
|
24
24
|
*/
|
|
25
25
|
accessor enableDirectoryHref: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Toggle to show the full name of the person if there is one result in the stack.
|
|
28
|
+
*/
|
|
29
|
+
accessor showFullName: boolean;
|
|
26
30
|
/**
|
|
27
31
|
* Enable auto resizing of the profile picture stack. Setting this will supersede the max property.
|
|
28
32
|
*/
|
|
@@ -32,6 +32,12 @@ let TitaniumProfilePictureStack = class TitaniumProfilePictureStack extends LitE
|
|
|
32
32
|
*/
|
|
33
33
|
get enableDirectoryHref() { return this.#enableDirectoryHref_accessor_storage; }
|
|
34
34
|
set enableDirectoryHref(value) { this.#enableDirectoryHref_accessor_storage = value; }
|
|
35
|
+
#showFullName_accessor_storage = false;
|
|
36
|
+
/**
|
|
37
|
+
* Toggle to show the full name of the person if there is one result in the stack.
|
|
38
|
+
*/
|
|
39
|
+
get showFullName() { return this.#showFullName_accessor_storage; }
|
|
40
|
+
set showFullName(value) { this.#showFullName_accessor_storage = value; }
|
|
35
41
|
#autoResize_accessor_storage = false;
|
|
36
42
|
/**
|
|
37
43
|
* Enable auto resizing of the profile picture stack. Setting this will supersede the max property.
|
|
@@ -151,14 +157,14 @@ let TitaniumProfilePictureStack = class TitaniumProfilePictureStack extends LitE
|
|
|
151
157
|
part="additional-users"
|
|
152
158
|
title="${(this.people?.length || 0) - max} more"
|
|
153
159
|
>
|
|
154
|
-
<p
|
|
160
|
+
<p part="additional-users-paragraph">+${(this.people?.length || 0) - max}</p>
|
|
155
161
|
</additional-users>`
|
|
156
162
|
: nothing}
|
|
157
163
|
${this.people
|
|
158
164
|
?.slice(0, max)
|
|
159
165
|
?.reverse()
|
|
160
166
|
?.map((o) => html `
|
|
161
|
-
${this.people?.length === 1 ? html `<p part="name" ellipsis full-name>${o?.FullName ?? ''}</p>` : nothing}
|
|
167
|
+
${this.people?.length === 1 && this.showFullName ? html `<p part="name" ellipsis full-name>${o?.FullName ?? ''}</p>` : nothing}
|
|
162
168
|
<profile-picture
|
|
163
169
|
@click=${() => {
|
|
164
170
|
if (this.enableDirectoryHref && o?.Id) {
|
|
@@ -184,6 +190,9 @@ __decorate([
|
|
|
184
190
|
__decorate([
|
|
185
191
|
property({ type: Boolean, attribute: 'enable-directory-href' })
|
|
186
192
|
], TitaniumProfilePictureStack.prototype, "enableDirectoryHref", null);
|
|
193
|
+
__decorate([
|
|
194
|
+
property({ type: Boolean, attribute: 'show-full-name' })
|
|
195
|
+
], TitaniumProfilePictureStack.prototype, "showFullName", null);
|
|
187
196
|
__decorate([
|
|
188
197
|
property({ type: Boolean, attribute: 'auto-resize' })
|
|
189
198
|
], TitaniumProfilePictureStack.prototype, "autoResize", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-picture-stack.js","sourceRoot":"","sources":["profile-picture-stack.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC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