@dcrackel/hematournamentui 1.0.283 → 1.0.285
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/dist/HemaTournamentUI-lib.es.js +52 -27
- package/dist/HemaTournamentUI-lib.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/mocks/personGetAllMock.js +2443 -180
- package/src/mocks/personsMock.js +357 -942
- package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.stories.js +2 -0
- package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.vue +29 -16
- package/src/stories/Organisms/ComplexInputs/DatePicker/DatePicker.vue +18 -0
- package/src/stories/Organisms/ComplexInputs/DropDown/DropDownMenu.vue +1 -1
- package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue +12 -8
- package/src/stories/Organisms/Containers/PeopleColumn/PeopleColumn.stories.js +20 -0
- package/src/stories/Organisms/Containers/PeopleColumn/PeopleColumn.vue +77 -0
- package/src/stories/Templates/PersonManagement/PersonManagement.stories.js +48 -0
- package/src/stories/Templates/PersonManagement/PersonManagement.vue +230 -0
- package/src/stories/Templates/TournamentManagement/AddTournament/PageOne/AddTournamentPageOne.vue +1 -0
|
@@ -838,7 +838,7 @@ function gC(n, e, t, r, i, o) {
|
|
|
838
838
|
}, null, 8, ["text"])) : S("", !0),
|
|
839
839
|
p(A, {
|
|
840
840
|
text: t.selectedItem.text,
|
|
841
|
-
color: "
|
|
841
|
+
color: "quaternary",
|
|
842
842
|
size: "sm",
|
|
843
843
|
weight: "normal"
|
|
844
844
|
}, null, 8, ["text"]),
|
|
@@ -9687,7 +9687,7 @@ function HQ(n, e, t, r, i, o) {
|
|
|
9687
9687
|
}, o.datePickerAttrs), null, 16, ["modelValue", "format", "min-date", "mode", "class"])
|
|
9688
9688
|
]);
|
|
9689
9689
|
}
|
|
9690
|
-
const ds = /* @__PURE__ */ re(LQ, [["render", HQ], ["__scopeId", "data-v-
|
|
9690
|
+
const ds = /* @__PURE__ */ re(LQ, [["render", HQ], ["__scopeId", "data-v-364ebbdb"]]), YQ = {
|
|
9691
9691
|
name: "StepIndicator",
|
|
9692
9692
|
components: { BaseText: Be, BaseIcon: Xe },
|
|
9693
9693
|
props: {
|
|
@@ -13359,6 +13359,16 @@ const Iu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACRCAYAAADtlO7dAA
|
|
|
13359
13359
|
imageServer: {
|
|
13360
13360
|
type: String,
|
|
13361
13361
|
default: "http://localhost:3000/uploads/"
|
|
13362
|
+
},
|
|
13363
|
+
cropperOptions: {
|
|
13364
|
+
type: Object,
|
|
13365
|
+
default: () => ({
|
|
13366
|
+
aspectRatio: 8 / 4,
|
|
13367
|
+
autoCropArea: 1,
|
|
13368
|
+
viewMode: 1,
|
|
13369
|
+
movable: !0,
|
|
13370
|
+
zoomable: !0
|
|
13371
|
+
})
|
|
13362
13372
|
}
|
|
13363
13373
|
},
|
|
13364
13374
|
components: {
|
|
@@ -13367,14 +13377,7 @@ const Iu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACRCAYAAADtlO7dAA
|
|
|
13367
13377
|
data() {
|
|
13368
13378
|
return {
|
|
13369
13379
|
localUrl: this.urlToImage ? this.urlToImage : Iu,
|
|
13370
|
-
showCropper: !1
|
|
13371
|
-
cropperOptions: {
|
|
13372
|
-
aspectRatio: 8 / 4,
|
|
13373
|
-
autoCropArea: 1,
|
|
13374
|
-
viewMode: 1,
|
|
13375
|
-
movable: !0,
|
|
13376
|
-
zoomable: !0
|
|
13377
|
-
}
|
|
13380
|
+
showCropper: !1
|
|
13378
13381
|
};
|
|
13379
13382
|
},
|
|
13380
13383
|
computed: {
|
|
@@ -13390,7 +13393,7 @@ const Iu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACRCAYAAADtlO7dAA
|
|
|
13390
13393
|
this.message = "Uploading...";
|
|
13391
13394
|
},
|
|
13392
13395
|
handleUploaded(n) {
|
|
13393
|
-
n.response.status === 200 && (this.localUrl = `${this.imageServer}${this.uploadImageName}.png`, this.$emit("update:url", `${this.imageServer}${this.uploadImageName}.png`));
|
|
13396
|
+
n.response.status === 200 && (this.localUrl = `${this.imageServer}${this.uploadImageName}.png`, console.log(this.localUrl), this.$emit("update:url", `${this.imageServer}${this.uploadImageName}.png`));
|
|
13394
13397
|
},
|
|
13395
13398
|
handleCompleted() {
|
|
13396
13399
|
this.message = "Upload completed.";
|
|
@@ -13418,7 +13421,7 @@ function Wy(n, e, t, r, i, o) {
|
|
|
13418
13421
|
modelValue: i.showCropper,
|
|
13419
13422
|
"onUpdate:modelValue": e[2] || (e[2] = (s) => i.showCropper = s),
|
|
13420
13423
|
"upload-url": `${t.uploadServer}${t.uploadImageName}`,
|
|
13421
|
-
"cropper-options":
|
|
13424
|
+
"cropper-options": t.cropperOptions,
|
|
13422
13425
|
onUploading: o.handleUploading,
|
|
13423
13426
|
onUploaded: o.handleUploaded,
|
|
13424
13427
|
onCompleted: o.handleCompleted,
|
|
@@ -29986,7 +29989,7 @@ const Bc = /* @__PURE__ */ re(RT, [["render", HT]]), YT = {
|
|
|
29986
29989
|
this.tournament.description = n;
|
|
29987
29990
|
},
|
|
29988
29991
|
handleNewImageUrl(n) {
|
|
29989
|
-
this.tournament.imageLink = n, this.$emit("update:image", n);
|
|
29992
|
+
this.tournament.imageLink = n, console.log(this.tournament.imageLink), this.$emit("update:image", n);
|
|
29990
29993
|
},
|
|
29991
29994
|
handleNewPerson(n) {
|
|
29992
29995
|
this.tournament.primaryContactId = n.PersonId, this.$emit("add:primaryContact", n);
|
|
@@ -31995,14 +31998,28 @@ const lf = /* @__PURE__ */ re(QP, [["render", HP]]), YP = {
|
|
|
31995
31998
|
type: Number,
|
|
31996
31999
|
required: !0
|
|
31997
32000
|
},
|
|
31998
|
-
name:
|
|
31999
|
-
|
|
32000
|
-
|
|
32001
|
-
|
|
32001
|
+
name: {
|
|
32002
|
+
type: String,
|
|
32003
|
+
required: !0
|
|
32004
|
+
},
|
|
32005
|
+
club: {
|
|
32006
|
+
type: String
|
|
32007
|
+
},
|
|
32008
|
+
seed: {
|
|
32009
|
+
type: Number,
|
|
32010
|
+
required: !0
|
|
32011
|
+
},
|
|
32012
|
+
portrait: {
|
|
32013
|
+
type: String
|
|
32014
|
+
},
|
|
32002
32015
|
mode: {
|
|
32003
32016
|
type: String,
|
|
32004
32017
|
required: !0,
|
|
32005
|
-
validator: (n) => ["planning", "preparation", "live", "results", "de", "completed"].includes(n)
|
|
32018
|
+
validator: (n) => ["planning", "preparation", "live", "results", "de", "completed", "person"].includes(n)
|
|
32019
|
+
},
|
|
32020
|
+
background: {
|
|
32021
|
+
type: String,
|
|
32022
|
+
default: "bg-poolSetup"
|
|
32006
32023
|
}
|
|
32007
32024
|
},
|
|
32008
32025
|
methods: {
|
|
@@ -32017,32 +32034,40 @@ const lf = /* @__PURE__ */ re(QP, [["render", HP]]), YP = {
|
|
|
32017
32034
|
onDrop(n) {
|
|
32018
32035
|
if (console.log(`PoolFencerCard.onDrop: ${n}`), this.mode === "preparation" || this.mode === "planning") {
|
|
32019
32036
|
const e = JSON.parse(n.dataTransfer.getData("text/plain"));
|
|
32020
|
-
e.toPosition = this.poolPosition,
|
|
32037
|
+
e.toPosition = this.poolPosition, this.$emit("swap-fencers", { droppedData: e });
|
|
32021
32038
|
}
|
|
32039
|
+
},
|
|
32040
|
+
handleClick() {
|
|
32041
|
+
this.$emit("update:click");
|
|
32022
32042
|
}
|
|
32023
32043
|
}
|
|
32024
|
-
}, qP = ["draggable"], zP = {
|
|
32044
|
+
}, qP = ["draggable"], zP = {
|
|
32045
|
+
key: 0,
|
|
32046
|
+
class: "text-center mr-2 w-4"
|
|
32047
|
+
}, UP = { class: "w-9 h-9 rounded-md overflow-hidden" }, jP = {
|
|
32025
32048
|
key: 0,
|
|
32026
32049
|
class: "w-14 h-14 bg-dropdownSelect flex items-center justify-center"
|
|
32027
32050
|
}, KP = ["src"], JP = { class: "flex-1 ml-4" }, GP = { class: "flex" };
|
|
32028
32051
|
function VP(n, e, t, r, i, o) {
|
|
32029
32052
|
const A = x("BaseText"), s = x("BaseIcon");
|
|
32030
32053
|
return C(), B("div", {
|
|
32031
|
-
class: ee(["flex items-center p-2
|
|
32054
|
+
class: ee(["flex items-center p-2 shadow rounded-lg", t.mode === "preparation" || t.mode === "planning" ? `hover:bg-dropdownSelect ${t.background}` : `${t.background} `]),
|
|
32032
32055
|
draggable: t.mode === "preparation" || t.mode === "planning",
|
|
32033
32056
|
onDragstart: e[0] || (e[0] = (...a) => o.onDragStart && o.onDragStart(...a)),
|
|
32034
32057
|
onDragover: e[1] || (e[1] = Ne(() => {
|
|
32035
32058
|
}, ["prevent"])),
|
|
32036
32059
|
onDragenter: e[2] || (e[2] = Ne(() => {
|
|
32037
32060
|
}, ["prevent"])),
|
|
32038
|
-
onDrop: e[3] || (e[3] = (...a) => o.onDrop && o.onDrop(...a))
|
|
32061
|
+
onDrop: e[3] || (e[3] = (...a) => o.onDrop && o.onDrop(...a)),
|
|
32062
|
+
onClick: e[4] || (e[4] = (...a) => o.handleClick && o.handleClick(...a))
|
|
32039
32063
|
}, [
|
|
32040
|
-
|
|
32064
|
+
t.mode !== "person" ? (C(), B("div", zP, [
|
|
32041
32065
|
p(A, {
|
|
32042
32066
|
text: t.poolPosition,
|
|
32043
|
-
size: "md"
|
|
32067
|
+
size: "md",
|
|
32068
|
+
color: "quaternary"
|
|
32044
32069
|
}, null, 8, ["text"])
|
|
32045
|
-
]),
|
|
32070
|
+
])) : S("", !0),
|
|
32046
32071
|
h("div", UP, [
|
|
32047
32072
|
t.portrait ? S("", !0) : (C(), B("div", jP, [
|
|
32048
32073
|
p(A, {
|
|
@@ -32062,7 +32087,7 @@ function VP(n, e, t, r, i, o) {
|
|
|
32062
32087
|
h("p", GP, [
|
|
32063
32088
|
p(A, {
|
|
32064
32089
|
text: t.name,
|
|
32065
|
-
size: "
|
|
32090
|
+
size: "sm",
|
|
32066
32091
|
weight: "bold",
|
|
32067
32092
|
color: "quaternary"
|
|
32068
32093
|
}, null, 8, ["text"]),
|
|
@@ -32081,7 +32106,7 @@ function VP(n, e, t, r, i, o) {
|
|
|
32081
32106
|
}, null, 8, ["text"])
|
|
32082
32107
|
]),
|
|
32083
32108
|
t.mode === "preparation" || t.mode === "planning" ? (C(), ne(s, {
|
|
32084
|
-
key:
|
|
32109
|
+
key: 1,
|
|
32085
32110
|
"icon-name": "fa-grip-dots-vertical",
|
|
32086
32111
|
size: "2xl",
|
|
32087
32112
|
color: "quaternary"
|