@sankhyalabs/sankhyablocks 9.2.0-dev.14 → 9.2.0-dev.15
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.
@@ -416,8 +416,20 @@ export class SnkPesquisa {
|
|
416
416
|
"required": false,
|
417
417
|
"optional": false,
|
418
418
|
"docs": {
|
419
|
-
"tags": [
|
420
|
-
|
419
|
+
"tags": [{
|
420
|
+
"name": "type",
|
421
|
+
"text": "{(text: string) => Promise<any>}"
|
422
|
+
}, {
|
423
|
+
"name": "param",
|
424
|
+
"text": "text Texto utilizado como argumento de pesquisa."
|
425
|
+
}, {
|
426
|
+
"name": "returns",
|
427
|
+
"text": "Promise com os dados da pesquisa."
|
428
|
+
}, {
|
429
|
+
"name": "example",
|
430
|
+
"text": "searchLoader={(text) => fetchItems(text)}"
|
431
|
+
}],
|
432
|
+
"text": "Fun\u00E7\u00E3o respons\u00E1vel em carregar os itens do componente snk-pesquisa.\nDeve retornar uma Promise com os dados encontrados."
|
421
433
|
}
|
422
434
|
},
|
423
435
|
"treeLoader": {
|
@@ -435,8 +447,17 @@ export class SnkPesquisa {
|
|
435
447
|
"required": false,
|
436
448
|
"optional": true,
|
437
449
|
"docs": {
|
438
|
-
"tags": [
|
439
|
-
|
450
|
+
"tags": [{
|
451
|
+
"name": "type",
|
452
|
+
"text": "{(text: string) => Promise<any>}"
|
453
|
+
}, {
|
454
|
+
"name": "param",
|
455
|
+
"text": "text Texto utilizado como argumento de pesquisa para a \u00E1rvore."
|
456
|
+
}, {
|
457
|
+
"name": "returns",
|
458
|
+
"text": "Promise com os dados da \u00E1rvore."
|
459
|
+
}],
|
460
|
+
"text": "Fun\u00E7\u00E3o respons\u00E1vel por carregar a \u00E1rvore hier\u00E1rquica do componente.\nOpcional. Caso n\u00E3o seja fornecida, o modo \u00E1rvore n\u00E3o estar\u00E1 dispon\u00EDvel."
|
440
461
|
}
|
441
462
|
},
|
442
463
|
"selectItem": {
|
@@ -455,8 +476,20 @@ export class SnkPesquisa {
|
|
455
476
|
"required": false,
|
456
477
|
"optional": false,
|
457
478
|
"docs": {
|
458
|
-
"tags": [
|
459
|
-
|
479
|
+
"tags": [{
|
480
|
+
"name": "type",
|
481
|
+
"text": "{(option: IOption) => void}"
|
482
|
+
}, {
|
483
|
+
"name": "param",
|
484
|
+
"text": "option Item selecionado."
|
485
|
+
}, {
|
486
|
+
"name": "returns",
|
487
|
+
"text": "void"
|
488
|
+
}, {
|
489
|
+
"name": "example",
|
490
|
+
"text": "selectItem={(option) => handleSelect(option)}"
|
491
|
+
}],
|
492
|
+
"text": "Fun\u00E7\u00E3o disparada ao selecionar um item da pesquisa."
|
460
493
|
}
|
461
494
|
},
|
462
495
|
"entityName": {
|
@@ -470,8 +503,14 @@ export class SnkPesquisa {
|
|
470
503
|
"required": false,
|
471
504
|
"optional": false,
|
472
505
|
"docs": {
|
473
|
-
"tags": [
|
474
|
-
|
506
|
+
"tags": [{
|
507
|
+
"name": "type",
|
508
|
+
"text": "{string}"
|
509
|
+
}, {
|
510
|
+
"name": "example",
|
511
|
+
"text": "entityName=\"Produto\""
|
512
|
+
}],
|
513
|
+
"text": "Nome da entidade sobre a qual a pesquisa ser\u00E1 realizada."
|
475
514
|
},
|
476
515
|
"attribute": "entity-name",
|
477
516
|
"reflect": false
|
@@ -487,8 +526,17 @@ export class SnkPesquisa {
|
|
487
526
|
"required": false,
|
488
527
|
"optional": false,
|
489
528
|
"docs": {
|
490
|
-
"tags": [
|
491
|
-
|
529
|
+
"tags": [{
|
530
|
+
"name": "type",
|
531
|
+
"text": "{string}"
|
532
|
+
}, {
|
533
|
+
"name": "mutable",
|
534
|
+
"text": undefined
|
535
|
+
}, {
|
536
|
+
"name": "example",
|
537
|
+
"text": "argument=\"Texto para pesquisa\""
|
538
|
+
}],
|
539
|
+
"text": "Argumento utilizado ao chamar a fun\u00E7\u00E3o searchLoader.\nPode ser alterado externamente."
|
492
540
|
},
|
493
541
|
"attribute": "argument",
|
494
542
|
"reflect": false
|
@@ -504,8 +552,17 @@ export class SnkPesquisa {
|
|
504
552
|
"required": false,
|
505
553
|
"optional": false,
|
506
554
|
"docs": {
|
507
|
-
"tags": [
|
508
|
-
|
555
|
+
"tags": [{
|
556
|
+
"name": "type",
|
557
|
+
"text": "{boolean}"
|
558
|
+
}, {
|
559
|
+
"name": "default",
|
560
|
+
"text": "false"
|
561
|
+
}, {
|
562
|
+
"name": "example",
|
563
|
+
"text": "isHierarchyEntity={true}"
|
564
|
+
}],
|
565
|
+
"text": "Define se a popup de pesquisa ter\u00E1 ou n\u00E3o modo hier\u00E1rquico."
|
509
566
|
},
|
510
567
|
"attribute": "is-hierarchy-entity",
|
511
568
|
"reflect": false,
|
@@ -522,8 +579,17 @@ export class SnkPesquisa {
|
|
522
579
|
"required": false,
|
523
580
|
"optional": false,
|
524
581
|
"docs": {
|
525
|
-
"tags": [
|
526
|
-
|
582
|
+
"tags": [{
|
583
|
+
"name": "type",
|
584
|
+
"text": "{boolean}"
|
585
|
+
}, {
|
586
|
+
"name": "default",
|
587
|
+
"text": "false"
|
588
|
+
}, {
|
589
|
+
"name": "example",
|
590
|
+
"text": "allowsNonAnalytic={true}"
|
591
|
+
}],
|
592
|
+
"text": "Define se permite a sele\u00E7\u00E3o de itens n\u00E3o anal\u00EDticos."
|
527
593
|
},
|
528
594
|
"attribute": "allows-non-analytic",
|
529
595
|
"reflect": false,
|
@@ -28,30 +28,68 @@ export declare class SnkPesquisa {
|
|
28
28
|
private _valideDataSource;
|
29
29
|
/**
|
30
30
|
* Função responsável em carregar os itens do componente snk-pesquisa.
|
31
|
+
* Deve retornar uma Promise com os dados encontrados.
|
32
|
+
*
|
33
|
+
* @type {(text: string) => Promise<any>}
|
34
|
+
* @param text Texto utilizado como argumento de pesquisa.
|
35
|
+
* @returns Promise com os dados da pesquisa.
|
36
|
+
* @example
|
37
|
+
* searchLoader={(text) => fetchItems(text)}
|
31
38
|
*/
|
32
39
|
searchLoader: (text: string) => Promise<any>;
|
33
40
|
/**
|
34
|
-
* Função responsável por carregar a árvore hierárquica do componente
|
41
|
+
* Função responsável por carregar a árvore hierárquica do componente.
|
42
|
+
* Opcional. Caso não seja fornecida, o modo árvore não estará disponível.
|
43
|
+
*
|
44
|
+
* @type {(text: string) => Promise<any>}
|
45
|
+
* @param text Texto utilizado como argumento de pesquisa para a árvore.
|
46
|
+
* @returns Promise com os dados da árvore.
|
35
47
|
*/
|
36
48
|
treeLoader?: (text: string) => Promise<any>;
|
37
49
|
/**
|
38
|
-
* Função disparada ao selecionar um item.
|
50
|
+
* Função disparada ao selecionar um item da pesquisa.
|
51
|
+
*
|
52
|
+
* @type {(option: IOption) => void}
|
53
|
+
* @param option Item selecionado.
|
54
|
+
* @returns void
|
55
|
+
* @example
|
56
|
+
* selectItem={(option) => handleSelect(option)}
|
39
57
|
*/
|
40
58
|
selectItem: (option: IOption) => void;
|
41
59
|
/**
|
42
|
-
* Nome da entidade
|
60
|
+
* Nome da entidade sobre a qual a pesquisa será realizada.
|
61
|
+
*
|
62
|
+
* @type {string}
|
63
|
+
* @example
|
64
|
+
* entityName="Produto"
|
43
65
|
*/
|
44
66
|
entityName: string;
|
45
67
|
/**
|
46
|
-
*
|
68
|
+
* Argumento utilizado ao chamar a função searchLoader.
|
69
|
+
* Pode ser alterado externamente.
|
70
|
+
*
|
71
|
+
* @type {string}
|
72
|
+
* @mutable
|
73
|
+
* @example
|
74
|
+
* argument="Texto para pesquisa"
|
47
75
|
*/
|
48
76
|
argument: string;
|
49
77
|
/**
|
50
|
-
* Define se a popup de pesquisa
|
78
|
+
* Define se a popup de pesquisa terá ou não modo hierárquico.
|
79
|
+
*
|
80
|
+
* @type {boolean}
|
81
|
+
* @default false
|
82
|
+
* @example
|
83
|
+
* isHierarchyEntity={true}
|
51
84
|
*/
|
52
85
|
isHierarchyEntity: boolean;
|
53
86
|
/**
|
54
|
-
* Define se permite seleção de
|
87
|
+
* Define se permite a seleção de itens não analíticos.
|
88
|
+
*
|
89
|
+
* @type {boolean}
|
90
|
+
* @default false
|
91
|
+
* @example
|
92
|
+
* allowsNonAnalytic={true}
|
55
93
|
*/
|
56
94
|
allowsNonAnalytic: boolean;
|
57
95
|
observeArgument(): void;
|
@@ -2151,31 +2151,53 @@ export namespace Components {
|
|
2151
2151
|
}
|
2152
2152
|
interface SnkPesquisa {
|
2153
2153
|
/**
|
2154
|
-
* Define se permite seleção de
|
2154
|
+
* Define se permite a seleção de itens não analíticos.
|
2155
|
+
* @type {boolean}
|
2156
|
+
* @default false
|
2157
|
+
* @example allowsNonAnalytic={true}
|
2155
2158
|
*/
|
2156
2159
|
"allowsNonAnalytic": boolean;
|
2157
2160
|
/**
|
2158
|
-
*
|
2161
|
+
* Argumento utilizado ao chamar a função searchLoader. Pode ser alterado externamente.
|
2162
|
+
* @type {string}
|
2163
|
+
* @mutable
|
2164
|
+
* @example argument="Texto para pesquisa"
|
2159
2165
|
*/
|
2160
2166
|
"argument": string;
|
2161
2167
|
/**
|
2162
|
-
* Nome da entidade
|
2168
|
+
* Nome da entidade sobre a qual a pesquisa será realizada.
|
2169
|
+
* @type {string}
|
2170
|
+
* @example entityName="Produto"
|
2163
2171
|
*/
|
2164
2172
|
"entityName": string;
|
2165
2173
|
/**
|
2166
|
-
* Define se a popup de pesquisa
|
2174
|
+
* Define se a popup de pesquisa terá ou não modo hierárquico.
|
2175
|
+
* @type {boolean}
|
2176
|
+
* @default false
|
2177
|
+
* @example isHierarchyEntity={true}
|
2167
2178
|
*/
|
2168
2179
|
"isHierarchyEntity": boolean;
|
2169
2180
|
/**
|
2170
|
-
* Função responsável em carregar os itens do componente snk-pesquisa.
|
2181
|
+
* Função responsável em carregar os itens do componente snk-pesquisa. Deve retornar uma Promise com os dados encontrados.
|
2182
|
+
* @type {(text: string) => Promise<any>}
|
2183
|
+
* @param text Texto utilizado como argumento de pesquisa.
|
2184
|
+
* @returns Promise com os dados da pesquisa.
|
2185
|
+
* @example searchLoader={(text) => fetchItems(text)}
|
2171
2186
|
*/
|
2172
2187
|
"searchLoader": (text: string) => Promise<any>;
|
2173
2188
|
/**
|
2174
|
-
* Função disparada ao selecionar um item.
|
2189
|
+
* Função disparada ao selecionar um item da pesquisa.
|
2190
|
+
* @type {(option: IOption) => void}
|
2191
|
+
* @param option Item selecionado.
|
2192
|
+
* @returns void
|
2193
|
+
* @example selectItem={(option) => handleSelect(option)}
|
2175
2194
|
*/
|
2176
2195
|
"selectItem": (option: IOption2) => void;
|
2177
2196
|
/**
|
2178
|
-
* Função responsável por carregar a árvore hierárquica do componente
|
2197
|
+
* Função responsável por carregar a árvore hierárquica do componente. Opcional. Caso não seja fornecida, o modo árvore não estará disponível.
|
2198
|
+
* @type {(text: string) => Promise<any>}
|
2199
|
+
* @param text Texto utilizado como argumento de pesquisa para a árvore.
|
2200
|
+
* @returns Promise com os dados da árvore.
|
2179
2201
|
*/
|
2180
2202
|
"treeLoader"?: (text: string) => Promise<any>;
|
2181
2203
|
}
|
@@ -4769,31 +4791,53 @@ declare namespace LocalJSX {
|
|
4769
4791
|
}
|
4770
4792
|
interface SnkPesquisa {
|
4771
4793
|
/**
|
4772
|
-
* Define se permite seleção de
|
4794
|
+
* Define se permite a seleção de itens não analíticos.
|
4795
|
+
* @type {boolean}
|
4796
|
+
* @default false
|
4797
|
+
* @example allowsNonAnalytic={true}
|
4773
4798
|
*/
|
4774
4799
|
"allowsNonAnalytic"?: boolean;
|
4775
4800
|
/**
|
4776
|
-
*
|
4801
|
+
* Argumento utilizado ao chamar a função searchLoader. Pode ser alterado externamente.
|
4802
|
+
* @type {string}
|
4803
|
+
* @mutable
|
4804
|
+
* @example argument="Texto para pesquisa"
|
4777
4805
|
*/
|
4778
4806
|
"argument"?: string;
|
4779
4807
|
/**
|
4780
|
-
* Nome da entidade
|
4808
|
+
* Nome da entidade sobre a qual a pesquisa será realizada.
|
4809
|
+
* @type {string}
|
4810
|
+
* @example entityName="Produto"
|
4781
4811
|
*/
|
4782
4812
|
"entityName"?: string;
|
4783
4813
|
/**
|
4784
|
-
* Define se a popup de pesquisa
|
4814
|
+
* Define se a popup de pesquisa terá ou não modo hierárquico.
|
4815
|
+
* @type {boolean}
|
4816
|
+
* @default false
|
4817
|
+
* @example isHierarchyEntity={true}
|
4785
4818
|
*/
|
4786
4819
|
"isHierarchyEntity"?: boolean;
|
4787
4820
|
/**
|
4788
|
-
* Função responsável em carregar os itens do componente snk-pesquisa.
|
4821
|
+
* Função responsável em carregar os itens do componente snk-pesquisa. Deve retornar uma Promise com os dados encontrados.
|
4822
|
+
* @type {(text: string) => Promise<any>}
|
4823
|
+
* @param text Texto utilizado como argumento de pesquisa.
|
4824
|
+
* @returns Promise com os dados da pesquisa.
|
4825
|
+
* @example searchLoader={(text) => fetchItems(text)}
|
4789
4826
|
*/
|
4790
4827
|
"searchLoader"?: (text: string) => Promise<any>;
|
4791
4828
|
/**
|
4792
|
-
* Função disparada ao selecionar um item.
|
4829
|
+
* Função disparada ao selecionar um item da pesquisa.
|
4830
|
+
* @type {(option: IOption) => void}
|
4831
|
+
* @param option Item selecionado.
|
4832
|
+
* @returns void
|
4833
|
+
* @example selectItem={(option) => handleSelect(option)}
|
4793
4834
|
*/
|
4794
4835
|
"selectItem"?: (option: IOption2) => void;
|
4795
4836
|
/**
|
4796
|
-
* Função responsável por carregar a árvore hierárquica do componente
|
4837
|
+
* Função responsável por carregar a árvore hierárquica do componente. Opcional. Caso não seja fornecida, o modo árvore não estará disponível.
|
4838
|
+
* @type {(text: string) => Promise<any>}
|
4839
|
+
* @param text Texto utilizado como argumento de pesquisa para a árvore.
|
4840
|
+
* @returns Promise com os dados da árvore.
|
4797
4841
|
*/
|
4798
4842
|
"treeLoader"?: (text: string) => Promise<any>;
|
4799
4843
|
}
|