@sankhyalabs/core 5.15.5 → 5.16.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.
Files changed (129) hide show
  1. package/.docs/README.md +3 -1
  2. package/.docs/classes/ApplicationContext.md +31 -32
  3. package/.docs/classes/ArrayUtils.md +183 -41
  4. package/.docs/classes/AuthorizedServiceCaller.md +25 -34
  5. package/.docs/classes/Change.md +59 -74
  6. package/.docs/classes/DataUnit.md +970 -1068
  7. package/.docs/classes/DataUnitAction.md +25 -42
  8. package/.docs/classes/DataUnitStorage.md +40 -43
  9. package/.docs/classes/DateUtils.md +133 -126
  10. package/.docs/classes/ElementIDUtils.md +123 -122
  11. package/.docs/classes/ErrorException.md +67 -88
  12. package/.docs/classes/ErrorTracking.md +20 -23
  13. package/.docs/classes/FieldComparator.md +35 -39
  14. package/.docs/classes/FloatingManager.md +195 -198
  15. package/.docs/classes/HTMLBuilder.md +14 -20
  16. package/.docs/classes/HttpProvider.md +45 -41
  17. package/.docs/classes/IDBRepository.md +179 -196
  18. package/.docs/classes/JSUtils.md +82 -58
  19. package/.docs/classes/KeyboardManager.md +95 -87
  20. package/.docs/classes/{MaskFormatter-1.md → MaskFormatter.md} +81 -120
  21. package/.docs/classes/NumberUtils.md +163 -152
  22. package/.docs/classes/ObjectUtils.md +82 -61
  23. package/.docs/classes/OnboardingUtils.md +36 -51
  24. package/.docs/classes/OverflowWatcher.md +269 -0
  25. package/.docs/classes/PromiseSync.md +25 -42
  26. package/.docs/classes/ReadyUtil.md +31 -41
  27. package/.docs/classes/RequestMetadata.md +29 -30
  28. package/.docs/classes/SearchUtils.md +41 -0
  29. package/.docs/classes/SelectionInfo.md +59 -74
  30. package/.docs/classes/SkwHttpProvider.md +33 -45
  31. package/.docs/classes/StringUtils.md +397 -268
  32. package/.docs/classes/TimeFormatter.md +43 -44
  33. package/.docs/classes/UserAgentUtils.md +17 -20
  34. package/.docs/classes/VersionUtils.md +15 -18
  35. package/.docs/classes/WaitingChangeException.md +63 -84
  36. package/.docs/classes/WarningException.md +67 -88
  37. package/.docs/enumerations/Action.md +297 -0
  38. package/.docs/enumerations/ChangeOperation.md +47 -0
  39. package/.docs/enumerations/DataType.md +57 -0
  40. package/.docs/enumerations/DependencyType.md +37 -0
  41. package/.docs/enumerations/OverflowDirection.md +29 -0
  42. package/.docs/enumerations/SelectionMode.md +27 -0
  43. package/.docs/enumerations/SortMode.md +27 -0
  44. package/.docs/enumerations/UserInterface.md +177 -0
  45. package/.docs/functions/defaultDataLoader.md +25 -0
  46. package/.docs/{modules.md → globals.md} +22 -37
  47. package/.docs/interfaces/ChildDescriptor.md +12 -16
  48. package/.docs/interfaces/ChildLink.md +9 -12
  49. package/.docs/interfaces/DUActionInterceptor.md +10 -14
  50. package/.docs/interfaces/ExecutionContext.md +17 -32
  51. package/.docs/interfaces/FieldDescriptor.md +52 -66
  52. package/.docs/interfaces/Filter.md +13 -17
  53. package/.docs/interfaces/IElementIDInfo.md +11 -14
  54. package/.docs/interfaces/ILoadResult.md +11 -16
  55. package/.docs/interfaces/IRepository.md +88 -93
  56. package/.docs/interfaces/IRepositoryIndex.md +23 -30
  57. package/.docs/interfaces/LoadDataRequest.md +36 -45
  58. package/.docs/interfaces/LoadDataResponse.md +11 -14
  59. package/.docs/interfaces/PageRequest.md +16 -20
  60. package/.docs/interfaces/PaginationInfo.md +24 -31
  61. package/.docs/interfaces/PromiseSyncCallback.md +13 -17
  62. package/.docs/interfaces/QuickFilter.md +17 -21
  63. package/.docs/interfaces/Record.md +26 -33
  64. package/.docs/interfaces/SavedRecord.md +33 -41
  65. package/.docs/interfaces/Sort.md +12 -16
  66. package/.docs/interfaces/SortingProvider.md +10 -13
  67. package/.docs/interfaces/UnitMetadata.md +16 -21
  68. package/.docs/interfaces/WaitingChange.md +16 -20
  69. package/.docs/namespaces/MaskFormatter/README.md +17 -0
  70. package/.docs/namespaces/MaskFormatter/type-aliases/MaskCharacter.md +13 -0
  71. package/.docs/namespaces/MaskFormatter/variables/MaskCharacter.md +13 -0
  72. package/.docs/type-aliases/OnOverflowCallBack.md +25 -0
  73. package/.releaserc +10 -10
  74. package/dist/dataunit/DataUnit.d.ts +7 -1
  75. package/dist/dataunit/DataUnit.js +13 -5
  76. package/dist/dataunit/DataUnit.js.map +1 -1
  77. package/dist/dataunit/state/slice/SelectionSlice.js +1 -1
  78. package/dist/dataunit/state/slice/SelectionSlice.js.map +1 -1
  79. package/dist/index.d.ts +3 -1
  80. package/dist/index.js +3 -1
  81. package/dist/index.js.map +1 -1
  82. package/dist/utils/ArrayUtils.d.ts +39 -0
  83. package/dist/utils/ArrayUtils.js +69 -0
  84. package/dist/utils/ArrayUtils.js.map +1 -1
  85. package/dist/utils/JSUtils.d.ts +7 -0
  86. package/dist/utils/JSUtils.js +16 -0
  87. package/dist/utils/JSUtils.js.map +1 -1
  88. package/dist/utils/ObjectUtils.d.ts +8 -0
  89. package/dist/utils/ObjectUtils.js +10 -0
  90. package/dist/utils/ObjectUtils.js.map +1 -1
  91. package/dist/utils/OverflowWatcher/index.d.ts +31 -0
  92. package/dist/utils/OverflowWatcher/index.js +107 -0
  93. package/dist/utils/OverflowWatcher/index.js.map +1 -0
  94. package/dist/utils/OverflowWatcher/types/overflow-callback.d.ts +6 -0
  95. package/dist/utils/OverflowWatcher/types/overflow-callback.js +2 -0
  96. package/dist/utils/OverflowWatcher/types/overflow-callback.js.map +1 -0
  97. package/dist/utils/OverflowWatcher/types/overflow-direction.d.ts +7 -0
  98. package/dist/utils/OverflowWatcher/types/overflow-direction.js +9 -0
  99. package/dist/utils/OverflowWatcher/types/overflow-direction.js.map +1 -0
  100. package/dist/utils/SearchUtils.d.ts +6 -0
  101. package/dist/utils/SearchUtils.js +17 -0
  102. package/dist/utils/SearchUtils.js.map +1 -0
  103. package/dist/utils/StringUtils.d.ts +7 -0
  104. package/dist/utils/StringUtils.js +97 -0
  105. package/dist/utils/StringUtils.js.map +1 -1
  106. package/jest.config.ts +1 -1
  107. package/package.json +11 -4
  108. package/sonar-project.properties +7 -0
  109. package/src/dataunit/DataUnit.ts +18 -4
  110. package/src/dataunit/state/slice/SelectionSlice.ts +1 -1
  111. package/src/index.ts +6 -0
  112. package/src/utils/ArrayUtils.ts +73 -0
  113. package/src/utils/JSUtils.ts +18 -0
  114. package/src/utils/ObjectUtils.ts +11 -0
  115. package/src/utils/OverflowWatcher/index.ts +151 -0
  116. package/src/utils/OverflowWatcher/types/overflow-callback.ts +6 -0
  117. package/src/utils/OverflowWatcher/types/overflow-direction.ts +7 -0
  118. package/src/utils/SearchUtils.ts +18 -0
  119. package/src/utils/StringUtils.ts +124 -0
  120. package/test/util/OverflowWatcher.spec.ts +118 -0
  121. package/.docs/.nojekyll +0 -1
  122. package/.docs/enums/Action.md +0 -327
  123. package/.docs/enums/ChangeOperation.md +0 -52
  124. package/.docs/enums/DataType.md +0 -63
  125. package/.docs/enums/DependencyType.md +0 -41
  126. package/.docs/enums/SelectionMode.md +0 -30
  127. package/.docs/enums/SortMode.md +0 -30
  128. package/.docs/enums/UserInterface.md +0 -195
  129. package/.docs/modules/MaskFormatter.md +0 -37
@@ -1,4 +1,6 @@
1
1
  import { v4 as uuid } from "uuid";
2
+ import ArrayUtils from "./ArrayUtils.js";
3
+ import { JSUtils } from "./JSUtils.js";
2
4
 
3
5
  /**
4
6
  * `StringUtils`: Utilizado para manipulação de Strings.
@@ -414,4 +416,126 @@ export class StringUtils {
414
416
  static getOppositeCase(original: string): string {
415
417
  return this.isLowerCase(original) ? original.toUpperCase() : original.toLowerCase()
416
418
  }
419
+
420
+ public static replaceToSpace(source: string, replaceList: string[] = []) {
421
+ if (source == undefined) {
422
+ return source;
423
+ }
424
+
425
+ replaceList.forEach((word: string) => {
426
+ const wordAux = new RegExp(word, 'g');
427
+ let whiteSpace = '';
428
+ for (let i = 0; i < word.length; i++) {
429
+ whiteSpace += ' ';
430
+ }
431
+ source = String(source).replace(wordAux, whiteSpace);
432
+ });
433
+
434
+ return source;
435
+ }
436
+
437
+ public static replaceAccentuatedCharsHtmlEntities(source: string) {
438
+ const charsWithoutAccentuation = "AEIOU_AO_AEIOU_AEIOU_U_C_aeiou_ao_aeiou_aeiou_u_c";
439
+ if (source == undefined) {
440
+ return source;
441
+ }
442
+
443
+ const replaceList = ['&amp;', '&lt;', '&gt;', '&quot;'];
444
+ const sourceAux = StringUtils.replaceToSpace(source, replaceList);
445
+
446
+ return sourceAux.replace(/[^\w ]/g, (char: string) => {
447
+ let index = charsWithoutAccentuation.indexOf(char);
448
+
449
+ if (index > -1) {
450
+ char = charsWithoutAccentuation.charAt(index);
451
+ }
452
+
453
+ return char || '';
454
+ });
455
+ }
456
+
457
+ public static getSpecialCharacters(str: string) {
458
+ const specialCharsRegex = /[[.\-\$\+\*,_\&\(\)%\/\\#@!:\|\=\'\"]/gmi;
459
+ let match: any;
460
+ let charList = [];
461
+ while ((match = specialCharsRegex.exec(str))) {
462
+ charList.push(str[match.index]);
463
+ }
464
+ return charList;
465
+ }
466
+
467
+ public static replaceAll(str: string, strFrom: string, strTo: string) {
468
+ let pos = (str != undefined ? str : '').indexOf(strFrom);
469
+ while (pos > -1) {
470
+ str = str.replace(strFrom, strTo);
471
+ pos = str.indexOf(strFrom);
472
+ }
473
+ return (str);
474
+ }
475
+
476
+ public static removeSpecialCharacters(str: string) {
477
+ let specialChars = StringUtils.getSpecialCharacters(str);
478
+ specialChars.forEach((ch: string) => {
479
+ str = StringUtils.replaceAll(str, ch, '');
480
+ });
481
+
482
+ return str;
483
+ }
484
+
485
+ public static getArgumentNumber(argument: String) {
486
+ return Number(argument || undefined);
487
+ }
488
+
489
+ public static highlightValue(argument: String, matchFields: any, value: string, fieldMD: any, forceMatch: boolean) {
490
+ const startHighlightTag = "<span class='card-item__highlight'>";
491
+ const endHighlightTag = "</span>";
492
+ let valueAux = JSUtils.replaceHtmlEntities(value);
493
+
494
+ if (argument && (forceMatch || ArrayUtils.isIn(matchFields, fieldMD.fieldName))) {
495
+ const argumentNumber = StringUtils.getArgumentNumber(argument);
496
+
497
+ let replacements = (isNaN(argumentNumber) ? argument : argumentNumber.toString()).split(/%|,|\s+/);
498
+ let lastMatchIndex = 0;
499
+ let cleanText = StringUtils.replaceAccentuatedCharsHtmlEntities(valueAux);
500
+
501
+ replacements.forEach((r: string) => {
502
+ if (r) {
503
+ r = StringUtils.replaceAccentuatedCharsHtmlEntities(r);
504
+
505
+ let specialChars = StringUtils.getSpecialCharacters(r);
506
+
507
+ if (specialChars != undefined && specialChars.length > 0) {
508
+ r = StringUtils.removeSpecialCharacters(r);
509
+ }
510
+
511
+ if (fieldMD.mask || fieldMD.uiType === 'CGC_CPF' || fieldMD.uiType === 'Phone') {
512
+ //Fazemos isso para descondirerar os caracteres especiais de formatação da string
513
+ r = r.split('').join('\\.?\\-?\\/?\\(?\\)?');
514
+ }
515
+
516
+ let regex = new RegExp(r, "ig");
517
+ regex.lastIndex = lastMatchIndex;
518
+ let match = regex.exec(cleanText);
519
+
520
+ if (match && match.length > 0) {
521
+ lastMatchIndex = match.index;
522
+ let sizeMatch = match[0].length;
523
+
524
+ let txtToColor = valueAux.substring(lastMatchIndex, lastMatchIndex + sizeMatch);
525
+ let txtColored = txtToColor?.trim() ? startHighlightTag + txtToColor + endHighlightTag : '';
526
+
527
+ let start = valueAux.substring(0, lastMatchIndex);
528
+ let end = valueAux.substring(lastMatchIndex + sizeMatch);
529
+
530
+ valueAux = start + txtColored + end;
531
+ lastMatchIndex = lastMatchIndex + txtColored.length;
532
+
533
+ cleanText = StringUtils.replaceAccentuatedCharsHtmlEntities(valueAux);
534
+ }
535
+ }
536
+ });
537
+ }
538
+
539
+ return valueAux;
540
+ }
417
541
  }
@@ -0,0 +1,118 @@
1
+ import OverFlowWatcher, { OnOverflowCallBack, OverflowDirection } from '../../src/utils/OverflowWatcher';
2
+
3
+ describe('OverflowWatcher', function () {
4
+
5
+ let element: HTMLElement;
6
+ let callbackHorizontalDirection: OnOverflowCallBack;
7
+ let watcherHorizontalDirection: OverFlowWatcher;
8
+ let callbackVerticalDirection: OnOverflowCallBack;
9
+ let watcherVerticallDirection: OverFlowWatcher;
10
+ let child1:HTMLDivElement;
11
+ let child2:HTMLDivElement;
12
+
13
+ beforeEach(() => {
14
+
15
+ global.ResizeObserver = jest.fn().mockImplementation(() => ({
16
+ observe: jest.fn(),
17
+ unobserve: jest.fn(),
18
+ disconnect: jest.fn(),
19
+ }))
20
+
21
+ element = document.createElement('div');
22
+
23
+ //Horizontal
24
+ callbackHorizontalDirection = jest.fn();
25
+ watcherHorizontalDirection = new OverFlowWatcher(element, callbackHorizontalDirection);
26
+
27
+
28
+ //Vertical
29
+ callbackVerticalDirection = jest.fn();
30
+ watcherVerticallDirection = new OverFlowWatcher(element, callbackVerticalDirection, OverflowDirection.VERTICAL);
31
+
32
+ child1 = document.createElement('div');
33
+ child2 = document.createElement('div');
34
+
35
+ child1.style.width = '50px';
36
+ child2.style.width = '100px';
37
+ child1.style.height = '50px';
38
+ child2.style.height = '100px';
39
+
40
+ //TODO: No futuro utilizar JSDOM para não precisar fazer mock dessas coisas
41
+ child1['getBoundingClientRect'] = () => {
42
+ return {
43
+ width: 50,
44
+ height: 50,
45
+ } as DOMRect;
46
+ }
47
+
48
+ child2['getBoundingClientRect'] = () => {
49
+ return {
50
+ width: 100,
51
+ height: 100,
52
+ } as DOMRect;
53
+ }
54
+
55
+ element.appendChild(child1);
56
+ element.appendChild(child2);
57
+ });
58
+
59
+ afterEach(() => {
60
+ watcherHorizontalDirection.destroy();
61
+ watcherVerticallDirection.destroy();
62
+ });
63
+
64
+ test('constructor initializes properties correctly', () => {
65
+ expect(watcherHorizontalDirection['_onResize']).toBe(callbackHorizontalDirection);
66
+ expect(watcherHorizontalDirection['_scrollDirection']).toBe(OverflowDirection.HORIZONTAL);
67
+ expect(watcherHorizontalDirection['_deltaSize']).toBe(10);
68
+ });
69
+
70
+ test('handleResize horizontal calls callback with hidden items', () => {
71
+ const entries: any[] = [{
72
+ contentRect: {
73
+ width: 120
74
+ },
75
+ target: element
76
+ }];
77
+
78
+ watcherHorizontalDirection['handleResize'](entries);
79
+
80
+ expect(callbackHorizontalDirection).toHaveBeenCalledWith([child2]);
81
+
82
+ entries[0].contentRect.width = 100;
83
+ watcherHorizontalDirection['handleResize'](entries);
84
+
85
+ expect(callbackHorizontalDirection).toHaveBeenCalledWith([child2]);
86
+ });
87
+
88
+ test('handleResize vertical calls callback with hidden items', () => {
89
+ const entries: any[] = [{
90
+ contentRect: {
91
+ height: 120
92
+ },
93
+ target: element
94
+ }];
95
+
96
+ watcherVerticallDirection['handleResize'](entries);
97
+
98
+ expect(callbackVerticalDirection).toHaveBeenCalledWith([child2]);
99
+ });
100
+
101
+ test('isChangedSize returns true if no previous size', () => {
102
+ const newContentRect: DOMRectReadOnly = { width: 100 } as DOMRectReadOnly;
103
+ watcherHorizontalDirection['_lastContentRect'] = undefined;
104
+
105
+ const result = watcherHorizontalDirection['isChangedSize'](newContentRect);
106
+
107
+ expect(result).toBe(true);
108
+ });
109
+
110
+ test('prevent resize without entries', () => {
111
+ const entries: any[] = [];
112
+
113
+ watcherHorizontalDirection['handleResize'](entries);
114
+
115
+ expect(callbackHorizontalDirection).toHaveBeenCalledTimes(0);
116
+ });
117
+
118
+ });
package/.docs/.nojekyll DELETED
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -1,327 +0,0 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / Action
2
-
3
- # Enumeration: Action
4
-
5
- ## Table of contents
6
-
7
- ### Enumeration Members
8
-
9
- - [CHANGE\_REDONE](Action.md#change_redone)
10
- - [CHANGE\_UNDONE](Action.md#change_undone)
11
- - [CHANGING\_DATA](Action.md#changing_data)
12
- - [CHILD\_CHANGED](Action.md#child_changed)
13
- - [DATA\_CHANGED](Action.md#data_changed)
14
- - [DATA\_LOADED](Action.md#data_loaded)
15
- - [DATA\_RESOLVED](Action.md#data_resolved)
16
- - [DATA\_SAVED](Action.md#data_saved)
17
- - [EDITION\_CANCELED](Action.md#edition_canceled)
18
- - [FIELD\_INVALIDATED](Action.md#field_invalidated)
19
- - [INVALIDATE\_CLEAN](Action.md#invalidate_clean)
20
- - [LOADING\_DATA](Action.md#loading_data)
21
- - [LOADING\_METADATA](Action.md#loading_metadata)
22
- - [LOADING\_PROPERTIES\_CLEANED](Action.md#loading_properties_cleaned)
23
- - [LOADING\_PROPERTY\_ADDED](Action.md#loading_property_added)
24
- - [LOADING\_RECORD](Action.md#loading_record)
25
- - [METADATA\_LOADED](Action.md#metadata_loaded)
26
- - [NEXT\_SELECTED](Action.md#next_selected)
27
- - [PAGINATION\_UPDATED](Action.md#pagination_updated)
28
- - [PREVIOUS\_SELECTED](Action.md#previous_selected)
29
- - [RECORDS\_ADDED](Action.md#records_added)
30
- - [RECORDS\_COPIED](Action.md#records_copied)
31
- - [RECORDS\_REMOVED](Action.md#records_removed)
32
- - [RECORD\_LOADED](Action.md#record_loaded)
33
- - [REMOVING\_RECORDS](Action.md#removing_records)
34
- - [SAVING\_DATA](Action.md#saving_data)
35
- - [SELECTION\_CHANGED](Action.md#selection_changed)
36
- - [STATE\_CHANGED](Action.md#state_changed)
37
- - [WAITING\_CHANGE\_CANCELED](Action.md#waiting_change_canceled)
38
-
39
- ## Enumeration Members
40
-
41
- ### CHANGE\_REDONE
42
-
43
- • **CHANGE\_REDONE** = ``"changeRedone"``
44
-
45
- #### Defined in
46
-
47
- src/dataunit/state/action/DataUnitAction.ts:52
48
-
49
- ___
50
-
51
- ### CHANGE\_UNDONE
52
-
53
- • **CHANGE\_UNDONE** = ``"changeUndone"``
54
-
55
- #### Defined in
56
-
57
- src/dataunit/state/action/DataUnitAction.ts:51
58
-
59
- ___
60
-
61
- ### CHANGING\_DATA
62
-
63
- • **CHANGING\_DATA** = ``"changingData"``
64
-
65
- #### Defined in
66
-
67
- src/dataunit/state/action/DataUnitAction.ts:45
68
-
69
- ___
70
-
71
- ### CHILD\_CHANGED
72
-
73
- • **CHILD\_CHANGED** = ``"childChanged"``
74
-
75
- #### Defined in
76
-
77
- src/dataunit/state/action/DataUnitAction.ts:63
78
-
79
- ___
80
-
81
- ### DATA\_CHANGED
82
-
83
- • **DATA\_CHANGED** = ``"dataChanged"``
84
-
85
- #### Defined in
86
-
87
- src/dataunit/state/action/DataUnitAction.ts:47
88
-
89
- ___
90
-
91
- ### DATA\_LOADED
92
-
93
- • **DATA\_LOADED** = ``"dataLoaded"``
94
-
95
- #### Defined in
96
-
97
- src/dataunit/state/action/DataUnitAction.ts:33
98
-
99
- ___
100
-
101
- ### DATA\_RESOLVED
102
-
103
- • **DATA\_RESOLVED** = ``"dataResolved"``
104
-
105
- #### Defined in
106
-
107
- src/dataunit/state/action/DataUnitAction.ts:48
108
-
109
- ___
110
-
111
- ### DATA\_SAVED
112
-
113
- • **DATA\_SAVED** = ``"dataSaved"``
114
-
115
- #### Defined in
116
-
117
- src/dataunit/state/action/DataUnitAction.ts:37
118
-
119
- ___
120
-
121
- ### EDITION\_CANCELED
122
-
123
- • **EDITION\_CANCELED** = ``"editionCanceled"``
124
-
125
- #### Defined in
126
-
127
- src/dataunit/state/action/DataUnitAction.ts:50
128
-
129
- ___
130
-
131
- ### FIELD\_INVALIDATED
132
-
133
- • **FIELD\_INVALIDATED** = ``"fieldInvalidated"``
134
-
135
- #### Defined in
136
-
137
- src/dataunit/state/action/DataUnitAction.ts:65
138
-
139
- ___
140
-
141
- ### INVALIDATE\_CLEAN
142
-
143
- • **INVALIDATE\_CLEAN** = ``"invalidateClean"``
144
-
145
- #### Defined in
146
-
147
- src/dataunit/state/action/DataUnitAction.ts:66
148
-
149
- ___
150
-
151
- ### LOADING\_DATA
152
-
153
- • **LOADING\_DATA** = ``"loadingData"``
154
-
155
- #### Defined in
156
-
157
- src/dataunit/state/action/DataUnitAction.ts:32
158
-
159
- ___
160
-
161
- ### LOADING\_METADATA
162
-
163
- • **LOADING\_METADATA** = ``"loadingMetadata"``
164
-
165
- #### Defined in
166
-
167
- src/dataunit/state/action/DataUnitAction.ts:29
168
-
169
- ___
170
-
171
- ### LOADING\_PROPERTIES\_CLEANED
172
-
173
- • **LOADING\_PROPERTIES\_CLEANED** = ``"loadingPropertiesCleaned"``
174
-
175
- #### Defined in
176
-
177
- src/dataunit/state/action/DataUnitAction.ts:69
178
-
179
- ___
180
-
181
- ### LOADING\_PROPERTY\_ADDED
182
-
183
- • **LOADING\_PROPERTY\_ADDED** = ``"loadingPropertyAdded"``
184
-
185
- #### Defined in
186
-
187
- src/dataunit/state/action/DataUnitAction.ts:68
188
-
189
- ___
190
-
191
- ### LOADING\_RECORD
192
-
193
- • **LOADING\_RECORD** = ``"loadingRecord"``
194
-
195
- #### Defined in
196
-
197
- src/dataunit/state/action/DataUnitAction.ts:60
198
-
199
- ___
200
-
201
- ### METADATA\_LOADED
202
-
203
- • **METADATA\_LOADED** = ``"metadataLoaded"``
204
-
205
- #### Defined in
206
-
207
- src/dataunit/state/action/DataUnitAction.ts:30
208
-
209
- ___
210
-
211
- ### NEXT\_SELECTED
212
-
213
- • **NEXT\_SELECTED** = ``"nextSelected"``
214
-
215
- #### Defined in
216
-
217
- src/dataunit/state/action/DataUnitAction.ts:55
218
-
219
- ___
220
-
221
- ### PAGINATION\_UPDATED
222
-
223
- • **PAGINATION\_UPDATED** = ``"paginationUpdated"``
224
-
225
- #### Defined in
226
-
227
- src/dataunit/state/action/DataUnitAction.ts:34
228
-
229
- ___
230
-
231
- ### PREVIOUS\_SELECTED
232
-
233
- • **PREVIOUS\_SELECTED** = ``"previousSelected"``
234
-
235
- #### Defined in
236
-
237
- src/dataunit/state/action/DataUnitAction.ts:56
238
-
239
- ___
240
-
241
- ### RECORDS\_ADDED
242
-
243
- • **RECORDS\_ADDED** = ``"recordsAdded"``
244
-
245
- #### Defined in
246
-
247
- src/dataunit/state/action/DataUnitAction.ts:42
248
-
249
- ___
250
-
251
- ### RECORDS\_COPIED
252
-
253
- • **RECORDS\_COPIED** = ``"recordsCopied"``
254
-
255
- #### Defined in
256
-
257
- src/dataunit/state/action/DataUnitAction.ts:43
258
-
259
- ___
260
-
261
- ### RECORDS\_REMOVED
262
-
263
- • **RECORDS\_REMOVED** = ``"recordsRemoved"``
264
-
265
- #### Defined in
266
-
267
- src/dataunit/state/action/DataUnitAction.ts:40
268
-
269
- ___
270
-
271
- ### RECORD\_LOADED
272
-
273
- • **RECORD\_LOADED** = ``"recordLoaded"``
274
-
275
- #### Defined in
276
-
277
- src/dataunit/state/action/DataUnitAction.ts:61
278
-
279
- ___
280
-
281
- ### REMOVING\_RECORDS
282
-
283
- • **REMOVING\_RECORDS** = ``"removingRecords"``
284
-
285
- #### Defined in
286
-
287
- src/dataunit/state/action/DataUnitAction.ts:39
288
-
289
- ___
290
-
291
- ### SAVING\_DATA
292
-
293
- • **SAVING\_DATA** = ``"savingData"``
294
-
295
- #### Defined in
296
-
297
- src/dataunit/state/action/DataUnitAction.ts:36
298
-
299
- ___
300
-
301
- ### SELECTION\_CHANGED
302
-
303
- • **SELECTION\_CHANGED** = ``"selectionChanged"``
304
-
305
- #### Defined in
306
-
307
- src/dataunit/state/action/DataUnitAction.ts:54
308
-
309
- ___
310
-
311
- ### STATE\_CHANGED
312
-
313
- • **STATE\_CHANGED** = ``"stateChanged"``
314
-
315
- #### Defined in
316
-
317
- src/dataunit/state/action/DataUnitAction.ts:58
318
-
319
- ___
320
-
321
- ### WAITING\_CHANGE\_CANCELED
322
-
323
- • **WAITING\_CHANGE\_CANCELED** = ``"waitingChangeCanceled"``
324
-
325
- #### Defined in
326
-
327
- src/dataunit/state/action/DataUnitAction.ts:46
@@ -1,52 +0,0 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ChangeOperation
2
-
3
- # Enumeration: ChangeOperation
4
-
5
- ## Table of contents
6
-
7
- ### Enumeration Members
8
-
9
- - [COPY](ChangeOperation.md#copy)
10
- - [DELETE](ChangeOperation.md#delete)
11
- - [INSERT](ChangeOperation.md#insert)
12
- - [UPDATE](ChangeOperation.md#update)
13
-
14
- ## Enumeration Members
15
-
16
- ### COPY
17
-
18
- • **COPY** = ``"COPY"``
19
-
20
- #### Defined in
21
-
22
- src/dataunit/DataUnit.ts:1781
23
-
24
- ___
25
-
26
- ### DELETE
27
-
28
- • **DELETE** = ``"DELETE"``
29
-
30
- #### Defined in
31
-
32
- src/dataunit/DataUnit.ts:1783
33
-
34
- ___
35
-
36
- ### INSERT
37
-
38
- • **INSERT** = ``"INSERT"``
39
-
40
- #### Defined in
41
-
42
- src/dataunit/DataUnit.ts:1780
43
-
44
- ___
45
-
46
- ### UPDATE
47
-
48
- • **UPDATE** = ``"UPDATE"``
49
-
50
- #### Defined in
51
-
52
- src/dataunit/DataUnit.ts:1782
@@ -1,63 +0,0 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DataType
2
-
3
- # Enumeration: DataType
4
-
5
- ## Table of contents
6
-
7
- ### Enumeration Members
8
-
9
- - [BOOLEAN](DataType.md#boolean)
10
- - [DATE](DataType.md#date)
11
- - [NUMBER](DataType.md#number)
12
- - [OBJECT](DataType.md#object)
13
- - [TEXT](DataType.md#text)
14
-
15
- ## Enumeration Members
16
-
17
- ### BOOLEAN
18
-
19
- • **BOOLEAN** = ``"BOOLEAN"``
20
-
21
- #### Defined in
22
-
23
- src/dataunit/metadata/DataType.ts:12
24
-
25
- ___
26
-
27
- ### DATE
28
-
29
- • **DATE** = ``"DATE"``
30
-
31
- #### Defined in
32
-
33
- src/dataunit/metadata/DataType.ts:10
34
-
35
- ___
36
-
37
- ### NUMBER
38
-
39
- • **NUMBER** = ``"NUMBER"``
40
-
41
- #### Defined in
42
-
43
- src/dataunit/metadata/DataType.ts:9
44
-
45
- ___
46
-
47
- ### OBJECT
48
-
49
- • **OBJECT** = ``"OBJECT"``
50
-
51
- #### Defined in
52
-
53
- src/dataunit/metadata/DataType.ts:13
54
-
55
- ___
56
-
57
- ### TEXT
58
-
59
- • **TEXT** = ``"TEXT"``
60
-
61
- #### Defined in
62
-
63
- src/dataunit/metadata/DataType.ts:11