@ecodev/natural 41.0.0 → 41.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,12 @@ export declare class NaturalQueryVariablesManager<T extends QueryVariables = Que
47
47
  * Set or override all the variables that may exist in the given channel
48
48
  */
49
49
  set(channelName: string, variables: Partial<T> | null | undefined): void;
50
+ /**
51
+ * Return a deep clone of the variables for the given channel name.
52
+ *
53
+ * Avoid returning the same reference to prevent an attribute change, then another channel update that would
54
+ * used this changed attribute without having explicitly asked QueryVariablesManager to update it.
55
+ */
50
56
  get(channelName: string): Partial<T> | undefined;
51
57
  /**
52
58
  * Merge variable into a channel, overriding arrays in same channel / key
@@ -57,7 +63,7 @@ export declare class NaturalQueryVariablesManager<T extends QueryVariables = Que
57
63
  * Note : lodash defaults only defines values on destinations keys that are undefined
58
64
  */
59
65
  defaults(channelName: string, newVariables: Partial<T>): void;
60
- getChannelsCopy(): Map<string, Partial<T>>;
66
+ private getChannelsCopy;
61
67
  /**
62
68
  * Merge channels in a single object
63
69
  * Arrays are concatenated
@@ -48,3 +48,8 @@ export declare function getForegroundColor(hexBgColor: string): 'black' | 'white
48
48
  * During lodash.mergeWith, overrides arrays
49
49
  */
50
50
  export declare function mergeOverrideArray(destValue: any, source: any): any;
51
+ /**
52
+ * Copy text to clipboard.
53
+ * Accepts line breaks `\n` as textarea do.
54
+ */
55
+ export declare function copyToClipboard(document: Document, text: string): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, ElementRef, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { NaturalFileService } from './file.service';
3
3
  import { NaturalAbstractController } from '../../classes/abstract-controller';
4
4
  export interface InvalidFile {
@@ -56,6 +56,13 @@ export declare abstract class NaturalAbstractFile extends NaturalAbstractControl
56
56
  * no effect.
57
57
  */
58
58
  selectable: boolean;
59
+ /**
60
+ * If true, the file selection will be broadcast through `NaturalFileService.filesChanged`.
61
+ *
62
+ * It is useful to set this to false if there is two upload on a page with different purpose
63
+ * and the second upload should not be confused with the first one.
64
+ */
65
+ broadcast: boolean;
59
66
  /**
60
67
  * The single valid file that has been selected.
61
68
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "41.0.0",
3
+ "version": "41.2.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,