@expressms/smartapp-ui 2.9.13-alpha.2 → 2.9.13-alpha.4

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 (39) hide show
  1. package/build/main/constants/constants.d.ts +0 -1
  2. package/build/main/constants/constants.js +0 -1
  3. package/build/main/constants/constants.js.map +1 -1
  4. package/build/main/index.d.ts +0 -1
  5. package/build/main/index.js +0 -1
  6. package/build/main/index.js.map +1 -1
  7. package/build/main/styles/styles.scss +1 -1
  8. package/build/main//321/201omponents/Avatar/Avatar.d.ts +2 -3
  9. package/build/main//321/201omponents/Avatar/Avatar.js +2 -2
  10. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
  11. package/build/main//321/201omponents/Chip/Chip.d.ts +2 -3
  12. package/build/main//321/201omponents/Chip/Chip.js +16 -31
  13. package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
  14. package/build/main//321/201omponents/Chip/types.d.ts +2 -6
  15. package/build/main//321/201omponents/Header/Header.d.ts +1 -1
  16. package/build/main//321/201omponents/Header/Header.js +7 -7
  17. package/build/main//321/201omponents/Header/Header.js.map +1 -1
  18. package/build/main//321/201omponents/Header/types.d.ts +1 -0
  19. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +2 -3
  20. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +16 -13
  21. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
  22. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +3 -3
  23. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +53 -50
  24. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
  25. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +3 -1
  26. package/build/main//321/201omponents/UserDropdown/helpers.js +2 -2
  27. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -1
  28. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
  29. package/build/main//321/201omponents/UserDropdown/selectStyles.js +3 -3
  30. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
  31. package/build/main//321/201omponents/UserDropdown/types.d.ts +2 -11
  32. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
  33. package/package.json +1 -3
  34. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +0 -11
  35. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +0 -54
  36. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +0 -1
  37. package/build/main//321/201omponents/ChipDndContext/index.d.ts +0 -1
  38. package/build/main//321/201omponents/ChipDndContext/index.js +0 -2
  39. package/build/main//321/201omponents/ChipDndContext/index.js.map +0 -1
@@ -1,54 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { useCallback, useState } from 'react';
25
- import { DndContext, DragOverlay, MouseSensor, TouchSensor, rectIntersection, useSensor, useSensors, } from '@dnd-kit/core';
26
- import Chip from '../Chip';
27
- export var ChipDndContext = function (_a) {
28
- var children = _a.children, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, props = __rest(_a, ["children", "onDragStart", "onDragEnd"]);
29
- var _b = useState(null), activeChip = _b[0], setActiveChip = _b[1];
30
- var sensors = useSensors(useSensor(MouseSensor), useSensor(TouchSensor));
31
- var handleDragStart = useCallback(function (_a) {
32
- var current = _a.active.data.current;
33
- var user = current === null || current === void 0 ? void 0 : current.user;
34
- onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(user);
35
- setActiveChip(user);
36
- }, [onDragStart]);
37
- var handleDragEnd = useCallback(function (_a) {
38
- var current = _a.active.data.current, over = _a.over;
39
- var draggedUser = current === null || current === void 0 ? void 0 : current.user;
40
- if (!draggedUser)
41
- return;
42
- onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd(draggedUser, over === null || over === void 0 ? void 0 : over.id);
43
- setActiveChip(null);
44
- }, [onDragEnd]);
45
- var handleDragCancel = useCallback(function () { return setActiveChip(null); }, []);
46
- var ChipLayer = useCallback(function () {
47
- if (!activeChip)
48
- return null;
49
- var label = activeChip.label, isPrivateSchedule = activeChip.isPrivateSchedule, rest = __rest(activeChip, ["label", "isPrivateSchedule"]);
50
- return _jsx(Chip, __assign({}, rest, { name: label, isEye: isPrivateSchedule, onDelete: function () { }, isDraggableLayer: true }));
51
- }, [activeChip]);
52
- return (_jsxs(DndContext, __assign({}, props, { sensors: sensors, onDragStart: handleDragStart, onDragEnd: handleDragEnd, onDragCancel: handleDragCancel, collisionDetection: rectIntersection }, { children: [children, _jsx(DragOverlay, __assign({ dropAnimation: null }, { children: _jsx(ChipLayer, {}) }))] })));
53
- };
54
- //# sourceMappingURL=ChipDndContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChipDndContext.js","sourceRoot":"","sources":["../../../../src/сomponents/ChipDndContext/ChipDndContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAa,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EACL,UAAU,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nB,CAAmB,EAAE,EAAE,CAAC,CAAA;IAEnE,IAAM,SAAS,GAAG,WAAW,CAAC;QAC5B,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAA;QAEpB,IAAA,KAAK,GAAiC,UAAU,MAA3C,EAAE,iBAAiB,GAAc,UAAU,kBAAxB,EAAK,IAAI,UAAK,UAAU,EAAlD,8BAAqC,CAAF,CAAe;QACxD,OAAO,KAAC,IAAI,eAAK,IAAI,IAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAO,CAAC,EAAE,gBAAgB,UAAG,CAAA;IACvG,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAEhB,OAAO,CACL,MAAC,UAAU,eACL,KAAK,IACT,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,eAAe,EAC5B,SAAS,EAAE,aAAa,EACxB,YAAY,EAAE,gBAAgB,EAC9B,kBAAkB,EAAE,gBAAgB,iBAEnC,QAAQ,EACT,KAAC,WAAW,aAAC,aAAa,EAAE,IAAI,gBAC9B,KAAC,SAAS,KAAG,IACD,KACH,CACd,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export { ChipDndContext } from './ChipDndContext';
@@ -1,2 +0,0 @@
1
- export { ChipDndContext } from './ChipDndContext';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ChipDndContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}