@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.
- package/bundles/ecodev-natural.umd.js +34 -5
- package/bundles/ecodev-natural.umd.js.map +1 -1
- package/ecodev-natural.metadata.json +1 -1
- package/esm2015/lib/classes/query-variable-manager.js +7 -3
- package/esm2015/lib/classes/utility.js +13 -1
- package/esm2015/lib/modules/file/abstract-file.js +14 -4
- package/esm2015/lib/modules/file/file-drop.directive.js +4 -2
- package/esm2015/lib/modules/relations/relations.component.js +2 -2
- package/fesm2015/ecodev-natural.js +34 -6
- package/fesm2015/ecodev-natural.js.map +1 -1
- package/lib/classes/query-variable-manager.d.ts +7 -1
- package/lib/classes/utility.d.ts +5 -0
- package/lib/modules/file/abstract-file.d.ts +8 -1
- package/package.json +1 -1
|
@@ -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
|
|
66
|
+
private getChannelsCopy;
|
|
61
67
|
/**
|
|
62
68
|
* Merge channels in a single object
|
|
63
69
|
* Arrays are concatenated
|
package/lib/classes/utility.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
*
|