@ai-matrx/records 0.57.0 → 0.57.1
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 +25 -0
- package/dist/core/index.cjs +94 -17
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +36 -3
- package/dist/core/index.d.ts +36 -3
- package/dist/core/index.js +94 -17
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +84 -11
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +56 -2
- package/dist/react/index.d.ts +56 -2
- package/dist/react/index.js +84 -11
- package/dist/react/index.js.map +1 -1
- package/dist/{types-DC2tYa4w.d.cts → types-Bsamaf-a.d.cts} +39 -2
- package/dist/{types-DC2tYa4w.d.ts → types-Bsamaf-a.d.ts} +39 -2
- package/dist/use-cases/index.d.cts +2 -2
- package/dist/use-cases/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -76,6 +76,7 @@ __export(src_exports, {
|
|
|
76
76
|
VALUE_ALTERNATE_KEYS: () => VALUE_ALTERNATE_KEYS,
|
|
77
77
|
VALUE_ENVELOPE_KEYS: () => VALUE_ENVELOPE_KEYS,
|
|
78
78
|
actionRefusals: () => actionRefusals,
|
|
79
|
+
allowsOtherValues: () => allowsOtherValues,
|
|
79
80
|
archivedByLine: () => archivedByLine,
|
|
80
81
|
archivedWhen: () => archivedWhen,
|
|
81
82
|
asPermissionLevel: () => asPermissionLevel,
|
|
@@ -249,6 +250,11 @@ function highestLevel(left, right) {
|
|
|
249
250
|
return ORDINAL[left] >= ORDINAL[right] ? left : right;
|
|
250
251
|
}
|
|
251
252
|
|
|
253
|
+
// src/field.ts
|
|
254
|
+
function allowsOtherValues(field) {
|
|
255
|
+
return field.type === "list" && field.config?.["allow_other"] === true;
|
|
256
|
+
}
|
|
257
|
+
|
|
252
258
|
// src/choice.ts
|
|
253
259
|
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
254
260
|
function optionKey(option) {
|