asv-hlps 1.0.54 → 1.0.57

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.
@@ -4,7 +4,9 @@ export interface IPath {
4
4
  link: string;
5
5
  default?: boolean;
6
6
  icon?: string;
7
+ param?: any;
7
8
  auth?: any;
9
+ ms?: boolean;
8
10
  }
9
11
  export declare type HeaderTableColumnType = {
10
12
  thLabel: any;
@@ -12,7 +14,8 @@ export declare type HeaderTableColumnType = {
12
14
  content?: any;
13
15
  style?: any;
14
16
  auth?: boolean;
15
- tooltip?: any;
17
+ tooltipH?: any;
18
+ tooltipB?: any;
16
19
  };
17
20
  export declare const colNa: HeaderTableColumnType[];
18
21
  export declare const colNaCo: HeaderTableColumnType[];
@@ -67,3 +67,4 @@ export declare const calculPercent: (nbr: number, percentage: number) => number;
67
67
  export declare const padStartWithZero: (num: any, targetLength: number) => any;
68
68
  export declare const padEndWithZero: (num: any, targetLength: number) => any;
69
69
  export declare const isBirthday: (birthDayDate: any) => boolean;
70
+ export declare const insertAtInArray: (array: any[], index: number, ...elements: any) => void;
package/lib/cjs/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validEmail = exports.convertToCfa = exports.packAndUnit = exports.unCheckedAll = exports.inputChecked = exports.arrayMultiChecked = exports.getColorAccordingToDate = exports.genRandomColour = exports.formatNgbDate = exports.dateToString = exports.replaceSpacesWith = exports.replaceAllIn = exports.sesStorageGet = exports.sesStorageSet = exports.genSequenceRef = exports.removeBackSlashOccurences = exports.removeString = exports.deepClone = exports.findFirstSequenceMissing = exports.fillNumWithZero = exports.findSequencesMissing = exports.sequencesToNumbers = exports.absFromSequence = exports.reformatDates = exports.formatToStringCfa = exports.formatToString = exports.wakeUp = exports.sleep = exports.limitTo = exports.titleCase = exports.toObjectDate = exports.removeDuplicatesByKey = exports.removeDuplicates = exports.getRandomColor = exports.getNbOfDaysBetweenTwoDates = exports.displayDateRangeFr = exports.calPercent = exports.percentOf = exports.genDateMinutesStep = exports.convertFrDateToEnDate = exports.convertEnDateToFr = exports.formatDateMd = exports.formatDateYm = exports.formatDateYmFirstDay = exports.formatDateYmd = exports.formatFromAndToDate = exports.formatDateYmHypen = exports.formatDateFirstDayFr = exports.formatDateYmdHypenFr = exports.formatDateYmdHypen = void 0;
4
- exports.isBirthday = exports.padEndWithZero = exports.padStartWithZero = exports.calculPercent = void 0;
4
+ exports.insertAtInArray = exports.isBirthday = exports.padEndWithZero = exports.padStartWithZero = exports.calculPercent = void 0;
5
5
  const formatDateYmdHypen = (date) => {
6
6
  return (0, exports.formatDateYmd)(date, "-");
7
7
  };
@@ -395,3 +395,7 @@ const isBirthday = (birthDayDate) => {
395
395
  }
396
396
  };
397
397
  exports.isBirthday = isBirthday;
398
+ const insertAtInArray = (array, index, ...elements) => {
399
+ array.splice(index, 0, ...elements);
400
+ };
401
+ exports.insertAtInArray = insertAtInArray;
@@ -4,7 +4,9 @@ export interface IPath {
4
4
  link: string;
5
5
  default?: boolean;
6
6
  icon?: string;
7
+ param?: any;
7
8
  auth?: any;
9
+ ms?: boolean;
8
10
  }
9
11
  export declare type HeaderTableColumnType = {
10
12
  thLabel: any;
@@ -12,7 +14,8 @@ export declare type HeaderTableColumnType = {
12
14
  content?: any;
13
15
  style?: any;
14
16
  auth?: boolean;
15
- tooltip?: any;
17
+ tooltipH?: any;
18
+ tooltipB?: any;
16
19
  };
17
20
  export declare const colNa: HeaderTableColumnType[];
18
21
  export declare const colNaCo: HeaderTableColumnType[];
@@ -67,3 +67,4 @@ export declare const calculPercent: (nbr: number, percentage: number) => number;
67
67
  export declare const padStartWithZero: (num: any, targetLength: number) => any;
68
68
  export declare const padEndWithZero: (num: any, targetLength: number) => any;
69
69
  export declare const isBirthday: (birthDayDate: any) => boolean;
70
+ export declare const insertAtInArray: (array: any[], index: number, ...elements: any) => void;
package/lib/esm/utils.js CHANGED
@@ -337,3 +337,6 @@ export const isBirthday = (birthDayDate) => {
337
337
  return toDay === birthDay;
338
338
  }
339
339
  };
340
+ export const insertAtInArray = (array, index, ...elements) => {
341
+ array.splice(index, 0, ...elements);
342
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.0.54",
3
+ "version": "1.0.57",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",