@cellaware/utils 8.1.1 → 8.1.2
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.
|
@@ -117,5 +117,11 @@ export interface DatagridCondition {
|
|
|
117
117
|
export declare function initDatagridCondition(): DatagridCondition;
|
|
118
118
|
export declare function summarizeCondition(condition: DatagridCondition, localeMessageFn: (language: string, messageId: string) => Promise<string>): Promise<string>;
|
|
119
119
|
export declare function codifyCondition(condition: DatagridCondition): string;
|
|
120
|
+
/**
|
|
121
|
+
* Equivalent of `parseNumeric` in front end
|
|
122
|
+
*
|
|
123
|
+
* https://github.com/cellaware/chatwms-az-swa-ng/blob/development/src/app/utils/data.ts#L126
|
|
124
|
+
*/
|
|
125
|
+
export declare function stripNumericValueFormat(value: string | number | undefined): any;
|
|
120
126
|
export declare function transformDatagrid(rows: any[], datagridState: DatagridStateBase, locale: string, condition?: DatagridCondition): DatagridState;
|
|
121
127
|
export {};
|
package/dist/chatwms/datagrid.js
CHANGED
|
@@ -377,7 +377,7 @@ export function codifyCondition(condition) {
|
|
|
377
377
|
*
|
|
378
378
|
* https://github.com/cellaware/chatwms-az-swa-ng/blob/development/src/app/utils/data.ts#L126
|
|
379
379
|
*/
|
|
380
|
-
function stripNumericValueFormat(value) {
|
|
380
|
+
export function stripNumericValueFormat(value) {
|
|
381
381
|
if (value === undefined)
|
|
382
382
|
return null;
|
|
383
383
|
if (typeof value === 'number')
|