fansunited-widget-poll 1.0.0-RC1 → 1.0.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 +1 -1
- package/poll-manager.es.js +9 -7
- package/poll-manager.umd.js +2 -2
- package/style.css +1 -1
package/package.json
CHANGED
package/poll-manager.es.js
CHANGED
|
@@ -19355,6 +19355,7 @@ var ya = class {
|
|
|
19355
19355
|
a(this, "banned", []);
|
|
19356
19356
|
a(this, "invites", []);
|
|
19357
19357
|
a(this, "administrators", []);
|
|
19358
|
+
a(this, "membersCount", 0);
|
|
19358
19359
|
a(this, "invitationCode", "");
|
|
19359
19360
|
a(this, "templateId", "");
|
|
19360
19361
|
a(this, "templateModel", null);
|
|
@@ -19384,11 +19385,11 @@ var ya = class {
|
|
|
19384
19385
|
});
|
|
19385
19386
|
a(this, "remapToPrivateLeagueById", (t) => {
|
|
19386
19387
|
let e = new SS();
|
|
19387
|
-
return e.id = t.id, e.name = t.name, e.description = t.description, e.type = t.type, e.members = t.members, e.administrators = t.administrators, e.banned = t.banned, e.invites = t.invites, e.usersCanInviteUsers = t.users_can_invite_users, e.invitationCode = t.invitation_code, e.templateId = t.template_id, e.pastTemplates = t.past_templates, e.pinnedPosts = t.pinned_posts, e.scoringStartsAt = t.scoring_starts_at, e;
|
|
19388
|
+
return e.id = t.id, e.name = t.name, e.description = t.description, e.type = t.type, e.members = t.members, e.administrators = t.administrators, e.banned = t.banned, e.invites = t.invites, e.membersCount = t.members_count, e.usersCanInviteUsers = t.users_can_invite_users, e.invitationCode = t.invitation_code, e.templateId = t.template_id, e.pastTemplates = t.past_templates, e.pinnedPosts = t.pinned_posts, e.scoringStartsAt = t.scoring_starts_at, e;
|
|
19388
19389
|
});
|
|
19389
19390
|
a(this, "remapToMyPrivateLeagues", (t) => {
|
|
19390
19391
|
let e = new Kg();
|
|
19391
|
-
return e.id = t.id, e.name = t.name, e.description = t.description, e.type = t.type, e.administrators = t.administrators, e.banned = t.banned, e.invites = t.invites, e.usersCanInviteUsers = t.users_can_invite_users, e.invitationCode = t.invitation_code, e.templateId = t.template_id, e.pastTemplates = t.past_templates, e.pinnedPosts = t.pinned_posts, e.scoringStartsAt = t.scoring_starts_at, e;
|
|
19392
|
+
return e.id = t.id, e.name = t.name, e.description = t.description, e.type = t.type, e.administrators = t.administrators, e.banned = t.banned, e.invites = t.invites, e.membersCount = t.members_count, e.usersCanInviteUsers = t.users_can_invite_users, e.invitationCode = t.invitation_code, e.templateId = t.template_id, e.pastTemplates = t.past_templates, e.pinnedPosts = t.pinned_posts, e.scoringStartsAt = t.scoring_starts_at, e;
|
|
19392
19393
|
});
|
|
19393
19394
|
a(this, "remapToAcceptPrivateLeague", (t) => {
|
|
19394
19395
|
let e = new CS();
|
|
@@ -20112,11 +20113,12 @@ var ya = class {
|
|
|
20112
20113
|
a(this, "entityType", null);
|
|
20113
20114
|
a(this, "pollIds", null);
|
|
20114
20115
|
a(this, "sortOrder", null);
|
|
20115
|
-
|
|
20116
|
+
a(this, "minVotes", null);
|
|
20117
|
+
this.flags = (e == null ? void 0 : e.flags) || null, this.status = (e == null ? void 0 : e.status) || null, this.entityIds = (e == null ? void 0 : e.entityIds) || null, this.entityType = (e == null ? void 0 : e.entityType) || null, this.pollIds = (e == null ? void 0 : e.pollIds) || null, this.sortOrder = (e == null ? void 0 : e.sortOrder) || null, this.minVotes = e && e.minVotes !== void 0 ? e.minVotes : null;
|
|
20116
20118
|
}
|
|
20117
20119
|
constructMainFiltersUrl() {
|
|
20118
20120
|
let e = super.constructMainFiltersUrl();
|
|
20119
|
-
return this.flags && this.flags.length > 0 && (e += `&flags=${this.flags.join(",")}`), this.status && (e += `&status=${this.status}`), this.entityIds && this.entityIds.length > 0 && (e += `&entity_ids=${this.entityIds.join(",")}`), this.pollIds && this.pollIds.length > 0 && (e += `&poll_ids=${this.pollIds.join(",")}`), this.sortOrder && (e += `&sort_order=${this.sortOrder}`), e;
|
|
20121
|
+
return this.flags && this.flags.length > 0 && (e += `&flags=${this.flags.join(",")}`), this.status && (e += `&status=${this.status}`), this.entityIds && this.entityIds.length > 0 && (e += `&entity_ids=${this.entityIds.join(",")}`), this.pollIds && this.pollIds.length > 0 && (e += `&poll_ids=${this.pollIds.join(",")}`), this.sortOrder && (e += `&sort_order=${this.sortOrder}`), this.minVotes && (e += `&min_votes=${this.minVotes}`), e;
|
|
20120
20122
|
}
|
|
20121
20123
|
}, JS = class {
|
|
20122
20124
|
constructor(t) {
|
|
@@ -37429,9 +37431,9 @@ const B3 = (t, e, n, r) => ({
|
|
|
37429
37431
|
}), /* @__PURE__ */ oe("div", {
|
|
37430
37432
|
className: "pw-w-full pw-border pw-rounded pw-overflow-hidden pw-p-2",
|
|
37431
37433
|
children: [/* @__PURE__ */ oe("div", {
|
|
37432
|
-
className: "pw-grid
|
|
37434
|
+
className: "pw-grid lg:pw-grid-cols-8 pw-grid-cols-1 pw-gap-2 pw-mb-2",
|
|
37433
37435
|
children: [/* @__PURE__ */ j("div", {
|
|
37434
|
-
className: "pw-col-span-2",
|
|
37436
|
+
className: "pw-w-full lg:pw-col-span-2 pw-col-span-6",
|
|
37435
37437
|
children: r ? /* @__PURE__ */ oe(Le, {
|
|
37436
37438
|
children: [/* @__PURE__ */ j("img", {
|
|
37437
37439
|
src: r,
|
|
@@ -37444,7 +37446,7 @@ const B3 = (t, e, n, r) => ({
|
|
|
37444
37446
|
closeModal: p
|
|
37445
37447
|
})]
|
|
37446
37448
|
}) : /* @__PURE__ */ j("div", {
|
|
37447
|
-
className: "pw-bg-gray-200
|
|
37449
|
+
className: "pw-bg-gray-200 lg:pw-min-w-16 pw-min-h-24 pw-flex pw-justify-center pw-items-center pw-p-5",
|
|
37448
37450
|
children: /* @__PURE__ */ j("img", {
|
|
37449
37451
|
src: In.image,
|
|
37450
37452
|
alt: "Card image"
|