blixify-ui-web 1.2.213 → 1.2.215
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/lib/components/data/dataTemplate/activityAttachments.d.ts +42 -0
- package/lib/components/data/dataTemplate/activityAttachments.d.ts.map +1 -0
- package/lib/components/data/dataTemplate/activityAttachments.js +214 -0
- package/lib/components/data/dataTemplate/activityAttachments.js.map +1 -0
- package/lib/components/data/dataTemplate/activityComposer.d.ts +21 -1
- package/lib/components/data/dataTemplate/activityComposer.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/activityComposer.js +60 -16
- package/lib/components/data/dataTemplate/activityComposer.js.map +1 -1
- package/lib/components/data/dataTemplate/activityEmojiPicker.d.ts +16 -0
- package/lib/components/data/dataTemplate/activityEmojiPicker.d.ts.map +1 -0
- package/lib/components/data/dataTemplate/activityEmojiPicker.js +138 -0
- package/lib/components/data/dataTemplate/activityEmojiPicker.js.map +1 -0
- package/lib/components/data/dataTemplate/activityModal.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/activityModal.js +416 -105
- package/lib/components/data/dataTemplate/activityModal.js.map +1 -1
- package/lib/components/data/dataTemplate/activityReactions.d.ts +49 -0
- package/lib/components/data/dataTemplate/activityReactions.d.ts.map +1 -0
- package/lib/components/data/dataTemplate/activityReactions.js +519 -0
- package/lib/components/data/dataTemplate/activityReactions.js.map +1 -0
- package/lib/components/data/dataTemplate/activityReplies.d.ts +35 -0
- package/lib/components/data/dataTemplate/activityReplies.d.ts.map +1 -0
- package/lib/components/data/dataTemplate/activityReplies.js +217 -0
- package/lib/components/data/dataTemplate/activityReplies.js.map +1 -0
- package/lib/components/data/dataTemplate/dataStateModel.d.ts +96 -0
- package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +23 -16
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +2 -0
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +4 -0
- package/lib/components/data/updateModule.js.map +1 -1
- package/lib/components/data/utils.d.ts.map +1 -1
- package/lib/components/data/utils.js +2 -0
- package/lib/components/data/utils.js.map +1 -1
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +7 -1
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/input/textInput/barcodeMerge.d.ts +11 -0
- package/lib/components/input/textInput/barcodeMerge.d.ts.map +1 -0
- package/lib/components/input/textInput/barcodeMerge.js +60 -0
- package/lib/components/input/textInput/barcodeMerge.js.map +1 -0
- package/lib/components/input/textInput/index.d.ts +3 -0
- package/lib/components/input/textInput/index.d.ts.map +1 -1
- package/lib/components/input/textInput/index.js +12 -3
- package/lib/components/input/textInput/index.js.map +1 -1
- package/lib/components/input/textInput/utils.d.ts +1 -1
- package/lib/components/input/textInput/utils.d.ts.map +1 -1
- package/lib/tail.css +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
+
function step(op) {
|
|
39
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
+
switch (op[0]) {
|
|
44
|
+
case 0: case 1: t = op; break;
|
|
45
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
+
default:
|
|
49
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
+
if (t[2]) _.ops.pop();
|
|
54
|
+
_.trys.pop(); continue;
|
|
55
|
+
}
|
|
56
|
+
op = body.call(thisArg, _);
|
|
57
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.ActivityEmojiPicker = ActivityEmojiPicker;
|
|
63
|
+
var react_1 = __importStar(require("react"));
|
|
64
|
+
var loading_1 = require("../../display/loading");
|
|
65
|
+
/**
|
|
66
|
+
* The full emoji picker for a reaction: every emoji, with search, categories
|
|
67
|
+
* and skin tones.
|
|
68
|
+
*
|
|
69
|
+
* INFO: emoji-mart's own web component, mounted by hand because
|
|
70
|
+
* @emoji-mart/react only declares React up to 18. The library and its data
|
|
71
|
+
* (a few hundred KB) are imported when the picker opens, so a page that never
|
|
72
|
+
* opens it does not load them.
|
|
73
|
+
*/
|
|
74
|
+
function ActivityEmojiPicker(props) {
|
|
75
|
+
var _this = this;
|
|
76
|
+
var _a = (0, react_1.useState)(true), loading = _a[0], setLoading = _a[1];
|
|
77
|
+
var _b = (0, react_1.useState)(false), failed = _b[0], setFailed = _b[1];
|
|
78
|
+
var containerRef = (0, react_1.useRef)(null);
|
|
79
|
+
// INFO: the picker is created once, so it reads the latest callback here
|
|
80
|
+
var onSelectRef = (0, react_1.useRef)(props.onSelect);
|
|
81
|
+
onSelectRef.current = props.onSelect;
|
|
82
|
+
(0, react_1.useEffect)(function () {
|
|
83
|
+
var mounted = true;
|
|
84
|
+
var container = containerRef.current;
|
|
85
|
+
var handleMountPicker = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
86
|
+
var _a, Picker, data, picker, err_1;
|
|
87
|
+
return __generator(this, function (_b) {
|
|
88
|
+
switch (_b.label) {
|
|
89
|
+
case 0:
|
|
90
|
+
_b.trys.push([0, 2, 3, 4]);
|
|
91
|
+
return [4 /*yield*/, Promise.all([
|
|
92
|
+
Promise.resolve().then(function () { return __importStar(require("emoji-mart")); }),
|
|
93
|
+
Promise.resolve().then(function () { return __importStar(require("@emoji-mart/data")); }),
|
|
94
|
+
])];
|
|
95
|
+
case 1:
|
|
96
|
+
_a = _b.sent(), Picker = _a[0].Picker, data = _a[1].default;
|
|
97
|
+
if (!mounted || !containerRef.current)
|
|
98
|
+
return [2 /*return*/];
|
|
99
|
+
picker = new Picker({
|
|
100
|
+
data: data,
|
|
101
|
+
onEmojiSelect: function (emoji) {
|
|
102
|
+
if (emoji === null || emoji === void 0 ? void 0 : emoji.native)
|
|
103
|
+
onSelectRef.current(emoji.native);
|
|
104
|
+
},
|
|
105
|
+
theme: "light",
|
|
106
|
+
previewPosition: "none",
|
|
107
|
+
skinTonePosition: "search",
|
|
108
|
+
// INFO: fills its container instead of its fixed 352px default
|
|
109
|
+
dynamicWidth: true,
|
|
110
|
+
});
|
|
111
|
+
containerRef.current.replaceChildren(picker);
|
|
112
|
+
return [3 /*break*/, 4];
|
|
113
|
+
case 2:
|
|
114
|
+
err_1 = _b.sent();
|
|
115
|
+
if (mounted)
|
|
116
|
+
setFailed(true);
|
|
117
|
+
return [3 /*break*/, 4];
|
|
118
|
+
case 3:
|
|
119
|
+
if (mounted)
|
|
120
|
+
setLoading(false);
|
|
121
|
+
return [7 /*endfinally*/];
|
|
122
|
+
case 4: return [2 /*return*/];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}); };
|
|
126
|
+
handleMountPicker();
|
|
127
|
+
return function () {
|
|
128
|
+
mounted = false;
|
|
129
|
+
container === null || container === void 0 ? void 0 : container.replaceChildren();
|
|
130
|
+
};
|
|
131
|
+
}, []);
|
|
132
|
+
return (react_1.default.createElement("div", { className: "w-full" },
|
|
133
|
+
loading && (react_1.default.createElement("div", { className: "flex justify-center py-6" },
|
|
134
|
+
react_1.default.createElement(loading_1.Loading, null))),
|
|
135
|
+
failed && (react_1.default.createElement("p", { className: "py-4 text-sm text-gray-500" }, "The emoji picker could not load. Pick one of the quick emoji instead.")),
|
|
136
|
+
react_1.default.createElement("div", { ref: containerRef, className: "w-full [&>em-emoji-picker]:w-full" })));
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=activityEmojiPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activityEmojiPicker.js","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/activityEmojiPicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,kDA0DC;AA1ED,6CAA2D;AAC3D,iDAAgD;AAMhD;;;;;;;;GAQG;AACH,SAAgB,mBAAmB,CAAC,KAAY;IAAhD,iBA0DC;IAzDO,IAAA,KAAwB,IAAA,gBAAQ,EAAC,IAAI,CAAC,EAArC,OAAO,QAAA,EAAE,UAAU,QAAkB,CAAC;IACvC,IAAA,KAAsB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAApC,MAAM,QAAA,EAAE,SAAS,QAAmB,C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AS,CAAE,eAAe,EAAE,CAAC;QAC/B,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uCAAK,SAAS,EAAC,QAAQ;QACpB,OAAO,IAAI,CACV,uCAAK,SAAS,EAAC,0BAA0B;YACvC,8BAAC,iBAAO,OAAG,CACP,CACP;QACA,MAAM,IAAI,CACT,qCAAG,SAAS,EAAC,4BAA4B,4EAErC,CACL;QACD,uCAAK,GAAG,EAAE,YAAY,EAAE,SAAS,EAAC,mCAAmC,GAAG,CACpE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/activityModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAGrC,OAAO,
|
|
1
|
+
{"version":3,"file":"activityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/activityModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAGrC,OAAO,EAGL,WAAW,EAIZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAyBrD,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC;IACtB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAmBD,eAAO,MAAM,aAAa,UAAW,KAAK,sBAkBzC,CAAC"}
|