@solidxai/core-ui 0.1.9-beta.13 → 0.1.9-beta.14

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 (78) hide show
  1. package/dist/components/common/SettingsComponent.js +1 -1
  2. package/dist/components/common/SettingsComponent.js.map +1 -1
  3. package/dist/components/common/SettingsComponent.module.css +17 -0
  4. package/dist/components/common/SettingsComponent.tsx +1 -1
  5. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  6. package/dist/components/core/chatter/SolidChatter.js +24 -11
  7. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  8. package/dist/components/core/chatter/SolidChatter.tsx +20 -6
  9. package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
  10. package/dist/components/core/chatter/SolidChatterHeader.js +1 -1
  11. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  12. package/dist/components/core/chatter/SolidChatterHeader.tsx +4 -0
  13. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts +1 -0
  14. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
  15. package/dist/components/core/chatter/SolidChatterMessageBox.js +150 -11
  16. package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
  17. package/dist/components/core/chatter/SolidChatterMessageBox.tsx +252 -11
  18. package/dist/components/core/chatter/SolidMessageComposer.js +2 -2
  19. package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
  20. package/dist/components/core/chatter/SolidMessageComposer.tsx +2 -2
  21. package/dist/components/core/chatter/chatter.module.css +1 -1
  22. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  23. package/dist/components/core/common/SolidGlobalSearchElement.js +13 -2
  24. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  25. package/dist/components/core/common/SolidGlobalSearchElement.tsx +11 -2
  26. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  27. package/dist/components/core/form/SolidFormView.js +3 -0
  28. package/dist/components/core/form/SolidFormView.js.map +1 -1
  29. package/dist/components/core/form/SolidFormView.tsx +3 -0
  30. package/dist/components/core/form/field-quality-check-fixes.md +201 -0
  31. package/dist/components/core/form/fields/SolidLongTextField.d.ts +0 -1
  32. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  33. package/dist/components/core/form/fields/SolidLongTextField.js +0 -52
  34. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  35. package/dist/components/core/form/fields/SolidLongTextField.tsx +0 -95
  36. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  37. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +16 -14
  38. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  39. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +9 -1
  40. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  41. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +12 -12
  42. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  43. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +10 -6
  44. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  45. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +9 -7
  46. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  47. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +7 -1
  48. package/dist/components/core/list/field-quality-check-fixes.md +178 -0
  49. package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
  50. package/dist/components/layout/AdminTopHeader.js +5 -1
  51. package/dist/components/layout/AdminTopHeader.js.map +1 -1
  52. package/dist/components/layout/AdminTopHeader.tsx +5 -1
  53. package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts +2 -1
  54. package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
  55. package/dist/components/shad-cn-ui/SolidAutocomplete.js +45 -6
  56. package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
  57. package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +68 -22
  58. package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
  59. package/dist/components/shad-cn-ui/SolidDialog.js +38 -4
  60. package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
  61. package/dist/components/shad-cn-ui/SolidDialog.tsx +47 -3
  62. package/dist/helpers/registry.js.map +1 -1
  63. package/dist/helpers/registry.ts +1 -1
  64. package/dist/index.d.ts +1 -1
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js.map +1 -1
  67. package/dist/index.ts +1 -0
  68. package/dist/redux/api/solidChatterMessageApi.d.ts +2 -1
  69. package/dist/redux/api/solidChatterMessageApi.d.ts.map +1 -1
  70. package/dist/redux/api/solidChatterMessageApi.js +11 -1
  71. package/dist/redux/api/solidChatterMessageApi.js.map +1 -1
  72. package/dist/redux/api/solidChatterMessageApi.ts +10 -1
  73. package/dist/redux/store/defaultStoreConfig.d.ts +1 -0
  74. package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
  75. package/dist/resources/globals.css +5 -0
  76. package/dist/resources/shadcn-base.css +24 -0
  77. package/dist/types/index.d.ts +2 -0
  78. package/package.json +1 -1
@@ -172,8 +172,17 @@ const transformRulesToFilters = (input: any, viewData: any) => {
172
172
  const processRule = (rule: any) => {
173
173
  if (rule.value !== undefined && rule.value !== null) {
174
174
 
175
- // Ensure rule.value is always an array
176
- let values = typeof rule.value[0] === "object" ? rule.value.map((i: any) => i?.value ? i?.value : i) : rule?.value;
175
+ // Ensure rule.value is always an array of primitive values.
176
+ // Mixed arrays like ["failed", { label: "pending", value: "pending" }]
177
+ // must be normalized before query serialization.
178
+ const rawValues = Array.isArray(rule?.value) ? rule.value : [rule?.value];
179
+ let values = rawValues.map((item: any) => {
180
+ if (item && typeof item === "object") {
181
+ if (Object.prototype.hasOwnProperty.call(item, "value")) return item.value;
182
+ if (Object.prototype.hasOwnProperty.call(item, "label")) return item.label;
183
+ }
184
+ return item;
185
+ });
177
186
  if (rule.matchMode !== '$in' && rule.matchMode !== '$notIn' && rule.matchMode !== '$between' && rule.matchMode !== '$null' && rule.matchMode !== '$notNull') {
178
187
  values = values[0];
179
188
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SolidFormView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormView.tsx"],"names":[],"mappings":"AA4DA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,mBAAmB,CAAC,EAAE,GAAG,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AAyBF,eAAO,MAAM,uBAAuB,WAAY,GAAG,EAAE,KAAG,GAQvD,CAAA;AACD,eAAO,MAAM,sBAAsB,QAAS,MAAM,uBAAuB,OAAO,MAAM,EAAE,GAAG,CAAC,QAa3F,CAAC;AA0UF,QAAA,MAAM,aAAa,WAAY,kBAAkB,4CA66ChD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"SolidFormView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormView.tsx"],"names":[],"mappings":"AA4DA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,mBAAmB,CAAC,EAAE,GAAG,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AAyBF,eAAO,MAAM,uBAAuB,WAAY,GAAG,EAAE,KAAG,GAQvD,CAAA;AACD,eAAO,MAAM,sBAAsB,QAAS,MAAM,uBAAuB,OAAO,MAAM,EAAE,GAAG,CAAC,QAa3F,CAAC;AA0UF,QAAA,MAAM,aAAa,WAAY,kBAAkB,4CAg7ChD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1180,6 +1180,9 @@ var SolidFormView = function (params) {
1180
1180
  if (params.parentData) {
1181
1181
  fieldContext.parentData = params.parentData;
1182
1182
  }
1183
+ if (params.parentFieldName) {
1184
+ fieldContext.parentFieldName = params.parentFieldName;
1185
+ }
1183
1186
  var solidField = fieldFactory(fieldMetadata === null || fieldMetadata === void 0 ? void 0 : fieldMetadata.type, fieldContext);
1184
1187
  if (!(fieldMetadata === null || fieldMetadata === void 0 ? void 0 : fieldMetadata.type)) {
1185
1188
  var errorMessage = ((_g = formLayoutField === null || formLayoutField === void 0 ? void 0 : formLayoutField.attrs) === null || _g === void 0 ? void 0 : _g.label) ? (_h = formLayoutField === null || formLayoutField === void 0 ? void 0 : formLayoutField.attrs) === null || _h === void 0 ? void 0 : _h.label : formLayoutField.attrs.name;