@milaboratories/uikit 2.10.31 → 2.10.33
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/.turbo/turbo-build.log +185 -111
- package/.turbo/turbo-formatter$colon$check.log +2 -2
- package/.turbo/turbo-linter$colon$check.log +2 -2
- package/.turbo/turbo-types$colon$check.log +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/assets/ui.css +1 -0
- package/dist/base/BtnBase.vue.js +1 -1
- package/dist/components/DataTable/TableComponent.vue.js +59 -114
- package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
- package/dist/components/DataTable/assets/data-table-style.css +1 -0
- package/dist/components/LongText.css +1 -0
- package/dist/components/LongText.vue3.js +1 -1
- package/dist/components/PlAccordion/ExpandTransition.css +1 -0
- package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
- package/dist/components/PlAccordion/PlAccordionSection.css +1 -0
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js +5 -5
- package/dist/components/PlAccordion/PlAccordionSection.vue3.js +1 -1
- package/dist/components/PlAlert/PlAlert.vue.js +1 -1
- package/dist/components/PlAlert/pl-alert.css +1 -0
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +25 -25
- package/dist/components/PlAutocomplete/pl-autocomplete.css +1 -0
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js +9 -9
- package/dist/components/PlAutocompleteMulti/pl-autocomplete-multi.css +1 -0
- package/dist/components/PlBtnAccent/PlBtnAccent.vue.js +1 -1
- package/dist/components/PlBtnAccent/pl-btn-accent.css +1 -0
- package/dist/components/PlBtnDanger/PlBtnDanger.vue.js +1 -1
- package/dist/components/PlBtnDanger/pl-btn-danger.css +1 -0
- package/dist/components/PlBtnGhost/PlBtnGhost.vue.js +2 -2
- package/dist/components/PlBtnGhost/pl-btn-ghost.css +1 -0
- package/dist/components/PlBtnGroup/PlBtnGroup.vue.js +7 -7
- package/dist/components/PlBtnGroup/pl-btn-group.css +1 -0
- package/dist/components/PlBtnLink/PlBtnLink.vue.js +1 -1
- package/dist/components/PlBtnLink/pl-btn-link.css +1 -0
- package/dist/components/PlBtnPrimary/PlBtnPrimary.vue.js +1 -1
- package/dist/components/PlBtnPrimary/pl-btn-primary.css +1 -0
- package/dist/components/PlBtnSecondary/PlBtnSecondary.vue.js +1 -1
- package/dist/components/PlBtnSecondary/pl-btn-secondary.css +1 -0
- package/dist/components/PlBtnSplit/PlBtnSplit.vue.js +1 -1
- package/dist/components/PlBtnSplit/pl-btn-split.css +1 -0
- package/dist/components/PlChartHistogram/PlChartHistogram.css +1 -0
- package/dist/components/PlChartHistogram/PlChartHistogram.vue3.js +1 -1
- package/dist/components/PlChartStackedBar/Legends.css +1 -0
- package/dist/components/PlChartStackedBar/Legends.vue3.js +1 -1
- package/dist/components/PlChartStackedBar/PlChartStackedBar.css +1 -0
- package/dist/components/PlChartStackedBar/PlChartStackedBar.vue3.js +1 -1
- package/dist/components/PlChartStackedBar/PlChartStackedBarCompact.css +1 -0
- package/dist/components/PlChartStackedBar/PlChartStackedBarCompact.vue3.js +1 -1
- package/dist/components/PlChartStackedBar/StackedRow.css +1 -0
- package/dist/components/PlChartStackedBar/StackedRow.vue3.js +1 -1
- package/dist/components/PlChartStackedBar/StackedRowCompact.css +1 -0
- package/dist/components/PlChartStackedBar/StackedRowCompact.vue3.js +1 -1
- package/dist/components/PlCheckbox/PlCheckbox.vue.js +1 -1
- package/dist/components/PlCheckbox/PlCheckboxBase.vue.js +1 -1
- package/dist/components/PlCheckbox/pl-checkbox-base.css +1 -0
- package/dist/components/PlCheckbox/pl-checkbox.css +1 -0
- package/dist/components/PlCheckboxGroup/PlCheckboxGroup.vue.js +1 -1
- package/dist/components/PlCheckboxGroup/pl-checkbox-group.css +1 -0
- package/dist/components/PlChip/PlChip.vue.js +1 -1
- package/dist/components/PlChip/pl-chip.css +1 -0
- package/dist/components/PlClipboard/PlClipboard.css +1 -0
- package/dist/components/PlClipboard/PlClipboard.vue3.js +1 -1
- package/dist/components/PlConfirmDialog.vue.js +6 -6
- package/dist/components/PlDialogModal/PlDialogModal.vue.js +1 -1
- package/dist/components/PlDialogModal/pl-dialog-modal.css +1 -0
- package/dist/components/PlDropdown/OptionList.vue.js +1 -1
- package/dist/components/PlDropdown/PlDropdown.vue.js +11 -11
- package/dist/components/PlDropdown/pl-dropdown.css +1 -0
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +23 -23
- package/dist/components/PlDropdownLegacy/pl-dropdown-legacy.css +1 -0
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.js +1 -1
- package/dist/components/PlDropdownLine/ResizableInput.vue.js +1 -1
- package/dist/components/PlDropdownLine/pl-dropdown-line.css +1 -0
- package/dist/components/PlDropdownLine/resizable-input.css +1 -0
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +2 -2
- package/dist/components/PlDropdownMulti/pl-dropdown-multi.css +1 -0
- package/dist/components/PlEditableTitle/pl-editable-title.css +1 -0
- package/dist/components/PlEditableTitle/pl-editable-title.module.scss.js +1 -1
- package/dist/components/PlElementList/PlElementList.css +1 -0
- package/dist/components/PlElementList/PlElementList.vue3.js +1 -1
- package/dist/components/PlElementList/PlElementListItem.css +1 -0
- package/dist/components/PlElementList/PlElementListItem.vue3.js +1 -1
- package/dist/components/PlErrorAlert/PlErrorAlert.css +1 -0
- package/dist/components/PlErrorAlert/PlErrorAlert.vue3.js +1 -1
- package/dist/components/PlErrorBoundary/PlErrorBoundary.vue.js +5 -5
- package/dist/components/PlFileDialog/Local.vue.js +4 -4
- package/dist/components/PlFileDialog/PlFileDialog.vue.js +10 -10
- package/dist/components/PlFileDialog/Remote.vue.js +11 -11
- package/dist/components/PlFileDialog/Shortcuts.css +1 -0
- package/dist/components/PlFileDialog/Shortcuts.vue3.js +1 -1
- package/dist/components/PlFileDialog/pl-file-dialog.css +1 -0
- package/dist/components/PlFileDialog/pl-file-dialog.module.scss.js +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.js +9 -9
- package/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
- package/dist/components/PlFileInput/pl-file-input.css +1 -0
- package/dist/components/PlIcon16/PlIcon16.css +1 -0
- package/dist/components/PlIcon16/PlIcon16.vue3.js +1 -1
- package/dist/components/PlIcon24/PlIcon24.css +1 -0
- package/dist/components/PlIcon24/PlIcon24.vue3.js +1 -1
- package/dist/components/PlLoaderCircular/PlLoaderCircular.vue.js +1 -1
- package/dist/components/PlLoaderCircular/pl-loader-circular.css +1 -0
- package/dist/components/PlLoaderLogo.css +1 -0
- package/dist/components/PlLoaderLogo.vue3.js +1 -1
- package/dist/components/PlLogView/PlLogView.vue.js +2 -2
- package/dist/components/PlLogView/pl-log-view.css +1 -0
- package/dist/components/PlNotificationAlert/PlNotificationAlert.vue.js +1 -1
- package/dist/components/PlNotificationAlert/pl-notification-alert.css +1 -0
- package/dist/components/PlNumberField/PlNumberField.vue.js +2 -2
- package/dist/components/PlNumberField/pl-number-field.css +1 -0
- package/dist/components/PlProgressCell/PlProgressCell.vue.js +5 -5
- package/dist/components/PlProgressCell/pl-progress-cell.css +1 -0
- package/dist/components/PlRadio/PlRadio.css +1 -0
- package/dist/components/PlRadio/PlRadio.vue3.js +1 -1
- package/dist/components/PlRadio/PlRadioGroup.css +1 -0
- package/dist/components/PlRadio/PlRadioGroup.vue3.js +1 -1
- package/dist/components/PlSearchField/PlSearchField.css +1 -0
- package/dist/components/PlSearchField/PlSearchField.vue2.js +4 -4
- package/dist/components/PlSearchField/PlSearchField.vue3.js +1 -1
- package/dist/components/PlSectionSeparator/PlSectionSeparator.css +1 -0
- package/dist/components/PlSectionSeparator/PlSectionSeparator.vue3.js +1 -1
- package/dist/components/PlSidebar/PlSidebarGroup.css +1 -0
- package/dist/components/PlSidebar/PlSidebarGroup.vue3.js +1 -1
- package/dist/components/PlSidebar/PlSidebarItem.css +1 -0
- package/dist/components/PlSidebar/PlSidebarItem.vue3.js +1 -1
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +24 -80
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
- package/dist/components/PlSlideModal/PlSlideModal.css +1 -0
- package/dist/components/PlSlideModal/PlSlideModal.vue2.js +1 -1
- package/dist/components/PlSlideModal/PlSlideModal.vue3.js +1 -1
- package/dist/components/PlSlideModal/pl-slide-modal.css +1 -0
- package/dist/components/PlSplash/pl-splash.css +1 -0
- package/dist/components/PlSplash/pl-splash.module.scss.js +1 -1
- package/dist/components/PlStatusTag/PlStatusTag.vue.js +1 -1
- package/dist/components/PlStatusTag/pl-status-tag.css +1 -0
- package/dist/components/PlSvg/PlSvg.css +1 -0
- package/dist/components/PlSvg/PlSvg.vue3.js +1 -1
- package/dist/components/PlTabs/pl-tabs.css +1 -0
- package/dist/components/PlTabs/pl-tabs.module.scss.js +1 -1
- package/dist/components/PlTextArea/PlTextArea.vue.js +13 -13
- package/dist/components/PlTextArea/pl-textarea.css +1 -0
- package/dist/components/PlTextField/PlTextField.vue.js +9 -9
- package/dist/components/PlTextField/pl-text-field.css +1 -0
- package/dist/components/PlToggleSwitch/PlToggleSwitch.vue.js +1 -1
- package/dist/components/PlToggleSwitch/pl-toggle-switch.css +1 -0
- package/dist/components/PlTooltip/PlTooltip.css +1 -0
- package/dist/components/PlTooltip/PlTooltip.vue3.js +1 -1
- package/dist/components/Slider.vue.js +6 -6
- package/dist/components/SliderRange.vue.js +8 -8
- package/dist/components/SliderRangeTriple.vue.js +6 -6
- package/dist/components/contextMenu/Menu.css +1 -0
- package/dist/components/contextMenu/Menu.vue.js +1 -1
- package/dist/composition/useResizeObserver.js +3 -3
- package/dist/composition/useTheme.js +3 -3
- package/dist/index.js +221 -222
- package/dist/layout/PlBlockPage/PlBlockPage.css +1 -0
- package/dist/layout/PlBlockPage/PlBlockPage.vue2.js +5 -5
- package/dist/layout/PlBlockPage/PlBlockPage.vue3.js +1 -1
- package/dist/layout/PlBlockPage/pl-block-page.css +1 -0
- package/dist/layout/PlContainer/PlContainer.vue.js +1 -1
- package/dist/layout/PlContainer/pl-container.css +1 -0
- package/dist/layout/PlGrid/PlGrid.vue.js +1 -1
- package/dist/layout/PlGrid/pl-grid.css +1 -0
- package/dist/layout/PlPlaceholder/PlPlaceholder.css +1 -0
- package/dist/layout/PlPlaceholder/PlPlaceholder.vue3.js +1 -1
- package/dist/layout/PlPlaceholder/index.js +2 -3
- package/dist/layout/PlPlaceholder/index.js.map +1 -1
- package/dist/layout/PlRow/PlRow.vue.js +1 -1
- package/dist/layout/PlRow/pl-row.css +1 -0
- package/dist/utils/DoubleContour.css +1 -0
- package/dist/utils/DoubleContour.vue3.js +1 -1
- package/dist/utils/PlCloseModalBtn.css +1 -0
- package/dist/utils/PlCloseModalBtn.vue2.js +1 -1
- package/dist/utils/TextLabel.css +1 -0
- package/dist/utils/TextLabel.vue2.js +1 -1
- package/package.json +8 -6
- package/dist/components/PlAccordion/ExpandTransition.vue2.js +0 -27
- package/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "_plTooltipAnchorWrapper_ttgyk_2", o = "_plTooltipContainer_ttgyk_16", p = "_plTooltipContent_ttgyk_36", l = "_plTooltipBox_ttgyk_47", _ = "_plTooltipBeak_ttgyk_53", n = "_top_ttgyk_63", e = "_bottom_ttgyk_77", i = "_left_ttgyk_91", r = "_right_ttgyk_108", T = "_topLeft_ttgyk_125", c = {
|
|
1
|
+
import './PlTooltip.css';const t = "_plTooltipAnchorWrapper_ttgyk_2", o = "_plTooltipContainer_ttgyk_16", p = "_plTooltipContent_ttgyk_36", l = "_plTooltipBox_ttgyk_47", _ = "_plTooltipBeak_ttgyk_53", n = "_top_ttgyk_63", e = "_bottom_ttgyk_77", i = "_left_ttgyk_91", r = "_right_ttgyk_108", T = "_topLeft_ttgyk_125", c = {
|
|
2
2
|
plTooltipAnchorWrapper: t,
|
|
3
3
|
plTooltipContainer: o,
|
|
4
4
|
plTooltipContent: p,
|
|
@@ -2,9 +2,9 @@ import { defineComponent as P, useSlots as z, reactive as F, computed as r, ref
|
|
|
2
2
|
import { useMouseCapture as q } from "../composition/useMouseCapture.js";
|
|
3
3
|
import { tapIf as G } from "../helpers/functions.js";
|
|
4
4
|
import { clamp as b } from "../helpers/math.js";
|
|
5
|
-
import H from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import { useSliderBreakpoints as H } from "../composition/useSliderBreakpoints.js";
|
|
6
|
+
import { getErrorMessage as J } from "../helpers/error.js";
|
|
7
|
+
import Q from "./PlTooltip/PlTooltip.vue.js";
|
|
8
8
|
const W = { class: "ui-slider__wrapper" }, X = { class: "ui-slider__label-section" }, Y = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "text-s"
|
|
@@ -35,8 +35,8 @@ const W = { class: "ui-slider__wrapper" }, X = { class: "ui-slider__label-sectio
|
|
|
35
35
|
deltaValue: 0
|
|
36
36
|
}), y = r(() => e.max - e.min), x = r(() => b((e.modelValue ?? 0) + d.deltaValue, e.min, e.max)), c = v(e.modelValue), g = r(() => {
|
|
37
37
|
const t = e.modelValue;
|
|
38
|
-
return Number.isFinite(t) ? t < e.min ? `Min value: ${e.min}` : t > e.max ? `Max value: ${e.max}` :
|
|
39
|
-
}), C = r(() => e), N =
|
|
38
|
+
return Number.isFinite(t) ? t < e.min ? `Min value: ${e.min}` : t > e.max ? `Max value: ${e.max}` : J(e.error) : "Not a number";
|
|
39
|
+
}), C = r(() => e), N = H(C), k = r(() => (x.value - e.min) / y.value), $ = r(() => ({
|
|
40
40
|
right: Math.ceil((1 - k.value) * 100) + "%"
|
|
41
41
|
})), E = r(() => ({
|
|
42
42
|
right: `calc(${Math.ceil((1 - k.value) * 100)}%) `
|
|
@@ -81,7 +81,7 @@ const W = { class: "ui-slider__wrapper" }, X = { class: "ui-slider__label-sectio
|
|
|
81
81
|
l("div", X, [
|
|
82
82
|
n.label ? (s(), i("label", Y, [
|
|
83
83
|
l("span", null, m(n.label), 1),
|
|
84
|
-
p(B).tooltip ? (s(), K(p(
|
|
84
|
+
p(B).tooltip ? (s(), K(p(Q), {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "info",
|
|
87
87
|
position: "top"
|
|
@@ -2,10 +2,10 @@ import { defineComponent as Q, useSlots as W, reactive as X, ref as d, computed
|
|
|
2
2
|
import { useMouseCapture as P } from "../composition/useMouseCapture.js";
|
|
3
3
|
import { tapIf as U } from "../helpers/functions.js";
|
|
4
4
|
import { clamp as p } from "../helpers/math.js";
|
|
5
|
-
import oe from "./
|
|
6
|
-
import se from "
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
5
|
+
import oe from "./InputRange.vue.js";
|
|
6
|
+
import { useSliderBreakpoints as se } from "../composition/useSliderBreakpoints.js";
|
|
7
|
+
import { getErrorMessage as ae } from "../helpers/error.js";
|
|
8
|
+
import ie from "./PlTooltip/PlTooltip.vue.js";
|
|
9
9
|
const re = { class: "ui-slider__wrapper" }, ue = { class: "ui-slider__label-section" }, ne = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "text-s"
|
|
@@ -35,13 +35,13 @@ const re = { class: "ui-slider__wrapper" }, ue = { class: "ui-slider__label-sect
|
|
|
35
35
|
const F = W(), I = z, e = g, r = X({
|
|
36
36
|
deltaValue1: 0,
|
|
37
37
|
deltaValue2: 0
|
|
38
|
-
}), x = d(), S = d(), B = d(), v = d(e.modelValue), f = d(e.modelValue[0]), _ = d(e.modelValue[1]), j = a(() => e), O =
|
|
38
|
+
}), x = d(), S = d(), B = d(), v = d(e.modelValue), f = d(e.modelValue[0]), _ = d(e.modelValue[1]), j = a(() => e), O = se(j), T = a(
|
|
39
39
|
() => [f.value, _.value].sort((t, l) => t - l).join("-")
|
|
40
40
|
), h = a(() => e.max - e.min), w = a(() => p((e.modelValue[0] ?? 0) + r.deltaValue1, e.min, e.max)), k = a(
|
|
41
41
|
() => p((e.modelValue[1] ?? 0) + r.deltaValue2, e.min, e.max)
|
|
42
42
|
), C = a(() => {
|
|
43
43
|
const t = e.modelValue;
|
|
44
|
-
return Array.isArray(t) && t.length === 2 && t.every((o) => Number.isFinite(o)) ?
|
|
44
|
+
return Array.isArray(t) && t.length === 2 && t.every((o) => Number.isFinite(o)) ? ae(e.error) : "Expected model [number, number]";
|
|
45
45
|
}), D = a(() => (w.value - e.min) / h.value), E = a(() => (k.value - e.min) / h.value), L = a(() => J()), q = a(() => ({
|
|
46
46
|
right: L.value[0] + "%",
|
|
47
47
|
left: 100 - L.value[1] + "%"
|
|
@@ -103,7 +103,7 @@ const re = { class: "ui-slider__wrapper" }, ue = { class: "ui-slider__label-sect
|
|
|
103
103
|
s("div", ue, [
|
|
104
104
|
g.label ? (u(), m("label", ne, [
|
|
105
105
|
s("span", null, M(g.label), 1),
|
|
106
|
-
b(F).tooltip ? (u(), K(b(
|
|
106
|
+
b(F).tooltip ? (u(), K(b(ie), {
|
|
107
107
|
key: 0,
|
|
108
108
|
class: "info",
|
|
109
109
|
position: "top"
|
|
@@ -159,7 +159,7 @@ const re = { class: "ui-slider__wrapper" }, ue = { class: "ui-slider__label-sect
|
|
|
159
159
|
])
|
|
160
160
|
]),
|
|
161
161
|
s("div", ve, [
|
|
162
|
-
e.mode === "input" ? (u(), K(
|
|
162
|
+
e.mode === "input" ? (u(), K(oe, {
|
|
163
163
|
key: 0,
|
|
164
164
|
modelValue: v.value,
|
|
165
165
|
"onUpdate:modelValue": l[2] || (l[2] = (o) => v.value = o),
|
|
@@ -2,9 +2,9 @@ import { defineComponent as W, useSlots as X, reactive as Y, ref as w, computed
|
|
|
2
2
|
import { useMouseCapture as $ } from "../composition/useMouseCapture.js";
|
|
3
3
|
import { tapIf as D } from "../helpers/functions.js";
|
|
4
4
|
import { clamp as c } from "../helpers/math.js";
|
|
5
|
-
import oe from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import { useSliderBreakpoints as oe } from "../composition/useSliderBreakpoints.js";
|
|
6
|
+
import { getErrorMessage as re } from "../helpers/error.js";
|
|
7
|
+
import ue from "./PlTooltip/PlTooltip.vue.js";
|
|
8
8
|
const se = { class: "ui-slider__wrapper" }, ne = { class: "ui-slider__label-section" }, de = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "text-s"
|
|
@@ -32,7 +32,7 @@ const se = { class: "ui-slider__wrapper" }, ne = { class: "ui-slider__label-sect
|
|
|
32
32
|
deltaValue1: 0,
|
|
33
33
|
deltaValue2: 0,
|
|
34
34
|
deltaValue3: 0
|
|
35
|
-
}), b = w(), p = w(), v = w(), f = w(), n = r(() => e.max - e.min), O = r(() => e), q =
|
|
35
|
+
}), b = w(), p = w(), v = w(), f = w(), n = r(() => e.max - e.min), O = r(() => e), q = oe(O), g = r(
|
|
36
36
|
() => c((e.modelValue[0] ?? 0) + u.deltaValue1, e.min, e.max)
|
|
37
37
|
), V = r(
|
|
38
38
|
() => c((e.modelValue[1] ?? 0) + u.deltaValue2, e.min, e.max)
|
|
@@ -45,7 +45,7 @@ const se = { class: "ui-slider__wrapper" }, ne = { class: "ui-slider__label-sect
|
|
|
45
45
|
const i = [];
|
|
46
46
|
return [...e.modelValue].forEach((a) => {
|
|
47
47
|
a > e.max && i.push(`Max model value must be lower than max props ${e.max}.`), a < e.min && i.push("Min model value must be greater than max props.");
|
|
48
|
-
}), i.length > 0 ? i.join(" ") :
|
|
48
|
+
}), i.length > 0 ? i.join(" ") : re(e.error);
|
|
49
49
|
}), K = r(() => (g.value - e.min) / n.value), F = r(() => (V.value - e.min) / n.value), P = r(() => (y.value - e.min) / n.value), T = r(() => J()), G = r(() => ({
|
|
50
50
|
right: T.value[0] + "%",
|
|
51
51
|
left: 100 - T.value[2] + "%"
|
|
@@ -115,7 +115,7 @@ const se = { class: "ui-slider__wrapper" }, ne = { class: "ui-slider__label-sect
|
|
|
115
115
|
o("div", ne, [
|
|
116
116
|
k.label ? (d(), h("label", de, [
|
|
117
117
|
o("span", null, I(k.label), 1),
|
|
118
|
-
m(j).tooltip ? (d(), ee(m(
|
|
118
|
+
m(j).tooltip ? (d(), ee(m(ue), {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "info",
|
|
121
121
|
position: "top"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.context-menu[data-v-1bb3001b]{display:block;position:absolute;top:50px;left:50px;z-index:var(--z-context-menu);margin:0;padding:3px 0 4px;background:#fffffff2;box-shadow:0 8px 15px #00000059;border-radius:4px;font-family:Lucida Grande,sans-serif;font-size:14px;line-height:15px}.context-menu[data-v-1bb3001b]:before{display:block;position:absolute;content:"";top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:4px;border:1px solid rgba(0,0,0,.125);z-index:-1}.context-menu hr[data-v-1bb3001b]{border:none;height:1px;background:#0000001a;margin:6px 1px 5px;padding:0}.context-menu>div[data-v-1bb3001b]{display:block;padding:0 20px;border-top:1px solid rgba(0,0,0,0);border-bottom:1px solid rgba(0,0,0,0)}.context-menu>div span[data-v-1bb3001b]{vertical-align:2px;-webkit-user-select:none;user-select:none}.context-menu>div[data-v-1bb3001b]:hover{background:-webkit-linear-gradient(top,#648bf5,#2866f2);background:linear-gradient(to bottom,#648bf5,#2866f2);border-top:1px solid #5a82eb;border-bottom:1px solid #1758e7}.context-menu>div[data-v-1bb3001b]:hover:after{color:#fff}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { onUnmounted as m, unref as e } from "vue";
|
|
2
2
|
import { tapIf as i } from "../helpers/functions.js";
|
|
3
3
|
import { onChanged as s } from "./utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { startResizeObserving as t, stopResizeObserving as f } from "../global/resizeObserver.js";
|
|
5
5
|
function z(r, n) {
|
|
6
6
|
s(() => {
|
|
7
7
|
i(e(r), (o) => {
|
|
8
|
-
|
|
8
|
+
t(o, () => n(o));
|
|
9
9
|
});
|
|
10
10
|
}), m(() => {
|
|
11
11
|
i(e(r), (o) => {
|
|
12
|
-
|
|
12
|
+
f(o);
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as m, ref as h, watch as l, unref as s, onMounted as u, onUnmounted as c } from "vue";
|
|
2
2
|
import { toList as w, mapIterable as f } from "../helpers/iterators.js";
|
|
3
3
|
import { useLocalStorage as v } from "./useLocalStorage.js";
|
|
4
4
|
const r = /* @__PURE__ */ new Set();
|
|
5
5
|
window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (e) => {
|
|
6
6
|
w(f(r.values(), (t) => t(e.matches ? "dark" : "light")));
|
|
7
7
|
});
|
|
8
|
-
const g = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", d =
|
|
8
|
+
const g = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", d = h(g), o = v("theme");
|
|
9
9
|
function T(e) {
|
|
10
|
-
const t =
|
|
10
|
+
const t = m(() => o.value ? o.value : d.value), n = (a) => {
|
|
11
11
|
d.value = a, e == null || e(a);
|
|
12
12
|
};
|
|
13
13
|
function i() {
|