@mintplayer/ng-bootstrap 22.28.0 → 22.29.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.
Files changed (134) hide show
  1. package/_bootstrap.scss +4 -101
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
  7. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
  9. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
  11. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
  13. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
  19. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
  21. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +150 -824
  25. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
  27. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
  29. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
  31. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
  35. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
  37. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
  39. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
  41. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +220 -20
  43. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
  45. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
  47. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
  49. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
  53. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
  55. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
  57. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
  59. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
  61. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
  63. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
  65. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
  67. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
  69. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
  71. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
  73. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
  75. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
  77. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
  79. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
  81. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
  83. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
  85. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
  87. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
  89. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  90. package/package.json +11 -9
  91. package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
  92. package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
  93. package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
  94. package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
  95. package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
  96. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
  97. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
  98. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
  99. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
  100. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
  101. package/types/mintplayer-ng-bootstrap-datatable.d.ts +217 -422
  102. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
  103. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
  104. package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
  105. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
  106. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
  107. package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
  108. package/types/mintplayer-ng-bootstrap-machine.d.ts +112 -4
  109. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
  110. package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
  111. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
  112. package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
  113. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
  114. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
  115. package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
  116. package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
  117. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
  118. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
  119. package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
  120. package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
  121. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
  122. package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
  123. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
  124. package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
  125. package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
  126. package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
  127. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
  128. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
  129. package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
  130. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
  131. package/src/styles/utilities/cursor.scss +0 -12
  132. package/src/styles/utilities/overflow.scss +0 -12
  133. package/src/styles/utilities/white-space.scss +0 -12
  134. package/src/styles/utilities/width.scss +0 -14
@@ -1,112 +1,109 @@
1
- import * as _mintplayer_web_components_query_builder from '@mintplayer/web-components/query-builder';
2
- import { Expression, EntitySchema, SortDescriptor, QueryBuilderMessages, SavedQuery, EditorRegistry, MpQueryBuilderElement } from '@mintplayer/web-components/query-builder';
3
- export * from '@mintplayer/web-components/query-builder';
1
+ import * as _mintplayer_ui_core_query_builder from '@mintplayer/ui-core/query-builder';
2
+ import { Expression, SortDescriptor, SaveQueryDetail, SavedQueryNameDetail, EditorContext, QueryBuilderView } from '@mintplayer/ui-core/query-builder';
3
+ export { Condition, DEFAULT_MESSAGES, DEFAULT_OPERATOR_CATALOG, EditorContext, EntitySchema, Expression, FieldDef, FieldDefOption, FieldType, Group, MaxDepthExceededError, Operator, OperatorCatalog, OperatorOverrides, QueryBuilderMessages, RenderExpressionOptions, SaveQueryDetail, SavedQuery, SavedQueryNameDetail, SortDescriptor, SubQueryCondition, TreeVisitor, ValidateOperatorOverridesResult, ValueShape, VisitTreeOptions, VisitorContext, addChild, addEmptyConditionTo, addEmptyGroupTo, addEmptySubqueryTo, changeConditionField, changeConditionOperator, cloneTree, collectDescendantIds, defaultValueFor, emptyCondition, emptyGroup, emptySubquery, findNodeById, mapTree, moveNode, newId, operatorsForType, removeNode, renderExpression, setGroupLogic, updateCondition, validateOperatorOverrides, valueShapeFor, visitTree } from '@mintplayer/ui-core/query-builder';
4
4
  import * as _angular_core from '@angular/core';
5
- import { TemplateRef, AfterContentInit, ElementRef, QueryList } from '@angular/core';
5
+ import { OnInit, ElementRef, TemplateRef } from '@angular/core';
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
7
 
8
8
  /**
9
- * `*bsQueryBuilderEditor="<fieldName>"` projects an Angular template as the
10
- * value editor for the named field of the parent `bs-query-builder`.
11
- *
12
- * The template's context exposes the `EditorContext` (`let ctx`):
13
- *
14
- * <bs-datepicker *bsQueryBuilderEditor="'orderDate'; let ctx"
15
- * [value]="ctx.value"
16
- * (valueChange)="ctx.onChange($event)">
17
- * </bs-datepicker>
18
- *
19
- * The wrapper collects these via @ContentChildren and assembles them into
20
- * an `EditorRegistry` it forwards to the WC. Each factory invocation creates
21
- * a fresh embedded view, exposes `view.rootNodes[0]` as the EditorHandle.element,
22
- * and returns `dispose: () => view.destroy()` so M4's disposal contract holds.
9
+ * The `ControlValueAccessor` of `bs-query-builder` (a host directive of the
10
+ * generated component, see `query-builder.angular.ts`). A bound form control
11
+ * drives the tree through `viewValue`; every edit the user makes reaches the
12
+ * form through the component's `query` model, which a form write never touches.
23
13
  */
24
- declare class BsQueryBuilderEditorDirective {
25
- readonly templateRef: TemplateRef<unknown>;
26
- fieldName: _angular_core.InputSignal<string>;
27
- constructor(templateRef: TemplateRef<unknown>);
28
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsQueryBuilderEditorDirective, never>;
29
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsQueryBuilderEditorDirective, "[bsQueryBuilderEditor]", never, { "fieldName": { "alias": "bsQueryBuilderEditor"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
14
+ declare class BsQueryBuilderValueAccessor implements ControlValueAccessor, OnInit {
15
+ private readonly injector;
16
+ private readonly destroyRef;
17
+ /** A form control drives the tree: its `viewValue` wins over the `query` input. */
18
+ readonly bound: _angular_core.WritableSignal<boolean>;
19
+ readonly viewValue: _angular_core.WritableSignal<Expression | null>;
20
+ readonly disabled: _angular_core.WritableSignal<boolean>;
21
+ private onChange;
22
+ onTouched: () => void;
23
+ ngOnInit(): void;
24
+ writeValue(value: Expression | null | undefined): void;
25
+ registerOnChange(fn: (value: Expression | null) => void): void;
26
+ registerOnTouched(fn: () => void): void;
27
+ setDisabledState(isDisabled: boolean): void;
28
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsQueryBuilderValueAccessor, never>;
29
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsQueryBuilderValueAccessor, never, never, {}, {}, never, never, true, never>;
30
30
  }
31
31
 
32
- declare class BsQueryBuilderComponent implements AfterContentInit, ControlValueAccessor {
33
- query: _angular_core.ModelSignal<Expression>;
34
- schema: _angular_core.InputSignal<EntitySchema[]>;
35
- /**
36
- * Two-way bindable since M18: when `[multiEntityPickerEnabled]` is on and
37
- * the user picks a different entity in the toolbar, the model emits the
38
- * new value. Existing `[rootEntity]="'orders'"` static bindings keep
39
- * working (read-only model usage).
40
- */
41
- rootEntity: _angular_core.ModelSignal<string>;
42
- /**
43
- * Opt-in: render an entity-picker dropdown in the top toolbar (and any
44
- * other Phase-2 toolbar widgets — field projection, sort builder — once
45
- * those land). Default `false` preserves today's compact rendering with
46
- * no toolbar.
47
- */
48
- multiEntityPickerEnabled: _angular_core.InputSignal<boolean>;
49
- /**
50
- * Two-way bindable list of currently-selected field names for projection.
51
- * Presentation-only — does NOT affect the query tree. Consumers typically
52
- * map this to which datatable columns to render. Empty array = nothing
53
- * selected; the consumer decides how to interpret that (commonly "show
54
- * all"). When `rootEntity` changes, stale field names just disappear
55
- * from the checkbox list (no auto-reset).
56
- */
57
- selectedFields: _angular_core.ModelSignal<string[]>;
58
- /**
59
- * Two-way bindable list of sort descriptors. Same shape as the
60
- * `QueryRequest.sort[]` wire-format field — `{ field, direction }`.
61
- * Multi-priority allowed: array order is the priority order.
62
- */
63
- sortBy: _angular_core.ModelSignal<SortDescriptor[]>;
64
- messages: _angular_core.InputSignal<Partial<QueryBuilderMessages> | undefined>;
65
- showPreview: _angular_core.InputSignal<boolean>;
66
- showSavedQueries: _angular_core.InputSignal<boolean>;
67
- maxDepth: _angular_core.InputSignal<number>;
68
- savedQueries: _angular_core.InputSignal<SavedQuery[]>;
69
- operatorOverrides: _angular_core.InputSignal<Partial<Record<string, _mintplayer_web_components_query_builder.Operator[]>> | undefined>;
70
- disabled: _angular_core.InputSignal<boolean>;
71
- editorRegistry: _angular_core.InputSignal<EditorRegistry | undefined>;
72
- readonly saveQuery: _angular_core.OutputEmitterRef<{
73
- name: string;
74
- tree: Expression;
32
+ /** The `editor` slot of `<bs-query-builder>`: `<ng-template bsQueryBuilderEditor>` or `*bsQueryBuilderEditor`. */
33
+ declare class BsQueryBuilderEditorDirective {
34
+ readonly templateRef: TemplateRef<{
35
+ ctx: EditorContext;
36
+ } & {
37
+ $implicit: {
38
+ ctx: EditorContext;
39
+ };
75
40
  }>;
76
- readonly loadQuery: _angular_core.OutputEmitterRef<{
77
- name: string;
41
+ static ngTemplateContextGuard(_dir: BsQueryBuilderEditorDirective, ctx: unknown): ctx is {
42
+ ctx: EditorContext;
43
+ } & {
44
+ $implicit: {
45
+ ctx: EditorContext;
46
+ };
47
+ };
48
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsQueryBuilderEditorDirective, never>;
49
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsQueryBuilderEditorDirective, "[bsQueryBuilderEditor]", never, {}, {}, never, never, true, never>;
50
+ }
51
+ /**
52
+ * A visual editor for a filter expression: AND/OR groups, conditions and sub-queries over a relation (#437).
53
+ *
54
+ * `query` is two-way. The tree renders as flat rows, so the server render shows the whole query.
55
+ * A field with `editor: 'custom'` renders its value through the `editor` slot, which receives an
56
+ * `EditorContext` (call `ctx.onChange(next)`). Rows reorder by dragging the handle, or with
57
+ * Alt+Up/Down on a row. An `aria-label` names it.
58
+ */
59
+ declare class BsQueryBuilderComponent {
60
+ #private;
61
+ /** The host element. */
62
+ readonly elementRef: ElementRef<HTMLElement>;
63
+ readonly query: _angular_core.ModelSignal<Expression | null>;
64
+ readonly schema: _angular_core.InputSignal<readonly _mintplayer_ui_core_query_builder.EntitySchema[]>;
65
+ readonly rootEntity: _angular_core.ModelSignal<string>;
66
+ readonly multiEntityPickerEnabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
67
+ readonly selectedFields: _angular_core.ModelSignal<readonly string[]>;
68
+ readonly sortBy: _angular_core.ModelSignal<readonly SortDescriptor[]>;
69
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
70
+ readonly messages: _angular_core.InputSignal<Partial<_mintplayer_ui_core_query_builder.QueryBuilderMessages> | null | undefined>;
71
+ readonly maxDepth: _angular_core.InputSignalWithTransform<number, unknown>;
72
+ readonly showPreview: _angular_core.InputSignalWithTransform<boolean, unknown>;
73
+ readonly showSavedQueries: _angular_core.InputSignalWithTransform<boolean, unknown>;
74
+ readonly savedQueries: _angular_core.InputSignal<readonly _mintplayer_ui_core_query_builder.SavedQuery[]>;
75
+ /** The user edited the query. */
76
+ readonly querychange: _angular_core.OutputEmitterRef<Expression>;
77
+ /** The user picked another entity in the toolbar. */
78
+ readonly rootentitychange: _angular_core.OutputEmitterRef<string>;
79
+ /** The projected columns changed. */
80
+ readonly selectedfieldschange: _angular_core.OutputEmitterRef<string[]>;
81
+ /** The sort changed. */
82
+ readonly sortbychange: _angular_core.OutputEmitterRef<SortDescriptor[]>;
83
+ /** Save the current query under a name. */
84
+ readonly savequery: _angular_core.OutputEmitterRef<SaveQueryDetail>;
85
+ /** Load the named saved query. */
86
+ readonly loadquery: _angular_core.OutputEmitterRef<SavedQueryNameDetail>;
87
+ /** Delete the named saved query. */
88
+ readonly deletequery: _angular_core.OutputEmitterRef<SavedQueryNameDetail>;
89
+ private readonly editorSlot;
90
+ /** The template's named slots. */
91
+ protected readonly slots: _angular_core.Signal<{
92
+ editor: TemplateRef<{
93
+ ctx: EditorContext;
94
+ } & {
95
+ $implicit: {
96
+ ctx: EditorContext;
97
+ };
98
+ }> | undefined;
78
99
  }>;
79
- readonly deleteQuery: _angular_core.OutputEmitterRef<{
80
- name: string;
100
+ /** The template's props. */
101
+ protected readonly props: _angular_core.Signal<{
102
+ view: QueryBuilderView;
81
103
  }>;
82
- readonly wcRef: _angular_core.Signal<ElementRef<MpQueryBuilderElement>>;
83
- protected editorDirectives: QueryList<BsQueryBuilderEditorDirective>;
84
- private vcr;
85
- protected readonly formDisabled: _angular_core.WritableSignal<boolean>;
86
- /** Combined effective disabled state used by the template. */
87
- protected readonly effectiveDisabled: _angular_core.WritableSignal<boolean>;
88
- /** Re-entrancy guard for writeValue ↔ model() round-tripping (FR-18). */
89
- private writingFromForm;
90
- private onChangeFn;
91
- private onTouchedFn;
92
- /** Editor registry built from @ContentChildren + the [editorRegistry] input. */
93
- private directiveRegistry;
94
104
  constructor();
95
- ngAfterContentInit(): void;
96
- private rebuildDirectiveRegistry;
97
- protected onQueryChange(event: Event): void;
98
- protected onRootEntityChange(event: Event): void;
99
- protected onSelectedFieldsChange(event: Event): void;
100
- protected onSortByChange(event: Event): void;
101
- protected onSaveQuery(event: Event): void;
102
- protected onLoadQuery(event: Event): void;
103
- protected onDeleteQuery(event: Event): void;
104
- writeValue(value: Expression | null | undefined): void;
105
- registerOnChange(fn: (value: Expression) => void): void;
106
- registerOnTouched(fn: () => void): void;
107
- setDisabledState(isDisabled: boolean): void;
108
105
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsQueryBuilderComponent, never>;
109
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsQueryBuilderComponent, "bs-query-builder", never, { "query": { "alias": "query"; "required": false; "isSignal": true; }; "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "rootEntity": { "alias": "rootEntity"; "required": false; "isSignal": true; }; "multiEntityPickerEnabled": { "alias": "multiEntityPickerEnabled"; "required": false; "isSignal": true; }; "selectedFields": { "alias": "selectedFields"; "required": false; "isSignal": true; }; "sortBy": { "alias": "sortBy"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "showPreview": { "alias": "showPreview"; "required": false; "isSignal": true; }; "showSavedQueries": { "alias": "showSavedQueries"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "savedQueries": { "alias": "savedQueries"; "required": false; "isSignal": true; }; "operatorOverrides": { "alias": "operatorOverrides"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "editorRegistry": { "alias": "editorRegistry"; "required": false; "isSignal": true; }; }, { "query": "queryChange"; "rootEntity": "rootEntityChange"; "selectedFields": "selectedFieldsChange"; "sortBy": "sortByChange"; "saveQuery": "saveQuery"; "loadQuery": "loadQuery"; "deleteQuery": "deleteQuery"; }, ["editorDirectives"], never, true, never>;
106
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsQueryBuilderComponent, "bs-query-builder", never, { "query": { "alias": "query"; "required": false; "isSignal": true; }; "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "rootEntity": { "alias": "rootEntity"; "required": false; "isSignal": true; }; "multiEntityPickerEnabled": { "alias": "multiEntityPickerEnabled"; "required": false; "isSignal": true; }; "selectedFields": { "alias": "selectedFields"; "required": false; "isSignal": true; }; "sortBy": { "alias": "sortBy"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "showPreview": { "alias": "showPreview"; "required": false; "isSignal": true; }; "showSavedQueries": { "alias": "showSavedQueries"; "required": false; "isSignal": true; }; "savedQueries": { "alias": "savedQueries"; "required": false; "isSignal": true; }; }, { "query": "queryChange"; "rootEntity": "rootEntityChange"; "selectedFields": "selectedFieldsChange"; "sortBy": "sortByChange"; "querychange": "querychange"; "rootentitychange": "rootentitychange"; "selectedfieldschange": "selectedfieldschange"; "sortbychange": "sortbychange"; "savequery": "savequery"; "loadquery": "loadquery"; "deletequery": "deletequery"; }, ["editorSlot"], never, true, [{ directive: typeof BsQueryBuilderValueAccessor; inputs: {}; outputs: {}; }]>;
110
107
  }
111
108
 
112
- export { BsQueryBuilderComponent, BsQueryBuilderEditorDirective };
109
+ export { BsQueryBuilderComponent, BsQueryBuilderEditorDirective, BsQueryBuilderValueAccessor };
@@ -1,71 +1,104 @@
1
+ import * as _mintplayer_ui_core_forms from '@mintplayer/ui-core/forms';
2
+ import * as _mintplayer_ui_core_radio from '@mintplayer/ui-core/radio';
3
+ import { RadioInputBag } from '@mintplayer/ui-core/radio';
1
4
  import * as _angular_core from '@angular/core';
2
- import { ElementRef } from '@angular/core';
3
5
  import { ControlValueAccessor } from '@angular/forms';
4
- import { MpRadio } from '@mintplayer/web-components/radio';
5
6
  import * as i1 from '@mintplayer/ng-bootstrap/a11y';
6
7
 
7
8
  /**
8
- * Groups N `<bs-radio>` children into a single-select FormControl whose
9
- * value is the selected radio's `value()`. The group owns the shared
10
- * `[name]` (radios don't carry their own). Acts as its own
11
- * `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]` on the
12
- * element carrying `[bsRadioGroup]`.
9
+ * Groups N `<bs-radio>` descendants into a single-select FormControl whose
10
+ * value is the selected radio's `value()`. Bind `[formControl]` /
11
+ * `[(ngModel)]` on the element carrying it.
13
12
  *
14
- * Host it on `<mp-radio-group>` where the markup allows: the WC supplies
15
- * `role="radiogroup"`, the roving tab stop, arrow move-and-select and
16
- * exclusivity, and this directive is only the CVA bridge (it listens for
17
- * the WC's `group-change`, which is the ONLY signal a keyboard-driven
18
- * selection produces — the WC checks radios programmatically, so no
19
- * `change` bubbles). On any other host (a `<tbody>`, a `<bs-button-group>`)
20
- * the WC element cannot be used, and this directive coordinates the
21
- * one-of-N itself on bubbled `change` — shadow roots keep the browser's
22
- * native auto-uncheck from ever firing across `<mp-radio>` boundaries.
13
+ * The group hands its `name` to every radio (generated when none is given),
14
+ * so they are native radios of ONE set in one node tree: the browser supplies
15
+ * exclusivity, the single tab stop, arrow move-and-select and posinset, also
16
+ * with JavaScript off (#437). This directive only carries the value, the
17
+ * disabled state and the touched signal.
18
+ *
19
+ * `<bs-radio-group>` is the element form and takes `role="radiogroup"`; name
20
+ * it with `aria-label` / `aria-labelledby`. On another host (a `<tbody>`, a
21
+ * `<bs-button-group>`) the attribute form adds no role, because the host keeps
22
+ * its own; radios that are not descendants wire in with `[group]="g"`.
23
23
  */
24
24
  declare class BsRadioGroupDirective implements ControlValueAccessor {
25
25
  private readonly host;
26
+ private readonly isElementHost;
27
+ private readonly id;
26
28
  readonly name: _angular_core.InputSignal<string | null>;
27
- readonly radios: _angular_core.Signal<readonly BsRadioComponent[]>;
28
- /** Most-recently-written form value. An effect syncs each child's
29
- * `isToggled` (and the WC's `checked` property) whenever this OR the
30
- * `radios()` set changes, so an initial `writeValue` that lands before
31
- * children register still applies once the `contentChildren` query
32
- * populates. */
33
- private readonly currentValue;
29
+ /** Marks the set required: `aria-required` on the group and `required` on every radio. */
30
+ readonly required: _angular_core.InputSignal<boolean>;
31
+ /** The radios' shared `name`; one is generated so native grouping always forms. */
32
+ readonly groupName: _angular_core.Signal<string>;
33
+ private readonly selected;
34
+ readonly value: _angular_core.Signal<string | null>;
35
+ private readonly formDisabled;
36
+ readonly disabled: _angular_core.Signal<boolean>;
37
+ protected readonly groupAttrs: _angular_core.Signal<Record<string, string | null>>;
34
38
  private onValueChange?;
35
39
  protected onTouched?: () => void;
36
40
  constructor();
37
- /** Keyboard/pointer selection routed through an `<mp-radio-group>` host. */
38
- onGroupChange(ev: Event): void;
39
- onChildChange(ev: Event): void;
41
+ /** Called by a radio whose native input became checked. */
42
+ select(value: string | null): void;
43
+ /**
44
+ * A radio picked in the server-rendered page before hydration would be reverted
45
+ * by the `[checked]` bindings. Read it while the host holds the server DOM, and
46
+ * report it once the form directives have written their initial value (ngModel
47
+ * writes in a microtask after the first render).
48
+ */
49
+ private adoptPreHydrationChoice;
40
50
  registerOnChange(fn: (_: string | null) => void): void;
41
51
  registerOnTouched(fn: () => void): void;
42
52
  writeValue(value: string | null): void;
43
53
  setDisabledState(isDisabled: boolean): void;
44
54
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRadioGroupDirective, never>;
45
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsRadioGroupDirective, "[bsRadioGroup]", ["bsRadioGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, ["radios"], never, true, never>;
55
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsRadioGroupDirective, "[bsRadioGroup], bs-radio-group", ["bsRadioGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
46
56
  }
47
57
 
48
58
  type BsRadioType = 'radio' | 'toggle_button';
49
59
 
60
+ /**
61
+ * A native `<input type=radio>` in Bootstrap's `.form-check` / `.btn-check`
62
+ * markup, rendered by this component's own template (#437). Inside a
63
+ * `[bsRadioGroup]` it takes the group's `name`, so the browser supplies the
64
+ * one-of-N, the single tab stop and arrow move-and-select, with JavaScript
65
+ * off as well. The consumer's `aria-*` / `id` / `tabindex` on `<bs-radio>`
66
+ * land on the input.
67
+ */
50
68
  declare class BsRadioComponent {
51
69
  private readonly parentGroup;
52
- /** Reference to the underlying `<mp-radio>` WC. Read by `[bsRadioGroup]`
53
- * to write the WC's `checked` property — shadow DOM blocks the browser's
54
- * native radio one-of-N across <mp-radio> instances, so the group
55
- * directive must coordinate unchecking explicitly. */
56
- readonly radioRef: _angular_core.Signal<ElementRef<MpRadio>>;
70
+ private readonly validity;
71
+ private readonly hostAria;
72
+ private readonly id;
57
73
  type: _angular_core.InputSignal<BsRadioType>;
74
+ /** Button colour of a `toggle_button`; ignored by `radio`. */
75
+ color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-light" | "outline-dark">;
58
76
  isToggled: _angular_core.ModelSignal<boolean>;
59
77
  value: _angular_core.InputSignal<string | null>;
78
+ disabled: _angular_core.InputSignal<boolean>;
60
79
  group: _angular_core.InputSignal<BsRadioGroupDirective | null>;
80
+ /**
81
+ * The input's accessible name when it has no visible label (a radio in a table
82
+ * row). Host aria-* are read once at creation, so a bound [attr.aria-label]
83
+ * would not follow; this input does.
84
+ */
85
+ inputLabel: _angular_core.InputSignal<string | null>;
61
86
  /** Explicit `[group]` input wins over the DI-injected ancestor. */
62
87
  readonly resolvedGroup: _angular_core.Signal<BsRadioGroupDirective | null>;
63
- /** Name comes from the resolved group; `<bs-radio>` has no `[name]` input. */
64
- readonly nameResult: _angular_core.Signal<string | null>;
88
+ /** In a group the selection is the group's value; alone, `isToggled`. */
89
+ readonly checked: _angular_core.Signal<boolean>;
90
+ private readonly state;
91
+ readonly classes: _angular_core.Signal<_mintplayer_ui_core_radio.RadioClasses>;
92
+ readonly bags: _angular_core.Signal<{
93
+ input: RadioInputBag;
94
+ labelFor: string | null;
95
+ feedback: _mintplayer_ui_core_forms.ErrorFeedback["message"];
96
+ }>;
65
97
  constructor();
98
+ /** A native radio fires `change` only when it becomes checked: by click, Space or an arrow key. */
66
99
  onChange(ev: Event): void;
67
100
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRadioComponent, never>;
68
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRadioComponent, "bs-radio", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; }, never, ["*"], true, [{ directive: typeof i1.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
101
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRadioComponent, "bs-radio", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; }, never, ["*"], true, [{ directive: typeof i1.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
69
102
  }
70
103
 
71
104
  export { BsRadioComponent, BsRadioGroupDirective };
@@ -1,7 +1,31 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { ElementRef } from '@angular/core';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
+
5
+ /**
6
+ * Angular forms for `bs-rating`, attached as a host directive so `ngModel`,
7
+ * `formControl` and `formControlName` work without an extra import. The
8
+ * component reads `written` and `disabled`, and reports user picks through
9
+ * `changed`; a form write never echoes back as a change.
10
+ */
11
+ declare class BsRatingValueAccessor implements ControlValueAccessor {
12
+ /** The last value a form wrote; `undefined` until one does. */
13
+ readonly written: _angular_core.WritableSignal<number | undefined>;
14
+ readonly disabled: _angular_core.WritableSignal<boolean>;
15
+ private onChange?;
16
+ onTouched?: () => void;
17
+ changed(value: number): void;
18
+ registerOnChange(fn: (value: number) => void): void;
19
+ registerOnTouched(fn: () => void): void;
20
+ writeValue(value: number | null | undefined): void;
21
+ setDisabledState(isDisabled: boolean): void;
22
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRatingValueAccessor, never>;
23
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsRatingValueAccessor, never, never, {}, {}, never, never, true, never>;
24
+ }
3
25
 
4
26
  declare class BsRatingComponent {
27
+ private readonly accessor;
28
+ readonly disabled: _angular_core.Signal<boolean>;
5
29
  constructor();
6
30
  /** Accessible name for the radiogroup. Override for localisation. */
7
31
  ariaLabel: _angular_core.InputSignal<string>;
@@ -28,10 +52,11 @@ declare class BsRatingComponent {
28
52
  stars: _angular_core.Signal<boolean[]>;
29
53
  hoverValue(index: number): void;
30
54
  selectValue(index: number): void;
55
+ private pick;
31
56
  onMouseLeave(): void;
32
57
  onKeydown(event: KeyboardEvent): void;
33
58
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRatingComponent, never>;
34
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRatingComponent, "bs-rating", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "starLabel": { "alias": "starLabel"; "required": false; "isSignal": true; }; "maximum": { "alias": "maximum"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "starsChange": "starsChange"; }, never, never, true, never>;
59
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRatingComponent, "bs-rating", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "starLabel": { "alias": "starLabel"; "required": false; "isSignal": true; }; "maximum": { "alias": "maximum"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "starsChange": "starsChange"; }, never, never, true, [{ directive: typeof BsRatingValueAccessor; inputs: {}; outputs: {}; }]>;
35
60
  }
36
61
 
37
- export { BsRatingComponent };
62
+ export { BsRatingComponent, BsRatingValueAccessor };