@open-mercato/core 0.6.4-develop.4382.1.6b4f656b77 → 0.6.5-canary.4385.1.b321f97ee5

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 (135) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/generated/entities/customer_settings/index.js +2 -0
  3. package/dist/generated/entities/customer_settings/index.js.map +2 -2
  4. package/dist/generated/entities/dictionary/index.js +2 -0
  5. package/dist/generated/entities/dictionary/index.js.map +2 -2
  6. package/dist/generated/entity-fields-registry.js +2 -0
  7. package/dist/generated/entity-fields-registry.js.map +2 -2
  8. package/dist/modules/catalog/components/PriceKindSettings.js +2 -1
  9. package/dist/modules/catalog/components/PriceKindSettings.js.map +2 -2
  10. package/dist/modules/customers/api/dictionaries/[kind]/route.js +21 -18
  11. package/dist/modules/customers/api/dictionaries/[kind]/route.js.map +2 -2
  12. package/dist/modules/customers/api/dictionaries/cache.js +2 -1
  13. package/dist/modules/customers/api/dictionaries/cache.js.map +2 -2
  14. package/dist/modules/customers/api/dictionaries/context.js +1 -0
  15. package/dist/modules/customers/api/dictionaries/context.js.map +2 -2
  16. package/dist/modules/customers/api/settings/dictionary-sort-modes/route.js +223 -0
  17. package/dist/modules/customers/api/settings/dictionary-sort-modes/route.js.map +7 -0
  18. package/dist/modules/customers/commands/settings.js +31 -0
  19. package/dist/modules/customers/commands/settings.js.map +2 -2
  20. package/dist/modules/customers/components/CustomersConfigurationSections.js +3 -0
  21. package/dist/modules/customers/components/CustomersConfigurationSections.js.map +2 -2
  22. package/dist/modules/customers/components/DictionarySortSettings.js +210 -0
  23. package/dist/modules/customers/components/DictionarySortSettings.js.map +7 -0
  24. package/dist/modules/customers/components/detail/ActivityForm.js +1 -0
  25. package/dist/modules/customers/components/detail/ActivityForm.js.map +2 -2
  26. package/dist/modules/customers/components/detail/AnnualRevenueField.js +1 -0
  27. package/dist/modules/customers/components/detail/AnnualRevenueField.js.map +2 -2
  28. package/dist/modules/customers/components/detail/DealForm.js +1 -0
  29. package/dist/modules/customers/components/detail/DealForm.js.map +2 -2
  30. package/dist/modules/customers/components/detail/create/DealCurrencyField.js +1 -0
  31. package/dist/modules/customers/components/detail/create/DealCurrencyField.js.map +2 -2
  32. package/dist/modules/customers/components/detail/hooks/useCustomerDictionary.js +2 -1
  33. package/dist/modules/customers/components/detail/hooks/useCustomerDictionary.js.map +2 -2
  34. package/dist/modules/customers/components/formConfig.js +1 -0
  35. package/dist/modules/customers/components/formConfig.js.map +2 -2
  36. package/dist/modules/customers/data/entities.js +3 -0
  37. package/dist/modules/customers/data/entities.js.map +2 -2
  38. package/dist/modules/customers/data/validators.js +7 -0
  39. package/dist/modules/customers/data/validators.js.map +2 -2
  40. package/dist/modules/customers/migrations/Migration20260602202147_customers.js +13 -0
  41. package/dist/modules/customers/migrations/Migration20260602202147_customers.js.map +7 -0
  42. package/dist/modules/dictionaries/api/[dictionaryId]/entries/route.js +12 -5
  43. package/dist/modules/dictionaries/api/[dictionaryId]/entries/route.js.map +2 -2
  44. package/dist/modules/dictionaries/api/[dictionaryId]/route.js +8 -0
  45. package/dist/modules/dictionaries/api/[dictionaryId]/route.js.map +2 -2
  46. package/dist/modules/dictionaries/api/openapi.js +2 -0
  47. package/dist/modules/dictionaries/api/openapi.js.map +2 -2
  48. package/dist/modules/dictionaries/api/route.js +7 -0
  49. package/dist/modules/dictionaries/api/route.js.map +2 -2
  50. package/dist/modules/dictionaries/components/DictionariesManager.js +64 -6
  51. package/dist/modules/dictionaries/components/DictionariesManager.js.map +2 -2
  52. package/dist/modules/dictionaries/components/DictionaryEntriesEditor.js +1 -1
  53. package/dist/modules/dictionaries/components/DictionaryEntriesEditor.js.map +2 -2
  54. package/dist/modules/dictionaries/components/DictionaryEntrySelect.js +7 -4
  55. package/dist/modules/dictionaries/components/DictionaryEntrySelect.js.map +2 -2
  56. package/dist/modules/dictionaries/components/DictionarySelectControl.js +1 -0
  57. package/dist/modules/dictionaries/components/DictionarySelectControl.js.map +2 -2
  58. package/dist/modules/dictionaries/components/dictionaryAppearance.js +2 -1
  59. package/dist/modules/dictionaries/components/dictionaryAppearance.js.map +2 -2
  60. package/dist/modules/dictionaries/components/hooks/useDictionaryEntries.js +2 -1
  61. package/dist/modules/dictionaries/components/hooks/useDictionaryEntries.js.map +2 -2
  62. package/dist/modules/dictionaries/data/entities.js +5 -0
  63. package/dist/modules/dictionaries/data/entities.js.map +2 -2
  64. package/dist/modules/dictionaries/data/validators.js +3 -1
  65. package/dist/modules/dictionaries/data/validators.js.map +2 -2
  66. package/dist/modules/dictionaries/lib/entrySort.js +61 -0
  67. package/dist/modules/dictionaries/lib/entrySort.js.map +7 -0
  68. package/dist/modules/dictionaries/migrations/Migration20260602202147_dictionaries.js +13 -0
  69. package/dist/modules/dictionaries/migrations/Migration20260602202147_dictionaries.js.map +7 -0
  70. package/dist/modules/planner/components/AvailabilityRulesEditor.js +1 -0
  71. package/dist/modules/planner/components/AvailabilityRulesEditor.js.map +2 -2
  72. package/dist/modules/sales/backend/sales/documents/[id]/page.js +2 -0
  73. package/dist/modules/sales/backend/sales/documents/[id]/page.js.map +2 -2
  74. package/dist/modules/sales/components/documents/AdjustmentDialog.js +1 -0
  75. package/dist/modules/sales/components/documents/AdjustmentDialog.js.map +2 -2
  76. package/dist/modules/sales/components/documents/ItemsSection.js +1 -1
  77. package/dist/modules/sales/components/documents/ItemsSection.js.map +2 -2
  78. package/dist/modules/sales/components/documents/SalesDocumentForm.js +1 -0
  79. package/dist/modules/sales/components/documents/SalesDocumentForm.js.map +2 -2
  80. package/dist/modules/sales/components/documents/SalesDocumentsTable.js +1 -1
  81. package/dist/modules/sales/components/documents/SalesDocumentsTable.js.map +2 -2
  82. package/dist/modules/staff/components/LeaveRequestForm.js +1 -0
  83. package/dist/modules/staff/components/LeaveRequestForm.js.map +2 -2
  84. package/generated/entities/customer_settings/index.ts +1 -0
  85. package/generated/entities/dictionary/index.ts +1 -0
  86. package/generated/entity-fields-registry.ts +2 -0
  87. package/package.json +8 -8
  88. package/src/modules/catalog/components/PriceKindSettings.tsx +1 -0
  89. package/src/modules/customers/api/dictionaries/[kind]/route.ts +20 -25
  90. package/src/modules/customers/api/dictionaries/cache.ts +3 -1
  91. package/src/modules/customers/api/dictionaries/context.ts +1 -1
  92. package/src/modules/customers/api/settings/dictionary-sort-modes/route.ts +258 -0
  93. package/src/modules/customers/commands/settings.ts +41 -0
  94. package/src/modules/customers/components/CustomersConfigurationSections.tsx +3 -0
  95. package/src/modules/customers/components/DictionarySortSettings.tsx +264 -0
  96. package/src/modules/customers/components/detail/ActivityForm.tsx +1 -0
  97. package/src/modules/customers/components/detail/AnnualRevenueField.tsx +1 -0
  98. package/src/modules/customers/components/detail/DealForm.tsx +1 -0
  99. package/src/modules/customers/components/detail/create/DealCurrencyField.tsx +1 -0
  100. package/src/modules/customers/components/detail/hooks/useCustomerDictionary.ts +1 -0
  101. package/src/modules/customers/components/formConfig.tsx +1 -0
  102. package/src/modules/customers/data/entities.ts +5 -1
  103. package/src/modules/customers/data/validators.ts +8 -0
  104. package/src/modules/customers/i18n/de.json +7 -0
  105. package/src/modules/customers/i18n/en.json +7 -0
  106. package/src/modules/customers/i18n/es.json +7 -0
  107. package/src/modules/customers/i18n/pl.json +7 -0
  108. package/src/modules/customers/migrations/.snapshot-open-mercato.json +331 -0
  109. package/src/modules/customers/migrations/Migration20260602202147_customers.ts +13 -0
  110. package/src/modules/dictionaries/api/[dictionaryId]/entries/route.ts +12 -5
  111. package/src/modules/dictionaries/api/[dictionaryId]/route.ts +8 -0
  112. package/src/modules/dictionaries/api/openapi.ts +2 -1
  113. package/src/modules/dictionaries/api/route.ts +7 -0
  114. package/src/modules/dictionaries/components/DictionariesManager.tsx +93 -5
  115. package/src/modules/dictionaries/components/DictionaryEntriesEditor.tsx +1 -4
  116. package/src/modules/dictionaries/components/DictionaryEntrySelect.tsx +9 -3
  117. package/src/modules/dictionaries/components/DictionarySelectControl.tsx +1 -0
  118. package/src/modules/dictionaries/components/dictionaryAppearance.tsx +5 -1
  119. package/src/modules/dictionaries/components/hooks/useDictionaryEntries.ts +1 -0
  120. package/src/modules/dictionaries/data/entities.ts +6 -0
  121. package/src/modules/dictionaries/data/validators.ts +2 -0
  122. package/src/modules/dictionaries/i18n/de.json +8 -0
  123. package/src/modules/dictionaries/i18n/en.json +8 -0
  124. package/src/modules/dictionaries/i18n/es.json +8 -0
  125. package/src/modules/dictionaries/i18n/pl.json +8 -0
  126. package/src/modules/dictionaries/lib/entrySort.ts +73 -0
  127. package/src/modules/dictionaries/migrations/.snapshot-open-mercato.json +44 -0
  128. package/src/modules/dictionaries/migrations/Migration20260602202147_dictionaries.ts +13 -0
  129. package/src/modules/planner/components/AvailabilityRulesEditor.tsx +1 -0
  130. package/src/modules/sales/backend/sales/documents/[id]/page.tsx +2 -0
  131. package/src/modules/sales/components/documents/AdjustmentDialog.tsx +1 -0
  132. package/src/modules/sales/components/documents/ItemsSection.tsx +1 -1
  133. package/src/modules/sales/components/documents/SalesDocumentForm.tsx +1 -0
  134. package/src/modules/sales/components/documents/SalesDocumentsTable.tsx +1 -1
  135. package/src/modules/staff/components/LeaveRequestForm.tsx +1 -0
@@ -1,4 +1,4 @@
1
- [build:core] found 2748 entry points
1
+ [build:core] found 2753 entry points
2
2
  [build:core] built successfully
3
3
  [build:core:generated] found 176 entry points
4
4
  [build:core:generated] built successfully
@@ -3,11 +3,13 @@ const organization_id = "organization_id";
3
3
  const tenant_id = "tenant_id";
4
4
  const address_format = "address_format";
5
5
  const stuck_threshold_days = "stuck_threshold_days";
6
+ const dictionary_sort_modes = "dictionary_sort_modes";
6
7
  const created_at = "created_at";
7
8
  const updated_at = "updated_at";
8
9
  export {
9
10
  address_format,
10
11
  created_at,
12
+ dictionary_sort_modes,
11
13
  id,
12
14
  organization_id,
13
15
  stuck_threshold_days,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../generated/entities/customer_settings/index.ts"],
4
- "sourcesContent": ["export const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const address_format = \"address_format\";\nexport const stuck_threshold_days = \"stuck_threshold_days\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
5
- "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,iBAAiB;AACvB,MAAM,uBAAuB;AAC7B,MAAM,aAAa;AACnB,MAAM,aAAa;",
4
+ "sourcesContent": ["export const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const address_format = \"address_format\";\nexport const stuck_threshold_days = \"stuck_threshold_days\";\nexport const dictionary_sort_modes = \"dictionary_sort_modes\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,iBAAiB;AACvB,MAAM,uBAAuB;AAC7B,MAAM,wBAAwB;AAC9B,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
6
  "names": []
7
7
  }
@@ -7,6 +7,7 @@ const description = "description";
7
7
  const is_system = "is_system";
8
8
  const is_active = "is_active";
9
9
  const manager_visibility = "manager_visibility";
10
+ const entry_sort_mode = "entry_sort_mode";
10
11
  const created_at = "created_at";
11
12
  const updated_at = "updated_at";
12
13
  const deleted_at = "deleted_at";
@@ -14,6 +15,7 @@ export {
14
15
  created_at,
15
16
  deleted_at,
16
17
  description,
18
+ entry_sort_mode,
17
19
  id,
18
20
  is_active,
19
21
  is_system,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../generated/entities/dictionary/index.ts"],
4
- "sourcesContent": ["export const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const key = \"key\";\nexport const name = \"name\";\nexport const description = \"description\";\nexport const is_system = \"is_system\";\nexport const is_active = \"is_active\";\nexport const manager_visibility = \"manager_visibility\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
5
- "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,MAAM;AACZ,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,YAAY;AAClB,MAAM,qBAAqB;AAC3B,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
4
+ "sourcesContent": ["export const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const key = \"key\";\nexport const name = \"name\";\nexport const description = \"description\";\nexport const is_system = \"is_system\";\nexport const is_active = \"is_active\";\nexport const manager_visibility = \"manager_visibility\";\nexport const entry_sort_mode = \"entry_sort_mode\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,MAAM;AACZ,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,YAAY;AAClB,MAAM,qBAAqB;AAC3B,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
6
  "names": []
7
7
  }
@@ -809,6 +809,7 @@ const entityFieldsRegistry = {
809
809
  "tenant_id": "tenant_id",
810
810
  "address_format": "address_format",
811
811
  "stuck_threshold_days": "stuck_threshold_days",
812
+ "dictionary_sort_modes": "dictionary_sort_modes",
812
813
  "created_at": "created_at",
813
814
  "updated_at": "updated_at"
814
815
  },
@@ -965,6 +966,7 @@ const entityFieldsRegistry = {
965
966
  "is_system": "is_system",
966
967
  "is_active": "is_active",
967
968
  "manager_visibility": "manager_visibility",
969
+ "entry_sort_mode": "entry_sort_mode",
968
970
  "created_at": "created_at",
969
971
  "updated_at": "updated_at",
970
972
  "deleted_at": "deleted_at"