@posiwise/shared-components 0.0.214 → 0.0.215

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.214",
3
+ "version": "0.0.215",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -100,6 +100,8 @@ declare function uploadProblem(file: File): string | null;
100
100
  */
101
101
  declare function matchingCount(filtered: unknown[] | null | undefined, files: KnowledgeFile[]): number;
102
102
  declare function shownOnPage(first: number, pageSize: number, matching: number): number;
103
+ /** Hands a downloaded file to the browser under its own name. */
104
+ declare function saveBlob(blob: Blob, name: string): void;
103
105
  declare namespace ai_knowledge_component_d_exports {
104
106
  export { AiKnowledgeComponent };
105
107
  }
@@ -117,6 +119,8 @@ export declare class AiKnowledgeComponent implements OnChanges {
117
119
  scope: KnowledgeScope;
118
120
  subscriptionId: number | null;
119
121
  subscriptionName: string;
122
+ /** "Use my data" off: no uploads and the Brain ignores these files; they can still be removed. */
123
+ useOwnData: boolean;
120
124
  fileInput: ElementRef<HTMLInputElement>;
121
125
  readonly accept: string;
122
126
  readonly pageSize = 50;
@@ -162,6 +166,10 @@ export declare class AiKnowledgeComponent implements OnChanges {
162
166
  "alias": "subscriptionName";
163
167
  "required": false;
164
168
  };
169
+ "useOwnData": {
170
+ "alias": "useOwnData";
171
+ "required": false;
172
+ };
165
173
  }, {}, never, never, false, never>;
166
174
  }
167
175
  /**
@@ -2010,8 +2018,16 @@ export declare class InputContainerComponent implements OnInit {
2010
2018
  showAfterLabel: boolean;
2011
2019
  showTriangleText: string;
2012
2020
  isLeftTooltip: boolean;
2021
+ private readonly cdr;
2022
+ private readonly destroyRef;
2013
2023
  constructor(controlContainer: ControlContainer);
2014
2024
  ngOnInit(): void;
2025
+ /**
2026
+ * Angular 22 makes components OnPush unless they opt out, and this one's inputs
2027
+ * never change when the control does. Without this, `markAllAsTouched()` on a
2028
+ * failed submit leaves every error message hidden and the button looks dead.
2029
+ */
2030
+ private refreshOnControlEvents;
2015
2031
  static ɵfac: i0.ɵɵFactoryDeclaration<InputContainerComponent, [{
2016
2032
  optional: true;
2017
2033
  host: true;