@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.
Files changed (146) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue +1 -0
  3. package/dist/runtime/components/actions/config.vue +2 -0
  4. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
  5. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
  6. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
  7. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
  8. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
  9. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
  10. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
  11. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
  12. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
  13. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
  14. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +18 -18
  15. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +18 -18
  16. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
  17. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
  18. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
  19. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
  20. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
  21. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
  22. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
  23. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
  24. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
  25. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
  26. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
  27. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
  28. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +18 -18
  29. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +18 -18
  30. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
  31. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
  32. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
  33. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
  34. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
  35. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
  36. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +8 -8
  37. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +8 -8
  38. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +8 -8
  39. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +8 -8
  40. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +8 -8
  41. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +8 -8
  42. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +8 -8
  43. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +8 -8
  44. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +3 -4
  45. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +3 -3
  46. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +2 -2
  47. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +2 -2
  48. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +5 -6
  49. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue +5 -6
  50. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  51. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +2 -2
  52. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue +2 -2
  53. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +2 -2
  54. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +2 -2
  55. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
  56. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
  57. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/runtime.vue +2 -2
  58. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/runtime.vue +2 -2
  59. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  60. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
  61. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
  62. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/runtime.vue +2 -2
  63. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/runtime.vue +2 -2
  64. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  65. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +2 -2
  66. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  67. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +2 -2
  68. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  69. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  70. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
  71. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  72. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  73. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
  74. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  75. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  76. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  77. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  78. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
  79. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  80. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  81. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
  82. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +7 -3
  83. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +7 -3
  84. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  85. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  86. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
  87. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  88. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  89. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
  90. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +81 -2
  91. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +38 -4
  92. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +132 -0
  93. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +28 -2
  94. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +4 -4
  95. package/dist/runtime/components/table/config.vue +1 -0
  96. package/dist/runtime/components/table/row-provider.vue +2 -2
  97. package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
  98. package/dist/runtime/components/ui/date-picker/DatePicker.d.vue.ts +11 -1
  99. package/dist/runtime/components/ui/date-picker/DatePicker.vue +8 -1
  100. package/dist/runtime/components/ui/date-picker/DatePicker.vue.d.ts +11 -1
  101. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +11 -1
  102. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +4 -0
  103. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +11 -1
  104. package/dist/runtime/utils/cel-context.d.ts +1 -0
  105. package/dist/runtime/utils/cel-context.js +28 -0
  106. package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -1
  107. package/dist/runtime/vendor/cel-js/PROMPT.md +7 -0
  108. package/dist/runtime/vendor/cel-js/lib/functions.js +25 -1
  109. package/package.json +3 -8
  110. package/dist/mcp.mjs +0 -102267
  111. package/dist/preview/assets/FieldGroup.vue_vue_type_script_setup_true_lang-BE68tZWF.js +0 -1
  112. package/dist/preview/assets/badge-CGMjdhLX.js +0 -1
  113. package/dist/preview/assets/config-B7TZ-128.js +0 -1
  114. package/dist/preview/assets/config-BSym_jQg.js +0 -1
  115. package/dist/preview/assets/config-ByCFJbd-.js +0 -1
  116. package/dist/preview/assets/config-C4cv2S64.js +0 -1
  117. package/dist/preview/assets/config-ChrJHusi.js +0 -1
  118. package/dist/preview/assets/config-CxbYENZ0.js +0 -1
  119. package/dist/preview/assets/config-DFS2XL3-.js +0 -1
  120. package/dist/preview/assets/config-DWj1CTai.js +0 -1
  121. package/dist/preview/assets/config-DZI21_UB.js +0 -1
  122. package/dist/preview/assets/config-D_O4ACtH.js +0 -1
  123. package/dist/preview/assets/config-DjA8bfLm.js +0 -1
  124. package/dist/preview/assets/config-DwPGLI3R.js +0 -1
  125. package/dist/preview/assets/config-dkVvsr4h.js +0 -1
  126. package/dist/preview/assets/config-hsH0bSZh.js +0 -1
  127. package/dist/preview/assets/config-xrfje67L.js +0 -1
  128. package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-BGk00yfB.js +0 -1
  129. package/dist/preview/assets/index-B4oT9ZrQ.js +0 -1
  130. package/dist/preview/assets/index-BSQlKkJR.js +0 -775
  131. package/dist/preview/assets/index-CzQKNngS.js +0 -1
  132. package/dist/preview/assets/index-DPFQgj9g.css +0 -1
  133. package/dist/preview/assets/item-D4gmvDO-.js +0 -1
  134. package/dist/preview/assets/runtime--e0UxK6b.js +0 -1
  135. package/dist/preview/assets/runtime-BWH8ForT.js +0 -1
  136. package/dist/preview/assets/runtime-BgO2briD.js +0 -1
  137. package/dist/preview/assets/runtime-BmEP7xID.js +0 -1
  138. package/dist/preview/assets/runtime-C66GF-2d.js +0 -1
  139. package/dist/preview/assets/runtime-CJCOS6D_.js +0 -1
  140. package/dist/preview/assets/runtime-CREolKJd.js +0 -1
  141. package/dist/preview/assets/runtime-CjU46djh.js +0 -1
  142. package/dist/preview/assets/runtime-e59FkBkL.js +0 -1
  143. package/dist/preview/assets/runtime-pYLX1Bb-.js +0 -1
  144. package/dist/preview/assets/runtime-wvP7jhBK.js +0 -1
  145. package/dist/preview/assets/schema-meta-C4Ttq3eE.js +0 -1
  146. 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.4",
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 && vite build --config vite.mcp.config.ts && vite build --config vite.preview.config.ts && chmod +x dist/mcp.mjs",
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",