hys-ui 0.6.0 → 0.8.0
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/CHANGELOG.md +15 -0
- package/LICENSE +19 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1055 -753
- package/dist/components/HysDataGrid/gridColumnLayout.js +46 -0
- package/dist/components/HysDataGrid/gridPresentation.js +17 -0
- package/dist/components/HysDataGrid/useGridContextMenu.js +33 -0
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +102 -48
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +874 -532
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +209 -168
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +102 -48
- package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
- package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
- package/dist/components/HysForm/HysForm2.vue.js +9 -8
- package/dist/components/HysIcon/HysIcon.vue.js +373 -0
- package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
- package/dist/components/HysIcon/builtins/access.js +180 -0
- package/dist/components/HysIcon/builtins/actions.js +327 -0
- package/dist/components/HysIcon/builtins/business.js +364 -0
- package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
- package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
- package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
- package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
- package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
- package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
- package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
- package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
- package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
- package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
- package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
- package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
- package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
- package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
- package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
- package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
- package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
- package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
- package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
- package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
- package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
- package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
- package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
- package/dist/components/HysIcon/builtins/communication.js +314 -0
- package/dist/components/HysIcon/builtins/documents.js +315 -0
- package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
- package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
- package/dist/components/HysIcon/builtins/media.js +255 -0
- package/dist/components/HysIcon/builtins/navigation.js +276 -0
- package/dist/components/HysIcon/builtins/technology.js +189 -0
- package/dist/components/HysIcon/iconBuiltins.js +228 -0
- package/dist/components/HysIcon/iconConfig.js +30 -0
- package/dist/components/HysIcon/iconRegistry.js +183 -0
- package/dist/components/HysIcon/iconSafety.js +191 -0
- package/dist/components/HysIcon/iconStyle.js +70 -0
- package/dist/components/HysIcon/useIconResource.js +75 -0
- package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
- package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
- package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
- package/dist/components/HysResult/HysResult.vue.js +7 -0
- package/dist/components/HysResult/HysResult2.vue.js +124 -0
- package/dist/components/HysSpace/HysSpace.vue.js +7 -0
- package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
- package/dist/components/HysSpace/spaceItems.js +17 -0
- package/dist/components/HysSpin/HysSpin.vue.js +7 -0
- package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
- package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
- package/dist/components/HysSpin/spinCatalog.js +35 -0
- package/dist/components/HysSpin/spinConfig.js +32 -0
- package/dist/components/HysSpin/spinService.js +160 -0
- package/dist/components/HysSpin/spinStyle.js +39 -0
- package/dist/components/HysSpin/useHysSpinTask.js +92 -0
- package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
- package/dist/components/HysSpin/useSpinVisibility.js +59 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
- package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
- package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
- package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
- package/dist/components/HysTable/HysTable.vue.js +3 -3
- package/dist/components/HysTable/HysTable2.vue.js +412 -383
- package/dist/components/HysTable/tableSearch.js +24 -0
- package/dist/components/HysTabs/HysTabs.vue.js +172 -5
- package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
- package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
- package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
- package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
- package/dist/components/HysTabs/tabsConfig.js +35 -0
- package/dist/components/HysTabs/tabsItems.js +79 -0
- package/dist/components/HysTabs/tabsPersistence.js +118 -0
- package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
- package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
- package/dist/components/HysTabs/useTabsNav.js +127 -0
- package/dist/components/HysTabs/useTabsOverlays.js +52 -0
- package/dist/components/HysTabs/useTabsPanels.js +101 -0
- package/dist/components/HysTabs/useTabsPointer.js +131 -0
- package/dist/components/HysTabs/useTabsState.js +263 -0
- package/dist/composables/datePicker.js +153 -94
- package/dist/composables/datePickerModel.js +156 -0
- package/dist/composables/datePickerPanels.js +78 -0
- package/dist/composables/datePickerRules.js +166 -0
- package/dist/composables/floatingPosition.js +32 -13
- package/dist/composables/formLayout.js +20 -42
- package/dist/composables/popupSurfaceStyle.js +30 -0
- package/dist/composables/useContainerWidth.js +24 -0
- package/dist/composables/useDatePicker.js +274 -381
- package/dist/composables/useFloating.js +42 -41
- package/dist/composables/usePageVisibility.js +19 -0
- package/dist/composables/usePopupSurface.js +153 -162
- package/dist/composables/usePopupSurfaceInteractions.js +91 -90
- package/dist/composables/useSplitPaneDrag.js +29 -26
- package/dist/composables/useSvgInstanceId.js +15 -0
- package/dist/composables/useTable.js +321 -306
- package/dist/composables/useTabularRowNavigation.js +46 -0
- package/dist/index.js +229 -185
- package/dist/internal/MultiSplitPane.vue.js +246 -205
- package/dist/internal/PopupSurfacePanel.vue.js +2 -2
- package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
- package/dist/style.css +1 -1
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
- package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
- package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
- package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +6 -9
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +12 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +6 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +6 -9
- package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
- package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
- package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
- package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
- package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
- package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
- package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
- package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
- package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
- package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
- package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
- package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
- package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
- package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
- package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
- package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
- package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
- package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
- package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
- package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
- package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
- package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
- package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
- package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
- package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
- package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
- package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
- package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
- package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
- package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
- package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
- package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
- package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
- package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
- package/dist/types/components/HysSpin/spinService.d.ts +7 -0
- package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
- package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
- package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
- package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
- package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
- package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
- package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
- package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
- package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
- package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
- package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
- package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
- package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
- package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
- package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
- package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
- package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
- package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
- package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
- package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
- package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
- package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
- package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
- package/dist/types/components/HysToast/toastPresentation.d.ts +1 -1
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
- package/dist/types/composables/dataGrid.d.ts +34 -0
- package/dist/types/composables/datePicker.d.ts +14 -214
- package/dist/types/composables/datePickerModel.d.ts +63 -0
- package/dist/types/composables/datePickerPanels.d.ts +23 -0
- package/dist/types/composables/datePickerRules.d.ts +31 -0
- package/dist/types/composables/datePickerTypes.d.ts +277 -0
- package/dist/types/composables/floatingPosition.d.ts +1 -1
- package/dist/types/composables/formLayout.d.ts +1 -2
- package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
- package/dist/types/composables/table.d.ts +10 -1
- package/dist/types/composables/toastQueue.d.ts +4 -4
- package/dist/types/composables/toastQueueModel.d.ts +2 -2
- package/dist/types/composables/useColorPicker.d.ts +2 -4
- package/dist/types/composables/useContainerWidth.d.ts +2 -0
- package/dist/types/composables/useContextMenu.d.ts +2 -4
- package/dist/types/composables/useDatePicker.d.ts +20 -11
- package/dist/types/composables/useFloating.d.ts +4 -5
- package/dist/types/composables/usePageVisibility.d.ts +1 -0
- package/dist/types/composables/usePopupSurface.d.ts +9 -3
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
- package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
- package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
- package/dist/types/composables/useTable.d.ts +2 -0
- package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
- package/dist/types/index.d.ts +31 -3
- package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import { computed as Z } from "vue";
|
|
2
|
+
const _ = 'button,a[href],input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]';
|
|
3
|
+
function q(o, w, {
|
|
4
4
|
available: T,
|
|
5
|
-
anchor:
|
|
5
|
+
anchor: k,
|
|
6
6
|
actualReference: L,
|
|
7
|
-
panel:
|
|
7
|
+
panel: i,
|
|
8
8
|
floating: s,
|
|
9
9
|
restoreReferenceFocus: F,
|
|
10
|
-
request:
|
|
10
|
+
request: c,
|
|
11
|
+
allowTabExit: M
|
|
11
12
|
}) {
|
|
12
|
-
const
|
|
13
|
-
let v,
|
|
14
|
-
const u =
|
|
15
|
-
const e =
|
|
13
|
+
const p = (e) => Number.isFinite(e) ? Math.max(0, Math.min(3e4, e)) : 0;
|
|
14
|
+
let v, l, b, h = !1, x = !1, d = !1, m = !1, f = !1;
|
|
15
|
+
const u = Z(() => {
|
|
16
|
+
const e = o.trigger ?? (w === "tooltip" ? ["hover", "focus"] : ["click"]), t = Array.isArray(e) ? e : [e];
|
|
16
17
|
return new Set(t.includes("manual") ? [] : t);
|
|
17
18
|
});
|
|
18
19
|
function K() {
|
|
19
|
-
clearTimeout(v), clearTimeout(
|
|
20
|
+
clearTimeout(v), clearTimeout(l), v = l = void 0;
|
|
20
21
|
}
|
|
21
22
|
function S() {
|
|
22
23
|
clearTimeout(b), b = void 0;
|
|
@@ -25,148 +26,148 @@ function $(r, w, {
|
|
|
25
26
|
h = x = d = m = f = !1;
|
|
26
27
|
}
|
|
27
28
|
function I() {
|
|
28
|
-
if (clearTimeout(
|
|
29
|
+
if (clearTimeout(l), l = void 0, !T.value || s.restoringFocus.value || s.open.value || v)
|
|
29
30
|
return;
|
|
30
|
-
const e =
|
|
31
|
+
const e = p(o.showDelay);
|
|
31
32
|
e ? v = setTimeout(() => {
|
|
32
|
-
v = void 0,
|
|
33
|
-
}, e) :
|
|
33
|
+
v = void 0, c(!0);
|
|
34
|
+
}, e) : c(!0);
|
|
34
35
|
}
|
|
35
36
|
function C() {
|
|
36
|
-
return f || h ||
|
|
37
|
+
return f || h || o.enterable !== !1 && x || u.value.has("focus") && d || o.enterable !== !1 && m;
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
if (clearTimeout(v), v = void 0, clearTimeout(
|
|
39
|
+
function D() {
|
|
40
|
+
if (clearTimeout(v), v = void 0, clearTimeout(l), l = void 0, C() || !s.open.value) return;
|
|
40
41
|
const e = () => {
|
|
41
|
-
|
|
42
|
-
}, t =
|
|
43
|
-
t ?
|
|
44
|
-
}
|
|
45
|
-
function M() {
|
|
46
|
-
u.value.has("hover") && (h = !0, I());
|
|
42
|
+
l = void 0, !C() && s.open.value && c(!1, !1, "trigger");
|
|
43
|
+
}, t = p(o.hideDelay);
|
|
44
|
+
t ? l = setTimeout(e, t) : e();
|
|
47
45
|
}
|
|
48
46
|
function O() {
|
|
49
|
-
u.value.has("hover") && (h = !
|
|
47
|
+
u.value.has("hover") && (h = !0, I());
|
|
50
48
|
}
|
|
51
49
|
function j() {
|
|
52
|
-
|
|
50
|
+
u.value.has("hover") && (h = !1, D());
|
|
53
51
|
}
|
|
54
52
|
function z() {
|
|
55
|
-
x = !
|
|
53
|
+
o.enterable !== !1 && (x = !0, clearTimeout(l), l = void 0);
|
|
56
54
|
}
|
|
57
|
-
function H(
|
|
58
|
-
|
|
59
|
-
(t = o.value) != null && t.contains(e.target) || s.restoringFocus.value || (d = !0, u.value.has("focus") && I());
|
|
55
|
+
function H() {
|
|
56
|
+
x = !1, u.value.has("hover") && D();
|
|
60
57
|
}
|
|
61
58
|
function N(e) {
|
|
62
|
-
var
|
|
63
|
-
|
|
59
|
+
var t;
|
|
60
|
+
(t = i.value) != null && t.contains(e.target) || s.restoringFocus.value || (d = !0, u.value.has("focus") && I());
|
|
61
|
+
}
|
|
62
|
+
function R(e) {
|
|
63
|
+
var a, n, r;
|
|
64
|
+
if ((a = i.value) != null && a.contains(e.target)) return;
|
|
64
65
|
const t = e.relatedTarget;
|
|
65
|
-
if (!((
|
|
66
|
-
if (d = !1, (
|
|
66
|
+
if (!((n = k.value) != null && n.contains(t))) {
|
|
67
|
+
if (d = !1, (r = i.value) != null && r.contains(t) && o.enterable !== !1) {
|
|
67
68
|
m = !0;
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
70
|
-
(u.value.has("focus") || u.value.has("hover")) &&
|
|
71
|
+
(u.value.has("focus") || u.value.has("hover")) && D();
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
74
|
+
function B() {
|
|
75
|
+
o.enterable !== !1 && (m = !0);
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
-
var
|
|
77
|
+
function G(e) {
|
|
78
|
+
var a, n;
|
|
78
79
|
const t = e.relatedTarget;
|
|
79
|
-
if (!((
|
|
80
|
-
if (m = !1, (
|
|
80
|
+
if (!((a = i.value) != null && a.contains(t))) {
|
|
81
|
+
if (m = !1, (n = k.value) != null && n.contains(t)) {
|
|
81
82
|
d = !0;
|
|
82
83
|
return;
|
|
83
84
|
}
|
|
84
|
-
(u.value.has("focus") || u.value.has("hover")) &&
|
|
85
|
+
(u.value.has("focus") || u.value.has("hover")) && D();
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
function G(e) {
|
|
88
|
-
var t;
|
|
89
|
-
(t = o.value) != null && t.contains(e.target) || !u.value.has("click") || !T.value || (f = s.open.value ? !f && (h && u.value.has("hover") || d && u.value.has("focus")) : !0, l(f));
|
|
90
|
-
}
|
|
91
88
|
function J(e) {
|
|
92
89
|
var t;
|
|
93
|
-
(t =
|
|
90
|
+
(t = i.value) != null && t.contains(e.target) || !u.value.has("click") || !T.value || (f = s.open.value ? !f && (h && u.value.has("hover") || d && u.value.has("focus")) : !0, c(f, !1, "trigger"));
|
|
94
91
|
}
|
|
95
92
|
function Q(e) {
|
|
96
|
-
var
|
|
97
|
-
|
|
93
|
+
var t;
|
|
94
|
+
(t = i.value) != null && t.contains(e.target) || !u.value.has("contextmenu") || !T.value || (e.preventDefault(), f = !0, c(!0));
|
|
95
|
+
}
|
|
96
|
+
function U(e) {
|
|
97
|
+
var a;
|
|
98
|
+
if ((a = i.value) != null && a.contains(e.target) || !u.value.size || !T.value || e.defaultPrevented)
|
|
98
99
|
return;
|
|
99
100
|
const t = e.target;
|
|
100
101
|
if (!t.closest('input,textarea,select,[contenteditable="true"]')) {
|
|
101
102
|
if (e.key === "F10" && e.shiftKey && u.value.has("contextmenu")) {
|
|
102
|
-
e.preventDefault(), f = !0,
|
|
103
|
+
e.preventDefault(), f = !0, c(!0);
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
105
|
-
(
|
|
106
|
-
(
|
|
107
|
-
) && (u.value.has("click") && t.closest("button,a[href],input") || (e.preventDefault(), f = !s.open.value,
|
|
106
|
+
(o.triggerKeys ?? ["Enter", " "]).some(
|
|
107
|
+
(n) => n === e.key || n === "Space" && e.key === " "
|
|
108
|
+
) && (u.value.has("click") && t.closest("button,a[href],input") || (e.preventDefault(), f = !s.open.value, c(f, !1, "trigger")));
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
function P(e) {
|
|
111
|
-
return [...e.querySelectorAll(
|
|
112
|
+
return [...e.querySelectorAll(_)].filter(
|
|
112
113
|
(t) => t.tabIndex >= 0 && !t.matches(":disabled") && !t.closest('[inert],[aria-hidden="true"]') && !!t.getClientRects().length && getComputedStyle(t).visibility !== "hidden"
|
|
113
114
|
);
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
-
const t = L.value,
|
|
117
|
-
var
|
|
118
|
-
return !((
|
|
119
|
-
}),
|
|
120
|
-
return
|
|
121
|
-
}
|
|
122
|
-
async function
|
|
123
|
-
var
|
|
116
|
+
function V(e) {
|
|
117
|
+
const t = L.value, a = P(document).filter((g) => {
|
|
118
|
+
var y;
|
|
119
|
+
return !((y = i.value) != null && y.contains(g));
|
|
120
|
+
}), n = a.findIndex((g) => g === t || (t == null ? void 0 : t.contains(g))), r = n < 0 ? void 0 : a[n + (e ? -1 : 1)];
|
|
121
|
+
return r == null || r.focus(), !!r;
|
|
122
|
+
}
|
|
123
|
+
async function W(e) {
|
|
124
|
+
var y, E;
|
|
124
125
|
if (e.key !== "Tab" || w !== "popover" || !s.open.value || !s.isTop())
|
|
125
126
|
return;
|
|
126
|
-
const t = e.target,
|
|
127
|
-
if (!
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
e.preventDefault(),
|
|
127
|
+
const t = e.target, a = (y = i.value) == null ? void 0 : y.contains(t), n = (E = k.value) == null ? void 0 : E.contains(t);
|
|
128
|
+
if (!a && !n) return;
|
|
129
|
+
const r = i.value ? P(i.value) : [];
|
|
130
|
+
if ((n || t === i.value) && !e.shiftKey && o.enterable !== !1 && r.length) {
|
|
131
|
+
e.preventDefault(), r[0].focus();
|
|
131
132
|
return;
|
|
132
133
|
}
|
|
133
|
-
if (
|
|
134
|
+
if (a && t !== i.value && t !== (e.shiftKey ? r[0] : r.at(-1)) && r.length)
|
|
134
135
|
return;
|
|
135
|
-
e.preventDefault(), await
|
|
136
|
+
e.preventDefault(), (await c(!1, !1, "tab") || M) && (a && e.shiftKey ? F() : V(e.shiftKey) || F());
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
+
function X() {
|
|
138
139
|
S();
|
|
139
|
-
const e =
|
|
140
|
+
const e = p(o.autoClose);
|
|
140
141
|
s.open.value && e && (b = setTimeout(() => {
|
|
141
|
-
b = void 0,
|
|
142
|
+
b = void 0, c(!1, !1, "auto");
|
|
142
143
|
}, e));
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
+
function Y() {
|
|
145
146
|
K(), A();
|
|
146
147
|
}
|
|
147
148
|
return {
|
|
148
149
|
clearDelays: K,
|
|
149
150
|
clearAuto: S,
|
|
150
151
|
resetReasons: A,
|
|
151
|
-
reset:
|
|
152
|
-
startAuto:
|
|
153
|
-
tab:
|
|
152
|
+
reset: Y,
|
|
153
|
+
startAuto: X,
|
|
154
|
+
tab: W,
|
|
154
155
|
handlers: {
|
|
155
|
-
pointerEnter:
|
|
156
|
-
pointerLeave:
|
|
157
|
-
panelEnter:
|
|
158
|
-
panelLeave:
|
|
159
|
-
focusIn:
|
|
160
|
-
focusOut:
|
|
161
|
-
panelFocusIn:
|
|
162
|
-
panelFocusOut:
|
|
163
|
-
click:
|
|
164
|
-
contextmenu:
|
|
165
|
-
key:
|
|
156
|
+
pointerEnter: O,
|
|
157
|
+
pointerLeave: j,
|
|
158
|
+
panelEnter: z,
|
|
159
|
+
panelLeave: H,
|
|
160
|
+
focusIn: N,
|
|
161
|
+
focusOut: R,
|
|
162
|
+
panelFocusIn: B,
|
|
163
|
+
panelFocusOut: G,
|
|
164
|
+
click: J,
|
|
165
|
+
contextmenu: Q,
|
|
166
|
+
key: U
|
|
166
167
|
}
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
export {
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
_ as popupFocusControls,
|
|
172
|
+
q as usePopupSurfaceInteractions
|
|
172
173
|
};
|
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
function
|
|
2
|
-
let
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
1
|
+
function L(v, m) {
|
|
2
|
+
let r;
|
|
3
|
+
const u = (e, t) => t ? e.clientY : e.clientX;
|
|
4
|
+
function E(e, t) {
|
|
5
|
+
var n;
|
|
6
|
+
if (r || e.button !== 0 || t.available <= 0) return !1;
|
|
7
7
|
e.preventDefault();
|
|
8
8
|
const i = e.currentTarget;
|
|
9
|
-
i.focus({ preventScroll: !0 }),
|
|
9
|
+
i.focus({ preventScroll: !0 }), r = {
|
|
10
10
|
...t,
|
|
11
11
|
pointer: e.pointerId,
|
|
12
12
|
handle: i,
|
|
13
|
-
origin:
|
|
13
|
+
origin: u(e, t.vertical),
|
|
14
14
|
latest: t.initial,
|
|
15
15
|
reported: t.initial
|
|
16
16
|
};
|
|
17
17
|
try {
|
|
18
|
-
(
|
|
18
|
+
(n = i.setPointerCapture) == null || n.call(i, e.pointerId);
|
|
19
19
|
} catch {
|
|
20
20
|
}
|
|
21
|
-
return window.addEventListener("pointermove",
|
|
21
|
+
return window.addEventListener("pointermove", p), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", a), window.addEventListener("keydown", f, !0), window.addEventListener("blur", d), !0;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const t =
|
|
23
|
+
function p(e) {
|
|
24
|
+
const t = r;
|
|
25
25
|
if (!t || e.pointerId !== t.pointer) return;
|
|
26
|
-
const i =
|
|
26
|
+
const i = u(e, t.vertical) - t.origin;
|
|
27
27
|
t.latest = i === 0 ? t.initial : t.constrain(
|
|
28
28
|
t.initial + t.direction * i / t.available * 100
|
|
29
|
-
), t.frame === void 0 && (t.frame = requestAnimationFrame(() =>
|
|
29
|
+
), t.frame === void 0 && (t.frame = requestAnimationFrame(() => c(t)));
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
e.frame = void 0, e.latest !== e.reported && (e.reported = e.latest,
|
|
31
|
+
function c(e) {
|
|
32
|
+
e.frame = void 0, e.latest !== e.reported && (e.reported = e.latest, v(e.latest));
|
|
33
33
|
}
|
|
34
34
|
function l(e) {
|
|
35
|
-
e.pointerId === (
|
|
35
|
+
e.pointerId === (r == null ? void 0 : r.pointer) && o(!1);
|
|
36
36
|
}
|
|
37
37
|
function a(e) {
|
|
38
|
-
e.pointerId === (
|
|
38
|
+
e.pointerId === (r == null ? void 0 : r.pointer) && o(!0, !0, !0);
|
|
39
|
+
}
|
|
40
|
+
function d() {
|
|
41
|
+
o(!0, !0, !0);
|
|
39
42
|
}
|
|
40
|
-
function
|
|
41
|
-
e.key !== "Escape" || !
|
|
43
|
+
function f(e) {
|
|
44
|
+
e.key !== "Escape" || !r || (e.preventDefault(), e.stopPropagation(), o(!0, !0, !0));
|
|
42
45
|
}
|
|
43
|
-
function o(e, t = !0) {
|
|
44
|
-
var
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
function o(e, t = !0, i = !1) {
|
|
47
|
+
var s, w;
|
|
48
|
+
const n = r;
|
|
49
|
+
n && (r = void 0, n.frame !== void 0 && cancelAnimationFrame(n.frame), window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", a), window.removeEventListener("keydown", f, !0), window.removeEventListener("blur", d), (w = (s = n.handle).hasPointerCapture) != null && w.call(s, n.pointer) && n.handle.releasePointerCapture(n.pointer), e || c(n), m(n.latest, e, t, i));
|
|
47
50
|
}
|
|
48
|
-
return { start:
|
|
51
|
+
return { start: E, cancel: a, finish: o, active: () => !!r };
|
|
49
52
|
}
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
L as useSplitPaneDrag
|
|
52
55
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useId as a, ref as s, onMounted as d, onBeforeUnmount as l } from "vue";
|
|
2
|
+
const n = /* @__PURE__ */ new Set();
|
|
3
|
+
let r = 0;
|
|
4
|
+
function i(u) {
|
|
5
|
+
const t = a() + "-" + u, e = s(t);
|
|
6
|
+
let o = !1;
|
|
7
|
+
return d(() => {
|
|
8
|
+
o = !0, n.has(t) && (e.value = t + "-" + ++r), n.add(e.value);
|
|
9
|
+
}), l(() => {
|
|
10
|
+
o && n.delete(e.value);
|
|
11
|
+
}), e;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
i as useSvgInstanceId
|
|
15
|
+
};
|