@mono-lit/helper 0.0.9 → 0.0.10
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/dist/accordion-core-DaNyPWRr.js +277 -0
- package/dist/alert-core-DWtHbX_-.js +134 -0
- package/dist/breadcrumb-list-core-Dh68T8Cf.js +747 -0
- package/dist/{mono-button-CLkHg3WW.js → button-core-DerXg84Q.js} +3 -276
- package/dist/button-dropdown-core-DKYEOyjy.js +654 -0
- package/dist/button-utils-D5-66M02.js +63 -0
- package/dist/card-utils-l80qAmrN.js +312 -0
- package/dist/chart-core-DV7hD3ZY.js +801 -0
- package/dist/checkbox-utils-DKdrhAzF.js +337 -0
- package/dist/chip-utils-DpRrd7Zj.js +403 -0
- package/dist/{data-source-controller-C6C4ej_M.js → data-source-controller-DS_JLrmS.js} +1 -1
- package/dist/{data-source-options-fxT5QIX4.js → data-source-options-DJUNU26C.js} +6 -6
- package/dist/{data-source-read-BL266IW0.js → data-source-read-uKJpRAzx.js} +2 -2
- package/dist/date-core-CyuSyvvG.js +734 -0
- package/dist/drawer-core-DbFWvNln.js +759 -0
- package/dist/dropdown-core-BCH1pK14.js +511 -0
- package/dist/dropdown-table-core-SfHUJVFq.js +1342 -0
- package/dist/export.js +1 -1
- package/dist/{field-path-BabiMrrA.js → field-path-DK2VBWHl.js} +1 -1
- package/dist/field-tooltip.css_raw-DVblekCl.js +5 -0
- package/dist/{field-validation.css_raw-Cx6SGrfP.js → field-validation.css_raw-BU7C6173.js} +1 -170
- package/dist/file-upload-core-Cz_dBQMx.js +624 -0
- package/dist/filter-builder-core-DyWjbBP7.js +381 -0
- package/dist/{filter-builder-B6Y2mmbM.js → filter-builder-vbqIuPhX.js} +1 -1
- package/dist/{filter-eval-ChDSaAUH.js → filter-eval-CqeBnMYh.js} +1 -1
- package/dist/{filter-odata-Bi27XUpQ.js → filter-odata-GsczYKNC.js} +1 -1
- package/dist/{hydration-flush-BaE9gN3C.js → hydration-flush-Volt9X7Q.js} +2 -1071
- package/dist/index.js +11 -11
- package/dist/{index.node-DTqDBca7.js → index.node-Csy9zrr1.js} +4 -4
- package/dist/index.node.js +11 -11
- package/dist/input-utils-BglY-k0H.js +1145 -0
- package/dist/menu-core-DkAYuCZ2.js +831 -0
- package/dist/modal-core-CSBSPN_m.js +844 -0
- package/dist/mono-button-DVvZ03P-.js +280 -0
- package/dist/{mono-button.shadow-DqZMpcqY.js → mono-button.shadow-BANxMGln.js} +6 -594
- package/dist/{mono-data-chart-NKPdAgVq.js → mono-data-chart-ChF4J9RT.js} +6 -6
- package/dist/{mono-data-dropdown-B2iRpJuI.js → mono-data-dropdown-Bgj2PDfm.js} +1 -1
- package/dist/{mono-data-grid-llJCX9MC.js → mono-data-grid-DJkp96N-.js} +144 -46
- package/dist/{mono-event-BPku9HpS.js → mono-event-CAZf0F_k.js} +14 -9
- package/dist/{mono-form-controller-BrA10erm.js → mono-form-controller-DxZLvyg6.js} +2 -1
- package/dist/mono-table-checkbox-core-BKOMx8R5.js +5288 -0
- package/dist/nav-core-B5qU2dzn.js +225 -0
- package/dist/{normalize-error-D93O4q8g.js → normalize-error-BEcd1tmS.js} +2 -2
- package/dist/otp-core-DXg3vFLh.js +758 -0
- package/dist/radio-utils-Dk9Tl1jz.js +319 -0
- package/dist/rich-text-editor-core-Ddd_QaLn.js +1280 -0
- package/dist/select-utils-BgArYHk8.js +2140 -0
- package/dist/sidebar-core-CD6txDo3.js +583 -0
- package/dist/slider-core-vcWr321-.js +1014 -0
- package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +2 -2
- package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +1 -1
- package/dist/src/components/dropdown-table/index.d.ts +1 -1
- package/dist/src/components/dropdown-table/index.shadow.d.ts +1 -1
- package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +1 -1
- package/dist/src/components/form/form-types.d.ts +9 -3
- package/dist/src/components/input/input-core.d.ts +1 -1
- package/dist/src/components/input/input-types.d.ts +1 -1
- package/dist/src/components/otp/otp-core.d.ts +1 -1
- package/dist/src/components/select/select-core.d.ts +1 -1
- package/dist/src/components/select/select-types.d.ts +1 -1
- package/dist/src/components/slider/slider-core.d.ts +1 -1
- package/dist/src/components/slider/slider-types.d.ts +1 -1
- package/dist/src/components/table/filter-suggestion.d.ts +171 -0
- package/dist/src/components/table/index.d.ts +5 -4
- package/dist/src/components/table/index.shadow.d.ts +5 -4
- package/dist/src/components/table/mono-data-grid.d.ts +22 -3
- package/dist/src/components/table/mono-table-empty-core.d.ts +37 -0
- package/dist/src/components/table/mono-table-search-core.d.ts +22 -3
- package/dist/src/components/table/table-types.d.ts +74 -4
- package/dist/src/components/tag-input/tag-input-core.d.ts +1 -1
- package/dist/src/components/tag-input/tag-input-types.d.ts +1 -1
- package/dist/src/components/textarea/textarea-core.d.ts +1 -1
- package/dist/src/composables/mono-event.d.ts +7 -1
- package/dist/src/entries/index.d.ts +8 -6
- package/dist/src/entries/index.node.d.ts +8 -6
- package/dist/src/search/index.d.ts +1 -1
- package/dist/src/utils/group-count.d.ts +36 -0
- package/dist/switch-utils-CTZ4id2V.js +338 -0
- package/dist/tabs-core-r5-B8k_N.js +317 -0
- package/dist/tag-input-utils-D2JA90DQ.js +3060 -0
- package/dist/textarea-utils-VU1KeXm8.js +821 -0
- package/dist/ui/accordion.js +2 -274
- package/dist/ui/alert.js +2 -131
- package/dist/ui/breadcrumb.js +4 -745
- package/dist/ui/button-dropdown.js +4 -652
- package/dist/ui/button.js +2 -63
- package/dist/ui/card.js +2 -310
- package/dist/ui/chart.js +4 -800
- package/dist/ui/checkbox.js +4 -335
- package/dist/ui/chip.js +4 -402
- package/dist/ui/date.js +3 -732
- package/dist/ui/drawer.js +3 -757
- package/dist/ui/dropdown-table.js +5 -1341
- package/dist/ui/dropdown.js +4 -509
- package/dist/ui/file-upload.js +3 -622
- package/dist/ui/filter.js +5 -380
- package/dist/ui/form.js +1 -1
- package/dist/ui/index.css +118 -1
- package/dist/ui/input.js +3 -1141
- package/dist/ui/menu.js +4 -828
- package/dist/ui/modal.js +4 -843
- package/dist/ui/nav.js +4 -223
- package/dist/ui/otp.js +4 -756
- package/dist/ui/radio.js +4 -317
- package/dist/ui/rich-text-editor.js +4 -1278
- package/dist/ui/select.js +5 -2138
- package/dist/ui/shadow/accordion.js +4 -273
- package/dist/ui/shadow/alert.js +4 -130
- package/dist/ui/shadow/breadcrumb.js +5 -744
- package/dist/ui/shadow/button-dropdown.js +6 -652
- package/dist/ui/shadow/button.js +3 -63
- package/dist/ui/shadow/card.js +4 -309
- package/dist/ui/shadow/chart.js +6 -1576
- package/dist/ui/shadow/checkbox.js +4 -334
- package/dist/ui/shadow/chip.js +4 -396
- package/dist/ui/shadow/date.js +7 -731
- package/dist/ui/shadow/drawer.js +4 -756
- package/dist/ui/shadow/dropdown-table.js +8 -1762
- package/dist/ui/shadow/dropdown.js +4 -508
- package/dist/ui/shadow/file-upload.js +4 -620
- package/dist/ui/shadow/filter.js +7 -379
- package/dist/ui/shadow/input.js +6 -1140
- package/dist/ui/shadow/menu.js +5 -828
- package/dist/ui/shadow/modal.js +6 -1063
- package/dist/ui/shadow/nav.js +5 -223
- package/dist/ui/shadow/otp.js +6 -754
- package/dist/ui/shadow/radio.js +4 -316
- package/dist/ui/shadow/rich-text-editor.js +4 -1276
- package/dist/ui/shadow/select.js +6 -2136
- package/dist/ui/shadow/sidebar.js +5 -581
- package/dist/ui/shadow/slider.js +5 -1010
- package/dist/ui/shadow/switch.js +4 -335
- package/dist/ui/shadow/table.js +10 -4501
- package/dist/ui/shadow/tabs.js +6 -315
- package/dist/ui/shadow/tag-input.js +7 -3057
- package/dist/ui/shadow/textarea.js +6 -817
- package/dist/ui/sidebar.js +3 -581
- package/dist/ui/slider.js +4 -1012
- package/dist/ui/switch.js +4 -336
- package/dist/ui/table.js +9 -4502
- package/dist/ui/tabs.js +4 -315
- package/dist/ui/tag-input.js +5 -3058
- package/dist/ui/textarea.js +4 -819
- package/dist/vue.d.ts +3 -2
- package/package.json +3 -3
- package/dist/chip-strip-bNfLn52Z.js +0 -215
- package/dist/data-source-controller-Dx6IQ2CN.js +0 -243
- package/dist/data-source-options-BM4r4PRw.js +0 -558
- package/dist/data-source-read-HyBCRg1t.js +0 -242
- package/dist/excel-BXzr3uI1.js +0 -784
- package/dist/export-ixRdCS2y.js +0 -2388
- package/dist/field-tooltip-addon-CWCp19mJ.js +0 -702
- package/dist/field-tooltip.css_raw-U5UeTa2d.js +0 -269
- package/dist/filter-builder-C0T3pMx2.js +0 -208
- package/dist/form-control-core-BbiACMtL.js +0 -226
- package/dist/icon-ClxnYhBG.js +0 -19
- package/dist/import-Dc4eXC02.js +0 -612
- package/dist/light-slots-_no0r2Z-.js +0 -246
- package/dist/markdown-uGlE_OfJ.js +0 -20191
- package/dist/mono-data-grid-e9ZVBlNN.js +0 -4240
- package/dist/normalize-error-BmLbgANw.js +0 -1048
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { MonoGroupNode } from "./grouping.js";
|
|
2
2
|
import { CheckboxColor, CheckboxCssClass, CheckboxSize } from "../checkbox/checkbox-types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { InputColor, InputCssClass, InputModelEvent, InputSize, InputValidationState, InputVariant } from "../input/input-types.js";
|
|
4
4
|
import { MonoSearchCustomCtx, MonoSearchCustomResult, MonoSearchExpr, MonoSearchExprCustom, MonoSearchExprEntry } from "../../search/search-expr.js";
|
|
5
5
|
import { MonoSearchFieldsAliases, MonoSearchValue } from "../../search/data-search.js";
|
|
6
|
+
import { MonoFormController } from "../form/form-types.js";
|
|
7
|
+
import { MonoFilterSuggestion, MonoSuggestionFilter, MonoSuggestionValueSource } from "./filter-suggestion.js";
|
|
8
|
+
import { MonoEmptySuggestionOptions } from "./mono-table-empty-core.js";
|
|
9
|
+
import { MonoDataSourceOptions, MonoOdataOptions } from "../../utils/data-source-options.js";
|
|
6
10
|
import { MonoCellChange, MonoCheckConfig, MonoCheckHandle, MonoCheckMode, MonoColumn, MonoColumnDef, MonoColumnHandle, MonoColumnSort, MonoColumnValue, MonoDataGridOptions, MonoDistinctValuesContext, MonoEditableTrigger, MonoEditorDirection, MonoEditorNavKeys, MonoFormConfig, MonoFormHandle, MonoFormOp, MonoGridSource, MonoGridStore, MonoHeaderFilter, MonoHeaderFilterLoadOptions, MonoSearchTerm, MonoStagedChange, MonoStorePush, MonoSummaryConfig, MonoSummaryFieldSpec, MonoSummaryHandle, MonoSummaryRecalculate, MonoSummaryResult, MonoSummarySpec, MonoSummaryType, MonoTableColumnProps, MonoTableController, MonoTableProps } from "./mono-data-grid.js";
|
|
7
|
-
import { InputColor, InputCssClass, InputSize, InputValidationState, InputVariant } from "../input/input-types.js";
|
|
8
11
|
//#region src/components/table/table-types.d.ts
|
|
9
12
|
/** `:sort.prop` object on `mono-table-th`. */
|
|
10
13
|
export type TableThSort = MonoColumnSort;
|
|
@@ -23,9 +26,38 @@ interface TableControlBase {
|
|
|
23
26
|
* appearance / sizing / state props — a search box and a `<mono-input>` beside it
|
|
24
27
|
* in a toolbar look identical. Not included (no meaning for a filter): `type`
|
|
25
28
|
* (pinned to `search`), `required` / `pattern` / `min` / `max` / `step`, and
|
|
26
|
-
* `value
|
|
29
|
+
* `value`.
|
|
30
|
+
*
|
|
31
|
+
* Without `modelValue` the debounce + the controller own the search term; passing
|
|
32
|
+
* it switches to MANUAL mode (see {@link TableSearchProps.modelValue}).
|
|
27
33
|
*/
|
|
28
34
|
export interface TableSearchProps extends TableControlBase {
|
|
35
|
+
/**
|
|
36
|
+
* The search text. **Passing it (even `''`) switches the box to manual mode**:
|
|
37
|
+
* typing emits `input` / `change` / `clear` like `mono-input` (read
|
|
38
|
+
* `$event.detail.modelValue`) immediately, and the grid's search is NEVER
|
|
39
|
+
* called — `searchValue`, `suggestion` and `multiContext` go inert. The
|
|
40
|
+
* consumer filters / fetches on its own (and debounces it, if it wants to).
|
|
41
|
+
*/
|
|
42
|
+
modelValue?: string | null;
|
|
43
|
+
'model-value'?: string | null;
|
|
44
|
+
modelvalue?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The filter form (`controlMonoForm`) behind the grid's query — read by
|
|
47
|
+
* {@link TableSearchProps.suggestionFilter}. Bind with `.prop`.
|
|
48
|
+
*/
|
|
49
|
+
controlForm?: MonoFormController;
|
|
50
|
+
'control-form'?: MonoFormController;
|
|
51
|
+
dataForm?: MonoFormController;
|
|
52
|
+
/**
|
|
53
|
+
* When a search comes back empty, probe the form's OTHER values and offer
|
|
54
|
+
* "N rows under a different filter" in `<mono-table-empty>`:
|
|
55
|
+
* `{ keys: { CodeDept: 'Dept' }, sources?, source?, searchValue?, filter? }`.
|
|
56
|
+
* Values the user can't pick (the bound control's own option source decides)
|
|
57
|
+
* are never offered, and a `readonly` / `disabled` control is never relaxed.
|
|
58
|
+
*/
|
|
59
|
+
suggestionFilter?: MonoSuggestionFilter | null;
|
|
60
|
+
'suggestion-filter'?: MonoSuggestionFilter | null;
|
|
29
61
|
placeholder?: string;
|
|
30
62
|
disabled?: boolean;
|
|
31
63
|
debounce?: number;
|
|
@@ -149,6 +181,22 @@ export interface TableSearchProps extends TableControlBase {
|
|
|
149
181
|
/** Root class only. */
|
|
150
182
|
'css-class'?: string;
|
|
151
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* `mono-table-search`'s events — the same names and detail as `mono-input`'s, so a
|
|
186
|
+
* listener is portable between the two. They fire in both modes; in manual mode
|
|
187
|
+
* (`model-value` passed) they are the ONLY effect of typing.
|
|
188
|
+
*/
|
|
189
|
+
export interface TableSearchEvents {
|
|
190
|
+
input: InputModelEvent;
|
|
191
|
+
change: InputModelEvent;
|
|
192
|
+
clear: InputModelEvent;
|
|
193
|
+
'mno-input': InputModelEvent;
|
|
194
|
+
mnoInput: InputModelEvent;
|
|
195
|
+
'mno-change': InputModelEvent;
|
|
196
|
+
mnoChange: InputModelEvent;
|
|
197
|
+
'mno-clear': InputModelEvent;
|
|
198
|
+
mnoClear: InputModelEvent;
|
|
199
|
+
}
|
|
152
200
|
export interface TablePagingProps extends TableControlBase {
|
|
153
201
|
/**
|
|
154
202
|
* Paging mode (flat tables only):
|
|
@@ -444,6 +492,28 @@ export interface TableEmptyProps extends TableControlBase {
|
|
|
444
492
|
/** Label on that button (default `'Reload'`). */
|
|
445
493
|
reloadLabel?: string;
|
|
446
494
|
'reload-label'?: string;
|
|
495
|
+
/**
|
|
496
|
+
* The filter form (`controlMonoForm`). With it bound, a filter suggestion
|
|
497
|
+
* published by `<mono-table-search :suggestion-filter>` renders under the
|
|
498
|
+
* subtitle with an **Adjust Filter** button that writes into this form, then
|
|
499
|
+
* emits a cancelable `adjust` (default action: `grid.refresh()`).
|
|
500
|
+
*/
|
|
501
|
+
controlForm?: MonoFormController;
|
|
502
|
+
'control-form'?: MonoFormController;
|
|
503
|
+
dataForm?: MonoFormController;
|
|
504
|
+
/**
|
|
505
|
+
* How a filter suggestion is presented. Its `message` REPLACES the subtitle while
|
|
506
|
+
* a suggestion is shown — a function `(count, suggestion) => string`, or a
|
|
507
|
+
* template where `{count}`, `{value}`, `{label}`, `{key}`, `{field}` are substituted.
|
|
508
|
+
* Default `'There is {count} data available but in different filter, do you want to change the filter?'`.
|
|
509
|
+
* With several offers, Adjust Filter applies the biggest and a ▾ beside it lists
|
|
510
|
+
* each one; `option` words those rows the same way (default `'Adjust {label} to "{value}"'`).
|
|
511
|
+
*/
|
|
512
|
+
suggestionFilter?: MonoEmptySuggestionOptions | null;
|
|
513
|
+
'suggestion-filter'?: MonoEmptySuggestionOptions | null;
|
|
514
|
+
/** Label on the Adjust button (default `'Adjust Filter'`). */
|
|
515
|
+
adjustLabel?: string;
|
|
516
|
+
'adjust-label'?: string;
|
|
447
517
|
/**
|
|
448
518
|
* Fixed height for the reserved area — any CSS length. Wins over `minHeight`,
|
|
449
519
|
* `maxHeight` and the auto-grow.
|
|
@@ -470,4 +540,4 @@ export interface TableLoadingProps extends TableControlBase {
|
|
|
470
540
|
loading?: boolean | null;
|
|
471
541
|
}
|
|
472
542
|
//#endregion
|
|
473
|
-
export type { MonoCellChange, MonoCheckConfig, MonoCheckHandle, MonoCheckMode, MonoColumn, MonoColumnDef, MonoColumnHandle, MonoColumnSort, MonoColumnValue, MonoDataGridOptions, MonoDataSourceOptions, MonoDistinctValuesContext, MonoEditableTrigger, MonoEditorDirection, MonoEditorNavKeys, MonoFormConfig, MonoFormHandle, MonoFormOp, MonoGridSource, MonoGridStore, MonoGroupNode, MonoHeaderFilter, MonoHeaderFilterLoadOptions, MonoOdataOptions, MonoSearchCustomCtx, MonoSearchCustomResult, MonoSearchExpr, MonoSearchExprCustom, MonoSearchExprEntry, MonoSearchFieldsAliases, MonoSearchTerm, MonoSearchValue, MonoStagedChange, MonoStorePush, MonoSummaryConfig, MonoSummaryFieldSpec, MonoSummaryHandle, MonoSummaryRecalculate, MonoSummaryResult, MonoSummarySpec, MonoSummaryType, MonoTableColumnProps, MonoTableController, MonoTableProps };
|
|
543
|
+
export type { MonoCellChange, MonoCheckConfig, MonoCheckHandle, MonoCheckMode, MonoColumn, MonoColumnDef, MonoColumnHandle, MonoColumnSort, MonoColumnValue, MonoDataGridOptions, MonoDataSourceOptions, MonoDistinctValuesContext, MonoEditableTrigger, MonoEditorDirection, MonoEditorNavKeys, MonoEmptySuggestionOptions, MonoFilterSuggestion, MonoFormConfig, MonoFormHandle, MonoFormOp, MonoGridSource, MonoGridStore, MonoGroupNode, MonoHeaderFilter, MonoHeaderFilterLoadOptions, MonoOdataOptions, MonoSearchCustomCtx, MonoSearchCustomResult, MonoSearchExpr, MonoSearchExprCustom, MonoSearchExprEntry, MonoSearchFieldsAliases, MonoSearchTerm, MonoSearchValue, MonoStagedChange, MonoStorePush, MonoSuggestionFilter, MonoSuggestionValueSource, MonoSummaryConfig, MonoSummaryFieldSpec, MonoSummaryHandle, MonoSummaryRecalculate, MonoSummaryResult, MonoSummarySpec, MonoSummaryType, MonoTableColumnProps, MonoTableController, MonoTableProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Constructor } from "../../composables/hybird-prop.js";
|
|
2
2
|
import { CssSizeValue } from "../../composables/css-size.js";
|
|
3
3
|
import { MonoSearchValue } from "../../search/data-search.js";
|
|
4
|
-
import { FieldTooltipController, FieldTooltipValue } from "../../composables/field-tooltip.js";
|
|
5
4
|
import { TagInputChipProps, TagInputColor, TagInputCssClass, TagInputDataSource, TagInputDisplayGroup, TagInputDisplayValue, TagInputDropdownOptions, TagInputItem, TagInputLoadMore, TagInputSize, TagInputValidationState, TagInputValue, TagInputVariant } from "./tag-input-types.js";
|
|
5
|
+
import { FieldTooltipController, FieldTooltipValue } from "../../composables/field-tooltip.js";
|
|
6
6
|
import { LateSlotWatcher } from "../../composables/light-slots.js";
|
|
7
7
|
import { LitElement, TemplateResult } from "lit";
|
|
8
8
|
//#region src/components/tag-input/tag-input-core.d.ts
|
|
@@ -2,9 +2,9 @@ import { PanelSizeProps } from "../../composables/css-size.js";
|
|
|
2
2
|
import { DescribedError } from "../../utils/normalize-error.js";
|
|
3
3
|
import { LoadMoreMode, MonoDataSource } from "../../composables/data-source-controller.js";
|
|
4
4
|
import { VisibilityProps } from "../../composables/visibility.js";
|
|
5
|
+
import { MonoTooltipOptions } from "../tooltip/tooltip-types.js";
|
|
5
6
|
import { MonoSearchValue } from "../../search/data-search.js";
|
|
6
7
|
import { ChipBehaviour, ChipColor, ChipCssClass, ChipRounded, ChipSize, ChipVariant } from "../chip/chip-types.js";
|
|
7
|
-
import { MonoTooltipOptions } from "../tooltip/tooltip-types.js";
|
|
8
8
|
import { ChipLimitProps } from "../../composables/chip-limits.js";
|
|
9
9
|
//#region src/components/tag-input/tag-input-types.d.ts
|
|
10
10
|
export type TagInputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Constructor } from "../../composables/hybird-prop.js";
|
|
2
2
|
import { CssSizeValue } from "../../composables/css-size.js";
|
|
3
|
-
import { FieldTooltipController, FieldTooltipValue } from "../../composables/field-tooltip.js";
|
|
4
3
|
import { TextareaColor, TextareaCssClass, TextareaSize, TextareaValidationState, TextareaVariant } from "./textarea-types.js";
|
|
4
|
+
import { FieldTooltipController, FieldTooltipValue } from "../../composables/field-tooltip.js";
|
|
5
5
|
import { LitElement, TemplateResult } from "lit";
|
|
6
6
|
//#region src/components/textarea/textarea-core.d.ts
|
|
7
7
|
/** Named slots projected by `mono-textarea` (light: captured; shadow: native). */
|
|
@@ -14,6 +14,12 @@ export interface MonoEventOptions {
|
|
|
14
14
|
* emits no plain event at all.
|
|
15
15
|
*/
|
|
16
16
|
alias?: string | false;
|
|
17
|
+
/**
|
|
18
|
+
* Dispatch every event of the family as `cancelable`, so a listener can veto the
|
|
19
|
+
* component's default action with `preventDefault()`. The return value of
|
|
20
|
+
* {@link dispatchMonoEvent} reports it.
|
|
21
|
+
*/
|
|
22
|
+
cancelable?: boolean;
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
25
|
* Device-originated event names — decorated when native, never synthesized.
|
|
@@ -53,5 +59,5 @@ export declare function decorateEvent<T>(event: Event, detail: T): void;
|
|
|
53
59
|
* dispatchMonoEvent(this, 'click', detail, { alias: 'toggle' }) // toggle + mno-click + mnoClick
|
|
54
60
|
* dispatchMonoEvent(this, 'loading-change', detail) // loading-change + loadingChange + mno-loading-change + mnoLoadingChange
|
|
55
61
|
*/
|
|
56
|
-
export declare function dispatchMonoEvent<T>(target: EventTarget, name: string, detail: T, options?: MonoEventOptions):
|
|
62
|
+
export declare function dispatchMonoEvent<T>(target: EventTarget, name: string, detail: T, options?: MonoEventOptions): boolean;
|
|
57
63
|
//#endregion
|
|
@@ -5,26 +5,28 @@ import { MonoGroupNode, buildGroups, collectGroupPaths, flattenLeaves, isGroupNo
|
|
|
5
5
|
import { MonoExportColumn, MonoExportDetail, MonoExportDetailBatch, MonoExportFormat, MonoExportFormatOptions, MonoExportOptions, MonoExportResult, MonoExportStyle, MonoExportStyles } from "../export/types.js";
|
|
6
6
|
import { MonoImportAmbiguity, MonoImportChange, MonoImportColumn, MonoImportMatch, MonoImportNumberFormat, MonoImportOptions, MonoImportRejection, MonoImportResult, MonoImportType, MonoImportValueType } from "../import/types.js";
|
|
7
7
|
import { MaybeReactive, resolveMaybeReactive } from "../composables/reactive.js";
|
|
8
|
-
import {
|
|
8
|
+
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
9
9
|
import { MonoSearchCustomCtx, MonoSearchCustomResult, MonoSearchExpr, MonoSearchExprCustom, MonoSearchExprEntry } from "../search/search-expr.js";
|
|
10
10
|
import { ApplySourceSearchOptions, DEFAULT_SEARCH_OPERATION, MonoSearchFieldsAliases, MonoSearchValue, MonoSourceSearch, ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, SearchableSource, isFoldableSearch, mergeSearchFields, parseSearchValue, plainSearchFields, readSearchField, resolveSearchFields, searchRemoteFilter, searchRowPredicate } from "../search/data-search.js";
|
|
11
|
+
import { MonoDataDropdownOptions, MonoDropdownController, MonoDropdownItem, controlMonoDataDropdown as monoDataDropdown } from "../components/dropdown-table/mono-data-dropdown.js";
|
|
12
|
+
import { MonoFormComponent, MonoFormComponentProps, MonoFormController, MonoFormInput, MonoFormInputOf, MonoFormItem, MonoFormOptions, MonoFormProps, MonoFormRefLike, MonoFormRule, MonoFormRuleCtx, MonoFormSchemaLike, MonoFormSetProp, MonoFormSetValidation, MonoFormTiming, MonoFormValidation, MonoFormWatcherCtx } from "../components/form/form-types.js";
|
|
13
|
+
import { MonoFilterSuggestion, MonoSuggestionFilter, MonoSuggestionValueSource } from "../components/table/filter-suggestion.js";
|
|
14
|
+
import { MonoEmptySuggestionOptions } from "../components/table/mono-table-empty-core.js";
|
|
15
|
+
import { MonoDataSourceOptions, MonoOdataOptions } from "../utils/data-source-options.js";
|
|
11
16
|
import { FilterBuilderEvents, MonoFilterApplyEvent, MonoFilterBuilderOptions, MonoFilterBuilderProps, MonoFilterChangeEvent, MonoFilterChangeEventDetail, MonoFilterClearEvent, MonoFilterClearEventDetail, MonoFilterController, MonoFilterDataType, MonoFilterExpression, MonoFilterField, MonoFilterGroup, MonoFilterGroupOperator, MonoFilterNode, MonoFilterOperator, MonoFilterOutput, MonoFilterProps, MonoFilterReadOptions, MonoFilterRule, MonoFilterSize, MonoFilterTexts } from "../components/filter/filter-types.js";
|
|
12
17
|
import { GroupPageInfo, MonoCheckConfig, MonoCheckHandle, MonoCheckMode, MonoColumnDef, MonoColumnHandle, MonoDataGridOptions, MonoDetailEl, MonoDetailHandle, MonoDisplayRow, MonoDistinctValuesContext, MonoGridSource, MonoGroupMeta, MonoSearchTerm, MonoServerGroupCtx, MonoServerGroupSource, MonoSummaryConfig, MonoSummaryFieldSpec, MonoSummaryHandle, MonoSummaryRecalculate, MonoSummaryResult, MonoSummarySpec, MonoSummaryType, MonoTableColumnProps, MonoTableController, MonoTableProps, SortOrder, controlMonoTable as monoDataGrid } from "../components/table/mono-data-grid.js";
|
|
13
18
|
import { MonoChartAgg, MonoChartAggregateCtx, MonoChartController, MonoChartData, MonoChartDataset, MonoChartOdataOptions, MonoChartOptions, MonoChartPointEvent, MonoChartProps, MonoChartSeries, MonoChartSource, MonoChartType } from "../components/chart/chart-types.js";
|
|
14
19
|
import { arrayToODataString, arrayToTree, odataStringToArray, treeToArray } from "../components/filter/filter-odata.js";
|
|
15
20
|
import { MonoChartOdataRequest, buildChartApply, buildChartOdataRequest, composeApply } from "../components/chart/chart-odata.js";
|
|
16
21
|
import { controlMonoChart as monoChart } from "../components/chart/mono-data-chart.js";
|
|
17
|
-
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
18
|
-
import { MonoDataDropdownOptions, MonoDropdownController, MonoDropdownItem, controlMonoDataDropdown as monoDataDropdown } from "../components/dropdown-table/mono-data-dropdown.js";
|
|
19
22
|
import { controlMonoFilterBuilder as monoFilterBuilder } from "../components/filter/filter-builder.js";
|
|
20
23
|
import { DEFAULT_TEXTS, OPERATOR_ARITY, operatorsFor } from "../components/filter/filter-operators.js";
|
|
21
|
-
import { MonoFormComponent, MonoFormComponentProps, MonoFormController, MonoFormInput, MonoFormInputOf, MonoFormItem, MonoFormOptions, MonoFormProps, MonoFormRefLike, MonoFormRule, MonoFormRuleCtx, MonoFormSchemaLike, MonoFormSetProp, MonoFormSetValidation, MonoFormTiming, MonoFormValidation, MonoFormWatcherCtx } from "../components/form/form-types.js";
|
|
22
24
|
import { controlMonoForm as monoForm } from "../components/form/mono-form-controller.js";
|
|
23
25
|
import { MonoDialogButton, MonoDialogButtonCtx, MonoDialogController, MonoDialogOptions, MonoModalController, MonoModalOptions } from "../components/modal/modal-types.js";
|
|
24
26
|
import { controlMonoModal as monoModal } from "../components/modal/mono-modal-controller.js";
|
|
25
27
|
import { MonoArraySourceOptions, monoArraySource } from "../components/table/array-source.js";
|
|
26
28
|
import { FieldSegment, ODataClause, ParsedFieldPath, getFieldValue, isPath, mergePatch, parseFieldPath, setFieldValue, toODataClause, toODataSelector } from "../search/field-path.js";
|
|
27
|
-
import { TableCheckboxProps, TableDetailProps, TableInfoProps, TableLoadingProps, TablePageSizeProps, TablePagingProps, TableSearchProps, TableSortProps, TableSummaryProps, TableThProps, TableThSort } from "../components/table/table-types.js";
|
|
29
|
+
import { TableCheckboxProps, TableDetailProps, TableInfoProps, TableLoadingProps, TablePageSizeProps, TablePagingProps, TableSearchEvents, TableSearchProps, TableSortProps, TableSummaryProps, TableThProps, TableThSort } from "../components/table/table-types.js";
|
|
28
30
|
import { controlMonoTooltip, monoTooltip } from "../components/tooltip/control-tooltip.js";
|
|
29
31
|
import { createMonoTooltip, destroyAllMonoTooltips, resetMonoTooltip } from "../components/tooltip/tooltip-declarative.js";
|
|
30
32
|
import { getMonoTooltipGlobal } from "../components/tooltip/tooltip-config.js";
|
|
@@ -35,4 +37,4 @@ import { BasecoatTokens, DEFAULT_FLAVOR, DEFAULT_THEME, FlavorName, MonoRoleToke
|
|
|
35
37
|
import { ApplyThemeInput, FlavorConfig, ThemeConfig, applyFlavor, applyTheme, createFlavorClass, createThemeClass, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFlavorData, getThemeData, isValidFlavor, isValidTheme, resetFlavor, resetTheme, themes } from "../data/theme/index.js";
|
|
36
38
|
import "./index.node.js";
|
|
37
39
|
import "virtual:uno.css";
|
|
38
|
-
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyMonoSizeAttributes, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, startMonoSizeAttributes, stopMonoSizeAttributes, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
40
|
+
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoEmptySuggestionOptions, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterSuggestion, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSuggestionFilter, type MonoSuggestionValueSource, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchEvents, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyMonoSizeAttributes, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, startMonoSizeAttributes, stopMonoSizeAttributes, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
@@ -5,26 +5,28 @@ import { MonoGroupNode, buildGroups, collectGroupPaths, flattenLeaves, isGroupNo
|
|
|
5
5
|
import { MonoExportColumn, MonoExportDetail, MonoExportDetailBatch, MonoExportFormat, MonoExportFormatOptions, MonoExportOptions, MonoExportResult, MonoExportStyle, MonoExportStyles } from "../export/types.js";
|
|
6
6
|
import { MonoImportAmbiguity, MonoImportChange, MonoImportColumn, MonoImportMatch, MonoImportNumberFormat, MonoImportOptions, MonoImportRejection, MonoImportResult, MonoImportType, MonoImportValueType } from "../import/types.js";
|
|
7
7
|
import { MaybeReactive, resolveMaybeReactive } from "../composables/reactive.js";
|
|
8
|
-
import {
|
|
8
|
+
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
9
9
|
import { MonoSearchCustomCtx, MonoSearchCustomResult, MonoSearchExpr, MonoSearchExprCustom, MonoSearchExprEntry } from "../search/search-expr.js";
|
|
10
10
|
import { ApplySourceSearchOptions, DEFAULT_SEARCH_OPERATION, MonoSearchFieldsAliases, MonoSearchValue, MonoSourceSearch, ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, SearchableSource, isFoldableSearch, mergeSearchFields, parseSearchValue, plainSearchFields, readSearchField, resolveSearchFields, searchRemoteFilter, searchRowPredicate } from "../search/data-search.js";
|
|
11
|
+
import { MonoDataDropdownOptions, MonoDropdownController, MonoDropdownItem, controlMonoDataDropdown as monoDataDropdown } from "../components/dropdown-table/mono-data-dropdown.js";
|
|
12
|
+
import { MonoFormComponent, MonoFormComponentProps, MonoFormController, MonoFormInput, MonoFormInputOf, MonoFormItem, MonoFormOptions, MonoFormProps, MonoFormRefLike, MonoFormRule, MonoFormRuleCtx, MonoFormSchemaLike, MonoFormSetProp, MonoFormSetValidation, MonoFormTiming, MonoFormValidation, MonoFormWatcherCtx } from "../components/form/form-types.js";
|
|
13
|
+
import { MonoFilterSuggestion, MonoSuggestionFilter, MonoSuggestionValueSource } from "../components/table/filter-suggestion.js";
|
|
14
|
+
import { MonoEmptySuggestionOptions } from "../components/table/mono-table-empty-core.js";
|
|
15
|
+
import { MonoDataSourceOptions, MonoOdataOptions } from "../utils/data-source-options.js";
|
|
11
16
|
import { FilterBuilderEvents, MonoFilterApplyEvent, MonoFilterBuilderOptions, MonoFilterBuilderProps, MonoFilterChangeEvent, MonoFilterChangeEventDetail, MonoFilterClearEvent, MonoFilterClearEventDetail, MonoFilterController, MonoFilterDataType, MonoFilterExpression, MonoFilterField, MonoFilterGroup, MonoFilterGroupOperator, MonoFilterNode, MonoFilterOperator, MonoFilterOutput, MonoFilterProps, MonoFilterReadOptions, MonoFilterRule, MonoFilterSize, MonoFilterTexts } from "../components/filter/filter-types.js";
|
|
12
17
|
import { GroupPageInfo, MonoCheckConfig, MonoCheckHandle, MonoCheckMode, MonoColumnDef, MonoColumnHandle, MonoDataGridOptions, MonoDetailEl, MonoDetailHandle, MonoDisplayRow, MonoDistinctValuesContext, MonoGridSource, MonoGroupMeta, MonoSearchTerm, MonoServerGroupCtx, MonoServerGroupSource, MonoSummaryConfig, MonoSummaryFieldSpec, MonoSummaryHandle, MonoSummaryRecalculate, MonoSummaryResult, MonoSummarySpec, MonoSummaryType, MonoTableColumnProps, MonoTableController, MonoTableProps, SortOrder, controlMonoTable as monoDataGrid } from "../components/table/mono-data-grid.js";
|
|
13
18
|
import { MonoChartAgg, MonoChartAggregateCtx, MonoChartController, MonoChartData, MonoChartDataset, MonoChartOdataOptions, MonoChartOptions, MonoChartPointEvent, MonoChartProps, MonoChartSeries, MonoChartSource, MonoChartType } from "../components/chart/chart-types.js";
|
|
14
19
|
import { arrayToODataString, arrayToTree, odataStringToArray, treeToArray } from "../components/filter/filter-odata.js";
|
|
15
20
|
import { MonoChartOdataRequest, buildChartApply, buildChartOdataRequest, composeApply } from "../components/chart/chart-odata.js";
|
|
16
21
|
import { controlMonoChart as monoChart } from "../components/chart/mono-data-chart.js";
|
|
17
|
-
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
18
|
-
import { MonoDataDropdownOptions, MonoDropdownController, MonoDropdownItem, controlMonoDataDropdown as monoDataDropdown } from "../components/dropdown-table/mono-data-dropdown.js";
|
|
19
22
|
import { controlMonoFilterBuilder as monoFilterBuilder } from "../components/filter/filter-builder.js";
|
|
20
23
|
import { DEFAULT_TEXTS, OPERATOR_ARITY, operatorsFor } from "../components/filter/filter-operators.js";
|
|
21
|
-
import { MonoFormComponent, MonoFormComponentProps, MonoFormController, MonoFormInput, MonoFormInputOf, MonoFormItem, MonoFormOptions, MonoFormProps, MonoFormRefLike, MonoFormRule, MonoFormRuleCtx, MonoFormSchemaLike, MonoFormSetProp, MonoFormSetValidation, MonoFormTiming, MonoFormValidation, MonoFormWatcherCtx } from "../components/form/form-types.js";
|
|
22
24
|
import { controlMonoForm as monoForm } from "../components/form/mono-form-controller.js";
|
|
23
25
|
import { MonoDialogButton, MonoDialogButtonCtx, MonoDialogController, MonoDialogOptions, MonoModalController, MonoModalOptions } from "../components/modal/modal-types.js";
|
|
24
26
|
import { controlMonoModal as monoModal } from "../components/modal/mono-modal-controller.js";
|
|
25
27
|
import { MonoArraySourceOptions, monoArraySource } from "../components/table/array-source.js";
|
|
26
28
|
import { FieldSegment, ODataClause, ParsedFieldPath, getFieldValue, isPath, mergePatch, parseFieldPath, setFieldValue, toODataClause, toODataSelector } from "../search/field-path.js";
|
|
27
|
-
import { TableCheckboxProps, TableDetailProps, TableInfoProps, TableLoadingProps, TablePageSizeProps, TablePagingProps, TableSearchProps, TableSortProps, TableSummaryProps, TableThProps, TableThSort } from "../components/table/table-types.js";
|
|
29
|
+
import { TableCheckboxProps, TableDetailProps, TableInfoProps, TableLoadingProps, TablePageSizeProps, TablePagingProps, TableSearchEvents, TableSearchProps, TableSortProps, TableSummaryProps, TableThProps, TableThSort } from "../components/table/table-types.js";
|
|
28
30
|
import { controlMonoTooltip, monoTooltip } from "../components/tooltip/control-tooltip.js";
|
|
29
31
|
import { createMonoTooltip, destroyAllMonoTooltips, resetMonoTooltip } from "../components/tooltip/tooltip-declarative.js";
|
|
30
32
|
import { getMonoTooltipGlobal } from "../components/tooltip/tooltip-config.js";
|
|
@@ -33,4 +35,4 @@ import { MonoPending, MonoPendingOptions, MonoPhantomProps, MonoSkeletonDefaults
|
|
|
33
35
|
import { MonoUI, MonoUIComponents, MonoUIConfig, MonoUIStatus, createMonoUI, getMonoUI, getMonoUIStatus, resetMonoUI } from "../composables/mono-ui.js";
|
|
34
36
|
import { BasecoatTokens, DEFAULT_FLAVOR, DEFAULT_THEME, FlavorName, MonoRoleTokens, ThemeColors, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, flavorPresets, themePresets } from "../data/theme/presets.js";
|
|
35
37
|
import { ApplyThemeInput, FlavorConfig, ThemeConfig, applyFlavor, applyTheme, createFlavorClass, createThemeClass, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFlavorData, getThemeData, isValidFlavor, isValidTheme, resetFlavor, resetTheme, themes } from "../data/theme/index.js";
|
|
36
|
-
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyMonoSizeAttributes, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, startMonoSizeAttributes, stopMonoSizeAttributes, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
38
|
+
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoEmptySuggestionOptions, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterSuggestion, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSuggestionFilter, type MonoSuggestionValueSource, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchEvents, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyMonoSizeAttributes, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, startMonoSizeAttributes, stopMonoSizeAttributes, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MonoSearchCustomCtx, MonoSearchCustomResult, MonoSearchExpr, MonoSearchExprCustom, MonoSearchExprEntry, ResolveSearchOptions, customPredicate, customRemoteClause, expandWildcard, hasCustomSearch, hasWildcardSearch, isWildcardPattern, normalizeSearchExpr, plainSearchColumns, resolveSearchEntries, searchEntryField, searchEntryFor } from "./search-expr.js";
|
|
2
2
|
import { ApplySourceSearchOptions, DEFAULT_SEARCH_OPERATION, MonoSearchFieldsAliases, MonoSearchValue, MonoSourceSearch, ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, SearchableSource, isFoldableSearch, mergeSearchFields, parseSearchValue, plainSearchFields, readSearchField, resolveSearchFields, searchRemoteFilter, searchRowPredicate } from "./data-search.js";
|
|
3
|
+
import { RowPredicate, andFilters, andPredicates, compileFilterPredicate, joinFilters } from "./filter-eval.js";
|
|
3
4
|
import { FieldSegment, ODataClause, ParsedFieldPath, getFieldValue, isPath, mergePatch, odataComparison, odataLiteral, parseFieldPath, projectFields, setFieldValue, toODataClause, toODataSelector } from "./field-path.js";
|
|
4
5
|
import { MonoODataSearchOptions, odataSearchExpr } from "./odata-search.js";
|
|
5
|
-
import { RowPredicate, andFilters, andPredicates, compileFilterPredicate, joinFilters } from "./filter-eval.js";
|
|
6
6
|
export { type ApplySourceSearchOptions, DEFAULT_SEARCH_OPERATION, type FieldSegment, type MonoODataSearchOptions, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchValue, MonoSourceSearch, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, type ResolveSearchOptions, type RowPredicate, SEARCH_FIELDS_KEYS, type SearchableSource, andFilters, andPredicates, compileFilterPredicate, customPredicate, customRemoteClause, expandWildcard, getFieldValue, hasCustomSearch, hasWildcardSearch, isFoldableSearch, isPath, isWildcardPattern, joinFilters, mergePatch, mergeSearchFields, normalizeSearchExpr, odataComparison, odataLiteral, odataSearchExpr, parseFieldPath, parseSearchValue, plainSearchColumns, plainSearchFields, projectFields, readSearchField, resolveSearchEntries, resolveSearchFields, searchEntryField, searchEntryFor, searchRemoteFilter, searchRowPredicate, setFieldValue, toODataClause, toODataSelector };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ApplyGate } from "./data-source-apply.js";
|
|
2
|
+
//#region src/utils/group-count.d.ts
|
|
3
|
+
export interface MonoValueCount {
|
|
4
|
+
value: unknown;
|
|
5
|
+
count: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Group-count `field` through `store` with ONE `$apply`, or `null` when that path
|
|
9
|
+
* is not available — the gate is off, a wildcard path (nothing to group by), a
|
|
10
|
+
* store that cannot carry an `$apply` (a CustomStore), a failed request (reported
|
|
11
|
+
* to the gate), or a response that is not rolled up (a server that ignored the
|
|
12
|
+
* clause). An EMPTY grouped result is a real answer and comes back as `[]`.
|
|
13
|
+
*
|
|
14
|
+
* The rows are returned in server order — the caller sorts.
|
|
15
|
+
*/
|
|
16
|
+
export declare function groupCountViaApply(store: unknown, field: string, filter: unknown, gate: ApplyGate, options?: {
|
|
17
|
+
top?: number;
|
|
18
|
+
}): Promise<MonoValueCount[] | null>;
|
|
19
|
+
/** One row of a multi-field group count: the value of each grouped field, and how many rows. */
|
|
20
|
+
export interface MonoTupleCount {
|
|
21
|
+
values: Record<string, unknown>;
|
|
22
|
+
count: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* {@link groupCountViaApply} over SEVERAL fields at once — one
|
|
26
|
+
* `groupby((A,B),aggregate($count as count))` request, one row per combination
|
|
27
|
+
* that exists. Same `null` contract.
|
|
28
|
+
*/
|
|
29
|
+
export declare function groupCountsViaApply(store: unknown, fields: readonly string[], filter: unknown, gate: ApplyGate, options?: {
|
|
30
|
+
top?: number;
|
|
31
|
+
}): Promise<MonoTupleCount[] | null>;
|
|
32
|
+
/** {@link countValues} over several fields: one tuple per combination, with its row count. */
|
|
33
|
+
export declare function countTuples(rows: readonly unknown[], fields: readonly string[]): MonoTupleCount[];
|
|
34
|
+
/** Count occurrences of `field` across `rows` (path-aware; a wildcard path flattens). */
|
|
35
|
+
export declare function countValues(rows: readonly unknown[], field: string): MonoValueCount[];
|
|
36
|
+
//#endregion
|