@shwfed/config 2.11.4 → 2.11.6
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/dist/module.json +1 -1
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue +1 -0
- package/dist/runtime/components/actions/config.vue +2 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +8 -8
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +3 -4
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +3 -3
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +5 -6
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue +5 -6
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +7 -3
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +7 -3
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +81 -2
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +38 -4
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +132 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +28 -2
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +4 -4
- package/dist/runtime/components/table/config.vue +1 -0
- package/dist/runtime/components/table/row-provider.vue +2 -2
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
- package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +11 -1
- package/dist/runtime/components/ui/date-picker/DatePicker.vue +8 -1
- package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +11 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +11 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +4 -0
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +11 -1
- package/dist/runtime/utils/cel-context.d.ts +1 -0
- package/dist/runtime/utils/cel-context.js +28 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -1
- package/dist/runtime/vendor/cel-js/PROMPT.md +7 -0
- package/dist/runtime/vendor/cel-js/lib/functions.js +25 -1
- package/package.json +3 -8
- package/dist/mcp.mjs +0 -102267
- package/dist/preview/assets/FieldGroup.vue_vue_type_script_setup_true_lang-BE68tZWF.js +0 -1
- package/dist/preview/assets/badge-CGMjdhLX.js +0 -1
- package/dist/preview/assets/config-B7TZ-128.js +0 -1
- package/dist/preview/assets/config-BSym_jQg.js +0 -1
- package/dist/preview/assets/config-ByCFJbd-.js +0 -1
- package/dist/preview/assets/config-C4cv2S64.js +0 -1
- package/dist/preview/assets/config-ChrJHusi.js +0 -1
- package/dist/preview/assets/config-CxbYENZ0.js +0 -1
- package/dist/preview/assets/config-DFS2XL3-.js +0 -1
- package/dist/preview/assets/config-DWj1CTai.js +0 -1
- package/dist/preview/assets/config-DZI21_UB.js +0 -1
- package/dist/preview/assets/config-D_O4ACtH.js +0 -1
- package/dist/preview/assets/config-DjA8bfLm.js +0 -1
- package/dist/preview/assets/config-DwPGLI3R.js +0 -1
- package/dist/preview/assets/config-dkVvsr4h.js +0 -1
- package/dist/preview/assets/config-hsH0bSZh.js +0 -1
- package/dist/preview/assets/config-xrfje67L.js +0 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-BGk00yfB.js +0 -1
- package/dist/preview/assets/index-B4oT9ZrQ.js +0 -1
- package/dist/preview/assets/index-BSQlKkJR.js +0 -775
- package/dist/preview/assets/index-CzQKNngS.js +0 -1
- package/dist/preview/assets/index-DPFQgj9g.css +0 -1
- package/dist/preview/assets/item-D4gmvDO-.js +0 -1
- package/dist/preview/assets/runtime--e0UxK6b.js +0 -1
- package/dist/preview/assets/runtime-BWH8ForT.js +0 -1
- package/dist/preview/assets/runtime-BgO2briD.js +0 -1
- package/dist/preview/assets/runtime-BmEP7xID.js +0 -1
- package/dist/preview/assets/runtime-C66GF-2d.js +0 -1
- package/dist/preview/assets/runtime-CJCOS6D_.js +0 -1
- package/dist/preview/assets/runtime-CREolKJd.js +0 -1
- package/dist/preview/assets/runtime-CjU46djh.js +0 -1
- package/dist/preview/assets/runtime-e59FkBkL.js +0 -1
- package/dist/preview/assets/runtime-pYLX1Bb-.js +0 -1
- package/dist/preview/assets/runtime-wvP7jhBK.js +0 -1
- package/dist/preview/assets/schema-meta-C4Ttq3eE.js +0 -1
- package/dist/preview/index.html +0 -19
|
@@ -4,7 +4,7 @@ import { TYPES, Type } from "./registry.js";
|
|
|
4
4
|
import { register as registerOptional, optionalOf } from "./optional.js";
|
|
5
5
|
import { objKeys, arrayFrom } from "./globals.js";
|
|
6
6
|
import { TZDate } from "@date-fns/tz";
|
|
7
|
-
import { startOfDay, startOfWeek, startOfMonth, startOfYear, endOfDay, endOfWeek, endOfMonth, endOfYear, addDays, addWeeks, addMonths, addYears, addHours, addMinutes, setDate as setDayOfMonth, setMonth, setYear, format as formatDate } from "date-fns";
|
|
7
|
+
import { startOfDay, startOfWeek, startOfMonth, startOfYear, endOfDay, endOfWeek, endOfMonth, endOfYear, addDays, addWeeks, addMonths, addYears, addHours, addMinutes, setDate as setDayOfMonth, setMonth, setYear, format as formatDate, differenceInMilliseconds, differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays, differenceInWeeks, differenceInMonths, differenceInYears } from "date-fns";
|
|
8
8
|
function toNum(v) {
|
|
9
9
|
if (v instanceof Decimal) return v.toNumber();
|
|
10
10
|
if (typeof v === "bigint") return Number(v);
|
|
@@ -387,6 +387,30 @@ export function registerFunctions(registry) {
|
|
|
387
387
|
throw evaluationError("invalid_unit", `offset(): unknown unit "${unit}"`);
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
|
+
functionOverload("Date.diff(Date, string): number", (d, other, unit) => {
|
|
391
|
+
const left = d;
|
|
392
|
+
const right = other;
|
|
393
|
+
switch (unit.replace(/s$/, "")) {
|
|
394
|
+
case "millisecond":
|
|
395
|
+
return Decimal.from(differenceInMilliseconds(left, right));
|
|
396
|
+
case "second":
|
|
397
|
+
return Decimal.from(differenceInSeconds(left, right));
|
|
398
|
+
case "minute":
|
|
399
|
+
return Decimal.from(differenceInMinutes(left, right));
|
|
400
|
+
case "hour":
|
|
401
|
+
return Decimal.from(differenceInHours(left, right));
|
|
402
|
+
case "day":
|
|
403
|
+
return Decimal.from(differenceInDays(left, right));
|
|
404
|
+
case "week":
|
|
405
|
+
return Decimal.from(differenceInWeeks(left, right));
|
|
406
|
+
case "month":
|
|
407
|
+
return Decimal.from(differenceInMonths(left, right));
|
|
408
|
+
case "year":
|
|
409
|
+
return Decimal.from(differenceInYears(left, right));
|
|
410
|
+
default:
|
|
411
|
+
throw evaluationError("invalid_unit", `diff(): unknown unit "${unit}"`);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
390
414
|
functionOverload("Date.set(string, number): Date", (d, field, value) => {
|
|
391
415
|
const date = d;
|
|
392
416
|
const val = toNum(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shwfed/config",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.6",
|
|
4
4
|
"description": "Configurable UI for SHWFED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"main": "./dist/module.mjs",
|
|
16
|
-
"bin": {
|
|
17
|
-
"config": "./dist/mcp.mjs"
|
|
18
|
-
},
|
|
19
16
|
"typesVersions": {
|
|
20
17
|
"*": {
|
|
21
18
|
".": [
|
|
@@ -31,7 +28,7 @@
|
|
|
31
28
|
],
|
|
32
29
|
"scripts": {
|
|
33
30
|
"prepare": "husky && nuxt prepare",
|
|
34
|
-
"prepack": "nuxt-module-build build
|
|
31
|
+
"prepack": "nuxt-module-build build",
|
|
35
32
|
"dev": "npm run dev:prepare && nuxt dev playground",
|
|
36
33
|
"dev:build": "nuxt build playground",
|
|
37
34
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
|
|
@@ -53,7 +50,6 @@
|
|
|
53
50
|
"@internationalized/date": "^3.12.1",
|
|
54
51
|
"@intlify/unplugin-vue-i18n": "^11.2.3",
|
|
55
52
|
"@lezer/highlight": "^1.2.3",
|
|
56
|
-
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
57
53
|
"@number-flow/vue": "^0.5.0",
|
|
58
54
|
"@nuxt/kit": "^4.4.5",
|
|
59
55
|
"@tailwindcss/typography": "^0.5.19",
|
|
@@ -76,8 +72,7 @@
|
|
|
76
72
|
"tailwindcss": "^4.3.0",
|
|
77
73
|
"vaul-vue": "^0.4.1",
|
|
78
74
|
"vue-i18n": "^11.4.4",
|
|
79
|
-
"vue-sonner": "^2.0.0"
|
|
80
|
-
"zod": "^4.4.3"
|
|
75
|
+
"vue-sonner": "^2.0.0"
|
|
81
76
|
},
|
|
82
77
|
"devDependencies": {
|
|
83
78
|
"@commitlint/cli": "^21.0.0",
|