@ozdao/prometheus-framework 0.2.65 → 0.2.67
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/community.server.js +3 -3
- package/dist/community.server.mjs +2 -2
- package/dist/events.server.js +3 -3
- package/dist/events.server.mjs +2 -2
- package/dist/main-BDrW8oeL.mjs +13755 -0
- package/dist/main-CNIKtifM.js +91 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-BLGSCSmy.mjs +55 -0
- package/dist/metadata.schema-DWR97jhW.js +54 -0
- package/dist/ownership.schema-CGqscZIi.js +159 -0
- package/dist/ownership.schema-DtT2IgqC.mjs +160 -0
- package/dist/products.server.js +50 -15
- package/dist/products.server.mjs +50 -15
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +55 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -55
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +40 -39
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -83
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +46 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +10 -9
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +60 -46
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +5 -5
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +86 -56
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +82 -67
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +5 -5
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +25 -24
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-6-zYDWMA.js +1 -0
- package/dist/web-TZtLKurO.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +17 -18
- package/src/components/Field/Field.vue +1 -0
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
- package/src/modules/globals/controllers/utils/queryProcessor.js +2 -1
- package/src/modules/globals/store/globals.js +3 -4
- package/src/modules/products/components/blocks/CardLeftover.vue +47 -27
- package/src/modules/products/components/pages/EditLeftover.vue +13 -0
- package/src/modules/products/components/pages/Leftovers.vue +3 -3
- package/src/modules/products/controllers/leftovers.controller.js +55 -19
- package/src/modules/products/models/leftover.model.js +4 -0
- package/src/modules/products/routes/leftovers.routes.js +1 -1
- package/src/modules/products/store/leftovers.js +1 -1
- package/src/styles/config.scss +2 -2
@@ -1,225 +1 @@
|
|
1
|
-
|
2
|
-
import "./Button.vue2.js";
|
3
|
-
const k = ["disabled"], x = {
|
4
|
-
key: 1,
|
5
|
-
class: "loading"
|
6
|
-
}, N = /* @__PURE__ */ e("svg", {
|
7
|
-
class: "i-regular",
|
8
|
-
width: "135",
|
9
|
-
height: "140",
|
10
|
-
viewBox: "0 0 135 140",
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12
|
-
fill: "#fff"
|
13
|
-
}, [
|
14
|
-
/* @__PURE__ */ e("rect", {
|
15
|
-
y: "10",
|
16
|
-
width: "15",
|
17
|
-
height: "120",
|
18
|
-
rx: "6"
|
19
|
-
}, [
|
20
|
-
/* @__PURE__ */ e("animate", {
|
21
|
-
attributeName: "height",
|
22
|
-
begin: "0.5s",
|
23
|
-
dur: "1s",
|
24
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
-
calcMode: "linear",
|
26
|
-
repeatCount: "indefinite"
|
27
|
-
}),
|
28
|
-
/* @__PURE__ */ r(),
|
29
|
-
/* @__PURE__ */ e("animate", {
|
30
|
-
attributeName: "y",
|
31
|
-
begin: "0.5s",
|
32
|
-
dur: "1s",
|
33
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
-
calcMode: "linear",
|
35
|
-
repeatCount: "indefinite"
|
36
|
-
})
|
37
|
-
]),
|
38
|
-
/* @__PURE__ */ e("rect", {
|
39
|
-
x: "30",
|
40
|
-
y: "10",
|
41
|
-
width: "15",
|
42
|
-
height: "120",
|
43
|
-
rx: "6"
|
44
|
-
}, [
|
45
|
-
/* @__PURE__ */ e("animate", {
|
46
|
-
attributeName: "height",
|
47
|
-
begin: "0.25s",
|
48
|
-
dur: "1s",
|
49
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
-
calcMode: "linear",
|
51
|
-
repeatCount: "indefinite"
|
52
|
-
}),
|
53
|
-
/* @__PURE__ */ r(),
|
54
|
-
/* @__PURE__ */ e("animate", {
|
55
|
-
attributeName: "y",
|
56
|
-
begin: "0.25s",
|
57
|
-
dur: "1s",
|
58
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
-
calcMode: "linear",
|
60
|
-
repeatCount: "indefinite"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
/* @__PURE__ */ e("rect", {
|
64
|
-
x: "60",
|
65
|
-
width: "15",
|
66
|
-
height: "140",
|
67
|
-
rx: "6"
|
68
|
-
}, [
|
69
|
-
/* @__PURE__ */ e("animate", {
|
70
|
-
attributeName: "height",
|
71
|
-
begin: "0s",
|
72
|
-
dur: "1s",
|
73
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
-
calcMode: "linear",
|
75
|
-
repeatCount: "indefinite"
|
76
|
-
}),
|
77
|
-
/* @__PURE__ */ r(),
|
78
|
-
/* @__PURE__ */ e("animate", {
|
79
|
-
attributeName: "y",
|
80
|
-
begin: "0s",
|
81
|
-
dur: "1s",
|
82
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
-
calcMode: "linear",
|
84
|
-
repeatCount: "indefinite"
|
85
|
-
})
|
86
|
-
]),
|
87
|
-
/* @__PURE__ */ e("rect", {
|
88
|
-
x: "90",
|
89
|
-
y: "10",
|
90
|
-
width: "15",
|
91
|
-
height: "120",
|
92
|
-
rx: "6"
|
93
|
-
}, [
|
94
|
-
/* @__PURE__ */ e("animate", {
|
95
|
-
attributeName: "height",
|
96
|
-
begin: "0.25s",
|
97
|
-
dur: "1s",
|
98
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
-
calcMode: "linear",
|
100
|
-
repeatCount: "indefinite"
|
101
|
-
}),
|
102
|
-
/* @__PURE__ */ r(),
|
103
|
-
/* @__PURE__ */ e("animate", {
|
104
|
-
attributeName: "y",
|
105
|
-
begin: "0.25s",
|
106
|
-
dur: "1s",
|
107
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
-
calcMode: "linear",
|
109
|
-
repeatCount: "indefinite"
|
110
|
-
})
|
111
|
-
]),
|
112
|
-
/* @__PURE__ */ e("rect", {
|
113
|
-
x: "120",
|
114
|
-
y: "10",
|
115
|
-
width: "15",
|
116
|
-
height: "120",
|
117
|
-
rx: "6"
|
118
|
-
}, [
|
119
|
-
/* @__PURE__ */ e("animate", {
|
120
|
-
attributeName: "height",
|
121
|
-
begin: "0.5s",
|
122
|
-
dur: "1s",
|
123
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
-
calcMode: "linear",
|
125
|
-
repeatCount: "indefinite"
|
126
|
-
}),
|
127
|
-
/* @__PURE__ */ r(),
|
128
|
-
/* @__PURE__ */ e("animate", {
|
129
|
-
attributeName: "y",
|
130
|
-
begin: "0.5s",
|
131
|
-
dur: "1s",
|
132
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
-
calcMode: "linear",
|
134
|
-
repeatCount: "indefinite"
|
135
|
-
})
|
136
|
-
])
|
137
|
-
], -1), C = [
|
138
|
-
N
|
139
|
-
], M = {
|
140
|
-
key: 2,
|
141
|
-
class: "t-semi loading t-black"
|
142
|
-
}, B = {
|
143
|
-
key: 3,
|
144
|
-
class: "error"
|
145
|
-
}, L = {
|
146
|
-
key: 0,
|
147
|
-
class: "button-counter"
|
148
|
-
}, T = {
|
149
|
-
__name: "Button",
|
150
|
-
props: {
|
151
|
-
submit: {
|
152
|
-
type: Function,
|
153
|
-
default: async () => {
|
154
|
-
console.log("Button click.");
|
155
|
-
}
|
156
|
-
},
|
157
|
-
text: {
|
158
|
-
type: Object,
|
159
|
-
default: (t) => (console.log(t), t = {
|
160
|
-
...t.text,
|
161
|
-
success: "✔",
|
162
|
-
error: "✖"
|
163
|
-
})
|
164
|
-
},
|
165
|
-
counter: {
|
166
|
-
type: Object
|
167
|
-
},
|
168
|
-
callback: {
|
169
|
-
type: Function,
|
170
|
-
default: async () => {
|
171
|
-
console.log("Button callback.");
|
172
|
-
}
|
173
|
-
},
|
174
|
-
callbackDelay: {
|
175
|
-
type: Number,
|
176
|
-
default: 750
|
177
|
-
},
|
178
|
-
showSucces: {
|
179
|
-
type: Boolean,
|
180
|
-
default: !0
|
181
|
-
},
|
182
|
-
showLoader: {
|
183
|
-
type: Boolean,
|
184
|
-
default: !0
|
185
|
-
},
|
186
|
-
validation: {
|
187
|
-
type: Boolean,
|
188
|
-
default: !1
|
189
|
-
}
|
190
|
-
},
|
191
|
-
setup(t) {
|
192
|
-
const n = t, a = d(null), i = d(null), l = d(!1), c = d(!1);
|
193
|
-
async function f() {
|
194
|
-
a.value.style["pointer-events"] = "none", i.value = null, l.value = !0;
|
195
|
-
const s = () => {
|
196
|
-
a.value && (a.value.classList.replace("bg-second", "bg-main"), a.value.style.pointerEvents = "auto", l.value = !1, c.value = !1, i.value = null);
|
197
|
-
};
|
198
|
-
try {
|
199
|
-
await n.submit(), a.value.classList.replace("bg-main", "bg-second"), l.value = !1, n.showSucces ? (c.value = !0, setTimeout(s, 500)) : s(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
|
200
|
-
} catch {
|
201
|
-
a.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = n.error, setTimeout(() => {
|
202
|
-
s(), a.value.classList.replace("bg-fourth-nano", "bg-main");
|
203
|
-
}, 1330);
|
204
|
-
}
|
205
|
-
}
|
206
|
-
return (s, m) => (u(), o("button", {
|
207
|
-
onClick: v(f, ["stop"]),
|
208
|
-
disabled: t.validation,
|
209
|
-
ref_key: "button",
|
210
|
-
ref: a,
|
211
|
-
class: "button"
|
212
|
-
}, [
|
213
|
-
g(y, { name: "moveFromTopAbsolute" }, {
|
214
|
-
default: p(() => [
|
215
|
-
!l.value && !i.value && !c.value || !t.showLoader ? w(s.$slots, "default", { key: 0 }) : l.value && !i.value && t.showLoader ? (u(), o("span", x, C)) : c.value && t.showSucces ? (u(), o("span", M, b(t.text.success), 1)) : i.value ? (u(), o("span", B, b(i.value), 1)) : h("", !0)
|
216
|
-
]),
|
217
|
-
_: 3
|
218
|
-
}),
|
219
|
-
t.counter ? (u(), o("p", L, b(t.counter), 1)) : h("", !0)
|
220
|
-
], 8, k));
|
221
|
-
}
|
222
|
-
};
|
223
|
-
export {
|
224
|
-
T as default
|
225
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue.cjs");const u=["disabled"],d={key:1,class:"loading"},m=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),b=[m],h={key:2,class:"t-semi loading t-black"},f={key:3,class:"error"},g={key:0,class:"button-counter"},v={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(t){const n=t,a=e.ref(null),l=e.ref(null),o=e.ref(!1),r=e.ref(!1);async function c(){a.value.style["pointer-events"]="none",l.value=null,o.value=!0;const i=()=>{a.value&&(a.value.classList.replace("bg-second","bg-main"),a.value.style.pointerEvents="auto",o.value=!1,r.value=!1,l.value=null)};try{await n.submit(),a.value.classList.replace("bg-main","bg-second"),o.value=!1,n.showSucces?(r.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{a.value.classList.replace("bg-main","bg-fourth-nano"),l.value=n.error,setTimeout(()=>{i(),a.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(c,["stop"]),disabled:t.validation,ref_key:"button",ref:a,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!o.value&&!l.value&&!r.value||!t.showLoader?e.renderSlot(i.$slots,"default",{key:0}):o.value&&!l.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",d,b)):r.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(t.text.success),1)):l.value?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,u))}};exports.default=v;
|
@@ -1 +1,225 @@
|
|
1
|
-
|
1
|
+
import { ref as d, openBlock as u, createElementBlock as o, withModifiers as v, createVNode as g, Transition as y, withCtx as p, renderSlot as w, toDisplayString as b, createCommentVNode as h, createElementVNode as e, createTextVNode as r } from "vue";
|
2
|
+
import "./Button.vue.js";
|
3
|
+
const k = ["disabled"], x = {
|
4
|
+
key: 1,
|
5
|
+
class: "loading"
|
6
|
+
}, N = /* @__PURE__ */ e("svg", {
|
7
|
+
class: "i-regular",
|
8
|
+
width: "135",
|
9
|
+
height: "140",
|
10
|
+
viewBox: "0 0 135 140",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12
|
+
fill: "#fff"
|
13
|
+
}, [
|
14
|
+
/* @__PURE__ */ e("rect", {
|
15
|
+
y: "10",
|
16
|
+
width: "15",
|
17
|
+
height: "120",
|
18
|
+
rx: "6"
|
19
|
+
}, [
|
20
|
+
/* @__PURE__ */ e("animate", {
|
21
|
+
attributeName: "height",
|
22
|
+
begin: "0.5s",
|
23
|
+
dur: "1s",
|
24
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
+
calcMode: "linear",
|
26
|
+
repeatCount: "indefinite"
|
27
|
+
}),
|
28
|
+
/* @__PURE__ */ r(),
|
29
|
+
/* @__PURE__ */ e("animate", {
|
30
|
+
attributeName: "y",
|
31
|
+
begin: "0.5s",
|
32
|
+
dur: "1s",
|
33
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
+
calcMode: "linear",
|
35
|
+
repeatCount: "indefinite"
|
36
|
+
})
|
37
|
+
]),
|
38
|
+
/* @__PURE__ */ e("rect", {
|
39
|
+
x: "30",
|
40
|
+
y: "10",
|
41
|
+
width: "15",
|
42
|
+
height: "120",
|
43
|
+
rx: "6"
|
44
|
+
}, [
|
45
|
+
/* @__PURE__ */ e("animate", {
|
46
|
+
attributeName: "height",
|
47
|
+
begin: "0.25s",
|
48
|
+
dur: "1s",
|
49
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
+
calcMode: "linear",
|
51
|
+
repeatCount: "indefinite"
|
52
|
+
}),
|
53
|
+
/* @__PURE__ */ r(),
|
54
|
+
/* @__PURE__ */ e("animate", {
|
55
|
+
attributeName: "y",
|
56
|
+
begin: "0.25s",
|
57
|
+
dur: "1s",
|
58
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
+
calcMode: "linear",
|
60
|
+
repeatCount: "indefinite"
|
61
|
+
})
|
62
|
+
]),
|
63
|
+
/* @__PURE__ */ e("rect", {
|
64
|
+
x: "60",
|
65
|
+
width: "15",
|
66
|
+
height: "140",
|
67
|
+
rx: "6"
|
68
|
+
}, [
|
69
|
+
/* @__PURE__ */ e("animate", {
|
70
|
+
attributeName: "height",
|
71
|
+
begin: "0s",
|
72
|
+
dur: "1s",
|
73
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
+
calcMode: "linear",
|
75
|
+
repeatCount: "indefinite"
|
76
|
+
}),
|
77
|
+
/* @__PURE__ */ r(),
|
78
|
+
/* @__PURE__ */ e("animate", {
|
79
|
+
attributeName: "y",
|
80
|
+
begin: "0s",
|
81
|
+
dur: "1s",
|
82
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
+
calcMode: "linear",
|
84
|
+
repeatCount: "indefinite"
|
85
|
+
})
|
86
|
+
]),
|
87
|
+
/* @__PURE__ */ e("rect", {
|
88
|
+
x: "90",
|
89
|
+
y: "10",
|
90
|
+
width: "15",
|
91
|
+
height: "120",
|
92
|
+
rx: "6"
|
93
|
+
}, [
|
94
|
+
/* @__PURE__ */ e("animate", {
|
95
|
+
attributeName: "height",
|
96
|
+
begin: "0.25s",
|
97
|
+
dur: "1s",
|
98
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
+
calcMode: "linear",
|
100
|
+
repeatCount: "indefinite"
|
101
|
+
}),
|
102
|
+
/* @__PURE__ */ r(),
|
103
|
+
/* @__PURE__ */ e("animate", {
|
104
|
+
attributeName: "y",
|
105
|
+
begin: "0.25s",
|
106
|
+
dur: "1s",
|
107
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
+
calcMode: "linear",
|
109
|
+
repeatCount: "indefinite"
|
110
|
+
})
|
111
|
+
]),
|
112
|
+
/* @__PURE__ */ e("rect", {
|
113
|
+
x: "120",
|
114
|
+
y: "10",
|
115
|
+
width: "15",
|
116
|
+
height: "120",
|
117
|
+
rx: "6"
|
118
|
+
}, [
|
119
|
+
/* @__PURE__ */ e("animate", {
|
120
|
+
attributeName: "height",
|
121
|
+
begin: "0.5s",
|
122
|
+
dur: "1s",
|
123
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
+
calcMode: "linear",
|
125
|
+
repeatCount: "indefinite"
|
126
|
+
}),
|
127
|
+
/* @__PURE__ */ r(),
|
128
|
+
/* @__PURE__ */ e("animate", {
|
129
|
+
attributeName: "y",
|
130
|
+
begin: "0.5s",
|
131
|
+
dur: "1s",
|
132
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
+
calcMode: "linear",
|
134
|
+
repeatCount: "indefinite"
|
135
|
+
})
|
136
|
+
])
|
137
|
+
], -1), C = [
|
138
|
+
N
|
139
|
+
], M = {
|
140
|
+
key: 2,
|
141
|
+
class: "t-semi loading t-black"
|
142
|
+
}, B = {
|
143
|
+
key: 3,
|
144
|
+
class: "error"
|
145
|
+
}, L = {
|
146
|
+
key: 0,
|
147
|
+
class: "button-counter"
|
148
|
+
}, T = {
|
149
|
+
__name: "Button",
|
150
|
+
props: {
|
151
|
+
submit: {
|
152
|
+
type: Function,
|
153
|
+
default: async () => {
|
154
|
+
console.log("Button click.");
|
155
|
+
}
|
156
|
+
},
|
157
|
+
text: {
|
158
|
+
type: Object,
|
159
|
+
default: (t) => (console.log(t), t = {
|
160
|
+
...t.text,
|
161
|
+
success: "✔",
|
162
|
+
error: "✖"
|
163
|
+
})
|
164
|
+
},
|
165
|
+
counter: {
|
166
|
+
type: Object
|
167
|
+
},
|
168
|
+
callback: {
|
169
|
+
type: Function,
|
170
|
+
default: async () => {
|
171
|
+
console.log("Button callback.");
|
172
|
+
}
|
173
|
+
},
|
174
|
+
callbackDelay: {
|
175
|
+
type: Number,
|
176
|
+
default: 750
|
177
|
+
},
|
178
|
+
showSucces: {
|
179
|
+
type: Boolean,
|
180
|
+
default: !0
|
181
|
+
},
|
182
|
+
showLoader: {
|
183
|
+
type: Boolean,
|
184
|
+
default: !0
|
185
|
+
},
|
186
|
+
validation: {
|
187
|
+
type: Boolean,
|
188
|
+
default: !1
|
189
|
+
}
|
190
|
+
},
|
191
|
+
setup(t) {
|
192
|
+
const n = t, a = d(null), i = d(null), l = d(!1), c = d(!1);
|
193
|
+
async function f() {
|
194
|
+
a.value.style["pointer-events"] = "none", i.value = null, l.value = !0;
|
195
|
+
const s = () => {
|
196
|
+
a.value && (a.value.classList.replace("bg-second", "bg-main"), a.value.style.pointerEvents = "auto", l.value = !1, c.value = !1, i.value = null);
|
197
|
+
};
|
198
|
+
try {
|
199
|
+
await n.submit(), a.value.classList.replace("bg-main", "bg-second"), l.value = !1, n.showSucces ? (c.value = !0, setTimeout(s, 500)) : s(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
|
200
|
+
} catch {
|
201
|
+
a.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = n.error, setTimeout(() => {
|
202
|
+
s(), a.value.classList.replace("bg-fourth-nano", "bg-main");
|
203
|
+
}, 1330);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
return (s, m) => (u(), o("button", {
|
207
|
+
onClick: v(f, ["stop"]),
|
208
|
+
disabled: t.validation,
|
209
|
+
ref_key: "button",
|
210
|
+
ref: a,
|
211
|
+
class: "button"
|
212
|
+
}, [
|
213
|
+
g(y, { name: "moveFromTopAbsolute" }, {
|
214
|
+
default: p(() => [
|
215
|
+
!l.value && !i.value && !c.value || !t.showLoader ? w(s.$slots, "default", { key: 0 }) : l.value && !i.value && t.showLoader ? (u(), o("span", x, C)) : c.value && t.showSucces ? (u(), o("span", M, b(t.text.success), 1)) : i.value ? (u(), o("span", B, b(i.value), 1)) : h("", !0)
|
216
|
+
]),
|
217
|
+
_: 3
|
218
|
+
}),
|
219
|
+
t.counter ? (u(), o("p", L, b(t.counter), 1)) : h("", !0)
|
220
|
+
], 8, k));
|
221
|
+
}
|
222
|
+
};
|
223
|
+
export {
|
224
|
+
T as default
|
225
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../FieldPhone/click-outside.cjs");require("./Dropdown.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={key:0},f={key:1},p={__name:"Dropdown",props:{label:{type:[String,Object],default:"Open"},align:{type:String,default:"left"}},setup(t){let n=c.default;const i=t,l=e.ref(!1),a=e.computed(()=>typeof i.label=="object");function s(){l.value=!1}return(r,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:o[0]||(o[0]=e.withModifiers(m=>l.value=!l.value,["stop"]))},[a.value?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.label.component),{class:e.normalizeClass(t.label.class)},null,8,["class"]))])):(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.label),1)),e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{style:e.normalizeStyle({left:t.align==="left"?"0":"auto",right:t.align==="right"?"0":"auto"}),class:"dropdown-content w-15r radius-big"},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4),[[e.vShow,l.value]])]),_:3})])),[[e.unref(n),s]])}},v=u.default(p,[["__scopeId","data-v-542fc6b9"]]);exports.default=v;
|
@@ -1 +1,55 @@
|
|
1
|
-
|
1
|
+
import { ref as u, computed as f, withDirectives as i, openBlock as o, createElementBlock as l, withModifiers as m, createBlock as p, resolveDynamicComponent as v, normalizeClass as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as C, renderSlot as O, vShow as S, unref as D } from "vue";
|
2
|
+
import x from "../FieldPhone/click-outside.js";
|
3
|
+
import "./Dropdown.vue2.js";
|
4
|
+
import B from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const T = { key: 0 }, j = { key: 1 }, z = {
|
6
|
+
__name: "Dropdown",
|
7
|
+
props: {
|
8
|
+
label: {
|
9
|
+
type: [String, Object],
|
10
|
+
default: "Open"
|
11
|
+
},
|
12
|
+
align: {
|
13
|
+
type: String,
|
14
|
+
default: "left"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
setup(e) {
|
18
|
+
let a = x;
|
19
|
+
const s = e, t = u(!1), r = f(() => typeof s.label == "object");
|
20
|
+
function c() {
|
21
|
+
t.value = !1;
|
22
|
+
}
|
23
|
+
return (d, n) => i((o(), l("div", {
|
24
|
+
class: "dropdown pos-relative",
|
25
|
+
onClick: n[0] || (n[0] = m((E) => t.value = !t.value, ["stop"]))
|
26
|
+
}, [
|
27
|
+
r.value ? (o(), l("div", T, [
|
28
|
+
(o(), p(v(e.label.component), {
|
29
|
+
class: b(e.label.class)
|
30
|
+
}, null, 8, ["class"]))
|
31
|
+
])) : (o(), l("div", j, g(e.label), 1)),
|
32
|
+
k(w, {
|
33
|
+
name: "TransitionTranslateY",
|
34
|
+
mode: "out-in"
|
35
|
+
}, {
|
36
|
+
default: y(() => [
|
37
|
+
i(h("div", {
|
38
|
+
style: C({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
|
39
|
+
class: "dropdown-content w-15r radius-big"
|
40
|
+
}, [
|
41
|
+
O(d.$slots, "default", {}, void 0, !0)
|
42
|
+
], 4), [
|
43
|
+
[S, t.value]
|
44
|
+
])
|
45
|
+
]),
|
46
|
+
_: 3
|
47
|
+
})
|
48
|
+
])), [
|
49
|
+
[D(a), c]
|
50
|
+
]);
|
51
|
+
}
|
52
|
+
}, I = /* @__PURE__ */ B(z, [["__scopeId", "data-v-542fc6b9"]]);
|
53
|
+
export {
|
54
|
+
I as default
|
55
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,55 +1 @@
|
|
1
|
-
|
2
|
-
import x from "../FieldPhone/click-outside.js";
|
3
|
-
import "./Dropdown.vue.js";
|
4
|
-
import B from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
-
const T = { key: 0 }, j = { key: 1 }, z = {
|
6
|
-
__name: "Dropdown",
|
7
|
-
props: {
|
8
|
-
label: {
|
9
|
-
type: [String, Object],
|
10
|
-
default: "Open"
|
11
|
-
},
|
12
|
-
align: {
|
13
|
-
type: String,
|
14
|
-
default: "left"
|
15
|
-
}
|
16
|
-
},
|
17
|
-
setup(e) {
|
18
|
-
let a = x;
|
19
|
-
const s = e, t = u(!1), r = f(() => typeof s.label == "object");
|
20
|
-
function c() {
|
21
|
-
t.value = !1;
|
22
|
-
}
|
23
|
-
return (d, n) => i((o(), l("div", {
|
24
|
-
class: "dropdown pos-relative",
|
25
|
-
onClick: n[0] || (n[0] = m((E) => t.value = !t.value, ["stop"]))
|
26
|
-
}, [
|
27
|
-
r.value ? (o(), l("div", T, [
|
28
|
-
(o(), p(v(e.label.component), {
|
29
|
-
class: b(e.label.class)
|
30
|
-
}, null, 8, ["class"]))
|
31
|
-
])) : (o(), l("div", j, g(e.label), 1)),
|
32
|
-
k(w, {
|
33
|
-
name: "TransitionTranslateY",
|
34
|
-
mode: "out-in"
|
35
|
-
}, {
|
36
|
-
default: y(() => [
|
37
|
-
i(h("div", {
|
38
|
-
style: C({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
|
39
|
-
class: "dropdown-content w-15r radius-big"
|
40
|
-
}, [
|
41
|
-
O(d.$slots, "default", {}, void 0, !0)
|
42
|
-
], 4), [
|
43
|
-
[S, t.value]
|
44
|
-
])
|
45
|
-
]),
|
46
|
-
_: 3
|
47
|
-
})
|
48
|
-
])), [
|
49
|
-
[D(a), c]
|
50
|
-
]);
|
51
|
-
}
|
52
|
-
}, I = /* @__PURE__ */ B(z, [["__scopeId", "data-v-542fc6b9"]]);
|
53
|
-
export {
|
54
|
-
I as default
|
55
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const v=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const g=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),k={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(s){const a=s,o=e.ref([]),n=e.ref(!1);let i=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),l=e.ref(a.options.limit?a.options.limit:10),c=e.ref("");function m(t){c.value=t,d()}const p=async()=>{if(n.value){u.value+=l.value;const t=await a.store.read({skip:u.value,limit:l.value,search:c.value,...a.options});t.length===0||t.length<l.value?n.value=!1:n.value=!0,o.value=[...o.value,...t]}},d=async()=>{const t=await a.store.read({skip:u.value,limit:l.value,search:c.value,...a.options});t.length===0||t.length<l.value?n.value=!1:n.value=!0,o.value=t,i.value=!1};return e.watch(()=>a.options,(t,r)=>{(t.organization!==r.organization||t.categories!==r.categories||t.prices!==r.prices||t.delivery!==r.delivery||t.search!==r.search||t.status!==r.status||t.hidden!==r.hidden||t.type!==r.type)&&d()},{deep:!0}),e.onMounted(async()=>{await d()}),(t,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[s.search?(e.openBlock(),e.createBlock(g.default,{key:0,onSearch:m,placeholder:"Enter product name",class:"bg-white mn-b-thin"})):e.createCommentVNode("",!0)]),_:1}),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),f=>(e.openBlock(),e.createBlock(h.default,{key:f}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length<1?(e.openBlock(),e.createBlock(v.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:o.value,user:t.user}):e.createCommentVNode("",!0),s.showLoadMore&&n.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=k;
|