@knime/utils 1.0.15 → 1.0.17

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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,24 @@
1
1
  # @knime/utils
2
2
 
3
+ ## 1.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [df2caa5]
8
+ - @knime/styles@1.1.0
9
+
10
+ ## 1.0.16
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @knime/styles@1.0.11
16
+
3
17
  ## 1.0.15
4
18
 
5
19
  ### Patch Changes
6
20
 
7
- - Updated dependencies [bdc6195]
21
+ - Updated dependencies [337e26b]
8
22
  - @knime/styles@1.0.10
9
23
 
10
24
  ## 1.0.14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/utils",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Internal utility functions and constants shared across @knime packages.",
5
5
  "homepage": "https://knime.github.io/webapps-common/",
6
6
  "license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
@@ -10,7 +10,7 @@
10
10
  "consola": "3.2.3",
11
11
  "date-fns": "2.30.0",
12
12
  "date-fns-tz": "2.0.0",
13
- "@knime/styles": "1.0.10"
13
+ "@knime/styles": "1.1.0"
14
14
  },
15
15
  "main": "src/index.ts",
16
16
  "module": "src/index.ts",
@@ -1,6 +1,7 @@
1
1
  import { isAfter, isBefore } from "date-fns";
2
- import updateTime from "./updateTime";
2
+
3
3
  import updateDate from "./updateDate";
4
+ import updateTime from "./updateTime";
4
5
 
5
6
  /**
6
7
  * Check if date is before min.
@@ -8,13 +8,13 @@ import odtIcon from "@knime/styles/img/icons/file-odt.svg";
8
8
  import pdfIcon from "@knime/styles/img/icons/file-pdf.svg";
9
9
  import pptxIcon from "@knime/styles/img/icons/file-pptx.svg";
10
10
  import psIcon from "@knime/styles/img/icons/file-ps.svg";
11
+ import fileIcon from "@knime/styles/img/icons/file-question.svg";
12
+ import txtIcon from "@knime/styles/img/icons/file-text.svg";
11
13
  import xlsIcon from "@knime/styles/img/icons/file-xls.svg";
12
14
  import xlsxIcon from "@knime/styles/img/icons/file-xlsx.svg";
13
15
  import xmlIcon from "@knime/styles/img/icons/file-xml.svg";
14
- import zipIcon from "@knime/styles/img/icons/file-zip.svg";
15
16
  import exeIcon from "@knime/styles/img/icons/file-zip-exe.svg";
16
- import txtIcon from "@knime/styles/img/icons/file-text.svg";
17
- import fileIcon from "@knime/styles/img/icons/file-question.svg";
17
+ import zipIcon from "@knime/styles/img/icons/file-zip.svg";
18
18
 
19
19
  export const icons = {
20
20
  csvIcon,
package/src/index.ts CHANGED
@@ -1,36 +1,31 @@
1
1
  import { capitalize, caseFormatter } from "./capitalize";
2
+ import { isAfterMaxDate, isBeforeMinDate } from "./dateMinMaxCheck";
2
3
  import debounce from "./debounce";
3
- import { filters } from "./filters";
4
- import truncateString from "./truncateString";
5
- import getWrappedAroundIndex from "./getWrappedAroundIndex";
6
- import sleep from "./sleep";
7
4
  import { icons, isIconExisting } from "./fileTypeIcons";
8
-
9
- import updateDate from "./updateDate";
10
- import updateTime from "./updateTime";
11
- import { isAfterMaxDate, isBeforeMinDate } from "./dateMinMaxCheck";
5
+ import { filters } from "./filters";
12
6
  import {
13
7
  formatDateString,
14
8
  formatDateTimeString,
15
9
  formatLocalDateTimeString,
16
10
  formatTimeString,
17
11
  } from "./format";
18
-
19
- import getLocalTimeZone from "./localTimezone";
20
- import numIntegerDigits from "./numIntegerDigits";
21
-
22
12
  import {
23
- formatHotkeys,
24
13
  formatHotkey,
14
+ formatHotkeys,
25
15
  getDefaultSeparator,
26
16
  } from "./formatHotkeys";
27
-
28
17
  import type {
29
18
  Hotkey as _Hotkey,
30
19
  KnownHotkey as _KnownHotkey,
31
20
  } from "./formatHotkeys";
32
-
21
+ import getWrappedAroundIndex from "./getWrappedAroundIndex";
22
+ import getLocalTimeZone from "./localTimezone";
33
23
  import * as navigatorUtils from "./navigator";
24
+ import numIntegerDigits from "./numIntegerDigits";
25
+ import sleep from "./sleep";
26
+ import truncateString from "./truncateString";
27
+ import updateDate from "./updateDate";
28
+ import updateTime from "./updateTime";
34
29
 
35
30
  const hotkeys = { formatHotkeys, formatHotkey, getDefaultSeparator };
36
31
 
package/src/updateDate.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { isValid, getYear, getMonth, getDate, set } from "date-fns";
1
+ import { getDate, getMonth, getYear, isValid, set } from "date-fns";
2
2
  /**
3
3
  * Updates the date part (year, day and month) of a date object (base)
4
4
  * time, offset (timezone) and so on will be left untouched.