@avakhula/ui 0.1.22 → 0.1.24
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/App.js +23 -0
- package/dist/EventEmmiter.js +33 -0
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/chunks/floating-ui.dom-D8OVFdyL.js +861 -0
- package/dist/chunks/vue-quill.esm-bundler-FvTqp_xR.js +9070 -0
- package/dist/components/Accordion/Accordion.js +81 -0
- package/dist/components/Alert/Alert.js +121 -0
- package/dist/components/Alert/constants.js +10 -0
- package/dist/components/Avatar/Avatar.js +75 -0
- package/dist/components/Avatar/constants.js +12 -0
- package/dist/components/Badge/Badge.js +29 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +117 -0
- package/dist/components/Button/Button.js +140 -0
- package/dist/components/Button/constants.js +11 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +14 -0
- package/dist/components/Chips/Chips.js +65 -0
- package/dist/components/Dropdown/Dropdown.js +228 -0
- package/dist/components/Dropdown/DropdownDivider.js +10 -0
- package/dist/components/Dropdown/DropdownItem.js +50 -0
- package/dist/components/Dropdown/DropdownList.js +104 -0
- package/dist/components/Dropdown/constants.js +12 -0
- package/dist/components/Form/CharactersCount.js +33 -0
- package/dist/components/Form/Checkbox/Checkbox.js +171 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +81 -0
- package/dist/components/Form/DatePicker/DatePicker.js +1782 -0
- package/dist/components/Form/DatePicker/Icons/chevron-back.js +8 -0
- package/dist/components/Form/DatePicker/Icons/chevron-forward.js +8 -0
- package/dist/components/Form/FormGroup/FormGroup.js +30 -0
- package/dist/components/Form/FormGroup/FormGroupSet.js +44 -0
- package/dist/components/Form/Input/Input.js +375 -0
- package/dist/components/Form/Input/constants.js +9 -0
- package/dist/components/Form/Label/Label.js +87 -0
- package/dist/components/Form/PhoneInput/PhoneInput.js +3811 -0
- package/dist/components/Form/Radio/Radio.js +91 -0
- package/dist/components/Form/TextEditor/TextEditor.js +422 -0
- package/dist/components/Form/TextEditor/Toolbar.js +291 -0
- package/dist/components/Form/TextEditor/icons/toolbarIcons.js +109 -0
- package/dist/components/Form/TextEditor/plugins/alphabetList.js +31 -0
- package/dist/components/Form/TextEditor/plugins/imageBlot.js +16 -0
- package/dist/components/Form/TextEditor/setupTextEditor.js +27 -0
- package/dist/components/Form/Textarea/Textarea.js +121 -0
- package/dist/components/Form/Toggle/Toggle.js +134 -0
- package/dist/components/Icon.js +37 -0
- package/dist/components/IconButton/IconButton.js +93 -0
- package/dist/components/IconButton/constants.js +15 -0
- package/dist/components/List.js +66 -0
- package/dist/components/Modal/Modal.js +198 -0
- package/dist/components/Modal/constants.js +9 -0
- package/dist/components/Pagination/LimitSelector.js +73 -0
- package/dist/components/Pagination/Pagination.js +226 -0
- package/dist/components/Panel/Panel.js +107 -0
- package/dist/components/Popover/Popover.js +105 -0
- package/dist/components/Popover/constants.js +17 -0
- package/dist/components/ProgressBar/ProgressBar.js +63 -0
- package/dist/components/ProgressBar/constants.js +10 -0
- package/dist/components/Sorting/Sorting.js +182 -0
- package/dist/components/Sorting/constants.js +12 -0
- package/dist/components/SplitButton/SplitButton.js +145 -0
- package/dist/components/SplitButton/SplitButtonItem.js +34 -0
- package/dist/components/SplitButton/constants.js +7 -0
- package/dist/components/StatusIndicator/StatusIndicator.js +29 -0
- package/dist/components/StatusIndicator/constants.js +13 -0
- package/dist/components/StatusIndicator/icons.js +44 -0
- package/dist/components/Table/Cells/Cell.js +39 -0
- package/dist/components/Table/Cells/CheckboxCell.js +37 -0
- package/dist/components/Table/Row.js +14 -0
- package/dist/components/Table/Table.js +24 -0
- package/dist/components/Tabs/Tab.js +47 -0
- package/dist/components/Tabs/TabDropdown.js +94 -0
- package/dist/components/Tabs/Tabs.js +128 -0
- package/dist/components/TagPill/TagPill.js +61 -0
- package/dist/components/TagPill/constants.js +12 -0
- package/dist/components/ToggleTip/ToggleTip.js +91 -0
- package/dist/components/ToggleTip/constants.js +17 -0
- package/dist/components/Tooltip/Tooltip.js +46 -0
- package/dist/components/TreeSelect/Option.js +302 -0
- package/dist/components/TreeSelect/Select.js +1867 -0
- package/dist/components/TreeSelect/mixins/InfinityLoaderMixin.js +32 -0
- package/dist/constants/events.js +5 -0
- package/dist/constants/keyCodes.js +12 -0
- package/dist/directives/outside/outside.js +37 -0
- package/dist/directives/tooltip/TooltipController.js +116 -0
- package/dist/directives/tooltip/textOverflowTooltip.js +23 -0
- package/dist/directives/tooltip/tooltip.js +48 -0
- package/dist/helpers/debounce.js +14 -0
- package/dist/helpers/generateUID.js +6 -0
- package/dist/helpers/getHrefFromID.js +6 -0
- package/dist/helpers/multiLineOverflows.js +6 -0
- package/dist/helpers/removeEvents.js +8 -0
- package/dist/helpers/stripHtml.js +6 -0
- package/dist/index.css +1 -1
- package/dist/index.js +103 -22665
- package/dist/main.js +10 -0
- package/dist/mixins/expandAnimation.js +24 -0
- package/package.json +7 -4
- package/src/components/Form/Textarea/Textarea.vue +8 -4
- package/src/components/TreeSelect/Select.vue +11 -11
- package/.babelrc.json +0 -14
- package/.eslintrc.cjs +0 -22
- package/.nvmrc +0 -1
- package/.prettierrc.json +0 -1
- package/.storybook/intelliboardTheme.js +0 -10
- package/.storybook/main.js +0 -25
- package/.storybook/manager.js +0 -7
- package/.storybook/preview-head.html +0 -12
- package/.storybook/preview.js +0 -25
- package/.storybook/scss-loader.scss +0 -6
- package/.storybook/withSource.js +0 -97
- package/dist/index.umd.cjs +0 -238
- package/index.html +0 -21
- package/static/Logo.svg +0 -25
- package/static/docks/button.pdf +0 -147566
- package/static/favicon.ico +0 -0
- package/vite.config.js +0 -47
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import C from "../Icon.js";
|
|
2
|
+
import E from "../IconButton/IconButton.js";
|
|
3
|
+
import v from "../ToggleTip/ToggleTip.js";
|
|
4
|
+
import { typesSortingView as w, typesSorting as k } from "./constants.js";
|
|
5
|
+
import { TooltipDirective as P } from "../../directives/tooltip/tooltip.js";
|
|
6
|
+
import { resolveComponent as g, resolveDirective as I, createElementBlock as s, openBlock as r, withDirectives as T, normalizeClass as c, createBlock as u, createCommentVNode as a, createTextVNode as d, toDisplayString as S, withCtx as h, renderSlot as m, createElementVNode as N } from "vue";
|
|
7
|
+
import { _ as O } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const B = {
|
|
9
|
+
name: "IbSorting",
|
|
10
|
+
props: {
|
|
11
|
+
tooltipTitle: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
hideSortingButton: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
tooltipText: {
|
|
20
|
+
type: String
|
|
21
|
+
},
|
|
22
|
+
tooltipPosition: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
tooltipIconPosition: {
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
tooltipIconSorting: {
|
|
29
|
+
type: String
|
|
30
|
+
},
|
|
31
|
+
toggleTipTitle: {
|
|
32
|
+
type: String
|
|
33
|
+
},
|
|
34
|
+
title: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
sort: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: null
|
|
41
|
+
},
|
|
42
|
+
view: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: !0
|
|
45
|
+
},
|
|
46
|
+
disable: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
tableName: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: !0
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
mounted() {
|
|
56
|
+
this.$globalEvents.$on(`sorting:update:${this.tableName}`, (i) => {
|
|
57
|
+
this.$el.contains(i.$el) || (this.currentTypeSort = null);
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
data() {
|
|
61
|
+
return {
|
|
62
|
+
isOpenToggleTip: !1,
|
|
63
|
+
sortingTypes: k,
|
|
64
|
+
sortingTypesView: w,
|
|
65
|
+
currentTypeSort: this.sort
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
methods: {
|
|
69
|
+
clickHandler() {
|
|
70
|
+
this.currentTypeSort ? this.currentTypeSort === this.sortingTypes.TYPE_ASC ? this.currentTypeSort = this.sortingTypes.TYPE_DESC : this.currentTypeSort = null : this.currentTypeSort = this.sortingTypes.TYPE_ASC, this.updateTypeSorting();
|
|
71
|
+
},
|
|
72
|
+
updateTypeSorting() {
|
|
73
|
+
this.$globalEvents.$emit(`sorting:update:${this.tableName}`, this), this.$emit("update-sorting", this.currentTypeSort);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
iconType() {
|
|
78
|
+
return this.currentTypeSort === this.sortingTypes.TYPE_ASC ? "arrow-up" : this.currentTypeSort === this.sortingTypes.TYPE_DESC ? "arrow-down" : this.view !== this.sortingTypesView.GRID_VIEW ? "swap-vertical" : null;
|
|
79
|
+
},
|
|
80
|
+
sortingTooltipPosition() {
|
|
81
|
+
return this.hasToggleTip ? "bottomCenter" : this.tooltipPosition;
|
|
82
|
+
},
|
|
83
|
+
sortingTooltipContent() {
|
|
84
|
+
var i;
|
|
85
|
+
return this.hasToggleTip ? lang("click_to_view_details", (i = this.langComponents) == null ? void 0 : i.COMPONENT_SYSTEM) : this.tooltipContent;
|
|
86
|
+
},
|
|
87
|
+
tooltipIconText() {
|
|
88
|
+
var i, o, t;
|
|
89
|
+
return this.currentTypeSort === this.sortingTypes.TYPE_ASC ? lang("sort_descending", (i = this.langComponents) == null ? void 0 : i.COMPONENT_SELECT) : this.currentTypeSort === this.sortingTypes.TYPE_DESC ? lang("reset_sorting", (o = this.langComponents) == null ? void 0 : o.COMPONENT_SELECT) : this.view !== this.sortingTypesView.GRID_VIEW ? lang("sort_ascending", (t = this.langComponents) == null ? void 0 : t.COMPONENT_SELECT) : "";
|
|
90
|
+
},
|
|
91
|
+
tooltipContent() {
|
|
92
|
+
return this.tooltipTitle.length ? {
|
|
93
|
+
title: this.tooltipTitle,
|
|
94
|
+
text: this.tooltipText
|
|
95
|
+
} : this.tooltipText;
|
|
96
|
+
},
|
|
97
|
+
hasToggleTip() {
|
|
98
|
+
return this.toggleTipTitle && this.$slots.toggleTipBody && this.$slots.toggleTipButtons;
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
directives: { Tooltip: P },
|
|
102
|
+
components: {
|
|
103
|
+
IbIcon: C,
|
|
104
|
+
IbIconButton: E,
|
|
105
|
+
IbToggleTip: v
|
|
106
|
+
}
|
|
107
|
+
}, x = { class: "sorting-wrapper" }, V = ["name"], D = ["aria-label"];
|
|
108
|
+
function Y(i, o, t, A, n, e) {
|
|
109
|
+
var y;
|
|
110
|
+
const _ = g("ib-toggle-tip"), f = g("ib-icon-button"), b = g("ib-icon"), l = I("tooltip");
|
|
111
|
+
return r(), s("div", x, [
|
|
112
|
+
t.view === n.sortingTypesView.TABLE_VIEW ? (r(), s("div", {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: c(["table-sorting-wrapper", {
|
|
115
|
+
active: n.currentTypeSort,
|
|
116
|
+
disabled: t.disable
|
|
117
|
+
}])
|
|
118
|
+
}, [
|
|
119
|
+
T((r(), s("button", {
|
|
120
|
+
class: c(["sorting-label", {
|
|
121
|
+
"sorting-label-active": n.isOpenToggleTip && e.hasToggleTip,
|
|
122
|
+
"has-action": ((y = t.tooltipText) == null ? void 0 : y.length) || e.hasToggleTip
|
|
123
|
+
}]),
|
|
124
|
+
type: "button",
|
|
125
|
+
onClick: o[0] || (o[0] = (p) => n.isOpenToggleTip = !n.isOpenToggleTip)
|
|
126
|
+
}, [
|
|
127
|
+
d(S(t.title), 1)
|
|
128
|
+
], 2)), [
|
|
129
|
+
[l, e.sortingTooltipContent, e.sortingTooltipPosition]
|
|
130
|
+
]),
|
|
131
|
+
e.hasToggleTip ? (r(), u(_, {
|
|
132
|
+
key: 0,
|
|
133
|
+
position: "bottom-center",
|
|
134
|
+
"is-open": n.isOpenToggleTip,
|
|
135
|
+
title: t.toggleTipTitle,
|
|
136
|
+
onClose: o[1] || (o[1] = (p) => n.isOpenToggleTip = !1)
|
|
137
|
+
}, {
|
|
138
|
+
buttons: h(() => [
|
|
139
|
+
m(i.$slots, "toggleTipButtons", {}, void 0, !0)
|
|
140
|
+
]),
|
|
141
|
+
default: h(() => [
|
|
142
|
+
m(i.$slots, "toggleTipBody", {}, void 0, !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
}, 8, ["is-open", "title"])) : a("", !0),
|
|
146
|
+
t.hideSortingButton ? a("", !0) : T((r(), u(f, {
|
|
147
|
+
key: 1,
|
|
148
|
+
kind: "white",
|
|
149
|
+
size: "s",
|
|
150
|
+
onClick: e.clickHandler
|
|
151
|
+
}, {
|
|
152
|
+
default: h(() => [
|
|
153
|
+
N("ion-icon", { name: e.iconType }, null, 8, V)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["onClick"])), [
|
|
157
|
+
[l, e.tooltipIconText, t.tooltipIconPosition]
|
|
158
|
+
])
|
|
159
|
+
], 2)) : T((r(), s("button", {
|
|
160
|
+
key: 1,
|
|
161
|
+
class: c(["sorting-button", {
|
|
162
|
+
active: n.currentTypeSort,
|
|
163
|
+
disabled: t.disable
|
|
164
|
+
}]),
|
|
165
|
+
type: "button",
|
|
166
|
+
onClick: o[2] || (o[2] = (...p) => e.clickHandler && e.clickHandler(...p)),
|
|
167
|
+
"aria-label": t.sort
|
|
168
|
+
}, [
|
|
169
|
+
d(S(t.title) + " ", 1),
|
|
170
|
+
e.iconType ? (r(), u(b, {
|
|
171
|
+
key: 0,
|
|
172
|
+
name: e.iconType
|
|
173
|
+
}, null, 8, ["name"])) : a("", !0)
|
|
174
|
+
], 10, D)), [
|
|
175
|
+
[l, t.tooltipText, t.tooltipPosition]
|
|
176
|
+
])
|
|
177
|
+
]);
|
|
178
|
+
}
|
|
179
|
+
const R = /* @__PURE__ */ O(B, [["render", Y], ["__scopeId", "data-v-c0bd6464"]]);
|
|
180
|
+
export {
|
|
181
|
+
R as default
|
|
182
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { splitButtonKindOptions as k } from "./constants.js";
|
|
2
|
+
import p from "../../helpers/generateUID.js";
|
|
3
|
+
import _ from "../Dropdown/DropdownList.js";
|
|
4
|
+
import L from "../Icon.js";
|
|
5
|
+
import { resolveComponent as l, createElementBlock as r, openBlock as o, normalizeClass as I, createBlock as B, createVNode as u, mergeProps as a, withCtx as d, createTextVNode as g, toDisplayString as c, createElementVNode as m, renderSlot as A } from "vue";
|
|
6
|
+
import { _ as x } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const y = {
|
|
8
|
+
name: "IbSplitButton",
|
|
9
|
+
props: {
|
|
10
|
+
id: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: () => p()
|
|
13
|
+
},
|
|
14
|
+
kind: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: k.common
|
|
17
|
+
},
|
|
18
|
+
verticalPosition: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "bottom"
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
saveSelected: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
mounted() {
|
|
32
|
+
var e;
|
|
33
|
+
if (this.childList = Array.from(this.$refs.list.children), (e = this.childList) == null || e.forEach((i, t) => {
|
|
34
|
+
i.addEventListener("click", () => {
|
|
35
|
+
this.childList[this.activeElemIdx].classList.remove("active"), this.saveSelected && (this.activeElemIdx = t, localStorage.setItem(`split-button-${this.id}`, t));
|
|
36
|
+
});
|
|
37
|
+
}), this.saveSelected) {
|
|
38
|
+
const i = localStorage.getItem(`split-button-${this.id}`);
|
|
39
|
+
i && (this.activeElemIdx = i);
|
|
40
|
+
}
|
|
41
|
+
this.$nextTick(() => {
|
|
42
|
+
this.setActiveItem();
|
|
43
|
+
}), this.listObserver = new MutationObserver((i) => {
|
|
44
|
+
for (const t of i)
|
|
45
|
+
if (t.type === "attributes" && t.attributeName === "disabled") {
|
|
46
|
+
this.mainButtonAttrs.disabled = t.target.disabled;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}), this.listObserver.observe(this.$refs.list, { attributes: !0, subtree: !0 });
|
|
50
|
+
},
|
|
51
|
+
data() {
|
|
52
|
+
return {
|
|
53
|
+
activeElemIdx: 0,
|
|
54
|
+
content: "",
|
|
55
|
+
mainButtonAttrs: {},
|
|
56
|
+
isLink: !1,
|
|
57
|
+
isRouterLink: !1,
|
|
58
|
+
childList: [],
|
|
59
|
+
listObserver: null
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
components: {
|
|
63
|
+
IbIcon: L,
|
|
64
|
+
IbDropdownList: _
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
setActiveItem() {
|
|
68
|
+
const e = this.$slots.default()[this.activeElemIdx].props;
|
|
69
|
+
this.mainButtonAttrs = e, this.mainButtonAttrs && "href" in this.mainButtonAttrs ? this.isLink = !0 : this.isLink = !1, this.mainButtonAttrs && "to" in this.mainButtonAttrs ? this.isRouterLink = !0 : this.isRouterLink = !1, this.childList[this.activeElemIdx].classList.add("active"), this.content = this.childList[this.activeElemIdx].textContent;
|
|
70
|
+
},
|
|
71
|
+
onClickLink(e) {
|
|
72
|
+
if (this.disabled) {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
classes() {
|
|
80
|
+
const e = ["split-button"];
|
|
81
|
+
return e.push(`split-button-${this.kind}`), e;
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
watch: {
|
|
85
|
+
activeElemIdx() {
|
|
86
|
+
this.setActiveItem();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
beforeUnmount() {
|
|
90
|
+
this.listObserver.disconnect(), this.listObserver = null;
|
|
91
|
+
}
|
|
92
|
+
}, C = ["disabled"], E = ["disabled"], S = ["disabled"], O = { ref: "list" };
|
|
93
|
+
function w(e, i, t, D, s, n) {
|
|
94
|
+
const h = l("router-link"), b = l("ib-icon"), f = l("ib-dropdown-list");
|
|
95
|
+
return o(), r("div", {
|
|
96
|
+
class: I(n.classes)
|
|
97
|
+
}, [
|
|
98
|
+
s.isRouterLink ? (o(), B(h, a({
|
|
99
|
+
key: 0,
|
|
100
|
+
class: ["split-button-main", { disabled: t.disabled }],
|
|
101
|
+
disabled: t.disabled,
|
|
102
|
+
to: s.mainButtonAttrs.to
|
|
103
|
+
}, s.mainButtonAttrs, { onClick: n.onClickLink }), {
|
|
104
|
+
default: d(() => [
|
|
105
|
+
g(c(s.content), 1)
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 16, ["class", "disabled", "to", "onClick"])) : s.isLink ? (o(), r("a", a({
|
|
109
|
+
key: 1,
|
|
110
|
+
class: ["split-button-main", { disabled: t.disabled }],
|
|
111
|
+
disabled: t.disabled
|
|
112
|
+
}, s.mainButtonAttrs, {
|
|
113
|
+
onClick: i[0] || (i[0] = (...v) => n.onClickLink && n.onClickLink(...v))
|
|
114
|
+
}), c(s.content), 17, C)) : (o(), r("button", a({
|
|
115
|
+
key: 2,
|
|
116
|
+
disabled: t.disabled,
|
|
117
|
+
class: "split-button-main"
|
|
118
|
+
}, s.mainButtonAttrs), c(s.content), 17, E)),
|
|
119
|
+
u(f, {
|
|
120
|
+
disabled: t.disabled,
|
|
121
|
+
closeOnClick: !0,
|
|
122
|
+
vertical: t.verticalPosition,
|
|
123
|
+
horizontal: t.verticalPosition === "top" ? "right" : "left"
|
|
124
|
+
}, {
|
|
125
|
+
trigger: d(() => [
|
|
126
|
+
m("button", {
|
|
127
|
+
disabled: t.disabled,
|
|
128
|
+
class: "split-button-menu-trigger"
|
|
129
|
+
}, [
|
|
130
|
+
u(b, { name: "chevron-down-outline" })
|
|
131
|
+
], 8, S)
|
|
132
|
+
]),
|
|
133
|
+
body: d(() => [
|
|
134
|
+
m("div", O, [
|
|
135
|
+
A(e.$slots, "default")
|
|
136
|
+
], 512)
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 8, ["disabled", "vertical", "horizontal"])
|
|
140
|
+
], 2);
|
|
141
|
+
}
|
|
142
|
+
const U = /* @__PURE__ */ x(y, [["render", w]]);
|
|
143
|
+
export {
|
|
144
|
+
U as default
|
|
145
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createBlock as r, openBlock as o, resolveDynamicComponent as n, mergeProps as s, withCtx as i, renderSlot as f } from "vue";
|
|
2
|
+
import { _ as c } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const a = {
|
|
4
|
+
props: {
|
|
5
|
+
href: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: ""
|
|
8
|
+
},
|
|
9
|
+
to: {
|
|
10
|
+
type: [String, Object]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
computed: {
|
|
14
|
+
attrs() {
|
|
15
|
+
const t = {};
|
|
16
|
+
return this.href.length && (t.href = this.href), this.to && (t.to = this.to), t;
|
|
17
|
+
},
|
|
18
|
+
component() {
|
|
19
|
+
return this.href.length ? "a" : this.to ? "router-link" : "button";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function p(t, u, d, h, l, e) {
|
|
24
|
+
return o(), r(n(e.component), s(e.attrs, { class: "ib-dropdown-item" }), {
|
|
25
|
+
default: i(() => [
|
|
26
|
+
f(t.$slots, "default", {}, void 0, !0)
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16);
|
|
30
|
+
}
|
|
31
|
+
const g = /* @__PURE__ */ c(a, [["render", p], ["__scopeId", "data-v-66b7cfd1"]]);
|
|
32
|
+
export {
|
|
33
|
+
g as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { icons as n } from "./icons.js";
|
|
2
|
+
import { createElementBlock as o, openBlock as r, createElementVNode as c, renderSlot as i, normalizeClass as a } from "vue";
|
|
3
|
+
import { _ as d } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const l = {
|
|
5
|
+
props: {
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "success"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
icons: n
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}, u = { class: "status-indicator" }, _ = ["innerHTML"];
|
|
17
|
+
function p(e, f, t, m, s, y) {
|
|
18
|
+
return r(), o("div", u, [
|
|
19
|
+
c("div", {
|
|
20
|
+
class: a(["status-indicator-icon", t.type]),
|
|
21
|
+
innerHTML: s.icons[t.type]
|
|
22
|
+
}, null, 10, _),
|
|
23
|
+
i(e.$slots, "default", {}, void 0, !0)
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
const k = /* @__PURE__ */ d(l, [["render", p], ["__scopeId", "data-v-38ce73f6"]]);
|
|
27
|
+
export {
|
|
28
|
+
k as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
new: `<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
4
|
+
</svg>
|
|
5
|
+
`,
|
|
6
|
+
success: `
|
|
7
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0D7F39"/>
|
|
9
|
+
</svg>
|
|
10
|
+
`,
|
|
11
|
+
error: `
|
|
12
|
+
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<path id="Subtract" fill-rule="evenodd" clip-rule="evenodd" d="M9.1336 8.31393C9.68034 7.51234 10 6.5435 10 5.5C10 2.73858 7.76142 0.5 5 0.5C3.9565 0.5 2.98766 0.819661 2.18607 1.3664L9.1336 8.31393ZM0.866401 2.68607C0.319661 3.48766 0 4.4565 0 5.5C0 8.26142 2.23858 10.5 5 10.5C6.0435 10.5 7.01234 10.1803 7.81393 9.6336L0.866401 2.68607Z" fill="#C8182E"/>
|
|
14
|
+
</svg>
|
|
15
|
+
`,
|
|
16
|
+
warning: `
|
|
17
|
+
<svg width="12" height="11" viewBox="0 0 12 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
<path d="M6 0.5L12 10.5H0L6 0.5Z" fill="#F1BC19"/>
|
|
19
|
+
</svg>
|
|
20
|
+
`,
|
|
21
|
+
incomplete: `
|
|
22
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
23
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 2.5C3.84315 2.5 2.5 3.84315 2.5 5.5C2.5 7.15685 3.84315 8.5 5.5 8.5C7.15685 8.5 8.5 7.15685 8.5 5.5C8.5 3.84315 7.15685 2.5 5.5 2.5ZM0.5 5.5C0.5 2.73858 2.73858 0.5 5.5 0.5C8.26142 0.5 10.5 2.73858 10.5 5.5C10.5 8.26142 8.26142 10.5 5.5 10.5C2.73858 10.5 0.5 8.26142 0.5 5.5Z" fill="#677788"/>
|
|
24
|
+
</svg>
|
|
25
|
+
`,
|
|
26
|
+
inProgress: `
|
|
27
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 0.5C2.73858 0.5 0.5 2.73858 0.5 5.5C0.5 8.26142 2.73858 10.5 5.5 10.5C8.26142 10.5 10.5 8.26142 10.5 5.5C10.5 2.73858 8.26142 0.5 5.5 0.5ZM2.5 5.5C2.5 3.84315 3.84315 2.5 5.5 2.5V5.5L7.62132 7.62132C7.07843 8.16421 6.32843 8.5 5.5 8.5C3.84315 8.5 2.5 7.15685 2.5 5.5Z" fill="#0060D6"/>
|
|
29
|
+
</svg>
|
|
30
|
+
`,
|
|
31
|
+
loading: `
|
|
32
|
+
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
33
|
+
<path d="M5 2.5C3.34315 2.5 2 3.84315 2 5.5C2 7.15685 3.34315 8.5 5 8.5C6.65685 8.5 8 7.15685 8 5.5H10C10 8.26142 7.76142 10.5 5 10.5C2.23858 10.5 0 8.26142 0 5.5C0 2.73858 2.23858 0.5 5 0.5V2.5Z" fill="#0060D6"/>
|
|
34
|
+
</svg>
|
|
35
|
+
`,
|
|
36
|
+
disconnect: `
|
|
37
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
38
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.20658 2.79237C4.59822 2.60495 5.03685 2.5 5.5 2.5C7.15685 2.5 8.5 3.84315 8.5 5.5C8.5 5.96315 8.39505 6.40178 8.20763 6.79342L9.6716 8.25739C10.1951 7.46696 10.5 6.51908 10.5 5.5C10.5 2.73858 8.26142 0.5 5.5 0.5C4.48092 0.5 3.53304 0.804877 2.74261 1.3284L4.20658 2.79237ZM2.79237 4.20658L1.3284 2.74261C0.804877 3.53304 0.5 4.48092 0.5 5.5C0.5 8.26142 2.73858 10.5 5.5 10.5C6.51908 10.5 7.46696 10.1951 8.25739 9.6716L6.79342 8.20763C6.40178 8.39505 5.96315 8.5 5.5 8.5C3.84315 8.5 2.5 7.15685 2.5 5.5C2.5 5.03685 2.60495 4.59822 2.79237 4.20658Z" fill="#677788"/>
|
|
39
|
+
</svg>
|
|
40
|
+
`
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
l as icons
|
|
44
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createElementBlock as r, openBlock as o, mergeProps as i, createElementVNode as n, renderSlot as a } from "vue";
|
|
2
|
+
import { _ as d } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const c = {
|
|
4
|
+
name: "IbCell",
|
|
5
|
+
props: {
|
|
6
|
+
fixed: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
attr: {}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
mounted() {
|
|
17
|
+
this.fixed && this.freezeCol();
|
|
18
|
+
},
|
|
19
|
+
methods: {
|
|
20
|
+
freezeCol() {
|
|
21
|
+
const e = this.$el.getBoundingClientRect(), t = this.$el.closest("tr").getBoundingClientRect();
|
|
22
|
+
this.attr.style || (this.attr.style = {}), this.attr.style.minWidth = `${e.width}px`, this.attr.style.left = `${e.left - t.left}px`, this.attr.class += " fixed";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, f = { class: "cell" };
|
|
26
|
+
function p(e, t, h, m, u, s) {
|
|
27
|
+
return o(), r("td", i({
|
|
28
|
+
onResize: t[0] || (t[0] = (...l) => s.freezeCol && s.freezeCol(...l)),
|
|
29
|
+
class: "ib-cell"
|
|
30
|
+
}, this.attr), [
|
|
31
|
+
n("div", f, [
|
|
32
|
+
a(e.$slots, "default", {}, void 0, !0)
|
|
33
|
+
])
|
|
34
|
+
], 16);
|
|
35
|
+
}
|
|
36
|
+
const x = /* @__PURE__ */ d(c, [["render", p], ["__scopeId", "data-v-e4ce74a7"]]);
|
|
37
|
+
export {
|
|
38
|
+
x as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import l from "./Cell.js";
|
|
2
|
+
import n from "../../Form/Checkbox/Checkbox.js";
|
|
3
|
+
import { resolveComponent as o, createBlock as i, openBlock as s, withCtx as r, createVNode as a } from "vue";
|
|
4
|
+
import { _ as f } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const d = {
|
|
6
|
+
name: "IbCheckboxCell",
|
|
7
|
+
props: {
|
|
8
|
+
isChecked: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
fixed: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
components: {
|
|
18
|
+
IbCell: l,
|
|
19
|
+
IbCheckbox: n
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function _(p, b, e, m, x, h) {
|
|
23
|
+
const c = o("ib-checkbox"), t = o("ib-cell");
|
|
24
|
+
return s(), i(t, {
|
|
25
|
+
fixed: e.fixed,
|
|
26
|
+
class: "ib-checkbox-cell"
|
|
27
|
+
}, {
|
|
28
|
+
default: r(() => [
|
|
29
|
+
a(c, { "is-checked": e.isChecked }, null, 8, ["is-checked"])
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}, 8, ["fixed"]);
|
|
33
|
+
}
|
|
34
|
+
const I = /* @__PURE__ */ f(d, [["render", _]]);
|
|
35
|
+
export {
|
|
36
|
+
I as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElementBlock as e, openBlock as t, renderSlot as r } from "vue";
|
|
2
|
+
import { _ as s } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const n = {
|
|
4
|
+
name: "IbRow"
|
|
5
|
+
}, c = { class: "ib-tr" };
|
|
6
|
+
function a(o, _, f, p, l, d) {
|
|
7
|
+
return t(), e("tr", c, [
|
|
8
|
+
r(o.$slots, "default", { ref: "row" })
|
|
9
|
+
]);
|
|
10
|
+
}
|
|
11
|
+
const u = /* @__PURE__ */ s(n, [["render", a]]);
|
|
12
|
+
export {
|
|
13
|
+
u as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock as s, openBlock as r, createElementVNode as t, renderSlot as o, createCommentVNode as d } from "vue";
|
|
2
|
+
import { _ as n } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const c = {
|
|
4
|
+
name: "IbTable",
|
|
5
|
+
computed: {
|
|
6
|
+
hasThead() {
|
|
7
|
+
return !!this.$slots.thead;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}, l = { class: "ib-table-wrapper" }, _ = { class: "ib-table" };
|
|
11
|
+
function i(e, p, u, b, m, a) {
|
|
12
|
+
return r(), s("div", l, [
|
|
13
|
+
t("table", _, [
|
|
14
|
+
a.hasThead ? o(e.$slots, "thead", { key: 0 }, void 0, !0) : d("", !0),
|
|
15
|
+
t("tbody", null, [
|
|
16
|
+
o(e.$slots, "tbody", {}, void 0, !0)
|
|
17
|
+
])
|
|
18
|
+
])
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
const $ = /* @__PURE__ */ n(c, [["render", i], ["__scopeId", "data-v-5dceb760"]]);
|
|
22
|
+
export {
|
|
23
|
+
$ as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { withDirectives as r, createElementBlock as i, openBlock as a, renderSlot as n, vShow as l } from "vue";
|
|
2
|
+
import { _ as o } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "IbTab",
|
|
5
|
+
props: {
|
|
6
|
+
title: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
id: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !0
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
icon: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !1
|
|
21
|
+
},
|
|
22
|
+
initialized: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
name: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: null
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
computed: {
|
|
32
|
+
isTabActive() {
|
|
33
|
+
return this.$parent.selectedTab === this.id;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function d(e, p, c, u, f, t) {
|
|
38
|
+
return r((a(), i("div", null, [
|
|
39
|
+
n(e.$slots, "default")
|
|
40
|
+
], 512)), [
|
|
41
|
+
[l, t.isTabActive]
|
|
42
|
+
]);
|
|
43
|
+
}
|
|
44
|
+
const b = /* @__PURE__ */ o(s, [["render", d]]);
|
|
45
|
+
export {
|
|
46
|
+
b as default
|
|
47
|
+
};
|