@dazhicheng/ui 1.6.7 → 1.6.8

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.
Files changed (93) hide show
  1. package/dist/components/tt-form/src/form-render/expandable.js +31 -32
  2. package/dist/components/tt-form/src/useFormContext.js +1 -1
  3. package/dist/components/tt-table/index.d.ts +3 -15
  4. package/dist/components/tt-table/index.js +5 -4
  5. package/dist/components/tt-table/src/Table.vue.d.ts +1 -1
  6. package/dist/components/tt-table/src/Table.vue.js +3 -3
  7. package/dist/components/tt-table/src/TableForm.vue.js +168 -159
  8. package/dist/components/tt-table/src/components/TableAction.vue.d.ts +2 -12
  9. package/dist/components/tt-table/src/components/TableAction.vue.js +78 -175
  10. package/dist/components/tt-table/src/hooks/useGridProps.js +64 -60
  11. package/dist/components/tt-table/src/hooks/useTableData.js +77 -74
  12. package/dist/components/tt-table/src/types/table.d.ts +2 -1
  13. package/dist/components/tt-table/src/utils/table-api.d.ts +2 -1
  14. package/dist/components/tt-table/src/utils/table-api.js +3 -2
  15. package/dist/components/tt-vtable/index.js +54 -0
  16. package/dist/components/tt-vtable/src/components/TtVTable.vue.d.ts +188 -0
  17. package/dist/components/tt-vtable/src/components/TtVTable.vue.js +227 -0
  18. package/dist/components/tt-vtable/src/components/TtVTable.vue2.js +4 -0
  19. package/dist/components/tt-vtable/src/components/TtVTableForm.vue.d.ts +32 -0
  20. package/dist/components/tt-vtable/src/components/TtVTableForm.vue.js +121 -0
  21. package/dist/components/tt-vtable/src/components/TtVTableForm.vue2.js +4 -0
  22. package/dist/components/tt-vtable/src/components/VTableEmpty.vue.d.ts +64 -0
  23. package/dist/components/tt-vtable/src/components/VTableEmpty.vue.js +97 -0
  24. package/dist/components/tt-vtable/src/components/VTableEmpty.vue2.js +4 -0
  25. package/dist/components/tt-vtable/src/components/VTablePagination.vue.d.ts +53 -0
  26. package/dist/components/tt-vtable/src/components/VTablePagination.vue.js +52 -0
  27. package/dist/components/tt-vtable/src/components/VTablePagination.vue2.js +4 -0
  28. package/dist/components/tt-vtable/src/components/VTableSelectionAlert.vue.d.ts +35 -0
  29. package/dist/components/tt-vtable/src/components/VTableSelectionAlert.vue.js +50 -0
  30. package/dist/components/tt-vtable/src/components/VTableSelectionAlert.vue2.js +4 -0
  31. package/dist/components/tt-vtable/src/components/VTableToolbar.vue.d.ts +63 -0
  32. package/dist/components/tt-vtable/src/components/VTableToolbar.vue.js +126 -0
  33. package/dist/components/tt-vtable/src/components/VTableToolbar.vue2.js +4 -0
  34. package/dist/components/tt-vtable/src/components/VTableViewport.vue.js +133 -0
  35. package/dist/components/tt-vtable/src/components/VTableViewport.vue2.js +4 -0
  36. package/dist/components/tt-vtable/src/composables/useVTable.d.ts +41 -0
  37. package/dist/components/tt-vtable/src/composables/useVTable.js +25 -0
  38. package/dist/components/tt-vtable/src/composables/useVTableFormRender.d.ts +13 -0
  39. package/dist/components/tt-vtable/src/composables/useVTableFormRender.js +92 -0
  40. package/dist/components/tt-vtable/src/composables/useVTableRender.d.ts +13 -0
  41. package/dist/components/tt-vtable/src/composables/useVTableRender.js +13 -0
  42. package/dist/components/tt-vtable/src/engine/visactor/createListTable.d.ts +10 -0
  43. package/dist/components/tt-vtable/src/engine/visactor/createListTable.js +63 -0
  44. package/dist/components/tt-vtable/src/engine/visactor/createVueCellLayout.d.ts +37 -0
  45. package/dist/components/tt-vtable/src/engine/visactor/createVueCellLayout.js +133 -0
  46. package/dist/components/tt-vtable/src/engine/visactor/index.d.ts +8 -0
  47. package/dist/components/tt-vtable/src/engine/visactor/native-boundaries.d.ts +23 -0
  48. package/dist/components/tt-vtable/src/engine/visactor/native-boundaries.js +70 -0
  49. package/dist/components/tt-vtable/src/engine/visactor/record-adapter.d.ts +38 -0
  50. package/dist/components/tt-vtable/src/engine/visactor/record-adapter.js +41 -0
  51. package/dist/components/tt-vtable/src/engine/visactor/toColumnDefinitions.d.ts +45 -0
  52. package/dist/components/tt-vtable/src/engine/visactor/toColumnDefinitions.js +73 -0
  53. package/dist/components/tt-vtable/src/engine/visactor/toListTableOptions.d.ts +25 -0
  54. package/dist/components/tt-vtable/src/engine/visactor/toListTableOptions.js +25 -0
  55. package/dist/components/tt-vtable/src/engine/visactor/types.d.ts +29 -0
  56. package/dist/components/tt-vtable/src/features/column-preferences/column-preference-storage.d.ts +36 -0
  57. package/dist/components/tt-vtable/src/features/column-preferences/column-preference-storage.js +52 -0
  58. package/dist/components/tt-vtable/src/features/column-preferences/useColumnPreferences.d.ts +74 -0
  59. package/dist/components/tt-vtable/src/features/column-preferences/useColumnPreferences.js +232 -0
  60. package/dist/components/tt-vtable/src/features/editing/useCellEditing.d.ts +48 -0
  61. package/dist/components/tt-vtable/src/features/editing/useCellEditing.js +102 -0
  62. package/dist/components/tt-vtable/src/features/form-integration/useVTableForm.d.ts +51 -0
  63. package/dist/components/tt-vtable/src/features/pagination/useTablePagination.d.ts +40 -0
  64. package/dist/components/tt-vtable/src/features/pagination/useTablePagination.js +51 -0
  65. package/dist/components/tt-vtable/src/features/querying/useRecordQuery.d.ts +38 -0
  66. package/dist/components/tt-vtable/src/features/querying/useRecordQuery.js +57 -0
  67. package/dist/components/tt-vtable/src/features/records/index.d.ts +3 -0
  68. package/dist/components/tt-vtable/src/features/records/record-index.d.ts +122 -0
  69. package/dist/components/tt-vtable/src/features/records/record-index.js +209 -0
  70. package/dist/components/tt-vtable/src/features/records/useRecordSource.d.ts +41 -0
  71. package/dist/components/tt-vtable/src/features/records/useRecordSource.js +249 -0
  72. package/dist/components/tt-vtable/src/features/selection/useRowSelection.d.ts +65 -0
  73. package/dist/components/tt-vtable/src/features/selection/useRowSelection.js +129 -0
  74. package/dist/components/tt-vtable/src/features/tree/useTreeRecords.d.ts +60 -0
  75. package/dist/components/tt-vtable/src/features/tree/useTreeRecords.js +125 -0
  76. package/dist/components/tt-vtable/src/public/index.d.ts +7 -0
  77. package/dist/components/tt-vtable/src/public/table-api.d.ts +215 -0
  78. package/dist/components/tt-vtable/src/public/table-column.d.ts +123 -0
  79. package/dist/components/tt-vtable/src/public/table-errors.d.ts +26 -0
  80. package/dist/components/tt-vtable/src/public/table-errors.js +26 -0
  81. package/dist/components/tt-vtable/src/public/table-events.d.ts +69 -0
  82. package/dist/components/tt-vtable/src/public/table-props.d.ts +216 -0
  83. package/dist/components/tt-vtable/src/public/table-slots.d.ts +37 -0
  84. package/dist/components/tt-vtable/src/runtime/createVTableController.d.ts +12 -0
  85. package/dist/components/tt-vtable/src/runtime/createVTableController.js +238 -0
  86. package/dist/components/tt-vtable/src/runtime/createVTableRuntime.d.ts +79 -0
  87. package/dist/components/tt-vtable/src/runtime/createVTableRuntime.js +380 -0
  88. package/dist/index.d.ts +1 -0
  89. package/dist/index.js +129 -115
  90. package/dist/packages/utils/src/is.js +46 -37
  91. package/dist/style.css +1 -1
  92. package/package.json +3 -1
  93. package/dist/assets/svg/action_more.svg.js +0 -4
package/dist/index.js CHANGED
@@ -1,169 +1,183 @@
1
1
  import { TtButton as p } from "./components/tt-button/index.js";
2
- import { TtAddButton as ar } from "./components/tt-button/index.js";
2
+ import { TtAddButton as sr } from "./components/tt-button/index.js";
3
3
  import { TtCheckbox as a } from "./components/tt-checkbox/index.js";
4
4
  import { TtEmpty as f } from "./components/tt-empty/index.js";
5
- import { addComponent as s, setConfig as i } from "./components/tt-form/index.js";
6
- import { TtFormItemErrorTooltip as d } from "./components/tt-form-item-error-tooltip/index.js";
7
- import { TtIcon as u, TtAddIcon as x, TtSubIcon as T } from "./components/tt-icon/index.js";
8
- import { TtImage as n } from "./components/tt-image/index.js";
9
- import { RenderDrawer as l } from "./components/tt-drawer/index.js";
5
+ import { addComponent as s, setConfig as T } from "./components/tt-form/index.js";
6
+ import { TtFormItemErrorTooltip as x } from "./components/tt-form-item-error-tooltip/index.js";
7
+ import { TtIcon as i, TtAddIcon as u, TtSubIcon as d } from "./components/tt-icon/index.js";
8
+ import { TtImage as l } from "./components/tt-image/index.js";
9
+ import { RenderDrawer as n } from "./components/tt-drawer/index.js";
10
10
  import { RenderModal as c } from "./components/tt-modal/index.js";
11
- import { TtModal as sr } from "./components/tt-modal/index.js";
11
+ import { TtModal as xr } from "./components/tt-modal/index.js";
12
12
  import { TtSelect as b } from "./components/tt-select/index.js";
13
- import { TtText as w } from "./components/tt-text/index.js";
14
- import { TtUpload as R } from "./components/tt-upload/index.js";
13
+ import { TtText as R } from "./components/tt-text/index.js";
14
+ import { TtUpload as w } from "./components/tt-upload/index.js";
15
15
  import { TtNavAnchor as h } from "./components/tt-nav-anchor/index.js";
16
16
  import { TtApiComponent as g } from "./components/tt-api-component/index.js";
17
17
  import * as e from "./directives/index.js";
18
- import { setup as M } from "./hooks/useSetup.js";
19
- import { TtLog as P } from "./components/tt-log/index.js";
20
- import { TtPanelSelect as S } from "./components/tt-panel-select/index.js";
21
- import { TtRadioGroup as A } from "./components/tt-radio-group/index.js";
22
- import { setXHR as dr } from "./utils/xhr.js";
18
+ import { setup as F } from "./hooks/useSetup.js";
19
+ import { TtLog as M } from "./components/tt-log/index.js";
20
+ import { TtPanelSelect as P } from "./components/tt-panel-select/index.js";
21
+ import { TtRadioGroup as S } from "./components/tt-radio-group/index.js";
22
+ import { TtVTable as A } from "./components/tt-vtable/index.js";
23
+ import { TtVTableForm as ur } from "./components/tt-vtable/index.js";
24
+ import { setXHR as lr } from "./utils/xhr.js";
23
25
  /* empty css */
24
26
  /* empty css */
25
27
  /* empty css */
26
28
  /* empty css */
27
29
  /* empty css */
28
- import { default as xr } from "./components/tt-area/TtArea.vue.js";
29
- import { useModalForm as nr } from "./components/tt-modal-form/useModalForm.js";
30
- import { TtLoading as cr } from "./components/tt-loading/index.js";
31
- import { TtTable as wr, TtTableAction as Rr, TtTableButton as hr } from "./components/tt-table/index.js";
32
- import { useFormSchemasLink as Mr } from "./hooks/useFormSchemasLink.js";
33
- import { useDataPermissionOptions as Sr } from "./hooks/useDataPermissionOptions.js";
34
- import { useBasicDataOptions as Cr } from "./hooks/useBasicDataOptions.js";
35
- import { usePanelSelectSchemas as Ir } from "./hooks/usePanelSelectSchemas.js";
36
- import { CODES as Or, GROUP_BY as Lr } from "./hooks/basicDataCodes.js";
37
- import { useFormat as Br } from "./hooks/useFormat.js";
38
- import { useLoading as vr } from "./hooks/useLoading.js";
39
- import { useScreenshotOss as Nr } from "./hooks/useScreenshotOss.js";
40
- import { createUppercaseInputProps as kr, toUppercaseInputValue as Vr, uppercaseInputProps as _r } from "./utils/uppercaseInput.js";
30
+ import { default as cr } from "./components/tt-area/TtArea.vue.js";
31
+ import { useModalForm as Rr } from "./components/tt-modal-form/useModalForm.js";
32
+ import { TtLoading as hr } from "./components/tt-loading/index.js";
33
+ import { TtTable as Fr, TtTableAction as Mr, TtTableButton as Pr } from "./components/tt-table/index.js";
34
+ import { useFormSchemasLink as Ar } from "./hooks/useFormSchemasLink.js";
35
+ import { useDataPermissionOptions as Dr } from "./hooks/useDataPermissionOptions.js";
36
+ import { useBasicDataOptions as Vr } from "./hooks/useBasicDataOptions.js";
37
+ import { usePanelSelectSchemas as Or } from "./hooks/usePanelSelectSchemas.js";
38
+ import { CODES as Br, GROUP_BY as Ur } from "./hooks/basicDataCodes.js";
39
+ import { useFormat as zr } from "./hooks/useFormat.js";
40
+ import { useLoading as Gr } from "./hooks/useLoading.js";
41
+ import { useScreenshotOss as _r } from "./hooks/useScreenshotOss.js";
42
+ import { createUppercaseInputProps as jr, toUppercaseInputValue as yr, uppercaseInputProps as Hr } from "./utils/uppercaseInput.js";
41
43
  import { setupDrawer as C } from "./components/tt-drawer/src/index.js";
42
- import { useShowDrawer as jr } from "./components/tt-drawer/src/index.js";
44
+ import { useShowDrawer as Yr } from "./components/tt-drawer/src/index.js";
43
45
  import { setupModal as D } from "./components/tt-modal/src/index.js";
44
- import { useShowModal as Hr } from "./components/tt-modal/src/index.js";
45
- import { default as Yr } from "./directives/disabled-tip/index.js";
46
- import { default as qr } from "./directives/auto-tip/index.js";
47
- import { showTtDrawer as Kr, useDrawerRender as Qr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
48
- import { useDrawerResizable as ro } from "./components/tt-drawer/src/hooks/useResizable.js";
49
- import { showTtModal as eo, useModalRender as to } from "./components/tt-modal/src/hooks/useModalRender.js";
50
- import { default as po } from "./directives/dialog-resize/index.js";
51
- import * as or from "zod";
52
- import { useGroupForm as fo } from "./components/tt-form/src/group-form/useGroupForm.js";
53
- import { COMPONENT_MAP as io } from "./components/tt-form/src/config.js";
54
- import { useForm as xo } from "./components/tt-form/src/useForm.js";
55
- import { TtImageViewer as no } from "./components/tt-image/src/components/ImageViewer.js";
56
- import { vTtLoading as co } from "./components/tt-loading/src/directive.js";
57
- import { Loading as wo } from "./components/tt-loading/src/service.js";
58
- import { useTableContext as ho, useTableFormContext as go } from "./components/tt-table/src/hooks/useTableContext.js";
59
- import { useTableFormRender as Po, useTableRender as So } from "./components/tt-table/src/hooks/useTableRender.js";
60
- import { ttUploadProps as Co } from "./components/tt-upload/src/typing.js";
46
+ import { useShowModal as qr } from "./components/tt-modal/src/index.js";
47
+ import { default as Kr } from "./directives/disabled-tip/index.js";
48
+ import { default as Wr } from "./directives/auto-tip/index.js";
49
+ import { showTtDrawer as oo, useDrawerRender as eo } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
50
+ import { useDrawerResizable as mo } from "./components/tt-drawer/src/hooks/useResizable.js";
51
+ import { showTtModal as ao, useModalRender as fo } from "./components/tt-modal/src/hooks/useModalRender.js";
52
+ import { default as To } from "./directives/dialog-resize/index.js";
53
+ import * as tr from "zod";
54
+ import { useGroupForm as io } from "./components/tt-form/src/group-form/useGroupForm.js";
55
+ import { COMPONENT_MAP as lo } from "./components/tt-form/src/config.js";
56
+ import { useForm as co } from "./components/tt-form/src/useForm.js";
57
+ import { TtImageViewer as Ro } from "./components/tt-image/src/components/ImageViewer.js";
58
+ import { vTtLoading as ho } from "./components/tt-loading/src/directive.js";
59
+ import { Loading as Fo } from "./components/tt-loading/src/service.js";
60
+ import { useTableContext as Po, useTableFormContext as So } from "./components/tt-table/src/hooks/useTableContext.js";
61
+ import { useTableFormRender as Co, useTableRender as Do } from "./components/tt-table/src/hooks/useTableRender.js";
62
+ import { useVTable as Vo } from "./components/tt-vtable/src/composables/useVTable.js";
63
+ import { useVTableFormRender as Oo } from "./components/tt-vtable/src/composables/useVTableFormRender.js";
64
+ import { useVTableRender as Bo } from "./components/tt-vtable/src/composables/useVTableRender.js";
65
+ import { TtVTableError as vo, createTtVTableError as zo } from "./components/tt-vtable/src/public/table-errors.js";
66
+ import { ttUploadProps as Go } from "./components/tt-upload/src/typing.js";
61
67
  const I = [
62
68
  p,
63
- l,
69
+ n,
64
70
  c,
65
- u,
71
+ i,
66
72
  b,
67
73
  f,
68
- w,
69
- a,
70
- d,
71
- n,
72
74
  R,
73
- h,
75
+ a,
74
76
  x,
75
- T,
77
+ l,
78
+ w,
79
+ h,
80
+ u,
81
+ d,
76
82
  g,
83
+ M,
77
84
  P,
78
85
  S,
79
86
  A
80
- ], F = (r) => {
87
+ ], V = (r) => {
81
88
  I.forEach((o) => r.use(o)), Object.keys(e).forEach((o) => {
82
89
  const t = e[o], m = o.replace(/([A-Z])/g, "-$1").toLowerCase();
83
90
  r.directive(m, t);
84
91
  }), C(r), D(r);
85
92
  };
86
- function er(r) {
87
- s(r == null ? void 0 : r.components), i(r == null ? void 0 : r.defineRules, r == null ? void 0 : r.modelPropNameMap);
93
+ function mr(r) {
94
+ s(r == null ? void 0 : r.components), T(r == null ? void 0 : r.defineRules, r == null ? void 0 : r.modelPropNameMap);
88
95
  }
89
- const tr = {
96
+ const pr = {
90
97
  /**
91
98
  * 安装组件
92
99
  * @param app Vue 应用实例
93
100
  */
94
- install: F,
101
+ install: V,
95
102
  /**
96
103
  * 全局参数设置
97
104
  * @param options 全局参数
98
105
  * @returns 合并后的全局参数
99
106
  */
100
- setup: M
107
+ setup: F
101
108
  };
102
109
  export {
103
- Or as CODES,
104
- io as COMPONENT_MAP,
105
- Lr as GROUP_BY,
106
- wo as Loading,
107
- l as RenderDrawer,
110
+ Br as CODES,
111
+ lo as COMPONENT_MAP,
112
+ Ur as GROUP_BY,
113
+ Fo as Loading,
114
+ n as RenderDrawer,
108
115
  c as RenderModal,
109
- ar as TtAddButton,
110
- x as TtAddIcon,
116
+ sr as TtAddButton,
117
+ u as TtAddIcon,
111
118
  g as TtApiComponent,
112
- xr as TtArea,
119
+ cr as TtArea,
113
120
  p as TtButton,
114
121
  a as TtCheckbox,
115
122
  f as TtEmpty,
116
- u as TtIcon,
117
- n as TtImage,
118
- no as TtImageViewer,
119
- cr as TtLoading,
120
- P as TtLog,
121
- sr as TtModal,
123
+ i as TtIcon,
124
+ l as TtImage,
125
+ Ro as TtImageViewer,
126
+ hr as TtLoading,
127
+ M as TtLog,
128
+ xr as TtModal,
122
129
  h as TtNavAnchor,
123
- S as TtPanelSelect,
124
- A as TtRadioGroup,
130
+ P as TtPanelSelect,
131
+ S as TtRadioGroup,
125
132
  b as TtSelect,
126
- T as TtSubIcon,
127
- wr as TtTable,
128
- Rr as TtTableAction,
129
- hr as TtTableButton,
130
- w as TtText,
131
- R as TtUpload,
133
+ d as TtSubIcon,
134
+ Fr as TtTable,
135
+ Mr as TtTableAction,
136
+ Pr as TtTableButton,
137
+ R as TtText,
138
+ w as TtUpload,
139
+ A as TtVTable,
140
+ vo as TtVTableError,
141
+ ur as TtVTableForm,
132
142
  s as addComponent,
133
- qr as autoTip,
134
- kr as createUppercaseInputProps,
135
- tr as default,
136
- po as dialogResize,
137
- Yr as disabledTip,
138
- er as formAdapter,
139
- i as setConfig,
140
- dr as setXHR,
143
+ Wr as autoTip,
144
+ zo as createTtVTableError,
145
+ jr as createUppercaseInputProps,
146
+ pr as default,
147
+ To as dialogResize,
148
+ Kr as disabledTip,
149
+ mr as formAdapter,
150
+ T as setConfig,
151
+ lr as setXHR,
141
152
  C as setupDrawer,
142
153
  D as setupModal,
143
- Kr as showTtDrawer,
144
- eo as showTtModal,
145
- Vr as toUppercaseInputValue,
146
- Co as ttUploadProps,
147
- _r as uppercaseInputProps,
148
- Cr as useBasicDataOptions,
149
- Sr as useDataPermissionOptions,
150
- Qr as useDrawerRender,
151
- ro as useDrawerResizable,
152
- xo as useForm,
153
- Mr as useFormSchemasLink,
154
- Br as useFormat,
155
- fo as useGroupForm,
156
- vr as useLoading,
157
- nr as useModalForm,
158
- to as useModalRender,
159
- Ir as usePanelSelectSchemas,
160
- Nr as useScreenshotOss,
161
- jr as useShowDrawer,
162
- Hr as useShowModal,
163
- ho as useTableContext,
164
- go as useTableFormContext,
165
- Po as useTableFormRender,
166
- So as useTableRender,
167
- co as vTtLoading,
168
- or as z
154
+ oo as showTtDrawer,
155
+ ao as showTtModal,
156
+ yr as toUppercaseInputValue,
157
+ Go as ttUploadProps,
158
+ Hr as uppercaseInputProps,
159
+ Vr as useBasicDataOptions,
160
+ Dr as useDataPermissionOptions,
161
+ eo as useDrawerRender,
162
+ mo as useDrawerResizable,
163
+ co as useForm,
164
+ Ar as useFormSchemasLink,
165
+ zr as useFormat,
166
+ io as useGroupForm,
167
+ Gr as useLoading,
168
+ Rr as useModalForm,
169
+ fo as useModalRender,
170
+ Or as usePanelSelectSchemas,
171
+ _r as useScreenshotOss,
172
+ Yr as useShowDrawer,
173
+ qr as useShowModal,
174
+ Po as useTableContext,
175
+ So as useTableFormContext,
176
+ Co as useTableFormRender,
177
+ Do as useTableRender,
178
+ Vo as useVTable,
179
+ Oo as useVTableFormRender,
180
+ Bo as useVTableRender,
181
+ ho as vTtLoading,
182
+ tr as z
169
183
  };
@@ -1,66 +1,75 @@
1
- import i from "dayjs";
2
- const u = Object.prototype.toString;
3
- function t(n, r) {
4
- return u.call(n) === `[object ${r}]`;
1
+ import o from "dayjs";
2
+ const f = Object.prototype.toString;
3
+ function t(n, u) {
4
+ return f.call(n) === `[object ${u}]`;
5
5
  }
6
- function f(n) {
6
+ function s(n) {
7
7
  return typeof n < "u";
8
8
  }
9
- function o(n) {
10
- return !f(n);
9
+ function c(n) {
10
+ return !s(n);
11
11
  }
12
- function s(n) {
12
+ function y(n) {
13
13
  return n === null;
14
14
  }
15
- function e(n) {
16
- return o(n) || s(n);
15
+ function r(n) {
16
+ return c(n) || y(n);
17
17
  }
18
- function c(n) {
19
- return e(n) ? !1 : n instanceof Promise ? !0 : t(n, "Object");
18
+ function i(n) {
19
+ return r(n) ? !1 : n instanceof Promise ? !0 : t(n, "Object");
20
20
  }
21
- function j(n) {
22
- return e(n) ? !0 : d(n) || y(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : c(n) ? Object.keys(n).length === 0 : !1;
21
+ function b(n) {
22
+ return r(n) ? !0 : m(n) || p(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : i(n) ? Object.keys(n).length === 0 : !1;
23
23
  }
24
- function m(n) {
24
+ function g(n) {
25
25
  return t(n, "Date");
26
26
  }
27
- function b(n) {
27
+ function O(n) {
28
28
  return t(n, "Number") && n === n;
29
29
  }
30
- function y(n) {
30
+ function S(n) {
31
+ return t(n, "Promise") && i(n) && e(n.then) && e(n.catch);
32
+ }
33
+ function p(n) {
31
34
  return t(n, "String");
32
35
  }
33
- function a(n) {
36
+ function e(n) {
34
37
  return typeof n == "function";
35
38
  }
36
- function g(n) {
39
+ function l(n) {
37
40
  return t(n, "Boolean");
38
41
  }
39
- function d(n) {
42
+ function m(n) {
40
43
  return Array.isArray(n);
41
44
  }
42
45
  function D(n) {
43
46
  return typeof Element > "u" ? !1 : n instanceof Element;
44
47
  }
45
- const O = typeof window > "u";
46
- function S(n) {
47
- return i.isDayjs(n);
48
+ const d = typeof window > "u", E = !d;
49
+ function a(n) {
50
+ return Object.prototype.toString.call(n).slice(8, -1) === "Error";
51
+ }
52
+ function h(n) {
53
+ return o.isDayjs(n);
48
54
  }
49
55
  export {
50
56
  t as is,
51
- d as isArray,
52
- g as isBoolean,
53
- m as isDate,
54
- S as isDayjsObject,
55
- f as isDef,
57
+ m as isArray,
58
+ l as isBoolean,
59
+ E as isClient,
60
+ g as isDate,
61
+ h as isDayjsObject,
62
+ s as isDef,
56
63
  D as isElement,
57
- j as isEmpty,
58
- a as isFunction,
59
- s as isNull,
60
- e as isNullOrUnDef,
61
- b as isNumber,
62
- c as isObject,
63
- O as isServer,
64
- y as isString,
65
- o as isUndefined
64
+ b as isEmpty,
65
+ a as isError,
66
+ e as isFunction,
67
+ y as isNull,
68
+ r as isNullOrUnDef,
69
+ O as isNumber,
70
+ i as isObject,
71
+ S as isPromise,
72
+ d as isServer,
73
+ p as isString,
74
+ c as isUndefined
66
75
  };