@ryuzaki13/react-foundation-lib 1.1.17 → 1.2.0

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/README.md CHANGED
@@ -256,15 +256,16 @@ Pipeline — runtime форматирования ячейки. Он прини
256
256
  | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
257
257
  | `createRowBasedFormatterContext` | Дает формуле `ctx.key(index)`, `ctx.value(index)`, `ctx.num(index)`, `rawValue`, `rowData`, `columnId`. |
258
258
  | `createRowBasedFormatterRegistry` | Нормализует definitions, запрещает пустой и дублирующийся `id`. |
259
- | `getRowBasedFormatterList`, `getRowBasedFormatterById` | Чтение глобального реестра. |
259
+ | `configureRowBasedFormatterRegistry` | Устанавливает созданный host-приложением реестр до компиляции pipeline. |
260
+ | `getRowBasedFormatterList`, `getRowBasedFormatterById` | Читает активный реестр host-приложения. |
260
261
 
261
- Встроенные формулы лежат в [`definitions`](./src/formatters/rowBased/definitions): `divideWhenAgFormatter`, `valueWhenFieldOrNull`, `divideWhenFieldOrNull`.
262
+ Пакет не содержит прикладных row-based формул. Host-приложение владеет definitions, создаёт реестр через factory и устанавливает его в composition root до первого вызова pipeline API.
262
263
 
263
264
  ### `formulas`
264
265
 
265
266
  Файлы: [`formulas/index.ts`](./src/formulas/index.ts), README: [`formulas/README.md`](./src/formulas/README.md).
266
267
 
267
- Глобальный реестр клиентских формул таблицы для calculated/clientOnly measure-колонок.
268
+ Инфраструктура реестра клиентских формул таблицы для calculated/clientOnly measure-колонок. Definitions принадлежат host-приложению и не входят в foundation-пакет.
268
269
 
269
270
  | API | Поведение |
270
271
  | -------------------------------------------- | ---------------------------------------------------------------------------------------- |
@@ -272,12 +273,13 @@ Pipeline — runtime форматирования ячейки. Он прини
272
273
  | `compileTableFormula` | Компилирует formulaId + keys в executor; не кидает runtime errors наружу. |
273
274
  | `executeTableFormula` | Разовый запуск формулы. |
274
275
  | `createTableFormulaRegistry` | Нормализует definitions и запрещает дубли. |
275
- | `getTableFormulaList`, `getTableFormulaById` | Доступ к реестру. |
276
+ | `configureTableFormulaRegistry` | Устанавливает созданный host-приложением реестр до первого runtime-вызова. |
277
+ | `getTableFormulaList`, `getTableFormulaById` | Доступ к активному реестру host-приложения. |
276
278
  | `validateTableFormulaDependencies` | Проверяет наличие formula, доступность dependencies, out-of-range и unused dependencies. |
277
279
 
278
280
  Поведение из тестов: невалидный результат формулы дает `invalid_result`, runtime exception дает `runtime_error`, отсутствующая формула дает `formula_not_found`.
279
281
 
280
- Тесты: [`execute.test.ts`](./src/formulas/execute.test.ts), [`validate.test.ts`](./src/formulas/validate.test.ts), [`dublicates.test.ts`](./src/formulas/dublicates.test.ts), [`perf.runtime.test.ts`](./src/formulas/perf.runtime.test.ts).
282
+ Тесты: [`registry.test.ts`](./src/formulas/registry.test.ts), [`execute.test.ts`](./src/formulas/execute.test.ts), [`validate.test.ts`](./src/formulas/validate.test.ts), [`perf.runtime.test.ts`](./src/formulas/perf.runtime.test.ts).
281
283
 
282
284
  ### `date-segments`
283
285