@ai-matrx/records-ui 0.115.90 → 0.115.92
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 +28 -1
- package/dist/helpers.d.cts +4 -0
- package/dist/helpers.d.ts +4 -0
- package/dist/index.cjs +2488 -1395
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +192 -4
- package/dist/index.d.ts +192 -4
- package/dist/index.js +2445 -1352
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +5 -6
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +5 -6
- package/dist/pickers.js.map +1 -1
- package/package.json +5 -5
package/dist/pickers.cjs
CHANGED
|
@@ -4502,13 +4502,10 @@ function formulaSourceArchived(field, document2) {
|
|
|
4502
4502
|
|
|
4503
4503
|
// src/values.tsx
|
|
4504
4504
|
var import_records18 = require("@ai-matrx/records");
|
|
4505
|
+
var import_uuid4 = require("@ai-matrx/kit/uuid");
|
|
4505
4506
|
|
|
4506
4507
|
// src/userIds.ts
|
|
4507
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
4508
4508
|
var PERSON_NOT_IN_ORGANIZATION = "A person no longer in this organization";
|
|
4509
|
-
function isUserId(value) {
|
|
4510
|
-
return typeof value === "string" && UUID.test(value);
|
|
4511
|
-
}
|
|
4512
4509
|
|
|
4513
4510
|
// src/personNames.ts
|
|
4514
4511
|
var import_react33 = require("react");
|
|
@@ -4742,6 +4739,7 @@ function PersonPicker({ field, value, onChange, disabled, id, className, autoOpe
|
|
|
4742
4739
|
}
|
|
4743
4740
|
|
|
4744
4741
|
// src/memberNames.ts
|
|
4742
|
+
var import_uuid3 = require("@ai-matrx/kit/uuid");
|
|
4745
4743
|
function memberWords(member) {
|
|
4746
4744
|
const name = member?.name?.trim();
|
|
4747
4745
|
if (name) return name;
|
|
@@ -4952,7 +4950,7 @@ function LivePersonChip({ id, name }) {
|
|
|
4952
4950
|
var NEVER_AN_ID_KINDS = /* @__PURE__ */ new Set(["member", "person", "number", "currency", "percent", "date", "datetime", "checkbox", "boolean"]);
|
|
4953
4951
|
function personWordsOf(kind, value) {
|
|
4954
4952
|
const items = Array.isArray(value) ? value : [value];
|
|
4955
|
-
const ids = items.filter(
|
|
4953
|
+
const ids = items.filter(import_uuid4.isUuidShape);
|
|
4956
4954
|
if (ids.length === 0) return null;
|
|
4957
4955
|
const wordsColumn = !NEVER_AN_ID_KINDS.has(kind);
|
|
4958
4956
|
const named = ids.map((id) => knownPerson(id));
|
|
@@ -5660,10 +5658,11 @@ var import_react44 = require("@ai-matrx/records/react");
|
|
|
5660
5658
|
var import_design_system25 = require("@ai-matrx/design-system");
|
|
5661
5659
|
|
|
5662
5660
|
// src/personRetype.ts
|
|
5661
|
+
var import_uuid5 = require("@ai-matrx/kit/uuid");
|
|
5663
5662
|
var PAGE = 500;
|
|
5664
5663
|
var CEILING = 2e4;
|
|
5665
5664
|
function idsIn(value) {
|
|
5666
|
-
return (Array.isArray(value) ? value : [value]).filter(
|
|
5665
|
+
return (Array.isArray(value) ? value : [value]).filter(import_uuid5.isUuidShape);
|
|
5667
5666
|
}
|
|
5668
5667
|
async function readPersonColumn(client, tableId, key) {
|
|
5669
5668
|
const out = [];
|