New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sankhyalabs/core

Package Overview
Dependencies
Maintainers
0
Versions
745
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sankhyalabs/core - npm Package Compare versions

Comparing version 0.0.0-feat-dev-KB-68095.1 to 0.0.0-feat-dev-KB-69274.0

.docs/classes/LockManager.md

22

.docs/classes/Change.md

@@ -35,3 +35,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1877
src/dataunit/DataUnit.ts:1970

@@ -46,3 +46,3 @@ ## Properties

src/dataunit/DataUnit.ts:1875
src/dataunit/DataUnit.ts:1968

@@ -57,3 +57,3 @@ ***

src/dataunit/DataUnit.ts:1870
src/dataunit/DataUnit.ts:1963

@@ -68,3 +68,3 @@ ***

src/dataunit/DataUnit.ts:1871
src/dataunit/DataUnit.ts:1964

@@ -79,3 +79,3 @@ ***

src/dataunit/DataUnit.ts:1872
src/dataunit/DataUnit.ts:1965

@@ -90,3 +90,3 @@ ***

src/dataunit/DataUnit.ts:1873
src/dataunit/DataUnit.ts:1966

@@ -109,3 +109,3 @@ ## Accessors

src/dataunit/DataUnit.ts:1892
src/dataunit/DataUnit.ts:1985

@@ -128,3 +128,3 @@ ## Methods

src/dataunit/DataUnit.ts:1914
src/dataunit/DataUnit.ts:2007

@@ -147,3 +147,3 @@ ***

src/dataunit/DataUnit.ts:1925
src/dataunit/DataUnit.ts:2018

@@ -166,3 +166,3 @@ ***

src/dataunit/DataUnit.ts:1903
src/dataunit/DataUnit.ts:1996

@@ -185,2 +185,2 @@ ***

src/dataunit/DataUnit.ts:1936
src/dataunit/DataUnit.ts:2029

@@ -29,3 +29,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:63
src/dataunit/DataUnit.ts:66

@@ -40,6 +40,16 @@ ## Properties

src/dataunit/DataUnit.ts:54
src/dataunit/DataUnit.ts:55
***
### \_cancelPagination
> `private` **\_cancelPagination**: `boolean` = `false`
#### Source
src/dataunit/DataUnit.ts:57
***
### \_childByName

@@ -51,3 +61,3 @@

src/dataunit/DataUnit.ts:49
src/dataunit/DataUnit.ts:50

@@ -62,3 +72,3 @@ ***

src/dataunit/DataUnit.ts:53
src/dataunit/DataUnit.ts:54

@@ -73,3 +83,3 @@ ***

src/dataunit/DataUnit.ts:45
src/dataunit/DataUnit.ts:46

@@ -84,3 +94,3 @@ ***

src/dataunit/DataUnit.ts:47
src/dataunit/DataUnit.ts:48

@@ -95,3 +105,3 @@ ***

src/dataunit/DataUnit.ts:51
src/dataunit/DataUnit.ts:52

@@ -106,3 +116,3 @@ ***

src/dataunit/DataUnit.ts:42
src/dataunit/DataUnit.ts:43

@@ -113,7 +123,7 @@ ***

> `private` **\_observers**: (`action`, `options`?) => `void`[]
> `private` **\_observers**: `Map`\<`string`, (`action`, `options`?) => `void`\>
#### Source
src/dataunit/DataUnit.ts:43
src/dataunit/DataUnit.ts:44

@@ -128,3 +138,3 @@ ***

src/dataunit/DataUnit.ts:48
src/dataunit/DataUnit.ts:49

@@ -139,3 +149,3 @@ ***

src/dataunit/DataUnit.ts:50
src/dataunit/DataUnit.ts:51

@@ -150,3 +160,3 @@ ***

src/dataunit/DataUnit.ts:52
src/dataunit/DataUnit.ts:53

@@ -161,3 +171,3 @@ ***

src/dataunit/DataUnit.ts:44
src/dataunit/DataUnit.ts:45

@@ -172,3 +182,3 @@ ***

src/dataunit/DataUnit.ts:46
src/dataunit/DataUnit.ts:47

@@ -183,6 +193,16 @@ ***

src/dataunit/DataUnit.ts:41
src/dataunit/DataUnit.ts:42
***
### \_waitingToReload
> `private` **\_waitingToReload**: `boolean` = `false`
#### Source
src/dataunit/DataUnit.ts:56
***
### allRecordsLoader()?

@@ -202,3 +222,3 @@

src/dataunit/DataUnit.ts:61
src/dataunit/DataUnit.ts:64

@@ -223,3 +243,3 @@ ***

src/dataunit/DataUnit.ts:57
src/dataunit/DataUnit.ts:60

@@ -242,3 +262,3 @@ ***

src/dataunit/DataUnit.ts:56
src/dataunit/DataUnit.ts:59

@@ -263,3 +283,3 @@ ***

src/dataunit/DataUnit.ts:60
src/dataunit/DataUnit.ts:63

@@ -284,3 +304,3 @@ ***

src/dataunit/DataUnit.ts:59
src/dataunit/DataUnit.ts:62

@@ -305,3 +325,3 @@ ***

src/dataunit/DataUnit.ts:58
src/dataunit/DataUnit.ts:61

@@ -316,3 +336,3 @@ ***

src/dataunit/DataUnit.ts:38
src/dataunit/DataUnit.ts:39

@@ -327,3 +347,3 @@ ***

src/dataunit/DataUnit.ts:37
src/dataunit/DataUnit.ts:38

@@ -338,3 +358,3 @@ ***

src/dataunit/DataUnit.ts:39
src/dataunit/DataUnit.ts:40

@@ -353,6 +373,30 @@ ## Accessors

src/dataunit/DataUnit.ts:1829
src/dataunit/DataUnit.ts:1922
***
### cancelPagination
> `get` **cancelPagination**(): `boolean`
Informa se a paginação deve ser cancelada.
> `set` **cancelPagination**(`cancelPagination`): `void`
Informa se a paginação deve ser cancelada.
#### Parameters
• **cancelPagination**: `boolean`
#### Returns
`boolean`
#### Source
src/dataunit/DataUnit.ts:175
***
### dataUnitId

@@ -368,3 +412,3 @@

src/dataunit/DataUnit.ts:149
src/dataunit/DataUnit.ts:152

@@ -387,3 +431,3 @@ ***

src/dataunit/DataUnit.ts:762
src/dataunit/DataUnit.ts:802

@@ -412,3 +456,3 @@ ***

src/dataunit/DataUnit.ts:780
src/dataunit/DataUnit.ts:820

@@ -431,3 +475,3 @@ ***

src/dataunit/DataUnit.ts:160
src/dataunit/DataUnit.ts:193

@@ -460,3 +504,3 @@ ***

src/dataunit/DataUnit.ts:841
src/dataunit/DataUnit.ts:882

@@ -487,3 +531,3 @@ ***

src/dataunit/DataUnit.ts:818
src/dataunit/DataUnit.ts:859

@@ -506,3 +550,3 @@ ***

src/dataunit/DataUnit.ts:751
src/dataunit/DataUnit.ts:791

@@ -529,3 +573,3 @@ ## Methods

src/dataunit/DataUnit.ts:1810
src/dataunit/DataUnit.ts:1903

@@ -552,3 +596,3 @@ ***

src/dataunit/DataUnit.ts:709
src/dataunit/DataUnit.ts:748

@@ -581,3 +625,3 @@ ***

src/dataunit/DataUnit.ts:136
src/dataunit/DataUnit.ts:139

@@ -604,3 +648,3 @@ ***

src/dataunit/DataUnit.ts:687
src/dataunit/DataUnit.ts:726

@@ -623,3 +667,3 @@ ***

src/dataunit/DataUnit.ts:1819
src/dataunit/DataUnit.ts:1912

@@ -646,3 +690,3 @@ ***

src/dataunit/DataUnit.ts:887
src/dataunit/DataUnit.ts:928

@@ -667,3 +711,3 @@ ***

src/dataunit/DataUnit.ts:1801
src/dataunit/DataUnit.ts:1894

@@ -686,3 +730,3 @@ ***

src/dataunit/DataUnit.ts:518
src/dataunit/DataUnit.ts:557

@@ -707,3 +751,3 @@ ***

src/dataunit/DataUnit.ts:522
src/dataunit/DataUnit.ts:561

@@ -726,3 +770,3 @@ ***

src/dataunit/DataUnit.ts:1446
src/dataunit/DataUnit.ts:1523

@@ -745,3 +789,3 @@ ***

src/dataunit/DataUnit.ts:1435
src/dataunit/DataUnit.ts:1512

@@ -772,3 +816,3 @@ ***

src/dataunit/DataUnit.ts:1288
src/dataunit/DataUnit.ts:1365

@@ -795,3 +839,3 @@ ***

src/dataunit/DataUnit.ts:1062
src/dataunit/DataUnit.ts:1121

@@ -814,3 +858,3 @@ ***

src/dataunit/DataUnit.ts:1331
src/dataunit/DataUnit.ts:1408

@@ -831,3 +875,3 @@ ***

src/dataunit/DataUnit.ts:1221
src/dataunit/DataUnit.ts:1298

@@ -858,3 +902,3 @@ ***

src/dataunit/DataUnit.ts:1027
src/dataunit/DataUnit.ts:1086

@@ -881,3 +925,3 @@ ***

src/dataunit/DataUnit.ts:1137
src/dataunit/DataUnit.ts:1196

@@ -904,3 +948,3 @@ ***

src/dataunit/DataUnit.ts:898
src/dataunit/DataUnit.ts:939

@@ -927,3 +971,3 @@ ***

src/dataunit/DataUnit.ts:1708
src/dataunit/DataUnit.ts:1800

@@ -962,3 +1006,3 @@ ***

src/dataunit/DataUnit.ts:1496
src/dataunit/DataUnit.ts:1573

@@ -987,3 +1031,3 @@ ***

src/dataunit/DataUnit.ts:1544
src/dataunit/DataUnit.ts:1621

@@ -1010,3 +1054,3 @@ ***

src/dataunit/DataUnit.ts:1693
src/dataunit/DataUnit.ts:1785

@@ -1045,3 +1089,3 @@ ***

src/dataunit/DataUnit.ts:229
src/dataunit/DataUnit.ts:262

@@ -1064,3 +1108,3 @@ ***

src/dataunit/DataUnit.ts:864
src/dataunit/DataUnit.ts:905

@@ -1083,3 +1127,3 @@ ***

src/dataunit/DataUnit.ts:540
src/dataunit/DataUnit.ts:579

@@ -1102,3 +1146,3 @@ ***

src/dataunit/DataUnit.ts:1682
src/dataunit/DataUnit.ts:1774

@@ -1117,3 +1161,3 @@ ***

src/dataunit/DataUnit.ts:439
src/dataunit/DataUnit.ts:475

@@ -1140,3 +1184,3 @@ ***

src/dataunit/DataUnit.ts:1567
src/dataunit/DataUnit.ts:1641

@@ -1165,3 +1209,3 @@ ***

src/dataunit/DataUnit.ts:793
src/dataunit/DataUnit.ts:833

@@ -1190,3 +1234,3 @@ ***

src/dataunit/DataUnit.ts:876
src/dataunit/DataUnit.ts:917

@@ -1215,3 +1259,3 @@ ***

src/dataunit/DataUnit.ts:961
src/dataunit/DataUnit.ts:1002

@@ -1240,3 +1284,3 @@ ***

src/dataunit/DataUnit.ts:211
src/dataunit/DataUnit.ts:244

@@ -1259,3 +1303,3 @@ ***

src/dataunit/DataUnit.ts:1653
src/dataunit/DataUnit.ts:1745

@@ -1291,3 +1335,3 @@ ***

src/dataunit/DataUnit.ts:665
src/dataunit/DataUnit.ts:704

@@ -1310,3 +1354,3 @@ ***

src/dataunit/DataUnit.ts:145
src/dataunit/DataUnit.ts:148

@@ -1337,3 +1381,3 @@ ***

src/dataunit/DataUnit.ts:1039
src/dataunit/DataUnit.ts:1098

@@ -1356,3 +1400,3 @@ ***

src/dataunit/DataUnit.ts:1671
src/dataunit/DataUnit.ts:1763

@@ -1377,3 +1421,3 @@ ***

src/dataunit/DataUnit.ts:404
src/dataunit/DataUnit.ts:440

@@ -1396,3 +1440,3 @@ ***

src/dataunit/DataUnit.ts:852
src/dataunit/DataUnit.ts:893

@@ -1415,3 +1459,3 @@ ***

src/dataunit/DataUnit.ts:730
src/dataunit/DataUnit.ts:769

@@ -1434,3 +1478,3 @@ ***

src/dataunit/DataUnit.ts:1211
src/dataunit/DataUnit.ts:1288

@@ -1449,3 +1493,3 @@ ***

src/dataunit/DataUnit.ts:934
src/dataunit/DataUnit.ts:975

@@ -1468,3 +1512,3 @@ ***

src/dataunit/DataUnit.ts:912
src/dataunit/DataUnit.ts:953

@@ -1487,3 +1531,3 @@ ***

src/dataunit/DataUnit.ts:1202
src/dataunit/DataUnit.ts:1279

@@ -1512,3 +1556,3 @@ ***

src/dataunit/DataUnit.ts:1758
src/dataunit/DataUnit.ts:1851

@@ -1537,3 +1581,3 @@ ***

src/dataunit/DataUnit.ts:1782
src/dataunit/DataUnit.ts:1875

@@ -1556,3 +1600,3 @@ ***

src/dataunit/DataUnit.ts:1183
src/dataunit/DataUnit.ts:1260

@@ -1575,3 +1619,3 @@ ***

src/dataunit/DataUnit.ts:1642
src/dataunit/DataUnit.ts:1734

@@ -1604,3 +1648,3 @@ ***

src/dataunit/DataUnit.ts:356
src/dataunit/DataUnit.ts:389

@@ -1623,3 +1667,3 @@ ***

src/dataunit/DataUnit.ts:1415
src/dataunit/DataUnit.ts:1492

@@ -1642,3 +1686,3 @@ ***

src/dataunit/DataUnit.ts:1345
src/dataunit/DataUnit.ts:1422

@@ -1661,3 +1705,3 @@ ***

src/dataunit/DataUnit.ts:1403
src/dataunit/DataUnit.ts:1480

@@ -1680,3 +1724,3 @@ ***

src/dataunit/DataUnit.ts:1356
src/dataunit/DataUnit.ts:1433

@@ -1699,3 +1743,3 @@ ***

src/dataunit/DataUnit.ts:1371
src/dataunit/DataUnit.ts:1448

@@ -1718,3 +1762,3 @@ ***

src/dataunit/DataUnit.ts:1070
src/dataunit/DataUnit.ts:1129

@@ -1725,3 +1769,3 @@ ***

> **hideField**(`fieldName`): `void`
> **hideField**(`fieldName`, `options`): `void`

@@ -1736,2 +1780,4 @@ Deixa um campo do DataUnit invisível

• **options**: `HideFieldOptions`
#### Returns

@@ -1743,3 +1789,3 @@

src/dataunit/DataUnit.ts:1723
src/dataunit/DataUnit.ts:1815

@@ -1772,3 +1818,3 @@ ***

src/dataunit/DataUnit.ts:1527
src/dataunit/DataUnit.ts:1604

@@ -1795,3 +1841,3 @@ ***

src/dataunit/DataUnit.ts:1307
src/dataunit/DataUnit.ts:1384

@@ -1820,3 +1866,3 @@ ***

src/dataunit/DataUnit.ts:1387
src/dataunit/DataUnit.ts:1464

@@ -1839,3 +1885,3 @@ ***

src/dataunit/DataUnit.ts:1320
src/dataunit/DataUnit.ts:1397

@@ -1858,6 +1904,22 @@ ***

src/dataunit/DataUnit.ts:282
src/dataunit/DataUnit.ts:315
***
### isWaitingToReload()
> **isWaitingToReload**(): `boolean`
Retorna se o dataUnit está com recarregamento pendente.
#### Returns
`boolean`
#### Source
src/dataunit/DataUnit.ts:160
***
### loadData()

@@ -1895,3 +1957,3 @@

src/dataunit/DataUnit.ts:326
src/dataunit/DataUnit.ts:359

@@ -1920,3 +1982,3 @@ ***

src/dataunit/DataUnit.ts:297
src/dataunit/DataUnit.ts:330

@@ -1945,3 +2007,3 @@ ***

src/dataunit/DataUnit.ts:387
src/dataunit/DataUnit.ts:423

@@ -1968,3 +2030,3 @@ ***

src/dataunit/DataUnit.ts:1233
src/dataunit/DataUnit.ts:1310

@@ -1987,3 +2049,3 @@ ***

src/dataunit/DataUnit.ts:424
src/dataunit/DataUnit.ts:460

@@ -2008,3 +2070,3 @@ ***

src/dataunit/DataUnit.ts:185
src/dataunit/DataUnit.ts:218

@@ -2033,3 +2095,3 @@ ***

src/dataunit/DataUnit.ts:400
src/dataunit/DataUnit.ts:436

@@ -2056,3 +2118,3 @@ ***

src/dataunit/DataUnit.ts:1260
src/dataunit/DataUnit.ts:1337

@@ -2071,3 +2133,3 @@ ***

src/dataunit/DataUnit.ts:1833
src/dataunit/DataUnit.ts:1926

@@ -2094,3 +2156,3 @@ ***

src/dataunit/DataUnit.ts:1469
src/dataunit/DataUnit.ts:1546

@@ -2111,3 +2173,3 @@ ***

src/dataunit/DataUnit.ts:98
src/dataunit/DataUnit.ts:101

@@ -2135,3 +2197,3 @@ ***

src/dataunit/DataUnit.ts:118
src/dataunit/DataUnit.ts:121

@@ -2154,3 +2216,3 @@ ***

src/dataunit/DataUnit.ts:1614
src/dataunit/DataUnit.ts:1703

@@ -2177,3 +2239,3 @@ ***

src/dataunit/DataUnit.ts:1580
src/dataunit/DataUnit.ts:1654

@@ -2200,3 +2262,3 @@ ***

src/dataunit/DataUnit.ts:720
src/dataunit/DataUnit.ts:759

@@ -2223,3 +2285,3 @@ ***

src/dataunit/DataUnit.ts:698
src/dataunit/DataUnit.ts:737

@@ -2264,3 +2326,3 @@ ***

src/dataunit/DataUnit.ts:583
src/dataunit/DataUnit.ts:622

@@ -2293,3 +2355,3 @@ ***

src/dataunit/DataUnit.ts:557
src/dataunit/DataUnit.ts:596

@@ -2312,3 +2374,3 @@ ***

src/dataunit/DataUnit.ts:276
src/dataunit/DataUnit.ts:309

@@ -2337,6 +2399,48 @@ ***

src/dataunit/DataUnit.ts:454
src/dataunit/DataUnit.ts:490
***
### savingCanceled()
> **savingCanceled**(`fields`, `recordId`): `void`
Cancela o saving exibindo os campos invalidos.
#### Parameters
• **fields**: `object`[]
• **recordId**: `string`
Indica qual registro está com os campos inválido.
#### Returns
`void`
#### Source
src/dataunit/DataUnit.ts:1074
***
### selectAllRecords()
> **selectAllRecords**(): `Promise`\<`undefined` \| [`SelectionInfo`](SelectionInfo.md)\>
Seleciona todos os registros da página.
#### Returns
`Promise`\<`undefined` \| [`SelectionInfo`](SelectionInfo.md)\>
- Informações sobre a seleção.
#### Source
src/dataunit/DataUnit.ts:1240
***
### selectFirst()

@@ -2360,3 +2464,3 @@

src/dataunit/DataUnit.ts:1083
src/dataunit/DataUnit.ts:1142

@@ -2383,3 +2487,3 @@ ***

src/dataunit/DataUnit.ts:1096
src/dataunit/DataUnit.ts:1155

@@ -2410,2 +2514,4 @@ ***

Configurações do evento
#### Returns

@@ -2419,3 +2525,3 @@

src/dataunit/DataUnit.ts:975
src/dataunit/DataUnit.ts:1017

@@ -2450,3 +2556,3 @@ ***

src/dataunit/DataUnit.ts:1015
src/dataunit/DataUnit.ts:1062

@@ -2477,3 +2583,3 @@ ***

src/dataunit/DataUnit.ts:1123
src/dataunit/DataUnit.ts:1182

@@ -2504,6 +2610,26 @@ ***

src/dataunit/DataUnit.ts:1110
src/dataunit/DataUnit.ts:1169
***
### setWaitingToReload()
> **setWaitingToReload**(`isWaiting`): `void`
Define se o dataUnit tem um recarregamento pendente.
#### Parameters
• **isWaiting**: `boolean`
#### Returns
`void`
#### Source
src/dataunit/DataUnit.ts:168
***
### showField()

@@ -2527,3 +2653,3 @@

src/dataunit/DataUnit.ts:1738
src/dataunit/DataUnit.ts:1831

@@ -2554,3 +2680,3 @@ ***

src/dataunit/DataUnit.ts:1051
src/dataunit/DataUnit.ts:1110

@@ -2561,3 +2687,3 @@ ***

> **subscribe**(`observer`): `void`
> **subscribe**(`observer`, `uuid`?): `string`

@@ -2573,9 +2699,13 @@ Adiciona um novo observer no DataUnit.

• **uuid?**: `string`
Identificador do observer. Quando não informado, será gerado um identificador aleatório.
#### Returns
`void`
`string`
#### Source
src/dataunit/DataUnit.ts:1592
src/dataunit/DataUnit.ts:1666

@@ -2598,6 +2728,24 @@ ***

src/dataunit/DataUnit.ts:1480
src/dataunit/DataUnit.ts:1557
***
### unSelectAllRecords()
> **unSelectAllRecords**(): `Promise`\<`undefined` \| [`SelectionInfo`](SelectionInfo.md)\>
Desseleciona todos os registros da página.
#### Returns
`Promise`\<`undefined` \| [`SelectionInfo`](SelectionInfo.md)\>
- Informações sobre a seleção.
#### Source
src/dataunit/DataUnit.ts:1249
***
### undo()

@@ -2621,3 +2769,3 @@

src/dataunit/DataUnit.ts:1458
src/dataunit/DataUnit.ts:1535

@@ -2628,3 +2776,3 @@ ***

> **unsubscribe**(`observer`): `void`
> **unsubscribe**(`observer`, `uuid`?): `void`

@@ -2639,2 +2787,6 @@ Remove um observer existente.

• **uuid?**: `string`
Identificador do observer. Quando não informado o delete removera com base no equals do observer.
#### Returns

@@ -2646,3 +2798,3 @@

src/dataunit/DataUnit.ts:1603
src/dataunit/DataUnit.ts:1684

@@ -2675,6 +2827,24 @@ ***

src/dataunit/DataUnit.ts:1150
src/dataunit/DataUnit.ts:1208
***
### updatePageSelectionAll()
> `private` **updatePageSelectionAll**(`addRecords`): `Promise`\<`undefined` \| [`SelectionInfo`](SelectionInfo.md)\>
#### Parameters
• **addRecords**: `boolean`
#### Returns
`Promise`\<`undefined` \| [`SelectionInfo`](SelectionInfo.md)\>
#### Source
src/dataunit/DataUnit.ts:1220
***
### updatePagination()

@@ -2698,3 +2868,3 @@

src/dataunit/DataUnit.ts:740
src/dataunit/DataUnit.ts:779

@@ -2727,3 +2897,3 @@ ***

src/dataunit/DataUnit.ts:174
src/dataunit/DataUnit.ts:207

@@ -2756,3 +2926,3 @@ ***

src/dataunit/DataUnit.ts:632
src/dataunit/DataUnit.ts:671

@@ -2785,3 +2955,3 @@ ***

src/dataunit/DataUnit.ts:647
src/dataunit/DataUnit.ts:686

@@ -2810,2 +2980,2 @@ ***

src/dataunit/DataUnit.ts:948
src/dataunit/DataUnit.ts:989

@@ -69,3 +69,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/utils/MaskFormatter.ts:91
src/utils/MaskFormatter.ts:92

@@ -80,3 +80,3 @@ ## Properties

src/utils/MaskFormatter.ts:65
src/utils/MaskFormatter.ts:66

@@ -91,3 +91,3 @@ ***

src/utils/MaskFormatter.ts:66
src/utils/MaskFormatter.ts:67

@@ -105,3 +105,3 @@ ***

src/utils/MaskFormatter.ts:72
src/utils/MaskFormatter.ts:73

@@ -136,3 +136,3 @@ ***

src/utils/MaskFormatter.ts:379
src/utils/MaskFormatter.ts:466

@@ -157,3 +157,3 @@ ***

src/utils/MaskFormatter.ts:393
src/utils/MaskFormatter.ts:480

@@ -188,3 +188,3 @@ ***

src/utils/MaskFormatter.ts:304
src/utils/MaskFormatter.ts:391

@@ -219,3 +219,3 @@ ***

src/utils/MaskFormatter.ts:285
src/utils/MaskFormatter.ts:372

@@ -230,3 +230,3 @@ ***

src/utils/MaskFormatter.ts:356
src/utils/MaskFormatter.ts:443

@@ -251,3 +251,3 @@ ***

src/utils/MaskFormatter.ts:333
src/utils/MaskFormatter.ts:420

@@ -278,6 +278,30 @@ ## Accessors

src/utils/MaskFormatter.ts:87
src/utils/MaskFormatter.ts:88
## Methods
### applyMask()
> **applyMask**(`value`): `string`
Aplica a máscara quando o input é alterado
#### Parameters
• **value**: `string`
Valor a ser aplicado com a máscara.
#### Returns
`string`
O valor processado de acordo com o padrão.
#### Source
src/utils/MaskFormatter.ts:103
***
### format()

@@ -307,6 +331,30 @@

src/utils/MaskFormatter.ts:102
src/utils/MaskFormatter.ts:189
***
### removeMask()
> **removeMask**(`value`): `string`
Remove a máscara formatando a string retornando sem máscara
#### Parameters
• **value**: `string`
Valor a ser formatado com máscara.
#### Returns
`string`
O valor processado de acordo com o padrão.
#### Source
src/utils/MaskFormatter.ts:169
***
### updateInternalMask()

@@ -324,2 +372,2 @@

src/utils/MaskFormatter.ts:122
src/utils/MaskFormatter.ts:209

@@ -33,3 +33,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1981
src/dataunit/DataUnit.ts:2074

@@ -44,3 +44,3 @@ ## Properties

src/dataunit/DataUnit.ts:1978
src/dataunit/DataUnit.ts:2071

@@ -55,3 +55,3 @@ ***

src/dataunit/DataUnit.ts:1979
src/dataunit/DataUnit.ts:2072

@@ -66,3 +66,3 @@ ***

src/dataunit/DataUnit.ts:1975
src/dataunit/DataUnit.ts:2068

@@ -81,3 +81,3 @@ ***

src/dataunit/DataUnit.ts:1977
src/dataunit/DataUnit.ts:2070

@@ -92,3 +92,3 @@ ***

src/dataunit/DataUnit.ts:1974
src/dataunit/DataUnit.ts:2067

@@ -103,3 +103,3 @@ ***

src/dataunit/DataUnit.ts:1976
src/dataunit/DataUnit.ts:2069

@@ -118,3 +118,3 @@ ## Accessors

src/dataunit/DataUnit.ts:2009
src/dataunit/DataUnit.ts:2102

@@ -133,3 +133,3 @@ ***

src/dataunit/DataUnit.ts:1999
src/dataunit/DataUnit.ts:2092

@@ -148,3 +148,3 @@ ***

src/dataunit/DataUnit.ts:1989
src/dataunit/DataUnit.ts:2082

@@ -163,3 +163,3 @@ ## Methods

src/dataunit/DataUnit.ts:2016
src/dataunit/DataUnit.ts:2109

@@ -178,2 +178,2 @@ ***

src/dataunit/DataUnit.ts:2020
src/dataunit/DataUnit.ts:2113

@@ -37,6 +37,20 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/utils/UserAgentUtils/index.ts:22
src/utils/UserAgentUtils/index.ts:27
***
### isElectron()
> `static` **isElectron**(): `boolean`
#### Returns
`boolean`
#### Source
src/utils/UserAgentUtils/index.ts:18
***
### isFirefox()

@@ -43,0 +57,0 @@

@@ -17,3 +17,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/state/action/DataUnitAction.ts:53
src/dataunit/state/action/DataUnitAction.ts:54

@@ -28,3 +28,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:52
src/dataunit/state/action/DataUnitAction.ts:53

@@ -39,3 +39,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:46
src/dataunit/state/action/DataUnitAction.ts:47

@@ -50,3 +50,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:64
src/dataunit/state/action/DataUnitAction.ts:65

@@ -61,3 +61,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:48
src/dataunit/state/action/DataUnitAction.ts:49

@@ -82,3 +82,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:49
src/dataunit/state/action/DataUnitAction.ts:50

@@ -103,3 +103,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:51
src/dataunit/state/action/DataUnitAction.ts:52

@@ -114,3 +114,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:66
src/dataunit/state/action/DataUnitAction.ts:67

@@ -125,3 +125,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:67
src/dataunit/state/action/DataUnitAction.ts:68

@@ -156,3 +156,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:70
src/dataunit/state/action/DataUnitAction.ts:71

@@ -167,3 +167,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:69
src/dataunit/state/action/DataUnitAction.ts:70

@@ -178,3 +178,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:61
src/dataunit/state/action/DataUnitAction.ts:62

@@ -199,3 +199,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:56
src/dataunit/state/action/DataUnitAction.ts:57

@@ -220,3 +220,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:57
src/dataunit/state/action/DataUnitAction.ts:58

@@ -231,3 +231,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:43
src/dataunit/state/action/DataUnitAction.ts:44

@@ -242,3 +242,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:44
src/dataunit/state/action/DataUnitAction.ts:45

@@ -253,3 +253,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:41
src/dataunit/state/action/DataUnitAction.ts:42

@@ -264,3 +264,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:62
src/dataunit/state/action/DataUnitAction.ts:63

@@ -275,6 +275,16 @@ ***

src/dataunit/state/action/DataUnitAction.ts:40
src/dataunit/state/action/DataUnitAction.ts:41
***
### SAVING\_CANCELED
> **SAVING\_CANCELED**: `"savingCanceled"`
#### Source
src/dataunit/state/action/DataUnitAction.ts:39
***
### SAVING\_DATA

@@ -306,3 +316,3 @@

src/dataunit/state/action/DataUnitAction.ts:55
src/dataunit/state/action/DataUnitAction.ts:56

@@ -317,3 +327,3 @@ ***

src/dataunit/state/action/DataUnitAction.ts:59
src/dataunit/state/action/DataUnitAction.ts:60

@@ -328,2 +338,2 @@ ***

src/dataunit/state/action/DataUnitAction.ts:47
src/dataunit/state/action/DataUnitAction.ts:48

@@ -17,3 +17,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1860
src/dataunit/DataUnit.ts:1953

@@ -28,3 +28,3 @@ ***

src/dataunit/DataUnit.ts:1862
src/dataunit/DataUnit.ts:1955

@@ -39,3 +39,3 @@ ***

src/dataunit/DataUnit.ts:1859
src/dataunit/DataUnit.ts:1952

@@ -50,2 +50,2 @@ ***

src/dataunit/DataUnit.ts:1861
src/dataunit/DataUnit.ts:1954

@@ -17,3 +17,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1968
src/dataunit/DataUnit.ts:2061

@@ -28,2 +28,2 @@ ***

src/dataunit/DataUnit.ts:1969
src/dataunit/DataUnit.ts:2062

@@ -77,3 +77,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/metadata/UnitMetadata.ts:98
src/dataunit/metadata/UnitMetadata.ts:99

@@ -108,3 +108,3 @@ ***

src/dataunit/metadata/UnitMetadata.ts:97
src/dataunit/metadata/UnitMetadata.ts:98

@@ -119,3 +119,3 @@ ***

src/dataunit/metadata/UnitMetadata.ts:96
src/dataunit/metadata/UnitMetadata.ts:97

@@ -140,3 +140,3 @@ ***

src/dataunit/metadata/UnitMetadata.ts:95
src/dataunit/metadata/UnitMetadata.ts:96

@@ -155,2 +155,12 @@ ***

### SEARCHPLUS
> **SEARCHPLUS**: `"SEARCHPLUS"`
#### Source
src/dataunit/metadata/UnitMetadata.ts:94
***
### SHORTTEXT

@@ -162,3 +172,3 @@

src/dataunit/metadata/UnitMetadata.ts:94
src/dataunit/metadata/UnitMetadata.ts:95

@@ -165,0 +175,0 @@ ***

@@ -17,5 +17,7 @@ [**@sankhyalabs/core**](README.md) • **Docs**

- [DependencyType](enumerations/DependencyType.md)
- [LockManagerOperation](enumerations/LockManagerOperation.md)
- [OverflowDirection](enumerations/OverflowDirection.md)
- [SelectionMode](enumerations/SelectionMode.md)
- [SortMode](enumerations/SortMode.md)
- [StorageType](enumerations/StorageType.md)
- [UserInterface](enumerations/UserInterface.md)

@@ -43,2 +45,3 @@

- [KeyboardManager](classes/KeyboardManager.md)
- [LockManager](classes/LockManager.md)
- [MaskFormatter](classes/MaskFormatter.md)

@@ -55,2 +58,4 @@ - [NumberUtils](classes/NumberUtils.md)

- [ServiceCanceledException](classes/ServiceCanceledException.md)
- [ServiceUtils](classes/ServiceUtils.md)
- [SilentException](classes/SilentException.md)
- [SkwHttpProvider](classes/SkwHttpProvider.md)

@@ -57,0 +62,0 @@ - [StringUtils](classes/StringUtils.md)

@@ -25,2 +25,2 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1843
src/dataunit/DataUnit.ts:1936

@@ -17,3 +17,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1948
src/dataunit/DataUnit.ts:2041

@@ -28,3 +28,3 @@ ***

src/dataunit/DataUnit.ts:1949
src/dataunit/DataUnit.ts:2042

@@ -39,2 +39,2 @@ ***

src/dataunit/DataUnit.ts:1950
src/dataunit/DataUnit.ts:2043

@@ -13,2 +13,14 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

### askRowsLimit?
> `optional` **askRowsLimit**: `number`
Informa se deve exibir diálogo para cancelar carregamento de registros
#### Source
src/dataunit/loading/PaginationInfo.ts:30
***
### count?

@@ -74,2 +86,15 @@

### loadingInProgress?
> `optional` **loadingInProgress**: `boolean`
Informa se o carregamento de dados em background está sendo executado
Caso o dataunit não tenha carga paralela o valor será indefinido
#### Source
src/dataunit/loading/PaginationInfo.ts:25
***
### total?

@@ -76,0 +101,0 @@

@@ -17,3 +17,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1955
src/dataunit/DataUnit.ts:2048

@@ -28,3 +28,3 @@ ***

src/dataunit/DataUnit.ts:1956
src/dataunit/DataUnit.ts:2049

@@ -39,2 +39,2 @@ ***

src/dataunit/DataUnit.ts:1954
src/dataunit/DataUnit.ts:2047

@@ -25,3 +25,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1850
src/dataunit/DataUnit.ts:1943

@@ -36,3 +36,3 @@ ***

src/dataunit/DataUnit.ts:1849
src/dataunit/DataUnit.ts:1942

@@ -47,3 +47,3 @@ ***

src/dataunit/DataUnit.ts:1847
src/dataunit/DataUnit.ts:1940

@@ -58,2 +58,2 @@ ***

src/dataunit/DataUnit.ts:1848
src/dataunit/DataUnit.ts:1941

@@ -21,3 +21,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1855
src/dataunit/DataUnit.ts:1948

@@ -36,3 +36,3 @@ ***

src/dataunit/DataUnit.ts:1850
src/dataunit/DataUnit.ts:1943

@@ -51,3 +51,3 @@ ***

src/dataunit/DataUnit.ts:1849
src/dataunit/DataUnit.ts:1942

@@ -66,3 +66,3 @@ ***

src/dataunit/DataUnit.ts:1847
src/dataunit/DataUnit.ts:1940

@@ -81,2 +81,2 @@ ***

src/dataunit/DataUnit.ts:1848
src/dataunit/DataUnit.ts:1941

@@ -17,3 +17,3 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:1943
src/dataunit/DataUnit.ts:2036

@@ -28,3 +28,3 @@ ***

src/dataunit/DataUnit.ts:1944
src/dataunit/DataUnit.ts:2037

@@ -39,2 +39,2 @@ ***

src/dataunit/DataUnit.ts:1942
src/dataunit/DataUnit.ts:2035

@@ -13,2 +13,2 @@ [**@sankhyalabs/core**](../../../README.md) • **Docs**

src/utils/MaskFormatter.ts:170
src/utils/MaskFormatter.ts:257

@@ -13,2 +13,2 @@ [**@sankhyalabs/core**](../../../README.md) • **Docs**

src/utils/MaskFormatter.ts:170
src/utils/MaskFormatter.ts:257

@@ -17,2 +17,2 @@ [**@sankhyalabs/core**](../README.md) • **Docs**

src/dataunit/DataUnit.ts:2025
src/dataunit/DataUnit.ts:2118

@@ -27,2 +27,4 @@ import { ChildDescriptor, FieldDescriptor, Filter, FilterProvider, Sort, SortingProvider, UnitMetadata } from "./metadata/UnitMetadata.js";

private _allowReleaseCallbacks;
private _waitingToReload;
private _cancelPagination;
metadataLoader?: (dataUnit: DataUnit) => Promise<UnitMetadata>;

@@ -68,2 +70,19 @@ dataLoader?: (dataUnit: DataUnit, request: LoadDataRequest) => Promise<LoadDataResponse>;

/**
* Retorna se o dataUnit está com recarregamento pendente.
*/
isWaitingToReload(): boolean;
/**
* Define se o dataUnit tem um recarregamento pendente.
* @param isWaiting
*/
setWaitingToReload(isWaiting: boolean): void;
/**
* Informa se a paginação deve ser cancelada.
*/
get cancelPagination(): boolean;
/**
* Informa se a paginação deve ser cancelada.
*/
set cancelPagination(cancelPagination: boolean);
/**
*

@@ -450,5 +469,6 @@ * Obtém o nome de identificação do DataUnit (geralmente em formato de URI - Uniform Resource Identifier).

* @param records - Indica quais registros foram afetados pela alteração no valor do campo.
* @param options - Configurações do evento
* @returns - Promise que será resolvida quando o novo valor for persistido no state.
*
*/
*/
setFieldValue(fieldName: string, newValue: any, records?: Array<string>, options?: DataUnitEventOptions): Promise<boolean>;

@@ -467,2 +487,14 @@ /**

*
* Cancela o saving exibindo os campos invalidos.
*
* @param filds - Lista dos campos
* @param recordId - Indica qual registro está com os campos inválido.
*
*/
savingCanceled(fields: Array<{
name: string;
message: string;
}>, recordId: string): void;
/**
*
* Limpa campos inválidos.

@@ -555,8 +587,20 @@ *

* @param executionCtx - Contexto de execução da seleção dos registros do DataUnit.
*
* @returns - Informações sobre a seleção.
*/
updatePageSelection(selection: Array<string>, executionCtx?: ExecutionContext): Promise<SelectionInfo | undefined>;
private updatePageSelectionAll;
/**
* Seleciona todos os registros da página.
*
* @returns - Informações sobre a seleção.
*/
selectAllRecords(): Promise<SelectionInfo | undefined>;
/**
* Desseleciona todos os registros da página.
*
* @returns - Informações sobre a seleção.
*/
unSelectAllRecords(): Promise<SelectionInfo | undefined>;
/**
*
* Obtém informações sobre a seleção atual.

@@ -783,5 +827,5 @@ *

* @param observer - Função que recebe como parâmetro as ações que serão monitoradas.
*
* @param uuid - Identificador do observer. Quando não informado, será gerado um identificador aleatório.
*/
subscribe(observer: (action: DataUnitAction, options?: DataUnitEventOptions) => void | Promise<void>): void;
subscribe(observer: (action: DataUnitAction, options?: DataUnitEventOptions) => void | Promise<void>, uuid?: string): string;
/**

@@ -792,5 +836,5 @@ *

* @param observer - Observer que se deseja remover.
*
* @param uuid - Identificador do observer. Quando não informado o delete removera com base no equals do observer.
*/
unsubscribe(observer: Function): void;
unsubscribe(observer: Function, uuid?: string): void;
/**

@@ -856,3 +900,3 @@ *

*/
hideField(fieldName: string): void;
hideField(fieldName: string, options: HideFieldOptions): void;
/**

@@ -1022,1 +1066,4 @@ *

};
export type HideFieldOptions = {
visibleOnConfig: boolean;
};
import DateUtils from '../../utils/DateUtils.js';
import { MaskFormatter } from '../../utils/MaskFormatter.js';
import { NumberUtils } from '../../utils/NumberUtils.js';
import { TimeFormatter } from '../../utils/TimeFormatter.js';
import { DataType, toString } from '../metadata/DataType.js';

@@ -14,3 +15,5 @@ import { UserInterface } from '../metadata/UnitMetadata.js';

}
return !value ? "" : value.toString();
if (value === null || value === undefined)
return "";
return value.toString();
}

@@ -32,2 +35,5 @@ if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.OPTIONSELECTOR) {

}
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.ELAPSEDTIME) {
return TimeFormatter.prepareValue(value, true);
}
if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.DATETIME) {

@@ -63,2 +69,5 @@ return DateUtils.formatDateTime(value);

}
if (descriptor.userInterface === UserInterface.SEARCHPLUS) {
return codeValue;
}
return label ? label : codeValue;

@@ -65,0 +74,0 @@ };

@@ -15,2 +15,10 @@ /** Informações da paginação retornada na requisição de carregamento de registros */

hasMore: boolean;
/** Informa se o carregamento de dados em background está sendo executado
* Caso o dataunit não tenha carga paralela o valor será indefinido
*/
loadingInProgress?: boolean;
/**
* Informa se deve exibir diálogo para cancelar carregamento de registros
*/
askRowsLimit?: number;
}

@@ -81,2 +81,3 @@ import { DataType } from "./DataType.js";

SEARCH = "SEARCH",
SEARCHPLUS = "SEARCHPLUS",
SHORTTEXT = "SHORTTEXT",

@@ -83,0 +84,0 @@ PASSWORD = "PASSWORD",

@@ -26,2 +26,3 @@ export var SortMode;

UserInterface["SEARCH"] = "SEARCH";
UserInterface["SEARCHPLUS"] = "SEARCHPLUS";
UserInterface["SHORTTEXT"] = "SHORTTEXT";

@@ -28,0 +29,0 @@ UserInterface["PASSWORD"] = "PASSWORD";

@@ -22,2 +22,3 @@ import { StateAction } from "../StateManager.js";

SAVING_ERROR = "savingError",
SAVING_CANCELED = "savingCanceled",
REMOVING_RECORDS = "removingRecords",

@@ -24,0 +25,0 @@ RECORDS_REMOVED = "recordsRemoved",

@@ -23,2 +23,3 @@ export class DataUnitAction {

Action["SAVING_ERROR"] = "savingError";
Action["SAVING_CANCELED"] = "savingCanceled";
Action["REMOVING_RECORDS"] = "removingRecords";

@@ -25,0 +26,0 @@ Action["RECORDS_REMOVED"] = "recordsRemoved";

@@ -15,2 +15,4 @@ import { Action } from "../action/DataUnitAction.js";

return Object.assign(Object.assign({}, currentState), { paginationInfo: action.payload });
case Action.DATA_SAVED:
return Object.assign(Object.assign({}, currentState), { paginationInfo: updatePaginationInfo(stateManager, action.payload) });
}

@@ -48,2 +50,16 @@ return currentState;

};
const updatePaginationInfo = (stateManager, payload) => {
const paginationInfo = getPaginationInfo(stateManager);
let { records, changes } = payload;
if (!records || !changes || !paginationInfo || !validateNewRecordOperation(changes))
return paginationInfo;
const { count, firstRecord, lastRecord, total } = paginationInfo;
return Object.assign(Object.assign({}, paginationInfo), { count: (count !== null && count !== void 0 ? count : 0) + records.length, firstRecord: firstRecord === 0 && records.length > 0 ? 1 : firstRecord, lastRecord: lastRecord + records.length, total: (total !== null && total !== void 0 ? total : 0) + records.length });
};
const validateNewRecordOperation = (changes) => {
return changes.every(change => isNewRecordOperation(change._operation));
};
const isNewRecordOperation = (operation) => {
return ["INSERT", "COPY"].includes(operation);
};
//# sourceMappingURL=LoadingControlSlice.js.map

@@ -41,3 +41,3 @@ import { getRemovedRecords } from "./RemovedRecordsSlice.js";

});
return newRecords.concat(Array.from(recordsMap.values()));
return Array.from(recordsMap.values()).concat(newRecords);
case Action.RECORD_LOADED:

@@ -44,0 +44,0 @@ action.payload.forEach((record) => {

@@ -23,2 +23,3 @@ import { StringUtils } from "./utils/StringUtils.js";

import ServiceCanceledException from "./exceptions/ServiceCanceledException.js";
import SilentException from "./exceptions/SilentException.js";
import { ErrorTracking } from "./traking/ErrorTraking.js";

@@ -44,3 +45,6 @@ import { PaginationInfo } from "./dataunit/loading/PaginationInfo.js";

import { SearchUtils } from "./utils/SearchUtils.js";
import { ServiceUtils } from "./utils/ServiceUtils.js";
import { StorageType } from "./utils/CacheManager/index.js";
import OverflowWatcher, { OnOverflowCallBack, OverflowDirection, OverFlowWatcherParams, OVERFLOWED_CLASS_NAME } from "./utils/OverflowWatcher/index.js";
export { StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, ArrayUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, DataUnitStorage, Record, SavedRecord, DataType, UnitMetadata, FieldDescriptor, UserInterface, DependencyType, ChildDescriptor, ChildLink, DataUnitAction, Action, Change, Sort, Filter, ChangeOperation, DUActionInterceptor, ApplicationContext, WaitingChange, PageRequest, QuickFilter, ReadyUtil, ObjectUtils, WarningException, WaitingChangeException, ErrorException, ErrorTracking, ExecutionContext, PaginationInfo, SortingProvider, SortMode, LoadDataRequest, LoadDataResponse, SelectionInfo, SelectionMode, ElementIDUtils, IElementIDInfo, UserAgentUtils, JSUtils, VersionUtils, OnboardingUtils, PromiseSync, PromiseSyncCallback, HTMLBuilder, IRepository, IDBRepository, ILoadResult, IRepositoryIndex, FieldComparator, defaultDataLoader, KeyboardManager, SearchUtils, OverflowWatcher, OnOverflowCallBack, OverflowDirection, OverFlowWatcherParams, OVERFLOWED_CLASS_NAME, DataUnitEventOptions, ServiceCanceledException };
import { LockManager, LockManagerOperation } from "./utils/LockManager.js";
export { LockManager, LockManagerOperation, StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, ArrayUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, DataUnitStorage, Record, SavedRecord, DataType, UnitMetadata, FieldDescriptor, UserInterface, DependencyType, ChildDescriptor, ChildLink, DataUnitAction, Action, Change, Sort, Filter, ChangeOperation, DUActionInterceptor, ApplicationContext, WaitingChange, PageRequest, QuickFilter, ReadyUtil, ObjectUtils, WarningException, WaitingChangeException, ErrorException, ErrorTracking, ExecutionContext, PaginationInfo, SortingProvider, SortMode, LoadDataRequest, LoadDataResponse, SelectionInfo, SelectionMode, ElementIDUtils, IElementIDInfo, UserAgentUtils, JSUtils, VersionUtils, OnboardingUtils, PromiseSync, PromiseSyncCallback, HTMLBuilder, IRepository, IDBRepository, ILoadResult, IRepositoryIndex, FieldComparator, defaultDataLoader, KeyboardManager, SearchUtils, ServiceUtils, StorageType, OverflowWatcher, OnOverflowCallBack, OverflowDirection, OverFlowWatcherParams, OVERFLOWED_CLASS_NAME, DataUnitEventOptions, ServiceCanceledException, SilentException };

@@ -23,2 +23,3 @@ import { StringUtils } from "./utils/StringUtils.js";

import ServiceCanceledException from "./exceptions/ServiceCanceledException.js";
import SilentException from "./exceptions/SilentException.js";
import { ErrorTracking } from "./traking/ErrorTraking.js";

@@ -38,5 +39,8 @@ import { ElementIDUtils } from "./utils/ElementIDUtils.js";

import { SearchUtils } from "./utils/SearchUtils.js";
import { ServiceUtils } from "./utils/ServiceUtils.js";
import { StorageType } from "./utils/CacheManager/index.js";
import OverflowWatcher, { OverflowDirection, OVERFLOWED_CLASS_NAME } from "./utils/OverflowWatcher/index.js";
import { LockManager, LockManagerOperation } from "./utils/LockManager.js";
/*Classes públicas no pacote*/
export { StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, ArrayUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, DataUnitStorage, DataType, UserInterface, DependencyType, DataUnitAction, Action, Change, ChangeOperation, ApplicationContext, ReadyUtil, ObjectUtils, WarningException, WaitingChangeException, ErrorException, ErrorTracking, SortMode, SelectionInfo, SelectionMode, ElementIDUtils, UserAgentUtils, JSUtils, VersionUtils, OnboardingUtils, PromiseSync, HTMLBuilder, IDBRepository, FieldComparator, defaultDataLoader, KeyboardManager, SearchUtils, OverflowWatcher, OverflowDirection, OVERFLOWED_CLASS_NAME, ServiceCanceledException };
export { LockManager, LockManagerOperation, StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, ArrayUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, DataUnitStorage, DataType, UserInterface, DependencyType, DataUnitAction, Action, Change, ChangeOperation, ApplicationContext, ReadyUtil, ObjectUtils, WarningException, WaitingChangeException, ErrorException, ErrorTracking, SortMode, SelectionInfo, SelectionMode, ElementIDUtils, UserAgentUtils, JSUtils, VersionUtils, OnboardingUtils, PromiseSync, HTMLBuilder, IDBRepository, FieldComparator, defaultDataLoader, KeyboardManager, SearchUtils, ServiceUtils, StorageType, OverflowWatcher, OverflowDirection, OVERFLOWED_CLASS_NAME, ServiceCanceledException, SilentException };
//# sourceMappingURL=index.js.map

@@ -75,2 +75,16 @@ /**

/**
* Aplica a máscara quando o input é alterado
*
* @param value Valor a ser aplicado com a máscara.
* @return O valor processado de acordo com o padrão.
*/
applyMask(value: string): string;
/**
* Remove a máscara formatando a string retornando sem máscara
*
* @param value Valor a ser formatado com máscara.
* @return O valor processado de acordo com o padrão.
*/
removeMask(value: string): string;
/**
* Formata a string passada baseada na máscara definda pelo atributo mask.

@@ -77,0 +91,0 @@ *

@@ -74,2 +74,77 @@ /**

/**
* Aplica a máscara quando o input é alterado
*
* @param value Valor a ser aplicado com a máscara.
* @return O valor processado de acordo com o padrão.
*/
applyMask(value) {
if (this.mask === MaskFormatter.DEFAULT_MASKS.cor_rgb) {
value = value.replace("#", "");
const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
if (value === expectedFormattedValue) {
return value;
}
if (value.length >= 6) {
const formattedValue = this.format(value);
return formattedValue;
}
else {
return value;
}
}
const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
if (value === expectedFormattedValue) {
return value;
}
const maskPlaceholders = this.mask.match(/[UAL#?*']/g) || [];
const placeholderCount = maskPlaceholders.length;
const validValue = value.split('').filter((char, index) => {
const placeholder = maskPlaceholders[index];
if (!placeholder)
return false;
switch (placeholder) {
case MaskFormatter.DIGIT_KEY:
return /\d/.test(char);
case MaskFormatter.UPPERCASE_KEY:
return /[a-zA-Z]/.test(char);
case MaskFormatter.LOWERCASE_KEY:
return /[a-zA-Z]/.test(char);
case MaskFormatter.ALPHA_NUMERIC_KEY:
return /[a-zA-Z0-9]/.test(char);
case MaskFormatter.CHARACTER_KEY:
return /[a-zA-Z]/.test(char);
case MaskFormatter.ANYTHING_KEY:
return true;
case MaskFormatter.LITERAL_KEY:
const literalChar = this.mask.charAt(index);
return char === literalChar;
default:
return false;
}
});
if (validValue.length >= placeholderCount) {
const formattedValue = this.format(validValue.join(''));
return formattedValue;
}
else {
const partialValue = validValue.join('');
return partialValue;
}
}
/**
* Remove a máscara formatando a string retornando sem máscara
*
* @param value Valor a ser formatado com máscara.
* @return O valor processado de acordo com o padrão.
*/
removeMask(value) {
const maskString = this.mask.replace("#", "");
const maskElements = maskString.split("");
let valueMapped = value;
maskElements.forEach(maskChar => {
valueMapped = valueMapped.replace(maskChar, "");
});
return valueMapped;
}
/**
* Formata a string passada baseada na máscara definda pelo atributo mask.

@@ -150,3 +225,4 @@ *

"phone": "(##) ####-####",
"cep": "##.###-###"
"cep": "##.###-###",
"cor_rgb": "'#AAAAAA"
};

@@ -153,0 +229,0 @@ //

@@ -10,2 +10,3 @@ /**

static isFirefox(): boolean;
static isElectron(): boolean;
/**

@@ -12,0 +13,0 @@ * Obtém nome e versão do navegador que está sendo utilizado.

@@ -15,2 +15,6 @@ import AGENT_LIST from "./navigatorAgentList.js";

}
static isElectron() {
const browser = this.getBrowserInfo();
return !!browser.electron;
}
/**

@@ -39,2 +43,3 @@ * Obtém nome e versão do navegador que está sendo utilizado.

//ignored
console.warn(e);
}

@@ -41,0 +46,0 @@ browser = Object.assign(Object.assign(Object.assign({}, browser), { name, version: (result === null || result === void 0 ? void 0 : result[1]) || "", simpleVersion }), (Array.isArray(type) ? type.reduce((acc, val) => (Object.assign(Object.assign({}, acc), { [val]: true })), {}) : { [type]: true }));

{
"name": "@sankhyalabs/core",
"version": "0.0.0-feat-dev-KB-68095.1",
"version": "0.0.0-feat-dev-KB-69274.0",
"description": "Modulo core JavaScript da Sankhya.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

import DateUtils from '../../utils/DateUtils.js';
import { MaskFormatter } from '../../utils/MaskFormatter.js';
import { NumberUtils } from '../../utils/NumberUtils.js';
import { TimeFormatter } from '../../utils/TimeFormatter.js';
import { DataType, toString } from '../metadata/DataType.js';

@@ -16,3 +17,6 @@ import { FieldDescriptor, UserInterface } from '../metadata/UnitMetadata.js';

}
return !value ? "" : value.toString();
if(value === null || value === undefined) return "";
return value.toString();
}

@@ -40,2 +44,6 @@

if(descriptor?.userInterface === UserInterface.ELAPSEDTIME){
return TimeFormatter.prepareValue(value, true);
}
if(descriptor?.userInterface === UserInterface.DATETIME){

@@ -74,2 +82,6 @@ return DateUtils.formatDateTime(value);

if(descriptor.userInterface === UserInterface.SEARCHPLUS){
return codeValue;
}
return label ? label : codeValue;

@@ -76,0 +88,0 @@ }

@@ -21,2 +21,12 @@ /** Informações da paginação retornada na requisição de carregamento de registros */

hasMore: boolean;
/** Informa se o carregamento de dados em background está sendo executado
* Caso o dataunit não tenha carga paralela o valor será indefinido
*/
loadingInProgress?: boolean;
/**
* Informa se deve exibir diálogo para cancelar carregamento de registros
*/
askRowsLimit?: number;
}

@@ -94,2 +94,3 @@ import { DataType } from "./DataType.js";

SEARCH = "SEARCH",
SEARCHPLUS = "SEARCHPLUS",
SHORTTEXT = "SHORTTEXT",

@@ -96,0 +97,0 @@ PASSWORD = "PASSWORD",

@@ -39,2 +39,3 @@

SAVING_ERROR = "savingError",
SAVING_CANCELED = "savingCanceled",

@@ -41,0 +42,0 @@ REMOVING_RECORDS = "removingRecords",

import { ChangeOperation } from "../../DataUnit.js";
import { LoadDataRequest } from "../../loading/LoadDataRequest.js";

@@ -19,2 +20,5 @@ import { PaginationInfo } from "../../loading/PaginationInfo.js";

return {...currentState, paginationInfo: action.payload};
case Action.DATA_SAVED:
return {...currentState, paginationInfo: updatePaginationInfo(stateManager, action.payload)};
}

@@ -60,5 +64,43 @@ return currentState;

const updatePaginationInfo = (stateManager: StateManager, payload: Payload): PaginationInfo =>{
const paginationInfo = getPaginationInfo(stateManager);
let { records, changes } = payload;
if(!records || !changes || !paginationInfo || !validateNewRecordOperation(changes)) return paginationInfo as PaginationInfo;
const { count, firstRecord, lastRecord, total } = paginationInfo;
return {
...paginationInfo,
count: (count ?? 0) + records.length,
firstRecord: firstRecord === 0 && records.length > 0 ? 1 : firstRecord,
lastRecord: lastRecord + records.length,
total: (total ?? 0) + records.length
}
}
const validateNewRecordOperation = (changes: Array<Change>): boolean => {
return changes.every(change => isNewRecordOperation(change._operation));
};
const isNewRecordOperation = (operation: string): operation is ChangeOperation => {
return ["INSERT", "COPY"].includes(operation);
};
interface LoadingControlState{
lastRequest: LoadDataRequest;
paginationInfo: PaginationInfo;
}
interface Change {
dataUnit: string;
record: Record<string, any>;
updatingFields: Record<string, any>;
_operation: string;
}
interface Payload {
changes: Change[];
records: Record<string, any>[];
}

@@ -50,3 +50,3 @@ import { ActionReducer, StateAction } from "../StateManager.js";

});
return newRecords.concat(Array.from(recordsMap.values()));
return Array.from(recordsMap.values()).concat(newRecords);

@@ -53,0 +53,0 @@ case Action.RECORD_LOADED:

@@ -23,2 +23,3 @@ import { StringUtils } from "./utils/StringUtils.js";

import ServiceCanceledException from "./exceptions/ServiceCanceledException.js";
import SilentException from "./exceptions/SilentException.js";
import { ErrorTracking } from "./traking/ErrorTraking.js";

@@ -44,6 +45,11 @@ import { PaginationInfo } from "./dataunit/loading/PaginationInfo.js";

import { SearchUtils } from "./utils/SearchUtils.js";
import { ServiceUtils } from "./utils/ServiceUtils.js";
import { StorageType } from "./utils/CacheManager/index.js";
import OverflowWatcher, { OnOverflowCallBack, OverflowDirection, OverFlowWatcherParams, OVERFLOWED_CLASS_NAME } from "./utils/OverflowWatcher/index.js";
import {LockManager, LockManagerOperation} from "./utils/LockManager.js";
/*Classes públicas no pacote*/
export {
LockManager,
LockManagerOperation,
StringUtils,

@@ -113,2 +119,4 @@ MaskFormatter,

SearchUtils,
ServiceUtils,
StorageType,
OverflowWatcher,

@@ -120,3 +128,4 @@ OnOverflowCallBack,

DataUnitEventOptions,
ServiceCanceledException
ServiceCanceledException,
SilentException
};

@@ -61,3 +61,4 @@ /**

"phone": "(##) ####-####",
"cep": "##.###-###"
"cep": "##.###-###",
"cor_rgb" : "'#AAAAAA"
};

@@ -96,3 +97,89 @@

/**
* Aplica a máscara quando o input é alterado
*
* @param value Valor a ser aplicado com a máscara.
* @return O valor processado de acordo com o padrão.
*/
public applyMask(value: string) {
if (this.mask === MaskFormatter.DEFAULT_MASKS.cor_rgb) {
value = value.replace("#", "")
const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
if (value === expectedFormattedValue) {
return value;
}
if (value.length >= 6) {
const formattedValue = this.format(value);
return formattedValue;
} else {
return value;
}
}
const expectedFormattedValue = this.format(value.replace(/\s/g, ""));
if (value === expectedFormattedValue) {
return value;
}
const maskPlaceholders = this.mask.match(/[UAL#?*']/g) || [];
const placeholderCount = maskPlaceholders.length;
const validValue = value.split('').filter((char, index) => {
const placeholder = maskPlaceholders[index];
if (!placeholder) return false;
switch (placeholder) {
case MaskFormatter.DIGIT_KEY:
return /\d/.test(char);
case MaskFormatter.UPPERCASE_KEY:
return /[a-zA-Z]/.test(char);
case MaskFormatter.LOWERCASE_KEY:
return /[a-zA-Z]/.test(char);
case MaskFormatter.ALPHA_NUMERIC_KEY:
return /[a-zA-Z0-9]/.test(char);
case MaskFormatter.CHARACTER_KEY:
return /[a-zA-Z]/.test(char);
case MaskFormatter.ANYTHING_KEY:
return true;
case MaskFormatter.LITERAL_KEY:
const literalChar = this.mask.charAt(index);
return char === literalChar;
default:
return false;
}
});
if (validValue.length >= placeholderCount) {
const formattedValue = this.format(validValue.join(''));
return formattedValue;
} else {
const partialValue = validValue.join('');
return partialValue;
}
}
/**
* Remove a máscara formatando a string retornando sem máscara
*
* @param value Valor a ser formatado com máscara.
* @return O valor processado de acordo com o padrão.
*/
public removeMask(value: string): string {
const maskString = this.mask.replace("#", "");
const maskElements = maskString.split("");
let valueMapped = value
maskElements.forEach(maskChar => {
valueMapped = valueMapped.replace(maskChar, "")
})
return valueMapped;
}
/**
* Formata a string passada baseada na máscara definda pelo atributo mask.

@@ -99,0 +186,0 @@ *

@@ -18,2 +18,7 @@ import AGENT_LIST from "./navigatorAgentList.js"

public static isElectron() {
const browser = this.getBrowserInfo();
return !!browser.electron;
}
/**

@@ -44,2 +49,3 @@ * Obtém nome e versão do navegador que está sendo utilizado.

//ignored
console.warn(e);
}

@@ -54,3 +60,2 @@

}
return !hasFound;

@@ -57,0 +62,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc