@ozdao/prometheus-framework 0.2.200 → 0.2.202
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +113 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +76 -51
- package/dist/prometheus-framework/src/components/Address/Address.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +133 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +82 -44
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +32 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +20 -14
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +64 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +45 -38
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +121 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +97 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js.map +1 -0
- 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/LocationMarker/LocationMarker.vue.cjs +169 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +125 -82
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +17 -1
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +11 -7
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +92 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +69 -54
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +127 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +75 -51
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- 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/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
- 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 +4 -4
- 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 +1 -1
- 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/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- 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/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 +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- 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 +2 -2
- 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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/package.json +1 -1
- package/src/modules/globals/views/components/layouts/Client.vue +2 -2
@@ -1 +1,32 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
;/* empty css */
|
5
|
+
const _hoisted_1 = { class: "t-trimmed font-main" };
|
6
|
+
const _hoisted_2 = { class: "font-main t-truncate" };
|
7
|
+
const _hoisted_3 = {
|
8
|
+
key: 1,
|
9
|
+
class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
|
10
|
+
};
|
11
|
+
const _sfc_main = {
|
12
|
+
__name: "Chips",
|
13
|
+
props: ["chips"],
|
14
|
+
setup(__props) {
|
15
|
+
return (_ctx, _cache) => {
|
16
|
+
var _a;
|
17
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
18
|
+
((_a = __props.chips) == null ? void 0 : _a.length) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.chips, (chip, index) => {
|
19
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
20
|
+
class: vue.normalizeClass([_ctx.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
|
21
|
+
}, [
|
22
|
+
vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(chip.text ? chip.text : chip), 1)
|
23
|
+
], 2);
|
24
|
+
}), 256)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
25
|
+
vue.renderSlot(_ctx.$slots, "default")
|
26
|
+
]))
|
27
|
+
]);
|
28
|
+
};
|
29
|
+
}
|
30
|
+
};
|
31
|
+
exports.default = _sfc_main;
|
32
|
+
//# sourceMappingURL=Chips.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Chips.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,26 +1,32 @@
|
|
1
|
-
import { openBlock
|
1
|
+
import { openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, renderSlot } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
const
|
3
|
+
const _hoisted_1 = { class: "t-trimmed font-main" };
|
4
|
+
const _hoisted_2 = { class: "font-main t-truncate" };
|
5
|
+
const _hoisted_3 = {
|
4
6
|
key: 1,
|
5
7
|
class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
|
6
|
-
}
|
8
|
+
};
|
9
|
+
const _sfc_main = {
|
7
10
|
__name: "Chips",
|
8
11
|
props: ["chips"],
|
9
|
-
setup(
|
10
|
-
return (
|
11
|
-
var
|
12
|
-
return
|
13
|
-
(
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
setup(__props) {
|
13
|
+
return (_ctx, _cache) => {
|
14
|
+
var _a;
|
15
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
16
|
+
((_a = __props.chips) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.chips, (chip, index) => {
|
17
|
+
return openBlock(), createElementBlock("span", {
|
18
|
+
class: normalizeClass([_ctx.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
|
19
|
+
}, [
|
20
|
+
createElementVNode("span", _hoisted_2, toDisplayString(chip.text ? chip.text : chip), 1)
|
21
|
+
], 2);
|
22
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
23
|
+
renderSlot(_ctx.$slots, "default")
|
19
24
|
]))
|
20
25
|
]);
|
21
26
|
};
|
22
27
|
}
|
23
28
|
};
|
24
29
|
export {
|
25
|
-
|
30
|
+
_sfc_main as default
|
26
31
|
};
|
32
|
+
//# sourceMappingURL=Chips.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Chips.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1,64 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const clickOutside = require("../FieldPhone/click-outside.cjs");
|
5
|
+
;/* empty css */
|
6
|
+
const _hoisted_1 = {
|
7
|
+
key: 0,
|
8
|
+
class: "w-100 h-100 flex-center flex"
|
9
|
+
};
|
10
|
+
const _hoisted_2 = { key: 1 };
|
11
|
+
const _sfc_main = {
|
12
|
+
__name: "Dropdown",
|
13
|
+
props: {
|
14
|
+
label: {
|
15
|
+
type: [String, Object],
|
16
|
+
default: "Open"
|
17
|
+
},
|
18
|
+
align: {
|
19
|
+
type: String,
|
20
|
+
default: "left"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
setup(__props) {
|
24
|
+
let vClickOutside = clickOutside.default;
|
25
|
+
const props = __props;
|
26
|
+
const isOpen = vue.ref(false);
|
27
|
+
const isComponentLabel = vue.computed(() => typeof props.label === "object");
|
28
|
+
function clickedOutside() {
|
29
|
+
isOpen.value = false;
|
30
|
+
}
|
31
|
+
return (_ctx, _cache) => {
|
32
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
33
|
+
class: "dropdown pos-relative",
|
34
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => isOpen.value = !isOpen.value, ["stop"]))
|
35
|
+
}, [
|
36
|
+
isComponentLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
37
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.label.component), vue.mergeProps(__props.label.props, {
|
38
|
+
class: __props.label.class
|
39
|
+
}), null, 16, ["class"]))
|
40
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, vue.toDisplayString(__props.label), 1)),
|
41
|
+
vue.createVNode(vue.Transition, {
|
42
|
+
name: "TransitionTranslateY",
|
43
|
+
mode: "out-in"
|
44
|
+
}, {
|
45
|
+
default: vue.withCtx(() => [
|
46
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
47
|
+
style: vue.normalizeStyle({ left: __props.align === "left" ? "0" : "auto", right: __props.align === "right" ? "0" : "auto" }),
|
48
|
+
class: "dropdown-content radius-big"
|
49
|
+
}, [
|
50
|
+
vue.renderSlot(_ctx.$slots, "default")
|
51
|
+
], 4), [
|
52
|
+
[vue.vShow, isOpen.value]
|
53
|
+
])
|
54
|
+
]),
|
55
|
+
_: 3
|
56
|
+
})
|
57
|
+
])), [
|
58
|
+
[vue.unref(vClickOutside), clickedOutside]
|
59
|
+
]);
|
60
|
+
};
|
61
|
+
}
|
62
|
+
};
|
63
|
+
exports.default = _sfc_main;
|
64
|
+
//# sourceMappingURL=Dropdown.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.cjs","sources":["../../../../../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<template>\n <div class=\"dropdown pos-relative\" v-click-outside=\"clickedOutside\" @click.stop=\"isOpen = !isOpen\">\n <div v-if=\"isComponentLabel\" class=\"w-100 h-100 flex-center flex\">\n <component :is=\"label.component\" v-bind=\"label.props\" :class=\"label.class\"></component>\n </div>\n <div v-else>\n {{ label }}\n </div>\n <transition name=\"TransitionTranslateY\" mode=\"out-in\">\n <div \n v-show=\"isOpen\" \n :style=\"{ left: align === 'left' ? '0' : 'auto', right: align === 'right' ? '0' : 'auto' }\" \n class=\"dropdown-content radius-big\" \n >\n <slot></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue';\nimport clickOutside from '../FieldPhone/click-outside';\n\nlet vClickOutside = clickOutside\n\nconst props = defineProps({\n label: {\n type: [String, Object],\n default: 'Open'\n },\n align: {\n type: String,\n default: 'left'\n }\n})\n\nconst isOpen = ref(false);\nconst isComponentLabel = computed(() => typeof props.label === 'object');\n\nfunction clickedOutside () {\n isOpen.value = false\n}\n</script>\n\n<style >\n.dropdown-content {\n display: block;\n position: absolute;\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n z-index: 1;\n}\n\n/*.dropdown:hover .dropdown-content {\n display: block;\n}*/\n</style>\n"],"names":["clickOutside","ref","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,QAAI,gBAAgBA,aAAY;AAEhC,UAAM,QAAQ;AAWd,UAAM,SAASC,IAAAA,IAAI,KAAK;AACxB,UAAM,mBAAmBC,IAAQ,SAAC,MAAM,OAAO,MAAM,UAAU,QAAQ;AAEvE,aAAS,iBAAkB;AACzB,aAAO,QAAQ;AAAA,IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,10 +1,12 @@
|
|
1
|
-
import { ref
|
2
|
-
import
|
1
|
+
import { ref, computed, withDirectives, openBlock, createElementBlock, withModifiers, createBlock, resolveDynamicComponent, mergeProps, toDisplayString, createVNode, Transition, withCtx, createElementVNode, normalizeStyle, renderSlot, vShow, unref } from "vue";
|
2
|
+
import clickOutside from "../FieldPhone/click-outside.js";
|
3
3
|
/* empty css */
|
4
|
-
const
|
4
|
+
const _hoisted_1 = {
|
5
5
|
key: 0,
|
6
6
|
class: "w-100 h-100 flex-center flex"
|
7
|
-
}
|
7
|
+
};
|
8
|
+
const _hoisted_2 = { key: 1 };
|
9
|
+
const _sfc_main = {
|
8
10
|
__name: "Dropdown",
|
9
11
|
props: {
|
10
12
|
label: {
|
@@ -16,42 +18,47 @@ const B = {
|
|
16
18
|
default: "left"
|
17
19
|
}
|
18
20
|
},
|
19
|
-
setup(
|
20
|
-
let
|
21
|
-
const
|
22
|
-
|
23
|
-
|
21
|
+
setup(__props) {
|
22
|
+
let vClickOutside = clickOutside;
|
23
|
+
const props = __props;
|
24
|
+
const isOpen = ref(false);
|
25
|
+
const isComponentLabel = computed(() => typeof props.label === "object");
|
26
|
+
function clickedOutside() {
|
27
|
+
isOpen.value = false;
|
24
28
|
}
|
25
|
-
return (
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
(
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
29
|
+
return (_ctx, _cache) => {
|
30
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
31
|
+
class: "dropdown pos-relative",
|
32
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => isOpen.value = !isOpen.value, ["stop"]))
|
33
|
+
}, [
|
34
|
+
isComponentLabel.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
35
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.label.component), mergeProps(__props.label.props, {
|
36
|
+
class: __props.label.class
|
37
|
+
}), null, 16, ["class"]))
|
38
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(__props.label), 1)),
|
39
|
+
createVNode(Transition, {
|
40
|
+
name: "TransitionTranslateY",
|
41
|
+
mode: "out-in"
|
42
|
+
}, {
|
43
|
+
default: withCtx(() => [
|
44
|
+
withDirectives(createElementVNode("div", {
|
45
|
+
style: normalizeStyle({ left: __props.align === "left" ? "0" : "auto", right: __props.align === "right" ? "0" : "auto" }),
|
46
|
+
class: "dropdown-content radius-big"
|
47
|
+
}, [
|
48
|
+
renderSlot(_ctx.$slots, "default")
|
49
|
+
], 4), [
|
50
|
+
[vShow, isOpen.value]
|
51
|
+
])
|
52
|
+
]),
|
53
|
+
_: 3
|
54
|
+
})
|
55
|
+
])), [
|
56
|
+
[unref(vClickOutside), clickedOutside]
|
57
|
+
]);
|
58
|
+
};
|
53
59
|
}
|
54
60
|
};
|
55
61
|
export {
|
56
|
-
|
62
|
+
_sfc_main as default
|
57
63
|
};
|
64
|
+
//# sourceMappingURL=Dropdown.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.js","sources":["../../../../../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<template>\n <div class=\"dropdown pos-relative\" v-click-outside=\"clickedOutside\" @click.stop=\"isOpen = !isOpen\">\n <div v-if=\"isComponentLabel\" class=\"w-100 h-100 flex-center flex\">\n <component :is=\"label.component\" v-bind=\"label.props\" :class=\"label.class\"></component>\n </div>\n <div v-else>\n {{ label }}\n </div>\n <transition name=\"TransitionTranslateY\" mode=\"out-in\">\n <div \n v-show=\"isOpen\" \n :style=\"{ left: align === 'left' ? '0' : 'auto', right: align === 'right' ? '0' : 'auto' }\" \n class=\"dropdown-content radius-big\" \n >\n <slot></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue';\nimport clickOutside from '../FieldPhone/click-outside';\n\nlet vClickOutside = clickOutside\n\nconst props = defineProps({\n label: {\n type: [String, Object],\n default: 'Open'\n },\n align: {\n type: String,\n default: 'left'\n }\n})\n\nconst isOpen = ref(false);\nconst isComponentLabel = computed(() => typeof props.label === 'object');\n\nfunction clickedOutside () {\n isOpen.value = false\n}\n</script>\n\n<style >\n.dropdown-content {\n display: block;\n position: absolute;\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n z-index: 1;\n}\n\n/*.dropdown:hover .dropdown-content {\n display: block;\n}*/\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,QAAI,gBAAgB;AAEpB,UAAM,QAAQ;AAWd,UAAM,SAAS,IAAI,KAAK;AACxB,UAAM,mBAAmB,SAAS,MAAM,OAAO,MAAM,UAAU,QAAQ;AAEvE,aAAS,iBAAkB;AACzB,aAAO,QAAQ;AAAA,IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1,121 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
;/* empty css */
|
5
|
+
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.cjs");
|
6
|
+
const _hoisted_1 = {
|
7
|
+
key: 0,
|
8
|
+
class: "t-transp mn-r-small"
|
9
|
+
};
|
10
|
+
const _hoisted_2 = { class: "w-100" };
|
11
|
+
const _hoisted_3 = ["type", "value", "placeholder", "tabindex", "disabled"];
|
12
|
+
const _hoisted_4 = ["value", "placeholder", "tabindex", "disabled"];
|
13
|
+
const _hoisted_5 = {
|
14
|
+
key: 1,
|
15
|
+
class: "t-transp mn-l-small"
|
16
|
+
};
|
17
|
+
const _hoisted_6 = {
|
18
|
+
key: 0,
|
19
|
+
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
20
|
+
};
|
21
|
+
const _sfc_main = {
|
22
|
+
__name: "Field",
|
23
|
+
props: {
|
24
|
+
label: null,
|
25
|
+
symbol: null,
|
26
|
+
type: "text",
|
27
|
+
placeholder: "Enter something here",
|
28
|
+
field: null,
|
29
|
+
value: null,
|
30
|
+
validation: false,
|
31
|
+
disabled: null,
|
32
|
+
tabindex: -1
|
33
|
+
},
|
34
|
+
emits: ["update:field", "focus", "blur"],
|
35
|
+
setup(__props, { emit: __emit }) {
|
36
|
+
const emit = __emit;
|
37
|
+
const props = __props;
|
38
|
+
if (props.value) {
|
39
|
+
emit("update:field", props.value);
|
40
|
+
}
|
41
|
+
const textarea = vue.ref(null);
|
42
|
+
function resize() {
|
43
|
+
var _a;
|
44
|
+
if (textarea.value) textarea.value.style.height = "1rem";
|
45
|
+
if (textarea.value) textarea.value.style.height = ((_a = textarea.value) == null ? void 0 : _a.scrollHeight) + "px";
|
46
|
+
}
|
47
|
+
vue.onUpdated(() => {
|
48
|
+
if (props.type === "textarea") vue.nextTick(() => {
|
49
|
+
{
|
50
|
+
focus();
|
51
|
+
}
|
52
|
+
});
|
53
|
+
resize();
|
54
|
+
});
|
55
|
+
vue.onMounted(() => {
|
56
|
+
if (props.type === "textarea") vue.nextTick(() => {
|
57
|
+
{
|
58
|
+
focus();
|
59
|
+
}
|
60
|
+
});
|
61
|
+
resize();
|
62
|
+
});
|
63
|
+
const text = vue.ref(props.field);
|
64
|
+
return (_ctx, _cache) => {
|
65
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
66
|
+
vue.createElementVNode("div", {
|
67
|
+
class: vue.normalizeClass([[
|
68
|
+
_ctx.$attrs.class,
|
69
|
+
{
|
70
|
+
"bg-fourth-nano": __props.validation
|
71
|
+
}
|
72
|
+
], "flex-center flex-nowrap flex"])
|
73
|
+
}, [
|
74
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
75
|
+
vue.createElementVNode("span", null, vue.toDisplayString(__props.label), 1)
|
76
|
+
])) : vue.createCommentVNode("", true),
|
77
|
+
vue.createElementVNode("div", _hoisted_2, [
|
78
|
+
__props.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock("input", {
|
79
|
+
key: 0,
|
80
|
+
onInput: _cache[0] || (_cache[0] = (event) => text.value = emit("update:field", event.target.value)),
|
81
|
+
onFocus: _cache[1] || (_cache[1] = (event) => emit("focus", event)),
|
82
|
+
onBlur: _cache[2] || (_cache[2] = (event) => emit("blur", event)),
|
83
|
+
type: __props.type,
|
84
|
+
class: "w-100",
|
85
|
+
value: __props.field,
|
86
|
+
placeholder: __props.placeholder,
|
87
|
+
tabindex: __props.tabindex,
|
88
|
+
disabled: __props.disabled
|
89
|
+
}, null, 40, _hoisted_3)) : (vue.openBlock(), vue.createElementBlock("textarea", {
|
90
|
+
key: 1,
|
91
|
+
ref_key: "textarea",
|
92
|
+
ref: textarea,
|
93
|
+
onInput: _cache[3] || (_cache[3] = (event) => text.value = emit("update:field", event.target.value)),
|
94
|
+
onFocus: _cache[4] || (_cache[4] = (event) => emit("focus", event)),
|
95
|
+
onBlur: _cache[5] || (_cache[5] = (event) => emit("blur", event)),
|
96
|
+
class: "w-100",
|
97
|
+
style: { "resize": "vertical" },
|
98
|
+
value: __props.field,
|
99
|
+
placeholder: __props.placeholder,
|
100
|
+
tabindex: __props.tabindex,
|
101
|
+
disabled: __props.disabled
|
102
|
+
}, null, 40, _hoisted_4))
|
103
|
+
]),
|
104
|
+
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
105
|
+
__props.symbol ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
106
|
+
vue.createElementVNode("span", null, vue.toDisplayString(__props.symbol), 1)
|
107
|
+
])) : vue.createCommentVNode("", true)
|
108
|
+
], 2),
|
109
|
+
vue.createVNode(vue.Transition, { name: "fade" }, {
|
110
|
+
default: vue.withCtx(() => [
|
111
|
+
__props.validation ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, " * " + vue.toDisplayString(__props.validation.message), 1)) : vue.createCommentVNode("", true)
|
112
|
+
]),
|
113
|
+
_: 1
|
114
|
+
})
|
115
|
+
], 64);
|
116
|
+
};
|
117
|
+
}
|
118
|
+
};
|
119
|
+
const Field = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5659d4ce"]]);
|
120
|
+
exports.default = Field;
|
121
|
+
//# sourceMappingURL=Field.vue2.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Field.vue2.cjs","sources":["../../../../../src/components/Field/Field.vue"],"sourcesContent":["<script setup>\n import { ref, computed, onUpdated, onMounted, nextTick } from 'vue'\n\n const emit = defineEmits(['update:field', 'focus', 'blur']);\n\n const props = defineProps({\n label: null,\n symbol: null,\n type: 'text',\n placeholder: 'Enter something here',\n field: null,\n value: null,\n validation: false,\n disabled: null,\n tabindex: -1\n });\n\n if (props.value) {\n emit('update:field', props.value)\n }\n\n const textarea = ref(null);\n\n function resize() {\n if (textarea.value) textarea.value.style.height = \"1rem\";\n if (textarea.value) textarea.value.style.height = textarea.value?.scrollHeight + \"px\";\n }\n\n\n onUpdated(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n onMounted(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n const text = ref(props.field);\n</script>\n\n<template>\n <div \n :class=\"[\n $attrs.class, \n { \n 'bg-fourth-nano': validation \n }\n ]\" \n class=\"flex-center flex-nowrap flex\"\n >\n <div \n v-if=\"label\" \n class=\"t-transp mn-r-small\"\n >\n <span>\n {{label}}\n </span>\n </div>\n\n <div class=\"w-100\">\n <input \n v-if=\"type !== 'textarea'\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n :type=\"type\"\n class=\"w-100\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n <textarea \n v-else\n ref=\"textarea\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n class=\"w-100\"\n style=\"resize: vertical;\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n </div> \n\n <slot></slot>\n\n <div \n v-if=\"symbol\" \n class=\"t-transp mn-l-small\"\n >\n <span>\n {{symbol}}\n </span>\n </div>\n </div>\n\n <!-- Validation -->\n <transition name=\"fade\">\n <div v-if=\"validation\" class=\"mn-t-thin mn-b-thin mn-b-thin invalid-feedback\">\n * {{validation.message}}\n </div>\n </transition>\n</template>\n\n<style lang=\"scss\" scoped>\n input, textarea, span {\n line-height: 1;\n color: inherit;\n }\n</style>"],"names":["ref","onUpdated","nextTick","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGE,UAAM,OAAO;AAEb,UAAM,QAAQ;AAYd,QAAI,MAAM,OAAO;AACf,WAAK,gBAAgB,MAAM,KAAK;AAAA,IACjC;AAED,UAAM,WAAWA,QAAI,IAAI;AAEzB,aAAS,SAAS;;AAChB,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,SAAS;AAClD,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,WAAS,cAAS,UAAT,mBAAgB,gBAAe;AAAA,IAClF;AAGDC,QAAAA,UAAU,MAAM;AACf,UAAI,MAAM,SAAS,WAAYC,KAAAA,SAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC5D,aAAQ;AAAA,IACZ,CAAG;AAEDC,QAAAA,UAAU,MAAM;AACd,UAAI,MAAM,SAAS,WAAYD,KAAAA,SAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC7D,aAAQ;AAAA,IACZ,CAAG;AAED,UAAM,OAAOF,IAAAA,IAAI,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,16 +1,22 @@
|
|
1
|
-
import { ref
|
1
|
+
import { ref, onUpdated, nextTick, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, createVNode, Transition, withCtx } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
import
|
4
|
-
const
|
3
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const _hoisted_1 = {
|
5
5
|
key: 0,
|
6
6
|
class: "t-transp mn-r-small"
|
7
|
-
}
|
7
|
+
};
|
8
|
+
const _hoisted_2 = { class: "w-100" };
|
9
|
+
const _hoisted_3 = ["type", "value", "placeholder", "tabindex", "disabled"];
|
10
|
+
const _hoisted_4 = ["value", "placeholder", "tabindex", "disabled"];
|
11
|
+
const _hoisted_5 = {
|
8
12
|
key: 1,
|
9
13
|
class: "t-transp mn-l-small"
|
10
|
-
}
|
14
|
+
};
|
15
|
+
const _hoisted_6 = {
|
11
16
|
key: 0,
|
12
17
|
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
-
}
|
18
|
+
};
|
19
|
+
const _sfc_main = {
|
14
20
|
__name: "Field",
|
15
21
|
props: {
|
16
22
|
label: null,
|
@@ -19,82 +25,97 @@ const C = {
|
|
19
25
|
placeholder: "Enter something here",
|
20
26
|
field: null,
|
21
27
|
value: null,
|
22
|
-
validation:
|
28
|
+
validation: false,
|
23
29
|
disabled: null,
|
24
30
|
tabindex: -1
|
25
31
|
},
|
26
32
|
emits: ["update:field", "focus", "blur"],
|
27
|
-
setup(
|
28
|
-
const
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
var u;
|
33
|
-
n.value && (n.value.style.height = "1rem"), n.value && (n.value.style.height = ((u = n.value) == null ? void 0 : u.scrollHeight) + "px");
|
33
|
+
setup(__props, { emit: __emit }) {
|
34
|
+
const emit = __emit;
|
35
|
+
const props = __props;
|
36
|
+
if (props.value) {
|
37
|
+
emit("update:field", props.value);
|
34
38
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
const textarea = ref(null);
|
40
|
+
function resize() {
|
41
|
+
var _a;
|
42
|
+
if (textarea.value) textarea.value.style.height = "1rem";
|
43
|
+
if (textarea.value) textarea.value.style.height = ((_a = textarea.value) == null ? void 0 : _a.scrollHeight) + "px";
|
44
|
+
}
|
45
|
+
onUpdated(() => {
|
46
|
+
if (props.type === "textarea") nextTick(() => {
|
47
|
+
{
|
48
|
+
focus();
|
49
|
+
}
|
50
|
+
});
|
51
|
+
resize();
|
52
|
+
});
|
53
|
+
onMounted(() => {
|
54
|
+
if (props.type === "textarea") nextTick(() => {
|
55
|
+
{
|
56
|
+
focus();
|
57
|
+
}
|
58
|
+
});
|
59
|
+
resize();
|
43
60
|
});
|
44
|
-
const
|
45
|
-
return (
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
61
|
+
const text = ref(props.field);
|
62
|
+
return (_ctx, _cache) => {
|
63
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
64
|
+
createElementVNode("div", {
|
65
|
+
class: normalizeClass([[
|
66
|
+
_ctx.$attrs.class,
|
67
|
+
{
|
68
|
+
"bg-fourth-nano": __props.validation
|
69
|
+
}
|
70
|
+
], "flex-center flex-nowrap flex"])
|
71
|
+
}, [
|
72
|
+
__props.label ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
73
|
+
createElementVNode("span", null, toDisplayString(__props.label), 1)
|
74
|
+
])) : createCommentVNode("", true),
|
75
|
+
createElementVNode("div", _hoisted_2, [
|
76
|
+
__props.type !== "textarea" ? (openBlock(), createElementBlock("input", {
|
77
|
+
key: 0,
|
78
|
+
onInput: _cache[0] || (_cache[0] = (event) => text.value = emit("update:field", event.target.value)),
|
79
|
+
onFocus: _cache[1] || (_cache[1] = (event) => emit("focus", event)),
|
80
|
+
onBlur: _cache[2] || (_cache[2] = (event) => emit("blur", event)),
|
81
|
+
type: __props.type,
|
82
|
+
class: "w-100",
|
83
|
+
value: __props.field,
|
84
|
+
placeholder: __props.placeholder,
|
85
|
+
tabindex: __props.tabindex,
|
86
|
+
disabled: __props.disabled
|
87
|
+
}, null, 40, _hoisted_3)) : (openBlock(), createElementBlock("textarea", {
|
88
|
+
key: 1,
|
89
|
+
ref_key: "textarea",
|
90
|
+
ref: textarea,
|
91
|
+
onInput: _cache[3] || (_cache[3] = (event) => text.value = emit("update:field", event.target.value)),
|
92
|
+
onFocus: _cache[4] || (_cache[4] = (event) => emit("focus", event)),
|
93
|
+
onBlur: _cache[5] || (_cache[5] = (event) => emit("blur", event)),
|
94
|
+
class: "w-100",
|
95
|
+
style: { "resize": "vertical" },
|
96
|
+
value: __props.field,
|
97
|
+
placeholder: __props.placeholder,
|
98
|
+
tabindex: __props.tabindex,
|
99
|
+
disabled: __props.disabled
|
100
|
+
}, null, 40, _hoisted_4))
|
101
|
+
]),
|
102
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
103
|
+
__props.symbol ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
104
|
+
createElementVNode("span", null, toDisplayString(__props.symbol), 1)
|
105
|
+
])) : createCommentVNode("", true)
|
106
|
+
], 2),
|
107
|
+
createVNode(Transition, { name: "fade" }, {
|
108
|
+
default: withCtx(() => [
|
109
|
+
__props.validation ? (openBlock(), createElementBlock("div", _hoisted_6, " * " + toDisplayString(__props.validation.message), 1)) : createCommentVNode("", true)
|
110
|
+
]),
|
111
|
+
_: 1
|
112
|
+
})
|
113
|
+
], 64);
|
114
|
+
};
|
96
115
|
}
|
97
|
-
}
|
116
|
+
};
|
117
|
+
const Field = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5659d4ce"]]);
|
98
118
|
export {
|
99
|
-
|
119
|
+
Field as default
|
100
120
|
};
|
121
|
+
//# sourceMappingURL=Field.vue2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Field.vue2.js","sources":["../../../../../src/components/Field/Field.vue"],"sourcesContent":["<script setup>\n import { ref, computed, onUpdated, onMounted, nextTick } from 'vue'\n\n const emit = defineEmits(['update:field', 'focus', 'blur']);\n\n const props = defineProps({\n label: null,\n symbol: null,\n type: 'text',\n placeholder: 'Enter something here',\n field: null,\n value: null,\n validation: false,\n disabled: null,\n tabindex: -1\n });\n\n if (props.value) {\n emit('update:field', props.value)\n }\n\n const textarea = ref(null);\n\n function resize() {\n if (textarea.value) textarea.value.style.height = \"1rem\";\n if (textarea.value) textarea.value.style.height = textarea.value?.scrollHeight + \"px\";\n }\n\n\n onUpdated(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n onMounted(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n const text = ref(props.field);\n</script>\n\n<template>\n <div \n :class=\"[\n $attrs.class, \n { \n 'bg-fourth-nano': validation \n }\n ]\" \n class=\"flex-center flex-nowrap flex\"\n >\n <div \n v-if=\"label\" \n class=\"t-transp mn-r-small\"\n >\n <span>\n {{label}}\n </span>\n </div>\n\n <div class=\"w-100\">\n <input \n v-if=\"type !== 'textarea'\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n :type=\"type\"\n class=\"w-100\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n <textarea \n v-else\n ref=\"textarea\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n class=\"w-100\"\n style=\"resize: vertical;\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n </div> \n\n <slot></slot>\n\n <div \n v-if=\"symbol\" \n class=\"t-transp mn-l-small\"\n >\n <span>\n {{symbol}}\n </span>\n </div>\n </div>\n\n <!-- Validation -->\n <transition name=\"fade\">\n <div v-if=\"validation\" class=\"mn-t-thin mn-b-thin mn-b-thin invalid-feedback\">\n * {{validation.message}}\n </div>\n </transition>\n</template>\n\n<style lang=\"scss\" scoped>\n input, textarea, span {\n line-height: 1;\n color: inherit;\n }\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGE,UAAM,OAAO;AAEb,UAAM,QAAQ;AAYd,QAAI,MAAM,OAAO;AACf,WAAK,gBAAgB,MAAM,KAAK;AAAA,IACjC;AAED,UAAM,WAAW,IAAI,IAAI;AAEzB,aAAS,SAAS;;AAChB,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,SAAS;AAClD,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,WAAS,cAAS,UAAT,mBAAgB,gBAAe;AAAA,IAClF;AAGD,cAAU,MAAM;AACf,UAAI,MAAM,SAAS,WAAY,UAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC5D,aAAQ;AAAA,IACZ,CAAG;AAED,cAAU,MAAM;AACd,UAAI,MAAM,SAAS,WAAY,UAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC7D,aAAQ;AAAA,IACZ,CAAG;AAED,UAAM,OAAO,IAAI,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Field = require("../Field/Field.
|
4
|
+
const Field = require("../Field/Field.vue2.cjs");
|
5
5
|
const IconArrow = require("../../modules/icons/navigation/IconArrow.vue.cjs");
|
6
6
|
const vueI18n = require("vue-i18n");
|
7
7
|
const _hoisted_1 = { class: "pd-thin radius-extra flex-nowrap flex" };
|