hrm_ui_lib 1.6.26 → 1.6.28

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.
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { ISVGIconProps } from './types';
3
+ export declare const IconCalendarEmpty: ({ size, type, className, onClick, refHandler, id, dataId }: ISVGIconProps) => ReactElement;
4
+ export default IconCalendarEmpty;
@@ -0,0 +1,30 @@
1
+ import { _ as _defineProperty } from '../../defineProperty-720a377f.js';
2
+ import React from 'react';
3
+ import classNames from 'classnames';
4
+ import '../../typeof-80894c25.js';
5
+
6
+ var IconCalendarEmpty = function IconCalendarEmpty(_ref) {
7
+ var size = _ref.size,
8
+ type = _ref.type,
9
+ _ref$className = _ref.className,
10
+ className = _ref$className === void 0 ? '' : _ref$className,
11
+ onClick = _ref.onClick,
12
+ refHandler = _ref.refHandler,
13
+ id = _ref.id,
14
+ dataId = _ref.dataId;
15
+ return /*#__PURE__*/React.createElement("svg", {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ className: classNames('svg-icon', _defineProperty(_defineProperty(_defineProperty({}, "svg-icon__size-".concat(size), size), "svg-icon__type-".concat(type), type), className, className)),
18
+ viewBox: "0 0 24 24",
19
+ fill: "none",
20
+ onClick: onClick,
21
+ ref: refHandler,
22
+ id: id,
23
+ "data-id": dataId ? "".concat(dataId, "-svg-icon") : ''
24
+ }, /*#__PURE__*/React.createElement("path", {
25
+ d: "M17.75 3C19.5449 3 21 4.45507 21 6.25V17.75C21 19.5449 19.5449 21 17.75 21H6.25C4.45507 21 3 19.5449 3 17.75V6.25C3 4.45507 4.45507 3 6.25 3H17.75ZM19.5 8.5H4.5V17.75C4.5 18.7165 5.2835 19.5 6.25 19.5H17.75C18.7165 19.5 19.5 18.7165 19.5 17.75V8.5ZM17.75 4.5H6.25C5.2835 4.5 4.5 5.2835 4.5 6.25V7H19.5V6.25C19.5 5.2835 18.7165 4.5 17.75 4.5Z",
26
+ fill: "#222222"
27
+ }));
28
+ };
29
+
30
+ export { IconCalendarEmpty, IconCalendarEmpty as default };
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { ISVGIconProps } from './types';
3
+ export declare const IconClipboardDay: ({ size, type, className, onClick, refHandler, id, dataId }: ISVGIconProps) => ReactElement;
4
+ export default IconClipboardDay;
@@ -0,0 +1,30 @@
1
+ import { _ as _defineProperty } from '../../defineProperty-720a377f.js';
2
+ import React from 'react';
3
+ import classNames from 'classnames';
4
+ import '../../typeof-80894c25.js';
5
+
6
+ var IconClipboardDay = function IconClipboardDay(_ref) {
7
+ var size = _ref.size,
8
+ type = _ref.type,
9
+ _ref$className = _ref.className,
10
+ className = _ref$className === void 0 ? '' : _ref$className,
11
+ onClick = _ref.onClick,
12
+ refHandler = _ref.refHandler,
13
+ id = _ref.id,
14
+ dataId = _ref.dataId;
15
+ return /*#__PURE__*/React.createElement("svg", {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ className: classNames('svg-icon', _defineProperty(_defineProperty(_defineProperty({}, "svg-icon__size-".concat(size), size), "svg-icon__type-".concat(type), type), className, className)),
18
+ viewBox: "0 0 24 24",
19
+ fill: "none",
20
+ onClick: onClick,
21
+ ref: refHandler,
22
+ id: id,
23
+ "data-id": dataId ? "".concat(dataId, "-svg-icon") : ''
24
+ }, /*#__PURE__*/React.createElement("path", {
25
+ d: "M8 9.75C8 9.33579 8.33579 9 8.75 9H15.25C15.6642 9 16 9.33579 16 9.75C16 10.1642 15.6642 10.5 15.25 10.5H8.75C8.33579 10.5 8 10.1642 8 9.75ZM9.75 12C8.7835 12 8 12.7835 8 13.75V16.25C8 17.2165 8.7835 18 9.75 18H14.25C15.2165 18 16 17.2165 16 16.25V13.75C16 12.7835 15.2165 12 14.25 12H9.75ZM9.5 13.75C9.5 13.6119 9.61193 13.5 9.75 13.5H14.25C14.3881 13.5 14.5 13.6119 14.5 13.75V16.25C14.5 16.3881 14.3881 16.5 14.25 16.5H9.75C9.61193 16.5 9.5 16.3881 9.5 16.25V13.75ZM13.75 2C14.9089 2 15.8631 2.8761 15.9865 4.00209C15.9864 4.0012 15.9863 4.00032 15.9862 3.99944L17.75 4C18.9926 4 20 5.00736 20 6.25V19.75C20 20.9926 18.9926 22 17.75 22H6.25C5.00736 22 4 20.9926 4 19.75V6.25C4 5.00736 5.00736 4 6.25 4L8.01379 3.99944C8.13841 2.87472 9.09205 2 10.25 2H13.75ZM15.9948 4.09595L16 4.25C16 4.19822 15.9983 4.14685 15.9948 4.09595ZM13.75 6.5H10.25C9.46997 6.5 8.78264 6.10307 8.379 5.50016L6.25 5.5C5.83579 5.5 5.5 5.83579 5.5 6.25V19.75C5.5 20.1642 5.83579 20.5 6.25 20.5H17.75C18.1642 20.5 18.5 20.1642 18.5 19.75V6.25C18.5 5.83579 18.1642 5.5 17.75 5.5L15.621 5.5002C15.2173 6.1031 14.53 6.5 13.75 6.5ZM13.75 3.5H10.25C9.83579 3.5 9.5 3.83579 9.5 4.25C9.5 4.66421 9.83579 5 10.25 5H13.75C14.1642 5 14.5 4.66421 14.5 4.25C14.5 3.83579 14.1642 3.5 13.75 3.5Z",
26
+ fill: "#222222"
27
+ }));
28
+ };
29
+
30
+ export { IconClipboardDay, IconClipboardDay as default };
@@ -68,6 +68,7 @@ export * from './IconCalendarClock';
68
68
  export * from './IconCalendarClockFilled';
69
69
  export * from './IconCalendarDay';
70
70
  export * from './IconCalendarDayFilled';
71
+ export * from './IconCalendarEmpty';
71
72
  export * from './IconCalendarLeft';
72
73
  export * from './IconCalendarLeftFilled';
73
74
  export * from './IconCalendarRight';
@@ -106,6 +107,7 @@ export * from './IconChevronUp';
106
107
  export * from './IconChevronUpDown';
107
108
  export * from './IconChevronUpDownFilled';
108
109
  export * from './IconChevronUpFilled';
110
+ export * from './IconClipboardDay';
109
111
  export * from './IconClock';
110
112
  export * from './IconClockDismiss';
111
113
  export * from './IconClockDismissFilled';
@@ -68,6 +68,7 @@ export { IconCalendarClock } from './IconCalendarClock.js';
68
68
  export { IconCalendarClockFilled } from './IconCalendarClockFilled.js';
69
69
  export { IconCalendarDay } from './IconCalendarDay.js';
70
70
  export { IconCalendarDayFilled } from './IconCalendarDayFilled.js';
71
+ export { IconCalendarEmpty } from './IconCalendarEmpty.js';
71
72
  export { IconCalendarLeft } from './IconCalendarLeft.js';
72
73
  export { IconCalendarLeftFilled } from './IconCalendarLeftFilled.js';
73
74
  export { IconCalendarRight } from './IconCalendarRight.js';
@@ -106,6 +107,7 @@ export { IconChevronUp } from './IconChevronUp.js';
106
107
  export { IconChevronUpDown } from './IconChevronUpDown.js';
107
108
  export { IconChevronUpDownFilled } from './IconChevronUpDownFilled.js';
108
109
  export { IconChevronUpFilled } from './IconChevronUpFilled.js';
110
+ export { IconClipboardDay } from './IconClipboardDay.js';
109
111
  export { IconClock } from './IconClock.js';
110
112
  export { IconClockDismiss } from './IconClockDismiss.js';
111
113
  export { IconClockDismissFilled } from './IconClockDismissFilled.js';
@@ -2,6 +2,7 @@ import { notify } from '../components/Snackbar/Snackbar.js';
2
2
  import { MESSAGE_TYPE } from '../type/notification.js';
3
3
  import { STATUS_CODE } from '../type/status-code.js';
4
4
  import { getTranslationLocale } from './locale.js';
5
+ import { getModulePrefix } from './get-module-prefix.js';
5
6
  import '../extends-cb700146.js';
6
7
  import 'react';
7
8
  import 'react-toastify';
@@ -80,17 +81,17 @@ var checkAuthorization = function checkAuthorization(statusCode) {
80
81
  if (statusCode === STATUS_CODE.UNAUTHORIZED) {
81
82
  var currentUrl = "".concat(window.location.pathname).concat(window.location.search);
82
83
  var encodedReturnUrl = encodeURIComponent(currentUrl);
83
- var appPrefix = window.location.pathname.split('/')[1];
84
- fetch("".concat(window.location.origin, "/").concat(appPrefix).concat(ROUTE_CONFIGS.authorization.session)).then(function (res) {
84
+ var appPrefix = getModulePrefix();
85
+ fetch("".concat(window.location.origin).concat(appPrefix).concat(ROUTE_CONFIGS.authorization.session)).then(function (res) {
85
86
  return res.json();
86
87
  }).then(function (res) {
87
88
  if (res !== null && res !== void 0 && res.isAuthenticated) {
88
- window.location.href = "".concat(window.location.origin, "/").concat(appPrefix).concat(ROUTE_CONFIGS.authorization.logout);
89
+ window.location.href = "".concat(window.location.origin).concat(appPrefix).concat(ROUTE_CONFIGS.authorization.logout);
89
90
  } else {
90
- window.location.href = "".concat(window.location.origin, "/").concat(appPrefix).concat(ROUTE_CONFIGS.authorization.login, "?returnUrl=").concat(encodedReturnUrl);
91
+ window.location.href = "".concat(window.location.origin).concat(appPrefix).concat(ROUTE_CONFIGS.authorization.login, "?returnUrl=").concat(encodedReturnUrl);
91
92
  }
92
93
  })["catch"](function () {
93
- window.location.href = "".concat(window.location.origin, "/").concat(appPrefix).concat(ROUTE_CONFIGS.authorization.login, "?returnUrl=").concat(encodedReturnUrl);
94
+ window.location.href = "".concat(window.location.origin).concat(appPrefix).concat(ROUTE_CONFIGS.authorization.login, "?returnUrl=").concat(encodedReturnUrl);
94
95
  });
95
96
  }
96
97
  if (statusCode === STATUS_CODE.PERMISSION_DENIED) {
@@ -0,0 +1 @@
1
+ export declare const getModulePrefix: () => string;
@@ -0,0 +1,6 @@
1
+ var getModulePrefix = function getModulePrefix() {
2
+ var prefix = window.location.pathname.split('/')[1] || 'cr';
3
+ return "/".concat(prefix);
4
+ };
5
+
6
+ export { getModulePrefix };
@@ -4,3 +4,4 @@ export * from './storage';
4
4
  export * from './download-file';
5
5
  export * from './check-authorization';
6
6
  export * from './isDeepEqual';
7
+ export * from './get-module-prefix';
package/helpers/index.js CHANGED
@@ -4,6 +4,7 @@ export { getLocalStorageItem, setLocalStorageItem } from './storage.js';
4
4
  export { downloadFile } from './download-file.js';
5
5
  export { checkAuthorization } from './check-authorization.js';
6
6
  export { isDeepEqual } from './isDeepEqual.js';
7
+ export { getModulePrefix } from './get-module-prefix.js';
7
8
  import 'dayjs';
8
9
  import '../type/locale.js';
9
10
  import '../components/Snackbar/Snackbar.js';
package/index.js CHANGED
@@ -122,6 +122,7 @@ export { IconCalendarClock } from './components/SVGIcons/IconCalendarClock.js';
122
122
  export { IconCalendarClockFilled } from './components/SVGIcons/IconCalendarClockFilled.js';
123
123
  export { IconCalendarDay } from './components/SVGIcons/IconCalendarDay.js';
124
124
  export { IconCalendarDayFilled } from './components/SVGIcons/IconCalendarDayFilled.js';
125
+ export { IconCalendarEmpty } from './components/SVGIcons/IconCalendarEmpty.js';
125
126
  export { IconCalendarLeft } from './components/SVGIcons/IconCalendarLeft.js';
126
127
  export { IconCalendarLeftFilled } from './components/SVGIcons/IconCalendarLeftFilled.js';
127
128
  export { IconCalendarRight } from './components/SVGIcons/IconCalendarRight.js';
@@ -160,6 +161,7 @@ export { IconChevronUp } from './components/SVGIcons/IconChevronUp.js';
160
161
  export { IconChevronUpDown } from './components/SVGIcons/IconChevronUpDown.js';
161
162
  export { IconChevronUpDownFilled } from './components/SVGIcons/IconChevronUpDownFilled.js';
162
163
  export { IconChevronUpFilled } from './components/SVGIcons/IconChevronUpFilled.js';
164
+ export { IconClipboardDay } from './components/SVGIcons/IconClipboardDay.js';
163
165
  export { IconClock } from './components/SVGIcons/IconClock.js';
164
166
  export { IconClockDismiss } from './components/SVGIcons/IconClockDismiss.js';
165
167
  export { IconClockDismissFilled } from './components/SVGIcons/IconClockDismissFilled.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrm_ui_lib",
3
- "version": "1.6.26",
3
+ "version": "1.6.28",
4
4
  "description": "UI library for Dino",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",