@expcat/tigercat-vue 0.3.70 → 0.4.2

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 (43) hide show
  1. package/dist/{chunk-ZTJTIQZY.mjs → chunk-DEFEAEYE.mjs} +126 -6
  2. package/dist/{chunk-KUJ75OHX.js → chunk-ESALMEHU.js} +10 -9
  3. package/dist/{chunk-KVZLGW45.js → chunk-ETTYERGO.js} +14 -5
  4. package/dist/chunk-HFBRO2IF.mjs +440 -0
  5. package/dist/chunk-HK2TAPQX.js +334 -0
  6. package/dist/{chunk-YZK2HXRT.js → chunk-LGRUMMOG.js} +2 -2
  7. package/dist/chunk-LW3LFCRZ.mjs +331 -0
  8. package/dist/{chunk-ND4XDRYR.mjs → chunk-TCJBN2DA.mjs} +1 -1
  9. package/dist/{chunk-7FCHU5KV.mjs → chunk-TTDBR2B4.mjs} +11 -10
  10. package/dist/{chunk-RKPYLBPU.mjs → chunk-WM4ESIHG.mjs} +15 -6
  11. package/dist/{chunk-3PQIZBT5.js → chunk-WV3Y45YK.js} +125 -5
  12. package/dist/chunk-YQGKXFV5.js +443 -0
  13. package/dist/components/ActivityFeed.js +4 -4
  14. package/dist/components/ActivityFeed.mjs +2 -2
  15. package/dist/components/Collapse.d.mts +1 -1
  16. package/dist/components/Collapse.d.ts +1 -1
  17. package/dist/components/DataTableWithToolbar.js +4 -4
  18. package/dist/components/DataTableWithToolbar.mjs +2 -2
  19. package/dist/components/InputNumber.d.mts +170 -0
  20. package/dist/components/InputNumber.d.ts +170 -0
  21. package/dist/components/InputNumber.js +17 -0
  22. package/dist/components/InputNumber.mjs +2 -0
  23. package/dist/components/Sidebar.d.mts +20 -0
  24. package/dist/components/Sidebar.d.ts +20 -0
  25. package/dist/components/Sidebar.js +3 -3
  26. package/dist/components/Sidebar.mjs +1 -1
  27. package/dist/components/SubMenu.js +3 -3
  28. package/dist/components/SubMenu.mjs +1 -1
  29. package/dist/components/Table.d.mts +16 -2
  30. package/dist/components/Table.d.ts +16 -2
  31. package/dist/components/Table.js +3 -3
  32. package/dist/components/Table.mjs +1 -1
  33. package/dist/components/TaskBoard.d.mts +129 -0
  34. package/dist/components/TaskBoard.d.ts +129 -0
  35. package/dist/components/TaskBoard.js +18 -0
  36. package/dist/components/TaskBoard.mjs +3 -0
  37. package/dist/index.d.mts +2 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.js +50 -40
  40. package/dist/index.mjs +13 -11
  41. package/package.json +2 -2
  42. package/dist/{chunk-NGW5UMAN.js → chunk-EBTLMVDJ.js} +1 -1
  43. package/dist/{chunk-D7VMY6WX.mjs → chunk-RVEEEDJQ.mjs} +1 -1
@@ -0,0 +1,334 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var tigercatCore = require('@expcat/tigercat-core');
5
+
6
+ // src/components/InputNumber.ts
7
+ var InputNumber = vue.defineComponent({
8
+ name: "TigerInputNumber",
9
+ inheritAttrs: false,
10
+ props: {
11
+ modelValue: {
12
+ type: [Number, null]
13
+ },
14
+ size: {
15
+ type: String,
16
+ default: "md"
17
+ },
18
+ status: {
19
+ type: String,
20
+ default: "default"
21
+ },
22
+ min: {
23
+ type: Number,
24
+ default: -Infinity
25
+ },
26
+ max: {
27
+ type: Number,
28
+ default: Infinity
29
+ },
30
+ step: {
31
+ type: Number,
32
+ default: 1
33
+ },
34
+ precision: {
35
+ type: Number,
36
+ default: void 0
37
+ },
38
+ disabled: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ readonly: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ placeholder: String,
47
+ name: String,
48
+ id: String,
49
+ keyboard: {
50
+ type: Boolean,
51
+ default: true
52
+ },
53
+ controls: {
54
+ type: Boolean,
55
+ default: true
56
+ },
57
+ controlsPosition: {
58
+ type: String,
59
+ default: "right"
60
+ },
61
+ formatter: {
62
+ type: Function
63
+ },
64
+ parser: {
65
+ type: Function
66
+ },
67
+ autoFocus: {
68
+ type: Boolean,
69
+ default: false
70
+ }
71
+ },
72
+ emits: ["update:modelValue", "change", "focus", "blur"],
73
+ setup(props, { emit, attrs }) {
74
+ const inputRef = vue.ref(null);
75
+ const focused = vue.ref(false);
76
+ const displayValue = vue.ref("");
77
+ function toDisplayValue(val) {
78
+ if (val === null || val === void 0) return "";
79
+ if (props.formatter) return props.formatter(val);
80
+ if (props.precision !== void 0) return val.toFixed(props.precision);
81
+ return String(val);
82
+ }
83
+ function parseValue(str) {
84
+ if (str === "" || str === "-") return null;
85
+ if (props.parser) return props.parser(str);
86
+ const num = Number(str);
87
+ return Number.isNaN(num) ? null : num;
88
+ }
89
+ vue.watch(
90
+ () => props.modelValue,
91
+ (val) => {
92
+ if (!focused.value) {
93
+ displayValue.value = toDisplayValue(val);
94
+ }
95
+ },
96
+ { immediate: true }
97
+ );
98
+ const isControlled = vue.computed(() => props.modelValue !== void 0);
99
+ const internalValue = vue.ref(props.modelValue ?? null);
100
+ const currentValue = vue.computed(
101
+ () => isControlled.value ? props.modelValue ?? null : internalValue.value
102
+ );
103
+ function commitValue(val) {
104
+ let finalVal = val;
105
+ if (finalVal !== null) {
106
+ finalVal = tigercatCore.clampValue(finalVal, props.min, props.max);
107
+ if (props.precision !== void 0) {
108
+ finalVal = tigercatCore.formatPrecision(finalVal, props.precision);
109
+ }
110
+ }
111
+ if (!isControlled.value) {
112
+ internalValue.value = finalVal;
113
+ }
114
+ emit("update:modelValue", finalVal);
115
+ emit("change", finalVal);
116
+ displayValue.value = toDisplayValue(finalVal);
117
+ }
118
+ function handleStep(direction) {
119
+ if (props.disabled || props.readonly) return;
120
+ const next = tigercatCore.stepValue(
121
+ currentValue.value,
122
+ props.step,
123
+ direction,
124
+ props.min,
125
+ props.max,
126
+ props.precision
127
+ );
128
+ commitValue(next);
129
+ }
130
+ function handleInput(e) {
131
+ const target = e.target;
132
+ displayValue.value = target.value;
133
+ }
134
+ function handleBlur(e) {
135
+ focused.value = false;
136
+ const parsed = parseValue(displayValue.value);
137
+ commitValue(parsed);
138
+ emit("blur", e);
139
+ }
140
+ function handleFocus(e) {
141
+ focused.value = true;
142
+ if (props.formatter && currentValue.value !== null) {
143
+ displayValue.value = String(currentValue.value);
144
+ }
145
+ emit("focus", e);
146
+ }
147
+ function handleKeyDown(e) {
148
+ if (!props.keyboard || props.disabled || props.readonly) return;
149
+ if (e.key === "ArrowUp") {
150
+ e.preventDefault();
151
+ handleStep("up");
152
+ } else if (e.key === "ArrowDown") {
153
+ e.preventDefault();
154
+ handleStep("down");
155
+ } else if (e.key === "Enter") {
156
+ const parsed = parseValue(displayValue.value);
157
+ commitValue(parsed);
158
+ }
159
+ }
160
+ const atMin = vue.computed(() => tigercatCore.isAtMin(currentValue.value, props.min));
161
+ const atMax = vue.computed(() => tigercatCore.isAtMax(currentValue.value, props.max));
162
+ const wrapperClasses = vue.computed(
163
+ () => tigercatCore.classNames(
164
+ tigercatCore.getInputNumberWrapperClasses(props.disabled),
165
+ tigercatCore.getInputNumberStatusClasses(props.status),
166
+ tigercatCore.getInputNumberSizeClasses(props.size),
167
+ focused.value && `ring-2 ${tigercatCore.getInputNumberFocusRingColor(props.status)}`,
168
+ tigercatCore.coerceClassValue(attrs.class)
169
+ )
170
+ );
171
+ const inputClasses = vue.computed(
172
+ () => tigercatCore.getInputNumberInputClasses(
173
+ props.size,
174
+ props.controls && props.controlsPosition === "right",
175
+ props.controls && props.controlsPosition === "both"
176
+ )
177
+ );
178
+ vue.onMounted(() => {
179
+ if (props.autoFocus && inputRef.value) {
180
+ inputRef.value.focus();
181
+ }
182
+ });
183
+ return () => {
184
+ const children = [];
185
+ if (props.controls && props.controlsPosition === "both") {
186
+ children.push(
187
+ vue.h(
188
+ "button",
189
+ {
190
+ type: "button",
191
+ tabindex: -1,
192
+ "aria-label": "Decrease",
193
+ class: tigercatCore.getInputNumberSideButtonClasses("left", props.disabled || atMin.value),
194
+ disabled: props.disabled || atMin.value,
195
+ onMousedown: (e) => e.preventDefault(),
196
+ onClick: () => handleStep("down")
197
+ },
198
+ [
199
+ vue.h(
200
+ "svg",
201
+ {
202
+ xmlns: "http://www.w3.org/2000/svg",
203
+ viewBox: "0 0 24 24",
204
+ fill: "none",
205
+ stroke: "currentColor",
206
+ "stroke-width": "2",
207
+ class: "w-4 h-4"
208
+ },
209
+ [vue.h("path", { d: tigercatCore.inputNumberMinusIconPathD })]
210
+ )
211
+ ]
212
+ )
213
+ );
214
+ }
215
+ children.push(
216
+ vue.h("input", {
217
+ ref: inputRef,
218
+ type: "text",
219
+ inputmode: "decimal",
220
+ role: "spinbutton",
221
+ "aria-valuemin": props.min === -Infinity ? void 0 : props.min,
222
+ "aria-valuemax": props.max === Infinity ? void 0 : props.max,
223
+ "aria-valuenow": currentValue.value ?? void 0,
224
+ class: inputClasses.value,
225
+ value: displayValue.value,
226
+ placeholder: props.placeholder,
227
+ disabled: props.disabled,
228
+ readonly: props.readonly,
229
+ name: props.name,
230
+ id: props.id,
231
+ onInput: handleInput,
232
+ onBlur: handleBlur,
233
+ onFocus: handleFocus,
234
+ onKeydown: handleKeyDown
235
+ })
236
+ );
237
+ if (props.controls && props.controlsPosition === "both") {
238
+ children.push(
239
+ vue.h(
240
+ "button",
241
+ {
242
+ type: "button",
243
+ tabindex: -1,
244
+ "aria-label": "Increase",
245
+ class: tigercatCore.getInputNumberSideButtonClasses("right", props.disabled || atMax.value),
246
+ disabled: props.disabled || atMax.value,
247
+ onMousedown: (e) => e.preventDefault(),
248
+ onClick: () => handleStep("up")
249
+ },
250
+ [
251
+ vue.h(
252
+ "svg",
253
+ {
254
+ xmlns: "http://www.w3.org/2000/svg",
255
+ viewBox: "0 0 24 24",
256
+ fill: "none",
257
+ stroke: "currentColor",
258
+ "stroke-width": "2",
259
+ class: "w-4 h-4"
260
+ },
261
+ [vue.h("path", { d: tigercatCore.inputNumberPlusIconPathD })]
262
+ )
263
+ ]
264
+ )
265
+ );
266
+ }
267
+ if (props.controls && props.controlsPosition === "right") {
268
+ children.push(
269
+ vue.h("div", { class: tigercatCore.inputNumberControlsRightClasses }, [
270
+ vue.h(
271
+ "button",
272
+ {
273
+ type: "button",
274
+ tabindex: -1,
275
+ "aria-label": "Increase",
276
+ class: tigercatCore.getInputNumberStepButtonClasses("up", props.disabled || atMax.value),
277
+ disabled: props.disabled || atMax.value,
278
+ onMousedown: (e) => e.preventDefault(),
279
+ onClick: () => handleStep("up")
280
+ },
281
+ [
282
+ vue.h(
283
+ "svg",
284
+ {
285
+ xmlns: "http://www.w3.org/2000/svg",
286
+ viewBox: "0 0 24 24",
287
+ fill: "currentColor",
288
+ class: "w-3 h-3"
289
+ },
290
+ [vue.h("path", { d: tigercatCore.inputNumberUpIconPathD })]
291
+ )
292
+ ]
293
+ ),
294
+ vue.h(
295
+ "button",
296
+ {
297
+ type: "button",
298
+ tabindex: -1,
299
+ "aria-label": "Decrease",
300
+ class: tigercatCore.getInputNumberStepButtonClasses("down", props.disabled || atMin.value),
301
+ disabled: props.disabled || atMin.value,
302
+ onMousedown: (e) => e.preventDefault(),
303
+ onClick: () => handleStep("down")
304
+ },
305
+ [
306
+ vue.h(
307
+ "svg",
308
+ {
309
+ xmlns: "http://www.w3.org/2000/svg",
310
+ viewBox: "0 0 24 24",
311
+ fill: "currentColor",
312
+ class: "w-3 h-3"
313
+ },
314
+ [vue.h("path", { d: tigercatCore.inputNumberDownIconPathD })]
315
+ )
316
+ ]
317
+ )
318
+ ])
319
+ );
320
+ }
321
+ return vue.h(
322
+ "div",
323
+ {
324
+ class: wrapperClasses.value
325
+ },
326
+ children
327
+ );
328
+ };
329
+ }
330
+ });
331
+ var InputNumber_default = InputNumber;
332
+
333
+ exports.InputNumber = InputNumber;
334
+ exports.InputNumber_default = InputNumber_default;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk3PQIZBT5_js = require('./chunk-3PQIZBT5.js');
3
+ var chunkWV3Y45YK_js = require('./chunk-WV3Y45YK.js');
4
4
  var chunkHNQZ5JRB_js = require('./chunk-HNQZ5JRB.js');
5
5
  var chunkAGAJJYP2_js = require('./chunk-AGAJJYP2.js');
6
6
  var chunkWC4B72TZ_js = require('./chunk-WC4B72TZ.js');
@@ -338,7 +338,7 @@ var DataTableWithToolbar = vue.defineComponent({
338
338
  },
339
339
  [
340
340
  renderToolbar(),
341
- vue.h(chunk3PQIZBT5_js.Table, tableProps),
341
+ vue.h(chunkWV3Y45YK_js.Table, tableProps),
342
342
  showPagination ? vue.h(chunkAGAJJYP2_js.Pagination, {
343
343
  ...props.pagination,
344
344
  onChange: (current, pageSize) => emit("page-change", current, pageSize),
@@ -0,0 +1,331 @@
1
+ import { defineComponent, ref, watch, computed, onMounted, h } from 'vue';
2
+ import { isAtMin, isAtMax, classNames, getInputNumberWrapperClasses, getInputNumberStatusClasses, getInputNumberSizeClasses, getInputNumberFocusRingColor, coerceClassValue, getInputNumberInputClasses, getInputNumberSideButtonClasses, inputNumberMinusIconPathD, inputNumberPlusIconPathD, inputNumberControlsRightClasses, getInputNumberStepButtonClasses, inputNumberUpIconPathD, inputNumberDownIconPathD, stepValue, clampValue, formatPrecision } from '@expcat/tigercat-core';
3
+
4
+ // src/components/InputNumber.ts
5
+ var InputNumber = defineComponent({
6
+ name: "TigerInputNumber",
7
+ inheritAttrs: false,
8
+ props: {
9
+ modelValue: {
10
+ type: [Number, null]
11
+ },
12
+ size: {
13
+ type: String,
14
+ default: "md"
15
+ },
16
+ status: {
17
+ type: String,
18
+ default: "default"
19
+ },
20
+ min: {
21
+ type: Number,
22
+ default: -Infinity
23
+ },
24
+ max: {
25
+ type: Number,
26
+ default: Infinity
27
+ },
28
+ step: {
29
+ type: Number,
30
+ default: 1
31
+ },
32
+ precision: {
33
+ type: Number,
34
+ default: void 0
35
+ },
36
+ disabled: {
37
+ type: Boolean,
38
+ default: false
39
+ },
40
+ readonly: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ placeholder: String,
45
+ name: String,
46
+ id: String,
47
+ keyboard: {
48
+ type: Boolean,
49
+ default: true
50
+ },
51
+ controls: {
52
+ type: Boolean,
53
+ default: true
54
+ },
55
+ controlsPosition: {
56
+ type: String,
57
+ default: "right"
58
+ },
59
+ formatter: {
60
+ type: Function
61
+ },
62
+ parser: {
63
+ type: Function
64
+ },
65
+ autoFocus: {
66
+ type: Boolean,
67
+ default: false
68
+ }
69
+ },
70
+ emits: ["update:modelValue", "change", "focus", "blur"],
71
+ setup(props, { emit, attrs }) {
72
+ const inputRef = ref(null);
73
+ const focused = ref(false);
74
+ const displayValue = ref("");
75
+ function toDisplayValue(val) {
76
+ if (val === null || val === void 0) return "";
77
+ if (props.formatter) return props.formatter(val);
78
+ if (props.precision !== void 0) return val.toFixed(props.precision);
79
+ return String(val);
80
+ }
81
+ function parseValue(str) {
82
+ if (str === "" || str === "-") return null;
83
+ if (props.parser) return props.parser(str);
84
+ const num = Number(str);
85
+ return Number.isNaN(num) ? null : num;
86
+ }
87
+ watch(
88
+ () => props.modelValue,
89
+ (val) => {
90
+ if (!focused.value) {
91
+ displayValue.value = toDisplayValue(val);
92
+ }
93
+ },
94
+ { immediate: true }
95
+ );
96
+ const isControlled = computed(() => props.modelValue !== void 0);
97
+ const internalValue = ref(props.modelValue ?? null);
98
+ const currentValue = computed(
99
+ () => isControlled.value ? props.modelValue ?? null : internalValue.value
100
+ );
101
+ function commitValue(val) {
102
+ let finalVal = val;
103
+ if (finalVal !== null) {
104
+ finalVal = clampValue(finalVal, props.min, props.max);
105
+ if (props.precision !== void 0) {
106
+ finalVal = formatPrecision(finalVal, props.precision);
107
+ }
108
+ }
109
+ if (!isControlled.value) {
110
+ internalValue.value = finalVal;
111
+ }
112
+ emit("update:modelValue", finalVal);
113
+ emit("change", finalVal);
114
+ displayValue.value = toDisplayValue(finalVal);
115
+ }
116
+ function handleStep(direction) {
117
+ if (props.disabled || props.readonly) return;
118
+ const next = stepValue(
119
+ currentValue.value,
120
+ props.step,
121
+ direction,
122
+ props.min,
123
+ props.max,
124
+ props.precision
125
+ );
126
+ commitValue(next);
127
+ }
128
+ function handleInput(e) {
129
+ const target = e.target;
130
+ displayValue.value = target.value;
131
+ }
132
+ function handleBlur(e) {
133
+ focused.value = false;
134
+ const parsed = parseValue(displayValue.value);
135
+ commitValue(parsed);
136
+ emit("blur", e);
137
+ }
138
+ function handleFocus(e) {
139
+ focused.value = true;
140
+ if (props.formatter && currentValue.value !== null) {
141
+ displayValue.value = String(currentValue.value);
142
+ }
143
+ emit("focus", e);
144
+ }
145
+ function handleKeyDown(e) {
146
+ if (!props.keyboard || props.disabled || props.readonly) return;
147
+ if (e.key === "ArrowUp") {
148
+ e.preventDefault();
149
+ handleStep("up");
150
+ } else if (e.key === "ArrowDown") {
151
+ e.preventDefault();
152
+ handleStep("down");
153
+ } else if (e.key === "Enter") {
154
+ const parsed = parseValue(displayValue.value);
155
+ commitValue(parsed);
156
+ }
157
+ }
158
+ const atMin = computed(() => isAtMin(currentValue.value, props.min));
159
+ const atMax = computed(() => isAtMax(currentValue.value, props.max));
160
+ const wrapperClasses = computed(
161
+ () => classNames(
162
+ getInputNumberWrapperClasses(props.disabled),
163
+ getInputNumberStatusClasses(props.status),
164
+ getInputNumberSizeClasses(props.size),
165
+ focused.value && `ring-2 ${getInputNumberFocusRingColor(props.status)}`,
166
+ coerceClassValue(attrs.class)
167
+ )
168
+ );
169
+ const inputClasses = computed(
170
+ () => getInputNumberInputClasses(
171
+ props.size,
172
+ props.controls && props.controlsPosition === "right",
173
+ props.controls && props.controlsPosition === "both"
174
+ )
175
+ );
176
+ onMounted(() => {
177
+ if (props.autoFocus && inputRef.value) {
178
+ inputRef.value.focus();
179
+ }
180
+ });
181
+ return () => {
182
+ const children = [];
183
+ if (props.controls && props.controlsPosition === "both") {
184
+ children.push(
185
+ h(
186
+ "button",
187
+ {
188
+ type: "button",
189
+ tabindex: -1,
190
+ "aria-label": "Decrease",
191
+ class: getInputNumberSideButtonClasses("left", props.disabled || atMin.value),
192
+ disabled: props.disabled || atMin.value,
193
+ onMousedown: (e) => e.preventDefault(),
194
+ onClick: () => handleStep("down")
195
+ },
196
+ [
197
+ h(
198
+ "svg",
199
+ {
200
+ xmlns: "http://www.w3.org/2000/svg",
201
+ viewBox: "0 0 24 24",
202
+ fill: "none",
203
+ stroke: "currentColor",
204
+ "stroke-width": "2",
205
+ class: "w-4 h-4"
206
+ },
207
+ [h("path", { d: inputNumberMinusIconPathD })]
208
+ )
209
+ ]
210
+ )
211
+ );
212
+ }
213
+ children.push(
214
+ h("input", {
215
+ ref: inputRef,
216
+ type: "text",
217
+ inputmode: "decimal",
218
+ role: "spinbutton",
219
+ "aria-valuemin": props.min === -Infinity ? void 0 : props.min,
220
+ "aria-valuemax": props.max === Infinity ? void 0 : props.max,
221
+ "aria-valuenow": currentValue.value ?? void 0,
222
+ class: inputClasses.value,
223
+ value: displayValue.value,
224
+ placeholder: props.placeholder,
225
+ disabled: props.disabled,
226
+ readonly: props.readonly,
227
+ name: props.name,
228
+ id: props.id,
229
+ onInput: handleInput,
230
+ onBlur: handleBlur,
231
+ onFocus: handleFocus,
232
+ onKeydown: handleKeyDown
233
+ })
234
+ );
235
+ if (props.controls && props.controlsPosition === "both") {
236
+ children.push(
237
+ h(
238
+ "button",
239
+ {
240
+ type: "button",
241
+ tabindex: -1,
242
+ "aria-label": "Increase",
243
+ class: getInputNumberSideButtonClasses("right", props.disabled || atMax.value),
244
+ disabled: props.disabled || atMax.value,
245
+ onMousedown: (e) => e.preventDefault(),
246
+ onClick: () => handleStep("up")
247
+ },
248
+ [
249
+ h(
250
+ "svg",
251
+ {
252
+ xmlns: "http://www.w3.org/2000/svg",
253
+ viewBox: "0 0 24 24",
254
+ fill: "none",
255
+ stroke: "currentColor",
256
+ "stroke-width": "2",
257
+ class: "w-4 h-4"
258
+ },
259
+ [h("path", { d: inputNumberPlusIconPathD })]
260
+ )
261
+ ]
262
+ )
263
+ );
264
+ }
265
+ if (props.controls && props.controlsPosition === "right") {
266
+ children.push(
267
+ h("div", { class: inputNumberControlsRightClasses }, [
268
+ h(
269
+ "button",
270
+ {
271
+ type: "button",
272
+ tabindex: -1,
273
+ "aria-label": "Increase",
274
+ class: getInputNumberStepButtonClasses("up", props.disabled || atMax.value),
275
+ disabled: props.disabled || atMax.value,
276
+ onMousedown: (e) => e.preventDefault(),
277
+ onClick: () => handleStep("up")
278
+ },
279
+ [
280
+ h(
281
+ "svg",
282
+ {
283
+ xmlns: "http://www.w3.org/2000/svg",
284
+ viewBox: "0 0 24 24",
285
+ fill: "currentColor",
286
+ class: "w-3 h-3"
287
+ },
288
+ [h("path", { d: inputNumberUpIconPathD })]
289
+ )
290
+ ]
291
+ ),
292
+ h(
293
+ "button",
294
+ {
295
+ type: "button",
296
+ tabindex: -1,
297
+ "aria-label": "Decrease",
298
+ class: getInputNumberStepButtonClasses("down", props.disabled || atMin.value),
299
+ disabled: props.disabled || atMin.value,
300
+ onMousedown: (e) => e.preventDefault(),
301
+ onClick: () => handleStep("down")
302
+ },
303
+ [
304
+ h(
305
+ "svg",
306
+ {
307
+ xmlns: "http://www.w3.org/2000/svg",
308
+ viewBox: "0 0 24 24",
309
+ fill: "currentColor",
310
+ class: "w-3 h-3"
311
+ },
312
+ [h("path", { d: inputNumberDownIconPathD })]
313
+ )
314
+ ]
315
+ )
316
+ ])
317
+ );
318
+ }
319
+ return h(
320
+ "div",
321
+ {
322
+ class: wrapperClasses.value
323
+ },
324
+ children
325
+ );
326
+ };
327
+ }
328
+ });
329
+ var InputNumber_default = InputNumber;
330
+
331
+ export { InputNumber, InputNumber_default };
@@ -1,4 +1,4 @@
1
- import { Table } from './chunk-ZTJTIQZY.mjs';
1
+ import { Table } from './chunk-DEFEAEYE.mjs';
2
2
  import { Select } from './chunk-GALASVSG.mjs';
3
3
  import { Pagination } from './chunk-NHCCPMLC.mjs';
4
4
  import { Input } from './chunk-VURU7TLN.mjs';