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,19 +1,23 @@
|
|
|
1
|
-
import { defineComponent as v, useSlots as
|
|
2
|
-
import
|
|
3
|
-
import { datePickerDefaults as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, useSlots as c, ref as h, computed as p, openBlock as k, createBlock as $, mergeProps as B, toHandlers as g, unref as b, createSlots as w, withCtx as l, renderSlot as n, normalizeProps as s, guardReactiveProps as r, mergeDefaults as C } from "vue";
|
|
2
|
+
import P from "../HysDatePicker/HysDatePickerControl.vue.js";
|
|
3
|
+
import { datePickerDefaults as F } from "../../composables/datePicker.js";
|
|
4
|
+
const O = /* @__PURE__ */ v({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "HysDateRangePicker",
|
|
7
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ C({
|
|
8
8
|
popupTransition: {},
|
|
9
9
|
popupTransitionDuration: {},
|
|
10
10
|
modelValue: {},
|
|
11
|
+
value: {},
|
|
11
12
|
defaultValue: {},
|
|
12
13
|
clearValue: {},
|
|
14
|
+
emptyValues: {},
|
|
15
|
+
valueOnClear: { type: Function },
|
|
13
16
|
type: {},
|
|
17
|
+
picker: {},
|
|
14
18
|
valueType: {},
|
|
15
19
|
valueFormat: {},
|
|
16
|
-
format: {},
|
|
20
|
+
format: { type: [String, Function, Array] },
|
|
17
21
|
inputFormats: {},
|
|
18
22
|
disabled: { type: [Boolean, Array] },
|
|
19
23
|
readonly: { type: Boolean },
|
|
@@ -21,6 +25,7 @@ const T = /* @__PURE__ */ v({
|
|
|
21
25
|
status: {},
|
|
22
26
|
bordered: { type: Boolean },
|
|
23
27
|
placeholder: {},
|
|
28
|
+
id: {},
|
|
24
29
|
label: {},
|
|
25
30
|
ariaLabel: {},
|
|
26
31
|
name: {},
|
|
@@ -30,6 +35,9 @@ const T = /* @__PURE__ */ v({
|
|
|
30
35
|
max: {},
|
|
31
36
|
disabledDate: { type: Function },
|
|
32
37
|
disabledTime: { type: Function },
|
|
38
|
+
disabledHours: { type: Function },
|
|
39
|
+
disabledMinutes: { type: Function },
|
|
40
|
+
disabledSeconds: { type: Function },
|
|
33
41
|
firstDayOfWeek: {},
|
|
34
42
|
firstWeekContainsDate: {},
|
|
35
43
|
weekNumberFormatter: { type: Function },
|
|
@@ -38,27 +46,40 @@ const T = /* @__PURE__ */ v({
|
|
|
38
46
|
locale: {},
|
|
39
47
|
messages: {},
|
|
40
48
|
showWeekNumbers: { type: Boolean },
|
|
49
|
+
showWeekNumber: { type: Boolean },
|
|
41
50
|
showAdjacentDays: { type: Boolean },
|
|
42
51
|
defaultPickerValue: {},
|
|
43
52
|
panelValue: {},
|
|
53
|
+
panelValues: {},
|
|
44
54
|
mode: {},
|
|
45
55
|
defaultMode: {},
|
|
46
56
|
shortcuts: {},
|
|
57
|
+
presets: {},
|
|
58
|
+
ranges: {},
|
|
59
|
+
shortcutPlacement: {},
|
|
47
60
|
clearable: { type: Boolean },
|
|
61
|
+
allowClear: { type: Boolean },
|
|
48
62
|
editable: { type: Boolean },
|
|
49
63
|
inputReadonly: { type: Boolean },
|
|
50
64
|
showOnFocus: { type: Boolean },
|
|
65
|
+
automaticDropdown: { type: Boolean },
|
|
51
66
|
showToday: { type: Boolean },
|
|
52
67
|
showNow: { type: Boolean },
|
|
53
68
|
showFooter: { type: Boolean },
|
|
54
69
|
showConfirm: { type: Boolean },
|
|
55
|
-
showTime: { type: Boolean },
|
|
70
|
+
showTime: { type: [Boolean, Object] },
|
|
56
71
|
defaultTime: {},
|
|
72
|
+
dateFormat: {},
|
|
73
|
+
timeFormat: {},
|
|
74
|
+
use12Hours: { type: Boolean },
|
|
75
|
+
hideDisabledOptions: { type: Boolean },
|
|
76
|
+
arrowControl: { type: Boolean },
|
|
57
77
|
hourStep: {},
|
|
58
78
|
minuteStep: {},
|
|
59
79
|
secondStep: {},
|
|
60
80
|
showSeconds: { type: Boolean },
|
|
61
81
|
rangeSeparator: {},
|
|
82
|
+
separator: {},
|
|
62
83
|
startPlaceholder: {},
|
|
63
84
|
endPlaceholder: {},
|
|
64
85
|
allowEmpty: {},
|
|
@@ -73,23 +94,35 @@ const T = /* @__PURE__ */ v({
|
|
|
73
94
|
inline: { type: Boolean },
|
|
74
95
|
placement: {},
|
|
75
96
|
appendTo: { type: [String, Boolean] },
|
|
97
|
+
teleported: { type: Boolean },
|
|
98
|
+
getPopupContainer: { type: Function },
|
|
99
|
+
fallbackPlacements: {},
|
|
100
|
+
popperOptions: {},
|
|
76
101
|
popupWidth: {},
|
|
77
102
|
popupClass: {},
|
|
103
|
+
popupClassName: {},
|
|
104
|
+
popperClass: {},
|
|
78
105
|
popupStyle: {},
|
|
106
|
+
popperStyle: {},
|
|
107
|
+
prefixIcon: {},
|
|
108
|
+
clearIcon: {},
|
|
79
109
|
validateEvent: { type: Boolean },
|
|
80
110
|
cellClassName: { type: Function }
|
|
81
|
-
},
|
|
82
|
-
emits: ["update:modelValue", "change", "value-change", "update:open", "visible-change", "update:panelValue", "update:mode", "panelChange", "calendarChange", "clear", "ok", "invalid", "focus", "blur"],
|
|
83
|
-
setup(
|
|
84
|
-
const m =
|
|
85
|
-
|
|
86
|
-
const o =
|
|
111
|
+
}, F),
|
|
112
|
+
emits: ["update:modelValue", "update:value", "change", "value-change", "update:open", "visible-change", "openChange", "update:panelValues", "update:panelValue", "update:mode", "panelChange", "calendarChange", "clear", "ok", "invalid", "focus", "blur"],
|
|
113
|
+
setup(u, { expose: i, emit: d }) {
|
|
114
|
+
const m = u, y = d;
|
|
115
|
+
c();
|
|
116
|
+
const o = h(), f = Object.fromEntries(
|
|
87
117
|
[
|
|
88
118
|
"update:modelValue",
|
|
119
|
+
"update:value",
|
|
89
120
|
"change",
|
|
90
121
|
"value-change",
|
|
91
122
|
"update:open",
|
|
92
123
|
"visible-change",
|
|
124
|
+
"openChange",
|
|
125
|
+
"update:panelValues",
|
|
93
126
|
"update:panelValue",
|
|
94
127
|
"update:mode",
|
|
95
128
|
"panelChange",
|
|
@@ -101,10 +134,10 @@ const T = /* @__PURE__ */ v({
|
|
|
101
134
|
"blur"
|
|
102
135
|
].map((e) => [
|
|
103
136
|
e,
|
|
104
|
-
(...
|
|
137
|
+
(...t) => y(e, ...t)
|
|
105
138
|
])
|
|
106
139
|
);
|
|
107
|
-
return
|
|
140
|
+
return i({
|
|
108
141
|
element: p(() => {
|
|
109
142
|
var e;
|
|
110
143
|
return (e = o.value) == null ? void 0 : e.element;
|
|
@@ -134,8 +167,8 @@ const T = /* @__PURE__ */ v({
|
|
|
134
167
|
return ((e = o.value) == null ? void 0 : e.show()) ?? Promise.resolve(!1);
|
|
135
168
|
},
|
|
136
169
|
hide: (e = !1) => {
|
|
137
|
-
var
|
|
138
|
-
return (
|
|
170
|
+
var t;
|
|
171
|
+
return (t = o.value) == null ? void 0 : t.hide(e);
|
|
139
172
|
},
|
|
140
173
|
handleOpen: () => {
|
|
141
174
|
var e;
|
|
@@ -150,8 +183,8 @@ const T = /* @__PURE__ */ v({
|
|
|
150
183
|
return ((e = o.value) == null ? void 0 : e.clear()) ?? Promise.resolve(!1);
|
|
151
184
|
},
|
|
152
185
|
setValue: (e) => {
|
|
153
|
-
var
|
|
154
|
-
return ((
|
|
186
|
+
var t;
|
|
187
|
+
return ((t = o.value) == null ? void 0 : t.setValue(e)) ?? Promise.resolve(!1);
|
|
155
188
|
},
|
|
156
189
|
confirm: () => {
|
|
157
190
|
var e;
|
|
@@ -162,119 +195,140 @@ const T = /* @__PURE__ */ v({
|
|
|
162
195
|
return (e = o.value) == null ? void 0 : e.cancel();
|
|
163
196
|
},
|
|
164
197
|
showMonth: (e) => {
|
|
165
|
-
var
|
|
166
|
-
return ((
|
|
198
|
+
var t;
|
|
199
|
+
return ((t = o.value) == null ? void 0 : t.showMonth(e)) ?? Promise.resolve(!1);
|
|
167
200
|
},
|
|
168
201
|
setMode: (e) => {
|
|
169
|
-
var
|
|
170
|
-
return ((
|
|
202
|
+
var t;
|
|
203
|
+
return ((t = o.value) == null ? void 0 : t.setMode(e)) ?? !1;
|
|
171
204
|
}
|
|
172
|
-
}), (e,
|
|
205
|
+
}), (e, t) => (k(), $(P, B({ ...m, ...e.$attrs }, {
|
|
173
206
|
range: !0,
|
|
174
207
|
ref_key: "control",
|
|
175
208
|
ref: o
|
|
176
|
-
},
|
|
209
|
+
}, g(b(f))), w({ _: 2 }, [
|
|
177
210
|
e.$slots.default ? {
|
|
178
211
|
name: "default",
|
|
179
|
-
fn: l((
|
|
180
|
-
n(e.$slots, "default",
|
|
212
|
+
fn: l((a) => [
|
|
213
|
+
n(e.$slots, "default", s(r(a)))
|
|
181
214
|
]),
|
|
182
215
|
key: "0"
|
|
183
216
|
} : void 0,
|
|
184
217
|
e.$slots["week-number"] ? {
|
|
185
218
|
name: "week-number",
|
|
186
|
-
fn: l((
|
|
187
|
-
n(e.$slots, "week-number",
|
|
219
|
+
fn: l((a) => [
|
|
220
|
+
n(e.$slots, "week-number", s(r(a)))
|
|
188
221
|
]),
|
|
189
222
|
key: "1"
|
|
190
223
|
} : void 0,
|
|
191
224
|
e.$slots.cell ? {
|
|
192
225
|
name: "cell",
|
|
193
|
-
fn: l((
|
|
194
|
-
n(e.$slots, "cell",
|
|
226
|
+
fn: l((a) => [
|
|
227
|
+
n(e.$slots, "cell", s(r(a)))
|
|
195
228
|
]),
|
|
196
229
|
key: "2"
|
|
197
230
|
} : void 0,
|
|
198
231
|
e.$slots.header ? {
|
|
199
232
|
name: "header",
|
|
200
|
-
fn: l((
|
|
201
|
-
n(e.$slots, "header",
|
|
233
|
+
fn: l((a) => [
|
|
234
|
+
n(e.$slots, "header", s(r(a)))
|
|
202
235
|
]),
|
|
203
236
|
key: "3"
|
|
204
237
|
} : void 0,
|
|
238
|
+
e.$slots["extra-footer"] ? {
|
|
239
|
+
name: "extra-footer",
|
|
240
|
+
fn: l((a) => [
|
|
241
|
+
n(e.$slots, "extra-footer", s(r(a)))
|
|
242
|
+
]),
|
|
243
|
+
key: "4"
|
|
244
|
+
} : void 0,
|
|
245
|
+
e.$slots["date-render"] ? {
|
|
246
|
+
name: "date-render",
|
|
247
|
+
fn: l((a) => [
|
|
248
|
+
n(e.$slots, "date-render", s(r(a)))
|
|
249
|
+
]),
|
|
250
|
+
key: "5"
|
|
251
|
+
} : void 0,
|
|
252
|
+
e.$slots["month-cell-render"] ? {
|
|
253
|
+
name: "month-cell-render",
|
|
254
|
+
fn: l((a) => [
|
|
255
|
+
n(e.$slots, "month-cell-render", s(r(a)))
|
|
256
|
+
]),
|
|
257
|
+
key: "6"
|
|
258
|
+
} : void 0,
|
|
205
259
|
e.$slots.footer ? {
|
|
206
260
|
name: "footer",
|
|
207
|
-
fn: l((
|
|
208
|
-
n(e.$slots, "footer",
|
|
261
|
+
fn: l((a) => [
|
|
262
|
+
n(e.$slots, "footer", s(r(a)))
|
|
209
263
|
]),
|
|
210
|
-
key: "
|
|
264
|
+
key: "7"
|
|
211
265
|
} : void 0,
|
|
212
266
|
e.$slots.shortcut ? {
|
|
213
267
|
name: "shortcut",
|
|
214
|
-
fn: l((
|
|
215
|
-
n(e.$slots, "shortcut",
|
|
268
|
+
fn: l((a) => [
|
|
269
|
+
n(e.$slots, "shortcut", s(r(a)))
|
|
216
270
|
]),
|
|
217
|
-
key: "
|
|
271
|
+
key: "8"
|
|
218
272
|
} : void 0,
|
|
219
273
|
e.$slots.prefix ? {
|
|
220
274
|
name: "prefix",
|
|
221
275
|
fn: l(() => [
|
|
222
276
|
n(e.$slots, "prefix")
|
|
223
277
|
]),
|
|
224
|
-
key: "
|
|
278
|
+
key: "9"
|
|
225
279
|
} : void 0,
|
|
226
280
|
e.$slots.suffix ? {
|
|
227
281
|
name: "suffix",
|
|
228
282
|
fn: l(() => [
|
|
229
283
|
n(e.$slots, "suffix")
|
|
230
284
|
]),
|
|
231
|
-
key: "
|
|
285
|
+
key: "10"
|
|
232
286
|
} : void 0,
|
|
233
287
|
e.$slots["clear-icon"] ? {
|
|
234
288
|
name: "clear-icon",
|
|
235
289
|
fn: l(() => [
|
|
236
290
|
n(e.$slots, "clear-icon")
|
|
237
291
|
]),
|
|
238
|
-
key: "
|
|
292
|
+
key: "11"
|
|
239
293
|
} : void 0,
|
|
240
294
|
e.$slots["prev-month"] ? {
|
|
241
295
|
name: "prev-month",
|
|
242
296
|
fn: l(() => [
|
|
243
297
|
n(e.$slots, "prev-month")
|
|
244
298
|
]),
|
|
245
|
-
key: "
|
|
299
|
+
key: "12"
|
|
246
300
|
} : void 0,
|
|
247
301
|
e.$slots["next-month"] ? {
|
|
248
302
|
name: "next-month",
|
|
249
303
|
fn: l(() => [
|
|
250
304
|
n(e.$slots, "next-month")
|
|
251
305
|
]),
|
|
252
|
-
key: "
|
|
306
|
+
key: "13"
|
|
253
307
|
} : void 0,
|
|
254
308
|
e.$slots["prev-year"] ? {
|
|
255
309
|
name: "prev-year",
|
|
256
310
|
fn: l(() => [
|
|
257
311
|
n(e.$slots, "prev-year")
|
|
258
312
|
]),
|
|
259
|
-
key: "
|
|
313
|
+
key: "14"
|
|
260
314
|
} : void 0,
|
|
261
315
|
e.$slots["next-year"] ? {
|
|
262
316
|
name: "next-year",
|
|
263
317
|
fn: l(() => [
|
|
264
318
|
n(e.$slots, "next-year")
|
|
265
319
|
]),
|
|
266
|
-
key: "
|
|
320
|
+
key: "15"
|
|
267
321
|
} : void 0,
|
|
268
322
|
e.$slots["range-separator"] ? {
|
|
269
323
|
name: "range-separator",
|
|
270
324
|
fn: l(() => [
|
|
271
325
|
n(e.$slots, "range-separator")
|
|
272
326
|
]),
|
|
273
|
-
key: "
|
|
327
|
+
key: "16"
|
|
274
328
|
} : void 0
|
|
275
329
|
]), 1040));
|
|
276
330
|
}
|
|
277
331
|
});
|
|
278
332
|
export {
|
|
279
|
-
|
|
333
|
+
O as default
|
|
280
334
|
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { defineComponent as A, useSlots as N, ref as B, useId as F, computed as S, openBlock as a, createElementBlock as i, mergeProps as d, unref as L, renderSlot as o, createTextVNode as u, toDisplayString as c, createCommentVNode as y, Fragment as M, renderList as W, normalizeStyle as f, createElementVNode as p, normalizeClass as $ } from "vue";
|
|
2
|
+
import { useHysRootAttrs as I } from "../../config.js";
|
|
3
|
+
import { resolveFormGrid as T } from "../../composables/formLayout.js";
|
|
4
|
+
import { useContainerWidth as V } from "../../composables/useContainerWidth.js";
|
|
5
|
+
const D = ["data-layout", "data-size", "data-bordered", "aria-label", "aria-labelledby"], E = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "hys-descriptions-header"
|
|
8
|
+
}, H = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "hys-descriptions-extra"
|
|
11
|
+
}, R = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "hys-descriptions-list"
|
|
14
|
+
}, G = {
|
|
15
|
+
key: 0,
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}, P = {
|
|
18
|
+
key: 2,
|
|
19
|
+
class: "hys-descriptions-empty"
|
|
20
|
+
}, O = /* @__PURE__ */ A({
|
|
21
|
+
__name: "HysDescriptions",
|
|
22
|
+
props: {
|
|
23
|
+
items: { default: () => [] },
|
|
24
|
+
title: {},
|
|
25
|
+
extra: {},
|
|
26
|
+
columns: { default: () => ({ xs: 1, sm: 2, lg: 3 }) },
|
|
27
|
+
layout: { default: "horizontal" },
|
|
28
|
+
size: { default: "md" },
|
|
29
|
+
bordered: { type: Boolean },
|
|
30
|
+
colon: { type: Boolean },
|
|
31
|
+
labelWidth: {},
|
|
32
|
+
labelAlign: { default: "start" },
|
|
33
|
+
align: { default: "start" },
|
|
34
|
+
labelStyle: {},
|
|
35
|
+
contentStyle: {},
|
|
36
|
+
placeholder: { default: "—" },
|
|
37
|
+
emptyText: { default: "暂无详情" },
|
|
38
|
+
ariaLabel: {}
|
|
39
|
+
},
|
|
40
|
+
setup(l) {
|
|
41
|
+
const h = l, n = N(), v = B(), z = I(), g = F() + "-descriptions-title", C = V(v), m = S(() => T(h.columns, C.value)), b = S(
|
|
42
|
+
() => h.items.filter((e) => !e.hidden).map((e, s) => {
|
|
43
|
+
const t = e.value, r = e.format ? e.format(t, e) : t;
|
|
44
|
+
return {
|
|
45
|
+
item: e,
|
|
46
|
+
index: s,
|
|
47
|
+
value: t,
|
|
48
|
+
text: r == null || r === "" ? h.placeholder : String(r)
|
|
49
|
+
};
|
|
50
|
+
})
|
|
51
|
+
);
|
|
52
|
+
function k(e) {
|
|
53
|
+
return typeof e != "number" ? e : Number.isFinite(e) ? Math.max(0, e) + "px" : void 0;
|
|
54
|
+
}
|
|
55
|
+
function x(e, s) {
|
|
56
|
+
return Number.isFinite(e) ? Math.min(s, Math.max(1, Math.floor(e))) : 1;
|
|
57
|
+
}
|
|
58
|
+
function w(e) {
|
|
59
|
+
const { item: s } = e, t = x(
|
|
60
|
+
s.span === "full" ? m.value : s.span,
|
|
61
|
+
m.value
|
|
62
|
+
), r = m.value === 1 ? 1 : x(s.rowSpan, b.value.length);
|
|
63
|
+
return {
|
|
64
|
+
gridColumn: "span " + t,
|
|
65
|
+
gridRow: "span " + r,
|
|
66
|
+
"--hys-description-field-label-width": k(s.labelWidth)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return (e, s) => (a(), i("section", d({
|
|
70
|
+
ref_key: "root",
|
|
71
|
+
ref: v
|
|
72
|
+
}, L(z), {
|
|
73
|
+
class: "hys-ui-descriptions",
|
|
74
|
+
"data-layout": l.layout,
|
|
75
|
+
"data-size": l.size,
|
|
76
|
+
"data-bordered": l.bordered || void 0,
|
|
77
|
+
"aria-label": l.ariaLabel,
|
|
78
|
+
"aria-labelledby": !l.ariaLabel && (l.title || n.title) ? g : void 0,
|
|
79
|
+
style: {
|
|
80
|
+
"--hys-descriptions-columns": m.value,
|
|
81
|
+
"--hys-descriptions-label-width": k(l.labelWidth)
|
|
82
|
+
}
|
|
83
|
+
}), [
|
|
84
|
+
l.title || l.extra || n.title || n.extra ? (a(), i("header", E, [
|
|
85
|
+
l.title || n.title ? (a(), i("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
id: g,
|
|
88
|
+
class: "hys-descriptions-title"
|
|
89
|
+
}, [
|
|
90
|
+
o(e.$slots, "title", {}, () => [
|
|
91
|
+
u(c(l.title), 1)
|
|
92
|
+
], !0)
|
|
93
|
+
])) : y("", !0),
|
|
94
|
+
l.extra || n.extra ? (a(), i("div", H, [
|
|
95
|
+
o(e.$slots, "extra", {}, () => [
|
|
96
|
+
u(c(l.extra), 1)
|
|
97
|
+
], !0)
|
|
98
|
+
])) : y("", !0)
|
|
99
|
+
])) : y("", !0),
|
|
100
|
+
b.value.length ? (a(), i("dl", R, [
|
|
101
|
+
(a(!0), i(M, null, W(b.value, (t) => (a(), i("div", {
|
|
102
|
+
key: t.item.key,
|
|
103
|
+
class: "hys-descriptions-field",
|
|
104
|
+
style: f(w(t))
|
|
105
|
+
}, [
|
|
106
|
+
p("dt", {
|
|
107
|
+
class: $(["hys-descriptions-label", t.item.labelClass]),
|
|
108
|
+
style: f([
|
|
109
|
+
{ textAlign: t.item.labelAlign ?? l.labelAlign },
|
|
110
|
+
l.labelStyle,
|
|
111
|
+
t.item.labelStyle
|
|
112
|
+
])
|
|
113
|
+
}, [
|
|
114
|
+
o(e.$slots, `label-${t.item.key}`, d({ ref_for: !0 }, t), () => [
|
|
115
|
+
o(e.$slots, "label", d({ ref_for: !0 }, t), () => [
|
|
116
|
+
u(c(t.item.label), 1)
|
|
117
|
+
], !0)
|
|
118
|
+
], !0),
|
|
119
|
+
l.colon ? (a(), i("span", G, ":")) : y("", !0)
|
|
120
|
+
], 6),
|
|
121
|
+
p("dd", {
|
|
122
|
+
class: $(["hys-descriptions-value", t.item.contentClass]),
|
|
123
|
+
style: f([
|
|
124
|
+
{ textAlign: t.item.align ?? l.align },
|
|
125
|
+
l.contentStyle,
|
|
126
|
+
t.item.contentStyle
|
|
127
|
+
])
|
|
128
|
+
}, [
|
|
129
|
+
o(e.$slots, `value-${t.item.key}`, d({ ref_for: !0 }, t), () => [
|
|
130
|
+
o(e.$slots, "value", d({ ref_for: !0 }, t), () => [
|
|
131
|
+
u(c(t.text), 1)
|
|
132
|
+
], !0)
|
|
133
|
+
], !0)
|
|
134
|
+
], 6)
|
|
135
|
+
], 4))), 128))
|
|
136
|
+
])) : (a(), i("div", P, [
|
|
137
|
+
o(e.$slots, "empty", {}, () => [
|
|
138
|
+
u(c(l.emptyText), 1)
|
|
139
|
+
], !0)
|
|
140
|
+
]))
|
|
141
|
+
], 16, D));
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
export {
|
|
145
|
+
O as default
|
|
146
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineComponent as cl, ref as V, shallowRef as dl, computed as r, provide as vl, watch as Y, nextTick as G, onActivated as fl, onDeactivated as pl, onBeforeUnmount as gl, openBlock as qe, createElementBlock as Ie, mergeProps as ml, unref as bl, withModifiers as Le, createElementVNode as yl, renderSlot as _e, createCommentVNode as hl } from "vue";
|
|
2
2
|
import { formPath as T, formKey as wl, formValue as g, setFormValue as Z, focusHysField as Fl } from "../../composables/formContext.js";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveFormGrid as kl, resolveFormCol as Ml } from "../../composables/formLayout.js";
|
|
4
4
|
import { snapshotForm as d, sameFormValue as H, nestedFormRules as ze, runFormRules as $e } from "../../composables/formValidation.js";
|
|
5
|
-
import { useHysRootAttrs as
|
|
5
|
+
import { useHysRootAttrs as Ol } from "../../config.js";
|
|
6
|
+
import { useContainerWidth as jl } from "../../composables/useContainerWidth.js";
|
|
6
7
|
const Bl = ["aria-busy"], Pl = ["disabled", "inert"], Vl = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "hys-ui-ent-form-actions"
|
|
9
|
-
},
|
|
10
|
+
}, Tl = /* @__PURE__ */ cl({
|
|
10
11
|
__name: "HysForm",
|
|
11
12
|
props: {
|
|
12
13
|
model: {},
|
|
@@ -45,14 +46,14 @@ const Bl = ["aria-busy"], Pl = ["disabled", "inert"], Vl = {
|
|
|
45
46
|
},
|
|
46
47
|
emits: ["submit", "invalid", "reset", "validate", "validation"],
|
|
47
48
|
setup(N, { expose: Ge, emit: He }) {
|
|
48
|
-
const a = N, D = He, Ne =
|
|
49
|
+
const a = N, D = He, Ne = Ol(), ee = V(), v = V({}), f = V({}), p = V({}), M = V(!1), ce = V(!1), E = V(!1), O = V({}), j = V({}), m = dl([]), R = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), le = r(
|
|
49
50
|
() => Object.fromEntries(
|
|
50
51
|
Object.entries(a.rules).map(([e, l]) => [T(e), l])
|
|
51
52
|
)
|
|
52
53
|
), x = r(() => !!(a.disabled || a.loading)), ve = r(
|
|
53
54
|
() => typeof a.labelWidth == "number" ? a.labelWidth + "px" : a.labelWidth
|
|
54
|
-
), te =
|
|
55
|
-
() =>
|
|
55
|
+
), te = jl(ee), we = r(
|
|
56
|
+
() => kl(a.columns, te.value)
|
|
56
57
|
), De = r(
|
|
57
58
|
() => a.layout === "inline" || !a.layout && a.inline
|
|
58
59
|
), ae = r(
|
|
@@ -76,7 +77,7 @@ const Bl = ["aria-busy"], Pl = ["disabled", "inert"], Vl = {
|
|
|
76
77
|
const ke = r(
|
|
77
78
|
() => ve.value === "auto" ? Fe.value : ve.value
|
|
78
79
|
), Je = r(() => {
|
|
79
|
-
const e =
|
|
80
|
+
const e = Ml(a.labelCol, te.value);
|
|
80
81
|
return {
|
|
81
82
|
"--hys-ui-form-label-width": ke.value,
|
|
82
83
|
"--hys-ui-form-columns": we.value,
|
|
@@ -607,5 +608,5 @@ const Bl = ["aria-busy"], Pl = ["disabled", "inert"], Vl = {
|
|
|
607
608
|
}
|
|
608
609
|
});
|
|
609
610
|
export {
|
|
610
|
-
|
|
611
|
+
Tl as default
|
|
611
612
|
};
|