iguazio.dashboard-react-controls 3.0.4 → 3.1.1

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 (178) hide show
  1. package/dist/components/ActionsMenu/ActionsMenu.d.ts +18 -0
  2. package/dist/components/ActionsMenu/ActionsMenu.d.ts.map +1 -0
  3. package/dist/components/ActionsMenu/ActionsMenu.mjs +126 -0
  4. package/dist/components/ActionsMenu/ActionsMenu.mjs.map +1 -0
  5. package/dist/components/BlockerSpy/BlockerSpy.d.ts +12 -0
  6. package/dist/components/BlockerSpy/BlockerSpy.d.ts.map +1 -0
  7. package/dist/components/BlockerSpy/BlockerSpy.mjs +18 -0
  8. package/dist/components/BlockerSpy/BlockerSpy.mjs.map +1 -0
  9. package/dist/components/Button/Button.mjs +21 -20
  10. package/dist/components/Button/Button.mjs.map +1 -1
  11. package/dist/components/Chip/Chip.d.ts +3 -0
  12. package/dist/components/Chip/Chip.d.ts.map +1 -0
  13. package/dist/components/Chip/Chip.mjs +153 -0
  14. package/dist/components/Chip/Chip.mjs.map +1 -0
  15. package/dist/components/Chip/Chip.stories.d.ts +26 -0
  16. package/dist/components/Chip/Chip.stories.d.ts.map +1 -0
  17. package/dist/components/ChipCell/ChipCell.d.ts +3 -0
  18. package/dist/components/ChipCell/ChipCell.d.ts.map +1 -0
  19. package/dist/components/ChipCell/ChipCell.mjs +212 -0
  20. package/dist/components/ChipCell/ChipCell.mjs.map +1 -0
  21. package/dist/components/ChipCell/ChipTooltip/ChipTooltip.d.ts +15 -0
  22. package/dist/components/ChipCell/ChipTooltip/ChipTooltip.d.ts.map +1 -0
  23. package/dist/components/ChipCell/ChipTooltip/ChipTooltip.mjs +36 -0
  24. package/dist/components/ChipCell/ChipTooltip/ChipTooltip.mjs.map +1 -0
  25. package/dist/components/ChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +35 -0
  26. package/dist/components/ChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -0
  27. package/dist/components/ChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs +73 -0
  28. package/dist/components/ChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs.map +1 -0
  29. package/dist/components/ChipForm/ChipForm.d.ts +25 -0
  30. package/dist/components/ChipForm/ChipForm.d.ts.map +1 -0
  31. package/dist/components/ChipForm/ChipForm.mjs +184 -0
  32. package/dist/components/ChipForm/ChipForm.mjs.map +1 -0
  33. package/dist/components/CopyToClipboard/CopyToClipboard.d.ts +18 -0
  34. package/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -0
  35. package/dist/components/CopyToClipboard/CopyToClipboard.mjs +51 -0
  36. package/dist/components/CopyToClipboard/CopyToClipboard.mjs.map +1 -0
  37. package/dist/components/ErrorMessage/ErrorMessage.d.ts +12 -0
  38. package/dist/components/ErrorMessage/ErrorMessage.d.ts.map +1 -0
  39. package/dist/components/ErrorMessage/ErrorMessage.mjs +23 -0
  40. package/dist/components/ErrorMessage/ErrorMessage.mjs.map +1 -0
  41. package/dist/components/FormChipCell/FormChipCellView.mjs +1 -1
  42. package/dist/components/LoadButton/LoadButton.d.ts +16 -0
  43. package/dist/components/LoadButton/LoadButton.d.ts.map +1 -0
  44. package/dist/components/LoadButton/LoadButton.mjs +22 -0
  45. package/dist/components/LoadButton/LoadButton.mjs.map +1 -0
  46. package/dist/components/LoadButton/LoadButton.stories.d.ts +10 -0
  47. package/dist/components/LoadButton/LoadButton.stories.d.ts.map +1 -0
  48. package/dist/components/Loader/Loader.d.ts +3 -0
  49. package/dist/components/Loader/Loader.d.ts.map +1 -0
  50. package/dist/components/Loader/Loader.mjs +24 -0
  51. package/dist/components/Loader/Loader.mjs.map +1 -0
  52. package/dist/components/Loader/LoaderForSuspenseFallback.d.ts +3 -0
  53. package/dist/components/Loader/LoaderForSuspenseFallback.d.ts.map +1 -0
  54. package/dist/components/Loader/LoaderForSuspenseFallback.mjs +13 -0
  55. package/dist/components/Loader/LoaderForSuspenseFallback.mjs.map +1 -0
  56. package/dist/components/TableCell/TableCell.d.ts +28 -0
  57. package/dist/components/TableCell/TableCell.d.ts.map +1 -0
  58. package/dist/components/TableCell/TableCell.mjs +104 -0
  59. package/dist/components/TableCell/TableCell.mjs.map +1 -0
  60. package/dist/components/TabsSlider/TabsSlider.d.ts +20 -0
  61. package/dist/components/TabsSlider/TabsSlider.d.ts.map +1 -0
  62. package/dist/components/TabsSlider/TabsSlider.mjs +133 -0
  63. package/dist/components/TabsSlider/TabsSlider.mjs.map +1 -0
  64. package/dist/components/index.d.ts +12 -1
  65. package/dist/components/index.d.ts.map +1 -1
  66. package/dist/components/index.mjs +60 -38
  67. package/dist/components/index.mjs.map +1 -1
  68. package/dist/constants.d.ts +8 -0
  69. package/dist/constants.d.ts.map +1 -1
  70. package/dist/constants.mjs +34 -26
  71. package/dist/constants.mjs.map +1 -1
  72. package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts +16 -0
  73. package/dist/elements/ActionsMenuItem/ActionsMenuItem.d.ts.map +1 -0
  74. package/dist/elements/ActionsMenuItem/ActionsMenuItem.mjs +51 -0
  75. package/dist/elements/ActionsMenuItem/ActionsMenuItem.mjs.map +1 -0
  76. package/dist/elements/TableHead/TableHead.d.ts +20 -0
  77. package/dist/elements/TableHead/TableHead.d.ts.map +1 -0
  78. package/dist/elements/TableHead/TableHead.mjs +58 -0
  79. package/dist/elements/TableHead/TableHead.mjs.map +1 -0
  80. package/dist/elements/TableLinkCell/TableLinkCell.d.ts +24 -0
  81. package/dist/elements/TableLinkCell/TableLinkCell.d.ts.map +1 -0
  82. package/dist/elements/TableLinkCell/TableLinkCell.mjs +87 -0
  83. package/dist/elements/TableLinkCell/TableLinkCell.mjs.map +1 -0
  84. package/dist/elements/TableTypeCell/TableTypeCell.d.ts +12 -0
  85. package/dist/elements/TableTypeCell/TableTypeCell.d.ts.map +1 -0
  86. package/dist/elements/TableTypeCell/TableTypeCell.mjs +37 -0
  87. package/dist/elements/TableTypeCell/TableTypeCell.mjs.map +1 -0
  88. package/dist/elements/index.d.ts +5 -1
  89. package/dist/elements/index.d.ts.map +1 -1
  90. package/dist/elements/index.mjs +18 -10
  91. package/dist/elements/index.mjs.map +1 -1
  92. package/dist/hooks/index.d.ts +3 -0
  93. package/dist/hooks/index.mjs +14 -8
  94. package/dist/hooks/index.mjs.map +1 -1
  95. package/dist/hooks/useDetails.hook.d.ts +72 -0
  96. package/dist/hooks/useDetails.hook.d.ts.map +1 -0
  97. package/dist/hooks/useDetails.hook.mjs +204 -0
  98. package/dist/hooks/useDetails.hook.mjs.map +1 -0
  99. package/dist/hooks/useDetailsHeader.hook.d.ts +77 -0
  100. package/dist/hooks/useDetailsHeader.hook.d.ts.map +1 -0
  101. package/dist/hooks/useDetailsHeader.hook.mjs +219 -0
  102. package/dist/hooks/useDetailsHeader.hook.mjs.map +1 -0
  103. package/dist/hooks/useTable.hook.d.ts +60 -0
  104. package/dist/hooks/useTable.hook.d.ts.map +1 -0
  105. package/dist/hooks/useTable.hook.mjs +129 -0
  106. package/dist/hooks/useTable.hook.mjs.map +1 -0
  107. package/dist/images/add.svg.mjs +2 -3
  108. package/dist/images/add.svg.mjs.map +1 -1
  109. package/dist/images/add.svg2.mjs +6 -0
  110. package/dist/images/add.svg2.mjs.map +1 -0
  111. package/dist/images/cancel.svg +3 -0
  112. package/dist/images/copy-to-clipboard-icon.svg.mjs +6 -0
  113. package/dist/images/copy-to-clipboard-icon.svg.mjs.map +1 -0
  114. package/dist/images/elipsis.svg.mjs +6 -0
  115. package/dist/images/elipsis.svg.mjs.map +1 -0
  116. package/dist/images/history.svg.mjs +6 -0
  117. package/dist/images/history.svg.mjs.map +1 -0
  118. package/dist/images/ml-enlarge.svg.mjs +6 -0
  119. package/dist/images/ml-enlarge.svg.mjs.map +1 -0
  120. package/dist/images/ml-minimize.svg.mjs +6 -0
  121. package/dist/images/ml-minimize.svg.mjs.map +1 -0
  122. package/dist/images/refresh.svg.mjs +6 -0
  123. package/dist/images/refresh.svg.mjs.map +1 -0
  124. package/dist/images/unsuccess_alert.svg.mjs +6 -0
  125. package/dist/images/unsuccess_alert.svg.mjs.map +1 -0
  126. package/dist/index.css +1 -1
  127. package/dist/index.d.ts +2 -1
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.mjs +10 -8
  130. package/dist/index.mjs.map +1 -1
  131. package/dist/reducers/commonDetailsReducer.d.ts +12 -0
  132. package/dist/reducers/commonDetailsReducer.d.ts.map +1 -0
  133. package/dist/reducers/commonDetailsReducer.mjs +77 -0
  134. package/dist/reducers/commonDetailsReducer.mjs.map +1 -0
  135. package/dist/reducers/index.d.ts +3 -0
  136. package/dist/reducers/index.d.ts.map +1 -0
  137. package/dist/reducers/index.mjs +7 -0
  138. package/dist/reducers/index.mjs.map +1 -0
  139. package/dist/reducers/notificationReducer.d.ts +3 -0
  140. package/dist/reducers/notificationReducer.d.ts.map +1 -0
  141. package/dist/reducers/notificationReducer.mjs +21 -0
  142. package/dist/reducers/notificationReducer.mjs.map +1 -0
  143. package/dist/scss/common.scss +655 -0
  144. package/dist/scss/details.scss +376 -0
  145. package/dist/scss/mixins.scss +1 -1
  146. package/dist/scss/table.scss +283 -0
  147. package/dist/types.d.ts +6 -0
  148. package/dist/types.d.ts.map +1 -1
  149. package/dist/types.mjs +89 -45
  150. package/dist/types.mjs.map +1 -1
  151. package/dist/utils/chips.util.d.ts +30 -0
  152. package/dist/utils/chips.util.d.ts.map +1 -0
  153. package/dist/utils/chips.util.mjs +75 -0
  154. package/dist/utils/chips.util.mjs.map +1 -0
  155. package/dist/utils/common.util.d.ts +5 -0
  156. package/dist/utils/common.util.d.ts.map +1 -1
  157. package/dist/utils/common.util.mjs +80 -33
  158. package/dist/utils/common.util.mjs.map +1 -1
  159. package/dist/utils/datetime.util.d.ts +9 -0
  160. package/dist/utils/datetime.util.d.ts.map +1 -0
  161. package/dist/utils/datetime.util.mjs +53 -0
  162. package/dist/utils/datetime.util.mjs.map +1 -0
  163. package/dist/utils/filter.util.d.ts +5 -0
  164. package/dist/utils/filter.util.d.ts.map +1 -0
  165. package/dist/utils/filter.util.mjs +23 -0
  166. package/dist/utils/filter.util.mjs.map +1 -0
  167. package/dist/utils/index.d.ts +5 -0
  168. package/dist/utils/index.mjs +22 -12
  169. package/dist/utils/index.mjs.map +1 -1
  170. package/dist/utils/notification.util.d.ts +2 -0
  171. package/dist/utils/notification.util.d.ts.map +1 -0
  172. package/dist/utils/notification.util.mjs +17 -0
  173. package/dist/utils/notification.util.mjs.map +1 -0
  174. package/dist/utils/string.util.d.ts +6 -0
  175. package/dist/utils/string.util.d.ts.map +1 -0
  176. package/dist/utils/string.util.mjs +13 -0
  177. package/dist/utils/string.util.mjs.map +1 -0
  178. package/package.json +11 -1
package/dist/types.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  import e from "prop-types";
2
- import { DANGER_BUTTON as i, LABEL_BUTTON as s, PRIMARY_BUTTON as r, SECONDARY_BUTTON as n, TERTIARY_BUTTON as t, MODAL_SM as o, MODAL_MD as a, MODAL_LG as O, MODAL_MIN as l, MODAL_MAX as d } from "./constants.mjs";
3
- const _ = e.oneOf([
2
+ import { DANGER_BUTTON as i, LABEL_BUTTON as s, PRIMARY_BUTTON as r, SECONDARY_BUTTON as n, TERTIARY_BUTTON as t, DENSITY_DENSE as o, DENSITY_NORMAL as a, DENSITY_MEDIUM as O, DENSITY_CHUNKY as d, MODAL_SM as l, MODAL_MD as u, MODAL_LG as T, MODAL_MIN as R, MODAL_MAX as g } from "./constants.mjs";
3
+ const f = e.oneOf([
4
4
  i,
5
5
  s,
6
6
  r,
7
7
  n,
8
8
  t
9
- ]), u = e.shape({
9
+ ]), b = e.shape({
10
10
  delimiter: e.element,
11
11
  id: e.string,
12
12
  value: e.string.isRequired
13
- }), b = e.arrayOf(
13
+ }), S = e.arrayOf(
14
14
  e.shape({
15
15
  disabled: e.bool,
16
16
  icon: e.element,
@@ -19,7 +19,12 @@ const _ = e.oneOf([
19
19
  subLabel: e.string,
20
20
  ui: e.shape({})
21
21
  })
22
- ), p = e.shape({
22
+ ), _ = e.oneOf([
23
+ o,
24
+ a,
25
+ O,
26
+ d
27
+ ]), q = e.shape({
23
28
  background: e.oneOf([
24
29
  "amethyst",
25
30
  "green",
@@ -32,23 +37,23 @@ const _ = e.oneOf([
32
37
  ]),
33
38
  boldValue: e.bool,
34
39
  borderColor: e.oneOf(["transparent", "orange", "green", "purple", "grey"]),
35
- density: e.oneOf(["dense", "normal", "medium"]),
40
+ density: _,
36
41
  font: e.oneOf(["primary", "white", "green", "purple", "orange"]),
37
42
  borderRadius: e.oneOf(["primary", "secondary"])
38
- }), I = e.arrayOf(u), c = e.shape({
43
+ }), E = e.arrayOf(b), h = e.shape({
39
44
  element: e.shape({}),
40
45
  position: e.oneOf(["top-left", "top-right", "bottom-left", "bottom-right"]),
41
46
  autoHorizontalPosition: e.bool,
42
47
  autoVerticalPosition: e.bool
43
- }), f = e.oneOf([o, a, O, l, d]), m = e.shape({
48
+ }), m = e.oneOf([l, u, T, R, g]), A = e.shape({
44
49
  handler: e.func,
45
50
  label: e.string.isRequired,
46
51
  variant: e.string.isRequired
47
- }), N = e.oneOfType([e.element, e.string]), S = e.shape({
52
+ }), L = e.oneOfType([e.element, e.string]), y = e.shape({
48
53
  handler: e.func.isRequired,
49
54
  label: e.string.isRequired,
50
55
  variant: e.string.isRequired
51
- }), h = e.arrayOf(
56
+ }), D = e.arrayOf(
52
57
  e.shape({
53
58
  id: e.string.isRequired,
54
59
  label: e.string.isRequired,
@@ -56,10 +61,10 @@ const _ = e.oneOf([
56
61
  disabled: e.bool,
57
62
  nextIsDisabled: e.bool
58
63
  })
59
- ), L = e.shape({
64
+ ), M = e.shape({
60
65
  show: e.oneOfType([e.bool, e.string]),
61
66
  url: e.string
62
- }), T = e.shape({
67
+ }), I = e.shape({
63
68
  disabled: e.bool,
64
69
  hidden: e.bool,
65
70
  icon: e.element,
@@ -68,32 +73,32 @@ const _ = e.oneOf([
68
73
  labelHtml: e.string,
69
74
  status: e.string,
70
75
  subLabel: e.string
71
- }), q = e.arrayOf(T), y = e.arrayOf(
76
+ }), C = e.arrayOf(I), U = e.arrayOf(
72
77
  e.shape({
73
78
  name: e.string.isRequired,
74
79
  label: e.string.isRequired,
75
80
  pattern: e.oneOfType([e.instanceOf(RegExp), e.func]).isRequired,
76
81
  isValid: e.bool
77
82
  })
78
- ), A = e.arrayOf(
83
+ ), P = e.arrayOf(
79
84
  e.shape({
80
85
  customDelimiter: e.string,
81
86
  id: e.string.isRequired,
82
87
  label: e.string.isRequired
83
88
  })
84
- ), E = e.arrayOf(
89
+ ), B = e.arrayOf(
85
90
  e.shape({
86
91
  name: e.string.isRequired,
87
92
  label: e.string.isRequired,
88
93
  isValid: e.bool
89
94
  })
90
- ), P = e.arrayOf(
95
+ ), Y = e.arrayOf(
91
96
  e.shape({
92
97
  className: e.string,
93
98
  id: e.string.isRequired,
94
99
  label: e.string.isRequired
95
100
  })
96
- ), M = e.shape({
101
+ ), G = e.shape({
97
102
  data: e.shape({}).isRequired,
98
103
  ui: e.shape({
99
104
  isNew: e.bool,
@@ -101,43 +106,82 @@ const _ = e.oneOf([
101
106
  fieldsPath: e.string.isRequired
102
107
  }).isRequired,
103
108
  [e.string]: e.any
104
- }), C = e.shape({
109
+ }), V = e.shape({
105
110
  selectedColumnName: e.string.isRequired,
106
111
  getSortingIcon: e.func.isRequired,
107
112
  sortTable: e.func.isRequired
108
- }), D = e.oneOfType([
113
+ }), F = e.oneOfType([
109
114
  e.string,
110
115
  e.number,
111
116
  e.arrayOf(e.string, e.number)
112
- ]), B = e.oneOfType([e.string, e.number]), U = e.oneOfType([
117
+ ]), H = e.oneOfType([e.string, e.number]), x = e.oneOfType([
113
118
  e.string,
114
119
  e.number,
115
120
  e.arrayOf(e.string, e.number)
116
- ]), G = e.oneOf(["dense", "normal", "medium", "chunky"]);
121
+ ]), v = e.oneOf(["dense", "normal", "medium", "chunky"]), X = e.shape({
122
+ startIndex: e.number.isRequired,
123
+ endIndex: e.number.isRequired,
124
+ tableBodyPaddingTop: e.number.isRequired
125
+ }), k = e.arrayOf(
126
+ e.shape({
127
+ id: e.string.isRequired,
128
+ label: e.string.isRequired,
129
+ tip: e.string,
130
+ hidden: e.bool
131
+ })
132
+ ), w = e.arrayOf(
133
+ e.shape({
134
+ id: e.string.isRequired,
135
+ label: e.string.isRequired,
136
+ hidden: e.bool
137
+ })
138
+ ), Z = e.shape({
139
+ disabled: e.bool,
140
+ hidden: e.bool,
141
+ label: e.string.isRequired,
142
+ onClick: e.func.isRequired,
143
+ tooltip: e.string,
144
+ variant: e.string
145
+ }), c = e.shape({
146
+ label: e.string.isRequired,
147
+ icon: e.object,
148
+ onClick: e.func.isRequired,
149
+ disabled: e.bool,
150
+ className: e.string
151
+ }), j = e.oneOfType([
152
+ e.arrayOf(e.arrayOf(c.isRequired)),
153
+ e.func
154
+ ]);
117
155
  export {
118
- D as ALLOW_SORT_BY,
119
- _ as BUTTON_VARIANTS,
120
- u as CHIP,
121
- I as CHIPS,
122
- b as CHIP_INPUT_LIST,
123
- p as CHIP_OPTIONS,
124
- P as COMBOBOX_SELECT_OPTIONS,
125
- A as COMBOBOX_SUGGESTION_LIST,
126
- E as COMBOBOX_VALIDATION_RULES,
127
- m as CONFIRM_DIALOG_CANCEL_BUTTON,
128
- N as CONFIRM_DIALOG_MESSAGE,
129
- S as CONFIRM_DIALOG_SUBMIT_BUTTON,
130
- B as DEFAULT_SORT_BY,
131
- G as DENSITY,
132
- U as EXCLUDE_SORT_BY,
133
- M as FORM_TABLE_EDITING_ITEM,
134
- L as INPUT_LINK,
135
- y as INPUT_VALIDATION_RULES,
136
- f as MODAL_SIZES,
137
- c as POP_UP_CUSTOM_POSITION,
138
- T as SELECT_OPTION,
139
- q as SELECT_OPTIONS,
140
- C as SORT_PROPS,
141
- h as WIZARD_STEPS_CONFIG
156
+ j as ACTIONS_MENU,
157
+ Z as ACTION_BUTTON,
158
+ F as ALLOW_SORT_BY,
159
+ f as BUTTON_VARIANTS,
160
+ b as CHIP,
161
+ E as CHIPS,
162
+ S as CHIP_INPUT_LIST,
163
+ q as CHIP_OPTIONS,
164
+ Y as COMBOBOX_SELECT_OPTIONS,
165
+ P as COMBOBOX_SUGGESTION_LIST,
166
+ B as COMBOBOX_VALIDATION_RULES,
167
+ A as CONFIRM_DIALOG_CANCEL_BUTTON,
168
+ L as CONFIRM_DIALOG_MESSAGE,
169
+ y as CONFIRM_DIALOG_SUBMIT_BUTTON,
170
+ H as DEFAULT_SORT_BY,
171
+ v as DENSITY,
172
+ _ as DENSITY_OPTIONS,
173
+ w as DETAILS_MENU,
174
+ x as EXCLUDE_SORT_BY,
175
+ G as FORM_TABLE_EDITING_ITEM,
176
+ M as INPUT_LINK,
177
+ U as INPUT_VALIDATION_RULES,
178
+ m as MODAL_SIZES,
179
+ h as POP_UP_CUSTOM_POSITION,
180
+ I as SELECT_OPTION,
181
+ C as SELECT_OPTIONS,
182
+ k as SLIDER_TABS,
183
+ V as SORT_PROPS,
184
+ X as VIRTUALIZATION_CONFIG,
185
+ D as WIZARD_STEPS_CONFIG
142
186
  };
143
187
  //# sourceMappingURL=types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","sources":["../src/lib/types.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport PropTypes from 'prop-types'\n\nimport {\n DANGER_BUTTON,\n LABEL_BUTTON,\n MODAL_LG,\n MODAL_MAX,\n MODAL_MD,\n MODAL_MIN,\n MODAL_SM,\n PRIMARY_BUTTON,\n SECONDARY_BUTTON,\n TERTIARY_BUTTON\n} from './constants'\n\nexport const BUTTON_VARIANTS = PropTypes.oneOf([\n DANGER_BUTTON,\n LABEL_BUTTON,\n PRIMARY_BUTTON,\n SECONDARY_BUTTON,\n TERTIARY_BUTTON\n])\n\nexport const CHIP = PropTypes.shape({\n delimiter: PropTypes.element,\n id: PropTypes.string,\n value: PropTypes.string.isRequired\n})\n\nexport const CHIP_INPUT_LIST = PropTypes.arrayOf(\n PropTypes.shape({\n disabled: PropTypes.bool,\n icon: PropTypes.element,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n subLabel: PropTypes.string,\n ui: PropTypes.shape({})\n })\n)\n\nexport const CHIP_OPTIONS = PropTypes.shape({\n background: PropTypes.oneOf([\n 'amethyst',\n 'green',\n 'grey',\n 'java',\n 'none',\n 'orange',\n 'purple',\n 'sorbus'\n ]),\n boldValue: PropTypes.bool,\n borderColor: PropTypes.oneOf(['transparent', 'orange', 'green', 'purple', 'grey']),\n density: PropTypes.oneOf(['dense', 'normal', 'medium']),\n font: PropTypes.oneOf(['primary', 'white', 'green', 'purple', 'orange']),\n borderRadius: PropTypes.oneOf(['primary', 'secondary'])\n})\n\nexport const CHIPS = PropTypes.arrayOf(CHIP)\n\nexport const POP_UP_CUSTOM_POSITION = PropTypes.shape({\n element: PropTypes.shape({}),\n position: PropTypes.oneOf(['top-left', 'top-right', 'bottom-left', 'bottom-right']),\n autoHorizontalPosition: PropTypes.bool,\n autoVerticalPosition: PropTypes.bool\n})\n\nexport const MODAL_SIZES = PropTypes.oneOf([MODAL_SM, MODAL_MD, MODAL_LG, MODAL_MIN, MODAL_MAX])\n\nexport const CONFIRM_DIALOG_CANCEL_BUTTON = PropTypes.shape({\n handler: PropTypes.func,\n label: PropTypes.string.isRequired,\n variant: PropTypes.string.isRequired\n})\nexport const CONFIRM_DIALOG_MESSAGE = PropTypes.oneOfType([PropTypes.element, PropTypes.string])\nexport const CONFIRM_DIALOG_SUBMIT_BUTTON = PropTypes.shape({\n handler: PropTypes.func.isRequired,\n label: PropTypes.string.isRequired,\n variant: PropTypes.string.isRequired\n})\n\nexport const WIZARD_STEPS_CONFIG = PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n hidden: PropTypes.bool,\n disabled: PropTypes.bool,\n nextIsDisabled: PropTypes.bool\n })\n)\n\nexport const INPUT_LINK = PropTypes.shape({\n show: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n url: PropTypes.string\n})\n\nexport const SELECT_OPTION = PropTypes.shape({\n disabled: PropTypes.bool,\n hidden: PropTypes.bool,\n icon: PropTypes.element,\n id: PropTypes.string.isRequired,\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,\n labelHtml: PropTypes.string,\n status: PropTypes.string,\n subLabel: PropTypes.string\n})\n\nexport const SELECT_OPTIONS = PropTypes.arrayOf(SELECT_OPTION)\n\nexport const INPUT_VALIDATION_RULES = PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n pattern: PropTypes.oneOfType([PropTypes.instanceOf(RegExp), PropTypes.func]).isRequired,\n isValid: PropTypes.bool\n })\n)\n\nexport const COMBOBOX_SUGGESTION_LIST = PropTypes.arrayOf(\n PropTypes.shape({\n customDelimiter: PropTypes.string,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n)\n\nexport const COMBOBOX_VALIDATION_RULES = PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n isValid: PropTypes.bool\n })\n)\n\nexport const COMBOBOX_SELECT_OPTIONS = PropTypes.arrayOf(\n PropTypes.shape({\n className: PropTypes.string,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n)\n\nexport const FORM_TABLE_EDITING_ITEM = PropTypes.shape({\n data: PropTypes.shape({}).isRequired,\n ui: PropTypes.shape({\n isNew: PropTypes.bool,\n index: PropTypes.number.isRequired,\n fieldsPath: PropTypes.string.isRequired\n }).isRequired,\n [PropTypes.string]: PropTypes.any\n})\n\nexport const SORT_PROPS = PropTypes.shape({\n selectedColumnName: PropTypes.string.isRequired,\n getSortingIcon: PropTypes.func.isRequired,\n sortTable: PropTypes.func.isRequired\n})\n\nexport const ALLOW_SORT_BY = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.string, PropTypes.number)\n])\n\nexport const DEFAULT_SORT_BY = PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n\nexport const EXCLUDE_SORT_BY = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.string, PropTypes.number)\n])\n\nexport const DENSITY = PropTypes.oneOf(['dense', 'normal', 'medium', 'chunky'])\n"],"names":["BUTTON_VARIANTS","PropTypes","DANGER_BUTTON","LABEL_BUTTON","PRIMARY_BUTTON","SECONDARY_BUTTON","TERTIARY_BUTTON","CHIP","CHIP_INPUT_LIST","CHIP_OPTIONS","CHIPS","POP_UP_CUSTOM_POSITION","MODAL_SIZES","MODAL_SM","MODAL_MD","MODAL_LG","MODAL_MIN","MODAL_MAX","CONFIRM_DIALOG_CANCEL_BUTTON","CONFIRM_DIALOG_MESSAGE","CONFIRM_DIALOG_SUBMIT_BUTTON","WIZARD_STEPS_CONFIG","INPUT_LINK","SELECT_OPTION","SELECT_OPTIONS","INPUT_VALIDATION_RULES","COMBOBOX_SUGGESTION_LIST","COMBOBOX_VALIDATION_RULES","COMBOBOX_SELECT_OPTIONS","FORM_TABLE_EDITING_ITEM","SORT_PROPS","ALLOW_SORT_BY","DEFAULT_SORT_BY","EXCLUDE_SORT_BY","DENSITY"],"mappings":";;AA+BY,MAACA,IAAkBC,EAAU,MAAM;AAAA,EAC7CC;AAAA,EACAC;AAAA,EAC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AU,MAAM,CAAC,SAAS,UAAU,UAAU,QAAQ,CAAC;"}
1
+ {"version":3,"file":"types.mjs","sources":["../src/lib/types.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport PropTypes from 'prop-types'\n\nimport {\n DANGER_BUTTON,\n DENSITY_CHUNKY,\n DENSITY_DENSE,\n DENSITY_MEDIUM,\n DENSITY_NORMAL,\n LABEL_BUTTON,\n MODAL_LG,\n MODAL_MAX,\n MODAL_MD,\n MODAL_MIN,\n MODAL_SM,\n PRIMARY_BUTTON,\n SECONDARY_BUTTON,\n TERTIARY_BUTTON\n} from './constants'\n\nexport const BUTTON_VARIANTS = PropTypes.oneOf([\n DANGER_BUTTON,\n LABEL_BUTTON,\n PRIMARY_BUTTON,\n SECONDARY_BUTTON,\n TERTIARY_BUTTON\n])\n\nexport const CHIP = PropTypes.shape({\n delimiter: PropTypes.element,\n id: PropTypes.string,\n value: PropTypes.string.isRequired\n})\n\nexport const CHIP_INPUT_LIST = PropTypes.arrayOf(\n PropTypes.shape({\n disabled: PropTypes.bool,\n icon: PropTypes.element,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n subLabel: PropTypes.string,\n ui: PropTypes.shape({})\n })\n)\n\nexport const DENSITY_OPTIONS = PropTypes.oneOf([\n DENSITY_DENSE,\n DENSITY_NORMAL,\n DENSITY_MEDIUM,\n DENSITY_CHUNKY\n])\n\nexport const CHIP_OPTIONS = PropTypes.shape({\n background: PropTypes.oneOf([\n 'amethyst',\n 'green',\n 'grey',\n 'java',\n 'none',\n 'orange',\n 'purple',\n 'sorbus'\n ]),\n boldValue: PropTypes.bool,\n borderColor: PropTypes.oneOf(['transparent', 'orange', 'green', 'purple', 'grey']),\n density: DENSITY_OPTIONS,\n font: PropTypes.oneOf(['primary', 'white', 'green', 'purple', 'orange']),\n borderRadius: PropTypes.oneOf(['primary', 'secondary'])\n})\n\nexport const CHIPS = PropTypes.arrayOf(CHIP)\n\nexport const POP_UP_CUSTOM_POSITION = PropTypes.shape({\n element: PropTypes.shape({}),\n position: PropTypes.oneOf(['top-left', 'top-right', 'bottom-left', 'bottom-right']),\n autoHorizontalPosition: PropTypes.bool,\n autoVerticalPosition: PropTypes.bool\n})\n\nexport const MODAL_SIZES = PropTypes.oneOf([MODAL_SM, MODAL_MD, MODAL_LG, MODAL_MIN, MODAL_MAX])\n\nexport const CONFIRM_DIALOG_CANCEL_BUTTON = PropTypes.shape({\n handler: PropTypes.func,\n label: PropTypes.string.isRequired,\n variant: PropTypes.string.isRequired\n})\nexport const CONFIRM_DIALOG_MESSAGE = PropTypes.oneOfType([PropTypes.element, PropTypes.string])\nexport const CONFIRM_DIALOG_SUBMIT_BUTTON = PropTypes.shape({\n handler: PropTypes.func.isRequired,\n label: PropTypes.string.isRequired,\n variant: PropTypes.string.isRequired\n})\n\nexport const WIZARD_STEPS_CONFIG = PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n hidden: PropTypes.bool,\n disabled: PropTypes.bool,\n nextIsDisabled: PropTypes.bool\n })\n)\n\nexport const INPUT_LINK = PropTypes.shape({\n show: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n url: PropTypes.string\n})\n\nexport const SELECT_OPTION = PropTypes.shape({\n disabled: PropTypes.bool,\n hidden: PropTypes.bool,\n icon: PropTypes.element,\n id: PropTypes.string.isRequired,\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,\n labelHtml: PropTypes.string,\n status: PropTypes.string,\n subLabel: PropTypes.string\n})\n\nexport const SELECT_OPTIONS = PropTypes.arrayOf(SELECT_OPTION)\n\nexport const INPUT_VALIDATION_RULES = PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n pattern: PropTypes.oneOfType([PropTypes.instanceOf(RegExp), PropTypes.func]).isRequired,\n isValid: PropTypes.bool\n })\n)\n\nexport const COMBOBOX_SUGGESTION_LIST = PropTypes.arrayOf(\n PropTypes.shape({\n customDelimiter: PropTypes.string,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n)\n\nexport const COMBOBOX_VALIDATION_RULES = PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n isValid: PropTypes.bool\n })\n)\n\nexport const COMBOBOX_SELECT_OPTIONS = PropTypes.arrayOf(\n PropTypes.shape({\n className: PropTypes.string,\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired\n })\n)\n\nexport const FORM_TABLE_EDITING_ITEM = PropTypes.shape({\n data: PropTypes.shape({}).isRequired,\n ui: PropTypes.shape({\n isNew: PropTypes.bool,\n index: PropTypes.number.isRequired,\n fieldsPath: PropTypes.string.isRequired\n }).isRequired,\n [PropTypes.string]: PropTypes.any\n})\n\nexport const SORT_PROPS = PropTypes.shape({\n selectedColumnName: PropTypes.string.isRequired,\n getSortingIcon: PropTypes.func.isRequired,\n sortTable: PropTypes.func.isRequired\n})\n\nexport const ALLOW_SORT_BY = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.string, PropTypes.number)\n])\n\nexport const DEFAULT_SORT_BY = PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n\nexport const EXCLUDE_SORT_BY = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.string, PropTypes.number)\n])\n\nexport const DENSITY = PropTypes.oneOf(['dense', 'normal', 'medium', 'chunky'])\n\nexport const VIRTUALIZATION_CONFIG = PropTypes.shape({\n startIndex: PropTypes.number.isRequired,\n endIndex: PropTypes.number.isRequired,\n tableBodyPaddingTop: PropTypes.number.isRequired\n})\n\nexport const SLIDER_TABS = PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n tip: PropTypes.string,\n hidden: PropTypes.bool\n })\n)\n\nexport const DETAILS_MENU = PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n hidden: PropTypes.bool\n })\n)\n\nexport const ACTION_BUTTON = PropTypes.shape({\n disabled: PropTypes.bool,\n hidden: PropTypes.bool,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n tooltip: PropTypes.string,\n variant: PropTypes.string\n})\n\nconst ACTIONS_MENU_ITEM = PropTypes.shape({\n label: PropTypes.string.isRequired,\n icon: PropTypes.object,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n className: PropTypes.string\n})\n\nexport const ACTIONS_MENU = PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.arrayOf(ACTIONS_MENU_ITEM.isRequired)),\n PropTypes.func\n])\n"],"names":["BUTTON_VARIANTS","PropTypes","DANGER_BUTTON","LABEL_BUTTON","PRIMARY_BUTTON","SECONDARY_BUTTON","TERTIARY_BUTTON","CHIP","CHIP_INPUT_LIST","DENSITY_OPTIONS","DENSITY_DENSE","DENSITY_NORMAL","DENSITY_MEDIUM","DENSITY_CHUNKY","CHIP_OPTIONS","CHIPS","POP_UP_CUSTOM_POSITION","MODAL_SIZES","MODAL_SM","MODAL_MD","MODAL_LG","MODAL_MIN","MODAL_MAX","CONFIRM_DIALOG_CANCEL_BUTTON","CONFIRM_DIALOG_MESSAGE","CONFIRM_DIALOG_SUBMIT_BUTTON","WIZARD_STEPS_CONFIG","INPUT_LINK","SELECT_OPTION","SELECT_OPTIONS","INPUT_VALIDATION_RULES","COMBOBOX_SUGGESTION_LIST","COMBOBOX_VALIDATION_RULES","COMBOBOX_SELECT_OPTIONS","FORM_TABLE_EDITING_ITEM","SORT_PROPS","ALLOW_SORT_BY","DEFAULT_SORT_BY","EXCLUDE_SORT_BY","DENSITY","VIRTUALIZATION_CONFIG","SLIDER_TABS","DETAILS_MENU","ACTION_BUTTON","ACTIONS_MENU_ITEM","ACTIONS_MENU"],"mappings":";;AAmCY,MAACA,IAAkBC,EAAU,MAAM;AAAA,EAC7CC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AACF,CAAC,GAEYC,IAAON,EAAU,MAAM;AAAA,EAClC,WAAWA,EAAU;AAAA,EACrB,IAAIA,EAAU;AAAA,EACd,OAAOA,EAAU,OAAO;AAC1B,CAAC,GAEYO,IAAkBP,EAAU;AAAA,EACvCA,EAAU,MAAM;AAAA,IACd,UAAUA,EAAU;AAAA,IACpB,MAAMA,EAAU;AAAA,IAChB,IAAIA,EAAU,OAAO;AAAA,IACrB,OAAOA,EAAU,OAAO;AAAA,IACxB,UAAUA,EAAU;AAAA,IACpB,IAAIA,EAAU,MAAM,CAAE,CAAA;AAAA,EACvB,CAAA;AACH,GAEaQ,IAAkBR,EAAU,MAAM;AAAA,EAC7CS;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AACF,CAAC,GAEYC,IAAeb,EAAU,MAAM;AAAA,EAC1C,YAAYA,EAAU,MAAM;AAAA,IAC1B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,CAAG;AAAA,EACD,WAAWA,EAAU;AAAA,EACrB,aAAaA,EAAU,MAAM,CAAC,eAAe,UAAU,SAAS,UAAU,MAAM,CAAC;AAAA,EACjF,SAASQ;AAAA,EACT,MAAMR,EAAU,MAAM,CAAC,WAAW,SAAS,SA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U,OAAO;AAAA,EACxB,MAAMA,EAAU;AAAA,EAChB,SAASA,EAAU,KAAK;AAAA,EACxB,UAAUA,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB,CAAC,GAEY4C,IAAe5C,EAAU,UAAU;AAAA,EAC9CA,EAAU,QAAQA,EAAU,QAAQ2C,EAAkB,UAAU,CAAC;AAAA,EACjE3C,EAAU;AACZ,CAAC;"}
@@ -0,0 +1,30 @@
1
+ export function getChipOptions(variant: any): {
2
+ type: string;
3
+ boldValue: boolean;
4
+ background: string;
5
+ borderColor: string;
6
+ density: string;
7
+ font: string;
8
+ borderRadius: string;
9
+ };
10
+ export function cutChips(chips: any[], maxLength: any, delimiter: any): {
11
+ visibleChips: {
12
+ value: any;
13
+ delimiter: any;
14
+ }[];
15
+ hiddenChips: {
16
+ value: any;
17
+ delimiter: any;
18
+ }[];
19
+ } | {
20
+ visibleChips: {
21
+ value: any;
22
+ delimiter: any;
23
+ }[];
24
+ hiddenChips?: undefined;
25
+ };
26
+ export function getChipLabelAndValue(chip: any): {
27
+ chipLabel: any;
28
+ chipValue: any;
29
+ };
30
+ //# sourceMappingURL=chips.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chips.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/chips.util.js"],"names":[],"mappings":"AAmEO;;;;;;;;EAAiF;AAEjF;;;;;;;;;;;;;;;EAkBN;AAEM;;;EAQN"}
@@ -0,0 +1,75 @@
1
+ import { roundFloats as l } from "./common.util.mjs";
2
+ const d = [
3
+ {
4
+ type: "labels",
5
+ boldValue: !1,
6
+ background: "purple",
7
+ borderColor: "transparent",
8
+ density: "dense",
9
+ font: "purple",
10
+ borderRadius: "primary"
11
+ },
12
+ {
13
+ type: "metrics",
14
+ boldValue: !1,
15
+ background: "grey",
16
+ borderColor: "transparent",
17
+ borderRadius: "primary",
18
+ density: "dense",
19
+ font: "primary"
20
+ },
21
+ {
22
+ type: "parameters",
23
+ boldValue: !1,
24
+ background: "orange",
25
+ borderColor: "transparent",
26
+ borderRadius: "primary",
27
+ density: "dense",
28
+ font: "orange"
29
+ },
30
+ {
31
+ type: "results",
32
+ boldValue: !1,
33
+ background: "grey",
34
+ borderColor: "transparent",
35
+ borderRadius: "primary",
36
+ density: "dense",
37
+ font: "primary"
38
+ },
39
+ {
40
+ type: "relations",
41
+ boldValue: !1,
42
+ background: "orange",
43
+ borderColor: "transparent",
44
+ borderRadius: "primary",
45
+ density: "dense",
46
+ font: "orange"
47
+ }
48
+ ], p = (e) => d.find((r) => r.type === e), u = (e = [], r, a) => {
49
+ if (e.length > r) {
50
+ let n = `+ ${e.length - r}`;
51
+ const t = e.slice(r).map((o) => ({ value: o, delimiter: a })), s = e.slice(0, r).map((o) => ({ value: o, delimiter: a }));
52
+ return s.push({
53
+ value: n,
54
+ delimiter: a
55
+ }), {
56
+ visibleChips: s,
57
+ hiddenChips: t
58
+ };
59
+ }
60
+ return {
61
+ visibleChips: e.map((n) => ({ value: n, delimiter: a }))
62
+ };
63
+ }, b = (e) => {
64
+ const r = e.value.indexOf(":"), a = e.value.slice(r + 1);
65
+ return {
66
+ chipLabel: r > 0 ? e.value.slice(0, r) : e.value,
67
+ chipValue: r > 0 ? Number.isInteger(a) ? l(a) : a : ""
68
+ };
69
+ };
70
+ export {
71
+ u as cutChips,
72
+ b as getChipLabelAndValue,
73
+ p as getChipOptions
74
+ };
75
+ //# sourceMappingURL=chips.util.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chips.util.mjs","sources":["../../src/lib/utils/chips.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nimport { roundFloats } from './common.util'\n\nconst chipOptions = [\n {\n type: 'labels',\n boldValue: false,\n background: 'purple',\n borderColor: 'transparent',\n density: 'dense',\n font: 'purple',\n borderRadius: 'primary'\n },\n {\n type: 'metrics',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'parameters',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n },\n {\n type: 'results',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'relations',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n }\n]\n\nexport const getChipOptions = variant => chipOptions.find(item => item.type === variant)\n\nexport const cutChips = (chips = [], maxLength, delimiter) => {\n if (chips.length > maxLength) {\n let hiddenChipsNumber = `+ ${chips.length - maxLength}`\n const hiddenChips = chips.slice(maxLength).map(value => ({ value, delimiter }))\n const visibleChips = chips.slice(0, maxLength).map(value => ({ value, delimiter }))\n visibleChips.push({\n value: hiddenChipsNumber,\n delimiter\n })\n\n return {\n visibleChips,\n hiddenChips\n }\n }\n return {\n visibleChips: chips.map(value => ({ value, delimiter }))\n }\n}\n\nexport const getChipLabelAndValue = chip => {\n const indexOfDelimiter = chip.value.indexOf(':')\n const value = chip.value.slice(indexOfDelimiter + 1)\n\n return {\n chipLabel: indexOfDelimiter > 0 ? chip.value.slice(0, indexOfDelimiter) : chip.value,\n chipValue: indexOfDelimiter > 0 ? (Number.isInteger(value) ? roundFloats(value) : value) : ''\n }\n}\n"],"names":["chipOptions","getChipOptions","variant","item","cutChips","chips","maxLength","delimiter","hiddenChipsNumber","hiddenChips","value","visibleChips","getChipLabelAndValue","chip","indexOfDelimiter","roundFloats"],"mappings":";AAmBA,MAAMA,IAAc;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT,MAAM;AAAA,IACN,cAAc;AAAA,EACf;AAAA,EACD;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACD;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACD;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACD;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AACA,GAEaC,IAAiB,CAAAC,MAAWF,EAAY,KAAK,CAAAG,MAAQA,EAAK,SAASD,CAAO,GAE1EE,IAAW,CAACC,IAAQ,IAAIC,GAAWC,MAAc;AAC5D,MAAIF,EAAM,SAASC,GAAW;AAC5B,QAAIE,IAAoB,KAAKH,EAAM,SAASC,CAAS;AACrD,UAAMG,IAAcJ,EAAM,MAAMC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY,GACxEI,IAAeN,EAAM,MAAM,GAAGC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,EAAS,EAAG;AAClF,WAAAI,EAAa,KAAK;AAAA,MAChB,OAAOH;AAAA,MACP,WAAAD;AAAA,IACD,CAAA,GAEM;AAAA,MACL,cAAAI;AAAA,MACA,aAAAF;AAAA,IACN;AAAA,EACA;AACE,SAAO;AAAA,IACL,cAAcJ,EAAM,IAAI,CAAAK,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY;AAAA,EAC3D;AACA,GAEaK,IAAuB,CAAAC,MAAQ;AAC1C,QAAMC,IAAmBD,EAAK,MAAM,QAAQ,GAAG,GACzCH,IAAQG,EAAK,MAAM,MAAMC,IAAmB,CAAC;AAEnD,SAAO;AAAA,IACL,WAAWA,IAAmB,IAAID,EAAK,MAAM,MAAM,GAAGC,CAAgB,IAAID,EAAK;AAAA,IAC/E,WAAWC,IAAmB,IAAK,OAAO,UAAUJ,CAAK,IAAIK,EAAYL,CAAK,IAAIA,IAAS;AAAA,EAC/F;AACA;"}
@@ -7,4 +7,9 @@ export function getErrorDetail(error: Error): string;
7
7
  export function getErrorMsg(error: Error, defaultError: string): string;
8
8
  export function getTransitionEndEventName(): string;
9
9
  export function getScssVariableValue(variableName: any): string;
10
+ export function getViewMode(search: any): string;
11
+ export function performDetailsActionHelper(changes: any, dispatch: any, filtersWasHandled?: boolean): Promise<boolean>;
12
+ export function copyToClipboard(textToCopy: any, dispatch: any): void;
13
+ export function roundFloats(value: any, precision: any): any;
14
+ export function generateUrlFromRouterPath(link: any): string;
10
15
  //# sourceMappingURL=common.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/common.util.js"],"names":[],"mappings":"AAqBO,kEAEN;AAEM,kFAcN;AAEM,qGAcN;AAEM,2DACuD;AAGvD,uFAQN;AAQM,sCAHI,KAAK,GACH,MAAM,CAUlB;AASM,mCAJI,KAAK,gBACL,MAAM,GACJ,MAAM,CAgBlB;AAOM,6CAFM,MAAM,CAiBlB;AAEM,gEAEN"}
1
+ {"version":3,"file":"common.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/common.util.js"],"names":[],"mappings":"AA0BO,kEAEN;AAEM,kFAcN;AAEM,qGAcN;AAEM,2DAGJ;AAGI,uFAQN;AAQM,sCAHI,KAAK,GACH,MAAM,CAUlB;AASM,mCAJI,KAAK,gBACL,MAAM,GACJ,MAAM,CAgBlB;AAOM,6CAFM,MAAM,CAiBlB;AAEM,gEAEN;AAEM,iDAEN;AAEM,uHAqBN;AAEM,sEAwBN;AAEM,6DAWN;AAEM,6DAEN"}
@@ -1,40 +1,45 @@
1
- import { create as c } from "react-modal-promise";
2
- import { isEmpty as m, differenceWith as d, isEqual as p, omit as o, get as i } from "lodash";
3
- import a from "../components/ConfirmDialog/ConfirmDialog.mjs";
4
- import { PRIMARY_BUTTON as f, TERTIARY_BUTTON as s, DANGER_BUTTON as g } from "../constants.mjs";
5
- const l = (t, e) => c(t)(e), v = (t, e) => l(a, {
1
+ import { create as f } from "react-modal-promise";
2
+ import { isEmpty as c, isNumber as g, differenceWith as w, isEqual as E, omit as a, get as s } from "lodash";
3
+ import d from "../components/ConfirmDialog/ConfirmDialog.mjs";
4
+ import { PRIMARY_BUTTON as b, TERTIARY_BUTTON as u, DANGER_BUTTON as T, VIEW_SEARCH_PARAMETER as y } from "../constants.mjs";
5
+ import { setFiltersWasHandled as h, showWarning as v } from "../reducers/commonDetailsReducer.mjs";
6
+ import { setNotification as C } from "../reducers/notificationReducer.mjs";
7
+ import { showErrorNotification as l } from "./notification.util.mjs";
8
+ const m = (t, e) => f(t)(e), M = (t, e) => m(d, {
6
9
  cancelButton: {
7
10
  label: "Cancel",
8
- variant: s
11
+ variant: u
9
12
  },
10
13
  confirmButton: {
11
14
  label: "OK",
12
- variant: f,
15
+ variant: b,
13
16
  handler: e
14
17
  },
15
18
  header: "Are you sure?",
16
19
  message: t
17
- }), D = (t, e, n) => l(a, {
20
+ }), O = (t, e, r) => m(d, {
18
21
  cancelButton: {
19
22
  label: "Cancel",
20
- variant: s
23
+ variant: u
21
24
  },
22
25
  confirmButton: {
23
26
  label: "Delete",
24
- variant: g,
25
- handler: n
27
+ variant: T,
28
+ handler: r
26
29
  },
27
30
  header: t,
28
31
  message: e
29
- }), O = (t) => Object.values(t).every((e) => !e || e.length === 0), B = (t, e, n = []) => t.length !== e.length ? !1 : m(
30
- d(t, e, (r, u) => p(o(r, n), o(u, n)))
31
- ), T = (t) => {
32
- const e = i(t, "response.data.detail", null);
33
- return typeof e == "string" ? e : i(e, "reason", "");
34
- }, C = (t, e) => {
35
- const r = T(t) || t.message;
36
- return (!r || r === "Not Found" || r.startsWith("Request failed with status code")) && e ? e : r || "";
37
- }, N = () => {
32
+ }), F = (t) => Object.values(t).every(
33
+ (e) => !e || (e == null ? void 0 : e.length) === 0 || !g(e) && c(e)
34
+ ), S = (t, e, r = []) => t.length !== e.length ? !1 : c(
35
+ w(t, e, (n, i) => E(a(n, r), a(i, r)))
36
+ ), N = (t) => {
37
+ const e = s(t, "response.data.detail", null);
38
+ return typeof e == "string" ? e : s(e, "reason", "");
39
+ }, V = (t, e) => {
40
+ const n = N(t) || t.message;
41
+ return (!n || n === "Not Found" || n.startsWith("Request failed with status code")) && e ? e : n || "";
42
+ }, W = () => {
38
43
  const t = {
39
44
  transition: "transitionend",
40
45
  OTransition: "oTransitionEnd",
@@ -42,19 +47,61 @@ const l = (t, e) => c(t)(e), v = (t, e) => l(a, {
42
47
  WebkitTransition: "webkitTransitionEnd"
43
48
  };
44
49
  let e = document.body.style;
45
- for (let n in t)
46
- if (e[n] !== void 0)
47
- return t[n];
48
- }, R = (t) => getComputedStyle(document.documentElement).getPropertyValue(t).trim();
50
+ for (let r in t)
51
+ if (e[r] !== void 0)
52
+ return t[r];
53
+ }, _ = (t) => getComputedStyle(document.documentElement).getPropertyValue(t).trim(), x = (t) => {
54
+ var e;
55
+ return (e = new URLSearchParams(t).get(y)) == null ? void 0 : e.toLowerCase();
56
+ }, q = async (t, e, r = !1) => {
57
+ let n = Promise.resolve(!0);
58
+ return t.counter > 0 && (n = await new Promise((i) => {
59
+ const o = (p) => {
60
+ window.removeEventListener("discardChanges", o), window.removeEventListener("cancelLeave", o), i(p);
61
+ };
62
+ window.addEventListener("discardChanges", () => o(!0)), window.addEventListener("cancelLeave", () => o(!1)), e(h(r)), e(v(!0));
63
+ })), n;
64
+ }, H = (t, e) => {
65
+ var r;
66
+ if (!((r = navigator.clipboard) != null && r.writeText))
67
+ return l(
68
+ e,
69
+ null,
70
+ "",
71
+ "Copy to clipboard failed due to unsecured connection"
72
+ );
73
+ navigator.clipboard.writeText(t).then(() => {
74
+ e(
75
+ C({
76
+ status: 200,
77
+ id: Math.random(),
78
+ message: "Copied to clipboard successfully"
79
+ })
80
+ );
81
+ }).catch((n) => {
82
+ l(e, n, "", "Copy to clipboard failed");
83
+ });
84
+ }, I = (t, e) => {
85
+ if ((typeof t == "string" && t.trim() !== "" || typeof t == "number") && !isNaN(t)) {
86
+ const r = parseFloat(t);
87
+ return r % 1 === 0 ? r : +r.toFixed(e ?? 2);
88
+ }
89
+ return t;
90
+ }, j = (t) => new URL(t, window.location.origin).toString();
49
91
  export {
50
- B as areArraysEqual,
51
- T as getErrorDetail,
52
- C as getErrorMsg,
53
- R as getScssVariableValue,
54
- N as getTransitionEndEventName,
55
- O as isEveryObjectValueEmpty,
56
- v as openConfirmPopUp,
57
- D as openDeleteConfirmPopUp,
58
- l as openPopUp
92
+ S as areArraysEqual,
93
+ H as copyToClipboard,
94
+ j as generateUrlFromRouterPath,
95
+ N as getErrorDetail,
96
+ V as getErrorMsg,
97
+ _ as getScssVariableValue,
98
+ W as getTransitionEndEventName,
99
+ x as getViewMode,
100
+ F as isEveryObjectValueEmpty,
101
+ M as openConfirmPopUp,
102
+ O as openDeleteConfirmPopUp,
103
+ m as openPopUp,
104
+ q as performDetailsActionHelper,
105
+ I as roundFloats
59
106
  };
60
107
  //# sourceMappingURL=common.util.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.util.mjs","sources":["../../src/lib/utils/common.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport { create } from 'react-modal-promise'\nimport { differenceWith, isEqual, get, omit, isEmpty } from 'lodash'\nimport ConfirmDialog from '../components/ConfirmDialog/ConfirmDialog'\nimport { DANGER_BUTTON, PRIMARY_BUTTON, TERTIARY_BUTTON } from '../constants'\n\nexport const openPopUp = (element, props) => {\n return create(element)(props)\n}\n\nexport const openConfirmPopUp = (message, confirmHandler) => {\n return openPopUp(ConfirmDialog, {\n cancelButton: {\n label: 'Cancel',\n variant: TERTIARY_BUTTON\n },\n confirmButton: {\n label: 'OK',\n variant: PRIMARY_BUTTON,\n handler: confirmHandler\n },\n header: 'Are you sure?',\n message\n })\n}\n\nexport const openDeleteConfirmPopUp = (header, message, confirmHandler) => {\n return openPopUp(ConfirmDialog, {\n cancelButton: {\n label: 'Cancel',\n variant: TERTIARY_BUTTON\n },\n confirmButton: {\n label: 'Delete',\n variant: DANGER_BUTTON,\n handler: confirmHandler\n },\n header,\n message\n })\n}\n\nexport const isEveryObjectValueEmpty = obj =>\n Object.values(obj).every(item => !item || item.length === 0)\n\n// Checks, whether two arrays of objects are equal, can omit some keys if their comparison is not necessary\nexport const areArraysEqual = (firstArray, secondArray, omitBy = []) => {\n if (firstArray.length !== secondArray.length) return false\n\n return isEmpty(\n differenceWith(firstArray, secondArray, (a, b) => {\n return isEqual(omit(a, omitBy), omit(b, omitBy))\n })\n )\n}\n\n/**\n * Get error information from the error object.\n *\n * @param {Error} error - The error object.\n * @returns {string} - The detailed error information.\n */\nexport const getErrorDetail = error => {\n const errorDetail = get(error, 'response.data.detail', null)\n\n if (typeof errorDetail === 'string') {\n return errorDetail\n } else {\n return get(errorDetail, 'reason', '')\n }\n}\n\n/**\n * Get the error message from the error object or a default error message.\n *\n * @param {Error} error - The error object.\n * @param {string} defaultError - The default error message.\n * @returns {string} - The error message.\n */\nexport const getErrorMsg = (error, defaultError) => {\n const errorDetail = getErrorDetail(error)\n const errorMsg = errorDetail || error.message\n\n if (\n (!errorMsg ||\n errorMsg === 'Not Found' ||\n errorMsg.startsWith('Request failed with status code')) &&\n defaultError\n ) {\n return defaultError\n } else {\n return errorMsg || ''\n }\n}\n\n/**\n * Retrieves the appropriate transition end event name based on the browser.\n *\n * @returns {string} The transition end event name.\n */\nexport const getTransitionEndEventName = () => {\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n }\n\n let bodyStyle = document.body.style\n\n for (let transition in transitions) {\n if (bodyStyle[transition] !== undefined) {\n return transitions[transition]\n }\n }\n}\n\nexport const getScssVariableValue = variableName => {\n return getComputedStyle(document.documentElement).getPropertyValue(variableName).trim()\n}\n"],"names":["openPopUp","element","props","create","openConfirmPopUp","message","confirmHandler","ConfirmDialog","TERTIARY_BUTTON","PRIMARY_BUTTON","openDeleteConfirmPopUp","header","DANGER_BUTTON","isEveryObjectValueEmpty","obj","item","areArraysEqual","firstArray","secondArray","omitBy","isEmpty","differenceWith","a","b","isEqual","omit","getErrorDetail","error","errorDetail","get","getErrorMsg","defaultError","errorMsg","getTransitionEndEventName","transitions","bodyStyle","transition","getScssVariableValue","variableName"],"mappings":";;;;AAqBY,MAACA,IAAY,CAACC,GAASC,MAC1BC,EAAOF,CAAO,EAAEC,CAAK,GAGjBE,IAAmB,CAACC,GAASC,MACjCN,EAAUO,GAAe;AAAA,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WAASC,KAAcF;AACrB,QAAIC,EAAUC,CAAU,MAAM;AAC5B,aAAOF,EAAYE,CAAU;AAGnC,GAEaC,IAAuB,CAAAC,MAC3B,iBAAiB,SAAS,eAAe,EAAE,iBAAiBA,CAAY,EAAE,KAAI;"}
1
+ {"version":3,"file":"common.util.mjs","sources":["../../src/lib/utils/common.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\nimport { create } from 'react-modal-promise'\nimport { differenceWith, isEqual, get, omit, isEmpty, isNumber } from 'lodash'\n\nimport ConfirmDialog from '../components/ConfirmDialog/ConfirmDialog'\n\nimport { DANGER_BUTTON, PRIMARY_BUTTON, TERTIARY_BUTTON, VIEW_SEARCH_PARAMETER } from '../constants'\nimport { setFiltersWasHandled, showWarning } from '../reducers/commonDetailsReducer'\nimport { setNotification } from '../reducers/notificationReducer'\nimport { showErrorNotification } from './notification.util'\n\nexport const openPopUp = (element, props) => {\n return create(element)(props)\n}\n\nexport const openConfirmPopUp = (message, confirmHandler) => {\n return openPopUp(ConfirmDialog, {\n cancelButton: {\n label: 'Cancel',\n variant: TERTIARY_BUTTON\n },\n confirmButton: {\n label: 'OK',\n variant: PRIMARY_BUTTON,\n handler: confirmHandler\n },\n header: 'Are you sure?',\n message\n })\n}\n\nexport const openDeleteConfirmPopUp = (header, message, confirmHandler) => {\n return openPopUp(ConfirmDialog, {\n cancelButton: {\n label: 'Cancel',\n variant: TERTIARY_BUTTON\n },\n confirmButton: {\n label: 'Delete',\n variant: DANGER_BUTTON,\n handler: confirmHandler\n },\n header,\n message\n })\n}\n\nexport const isEveryObjectValueEmpty = obj =>\n Object.values(obj).every(\n item => !item || item?.length === 0 || (!isNumber(item) && isEmpty(item))\n )\n\n// Checks, whether two arrays of objects are equal, can omit some keys if their comparison is not necessary\nexport const areArraysEqual = (firstArray, secondArray, omitBy = []) => {\n if (firstArray.length !== secondArray.length) return false\n\n return isEmpty(\n differenceWith(firstArray, secondArray, (a, b) => {\n return isEqual(omit(a, omitBy), omit(b, omitBy))\n })\n )\n}\n\n/**\n * Get error information from the error object.\n *\n * @param {Error} error - The error object.\n * @returns {string} - The detailed error information.\n */\nexport const getErrorDetail = error => {\n const errorDetail = get(error, 'response.data.detail', null)\n\n if (typeof errorDetail === 'string') {\n return errorDetail\n } else {\n return get(errorDetail, 'reason', '')\n }\n}\n\n/**\n * Get the error message from the error object or a default error message.\n *\n * @param {Error} error - The error object.\n * @param {string} defaultError - The default error message.\n * @returns {string} - The error message.\n */\nexport const getErrorMsg = (error, defaultError) => {\n const errorDetail = getErrorDetail(error)\n const errorMsg = errorDetail || error.message\n\n if (\n (!errorMsg ||\n errorMsg === 'Not Found' ||\n errorMsg.startsWith('Request failed with status code')) &&\n defaultError\n ) {\n return defaultError\n } else {\n return errorMsg || ''\n }\n}\n\n/**\n * Retrieves the appropriate transition end event name based on the browser.\n *\n * @returns {string} The transition end event name.\n */\nexport const getTransitionEndEventName = () => {\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n }\n\n let bodyStyle = document.body.style\n\n for (let transition in transitions) {\n if (bodyStyle[transition] !== undefined) {\n return transitions[transition]\n }\n }\n}\n\nexport const getScssVariableValue = variableName => {\n return getComputedStyle(document.documentElement).getPropertyValue(variableName).trim()\n}\n\nexport const getViewMode = search => {\n return new URLSearchParams(search).get(VIEW_SEARCH_PARAMETER)?.toLowerCase()\n}\n\nexport const performDetailsActionHelper = async (changes, dispatch, filtersWasHandled = false) => {\n let actionCanBePerformed = Promise.resolve(true)\n\n if (changes.counter > 0) {\n actionCanBePerformed = await new Promise(resolve => {\n const resolver = isSuccess => {\n window.removeEventListener('discardChanges', resolver)\n window.removeEventListener('cancelLeave', resolver)\n\n resolve(isSuccess)\n }\n\n window.addEventListener('discardChanges', () => resolver(true))\n window.addEventListener('cancelLeave', () => resolver(false))\n\n dispatch(setFiltersWasHandled(filtersWasHandled))\n dispatch(showWarning(true))\n })\n }\n\n return actionCanBePerformed\n}\n\nexport const copyToClipboard = (textToCopy, dispatch) => {\n if (!navigator.clipboard?.writeText) {\n return showErrorNotification(\n dispatch,\n null,\n '',\n 'Copy to clipboard failed due to unsecured connection'\n )\n }\n\n navigator.clipboard\n .writeText(textToCopy)\n .then(() => {\n dispatch(\n setNotification({\n status: 200,\n id: Math.random(),\n message: 'Copied to clipboard successfully'\n })\n )\n })\n .catch(error => {\n showErrorNotification(dispatch, error, '', 'Copy to clipboard failed')\n })\n}\n\nexport const roundFloats = (value, precision) => {\n if (\n ((typeof value === 'string' && value.trim() !== '') || typeof value === 'number') &&\n !isNaN(value)\n ) {\n const parsedNum = parseFloat(value)\n\n return parsedNum % 1 === 0 ? parsedNum : +parsedNum.toFixed(precision ?? 2)\n }\n\n return value\n}\n\nexport const generateUrlFromRouterPath = link => {\n return new URL(link, window.location.origin).toString()\n}\n"],"names":["openPopUp","element","props","create","openConfirmPopUp","message","confirmHandler","ConfirmDialog","TERTIARY_BUTTON","PRIMARY_BUTTON","openDeleteConfirmPopUp","header","DANGER_BUTTON","isEveryObjectValueEmpty","obj","item","isNumber","isEmpty","areArraysEqual","firstArray","secondArray","omitBy","differenceWith","a","b","isEqual","omit","getErrorDetail","error","errorDetail","get","getErrorMsg","defaultError","errorMsg","getTransitionEndEventName","transitions","bodyStyle","transition","getScssVariableValue","variableName","getViewMode","search","_a","VIEW_SEARCH_PARAMETER","performDetailsActionHelper","changes","dispatch","filtersWasHandled","actionCanBePerformed","resolve","resolver","isSuccess","setFiltersWasHandled","showWarning","copyToClipboard","textToCopy","showErrorNotification","setNotification","roundFloats","value","precision","parsedNum","generateUrlFromRouterPath","link"],"mappings":";;;;;;;AA0BY,MAACA,IAAY,CAACC,GAASC,MAC1BC,EAAOF,CAAO,EAAEC,CAAK,GAGjBE,IAAmB,CAACC,GAASC,MACjCN,EAAUO,GAAe;AAAA,EAC9B,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,SAASC;AAAA,EACV;AAAA,EACD,eAAe;AAAA,IACb,OAAO;AAAA,IACP,SAASC;AAAA,IACT,SAASH;AAAA,EACV;AAAA,EACD,QAAQ;AAAA,EACR,SAAAD;AACD,CAAA,GAGUK,IAAyB,CAACC,GAAQN,GAASC,MAC/CN,EAAUO,GAAe;AAAA,EAC9B,cAAc;AAAA,IACZ,OAAO;AAAA,IACP,SAASC;AAAA,EACV;AAAA,EACD,eAAe;AAAA,IACb,OAAO;AAAA,IACP,SAASI;AAAA,IACT,SAASN;AAAA,EACV;AAAA,EACD,QAAAK;AAAA,EACA,SAAAN;AACD,CAAA,GAGUQ,IAA0B,CAAAC,MACrC,OAAO,OAAOA,CAAG,EAAE;AAAA,EACjB,CAAAC,MAAQ,CAACA,MAAQA,KAAA,gBAAAA,EAAM,YAAW,KAAM,CAACC,EAASD,CAAI,KAAKE,EAAQF,CAAI;AAC3E,GAGaG,IAAiB,CAACC,GAAYC,GAAaC,IAAS,CAAA,MAC3DF,EAAW,WAAWC,EAAY,SAAe,KAE9CH;AAAA,EACLK,EAAeH,GAAYC,GAAa,CAACG,GAAGC,MACnCC,EAAQC,EAAKH,GAAGF,CAAM,GAAGK,EAAKF,GAAGH,CAAM,CAAC,CAChD;AACL,GASaM,IAAiB,CAAAC,MAAS;AACrC,QAAMC,IAAcC,EAAIF,GAAO,wBAAwB,IAAI;AAE3D,SAAI,OAAOC,KAAgB,WAClBA,IAEAC,EAA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qB;AACxB,WAAOc;AAAA,MACLV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACN;AAGE,YAAU,UACP,UAAUS,CAAU,EACpB,KAAK,MAAM;AACV,IAAAT;AAAA,MACEW,EAAgB;AAAA,QACd,QAAQ;AAAA,QACR,IAAI,KAAK,OAAQ;AAAA,QACjB,SAAS;AAAA,MACV,CAAA;AAAA,IACT;AAAA,EACK,CAAA,EACA,MAAM,CAAA7B,MAAS;AACd,IAAA4B,EAAsBV,GAAUlB,GAAO,IAAI,0BAA0B;AAAA,EACtE,CAAA;AACL,GAEa8B,IAAc,CAACC,GAAOC,MAAc;AAC/C,OACI,OAAOD,KAAU,YAAYA,EAAM,WAAW,MAAO,OAAOA,KAAU,aACxE,CAAC,MAAMA,CAAK,GACZ;AACA,UAAME,IAAY,WAAWF,CAAK;AAElC,WAAOE,IAAY,MAAM,IAAIA,IAAY,CAACA,EAAU,QAAQD,KAAa,CAAC;AAAA,EAC9E;AAEE,SAAOD;AACT,GAEaG,IAA4B,CAAAC,MAChC,IAAI,IAAIA,GAAM,OAAO,SAAS,MAAM,EAAE,SAAQ;"}
@@ -0,0 +1,9 @@
1
+ export function formatDatetime(datetime: any, invalidDateMessage: any): any;
2
+ export function getFormatTime(time: any): {
3
+ hour: any;
4
+ minute: any;
5
+ };
6
+ export function getTimeElapsedByDate(creationDate: any): any;
7
+ export function getDateAndTimeByFormat(date: any, dateFormat: any): any;
8
+ export function sortListByDate(list: any[], field: any, isAscending?: boolean): any[];
9
+ //# sourceMappingURL=datetime.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/datetime.util.js"],"names":[],"mappings":"AAqBO,4EAiBN;AAEM;;;EAYN;AAEM,6DAyBN;AAEM,wEAEN;AAEM,sFAON"}