@hkyhy/marsun-components-core 0.1.123 → 0.1.124
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/README.md +1 -0
- package/dist/components/File/FileItem/index.js +65 -55
- package/dist/components/File/FileItem/index.js.map +1 -1
- package/dist/components/File/FilePreview/FilePreviewContent.js +114 -90
- package/dist/components/File/FilePreview/FilePreviewContent.js.map +1 -1
- package/dist/components/File/FilePreview/index.js +43 -33
- package/dist/components/File/FilePreview/index.js.map +1 -1
- package/dist/components/File/index.d.ts +1 -0
- package/dist/components/File/utils/authedFetch.d.ts +12 -0
- package/dist/components/File/utils/authedFetch.js +50 -0
- package/dist/components/File/utils/authedFetch.js.map +1 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/kneFormInfo.d.ts +2 -0
- package/dist/components/Form/kneFormInfo.js +30 -27
- package/dist/components/Form/kneFormInfo.js.map +1 -1
- package/dist/components/FormInfo/fields.d.ts +2 -0
- package/dist/components/FormInfo/fields.js +22 -19
- package/dist/components/FormInfo/fields.js.map +1 -1
- package/dist/components/FormInfo/index.d.ts +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +8 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +148 -142
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.module.scss.js +5 -4
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.module.scss.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.d.ts +10 -2
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js +122 -116
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.js +20 -31
- package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.module.scss.js +1 -2
- package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.module.scss.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/index.d.ts +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/submitHelpers.d.ts +5 -0
- package/dist/components/Tools/ActionTracking/CreateAction/submitHelpers.js +37 -18
- package/dist/components/Tools/ActionTracking/CreateAction/submitHelpers.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +9 -0
- package/dist/components/Tools/ActionTracking/index.d.ts +1 -1
- package/dist/components/Tools/index.d.ts +1 -1
- package/dist/file.js +24 -19
- package/dist/file.js.map +1 -1
- package/dist/form-info.js +46 -45
- package/dist/index.js +452 -446
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export { INBOX_BADGE_REFRESH_EVENT, requestInboxBadgeRefresh, requestInboxBadgeR
|
|
|
4
4
|
export { ActionTrackingShell } from './ActionTracking';
|
|
5
5
|
export type { ActionTrackingShellProps } from './ActionTracking';
|
|
6
6
|
export { CreateActionModal, CreateActionForm, renderPersonOptionLabel, CREATE_ACTION_VARIETY_PAGE_SIZE, PersonRoleCascader, PersonRoleCascaderField, SetFormFields, findPersonCascadePath, cascadePathStillValid, validateCreateActionPersons, createActionPersonWarnMessage, personDisplayName, addDaysYmd, ActionFilterBar, ActionListTable, ActionFollowModal, CancelExecutionModal, CancelExecutionForm, sanitizeActionHtml, defaultCreatedRange, normalizeActionFilters, canQueryActionList, resetActionFiltersToDefault, } from './ActionTracking';
|
|
7
|
-
export type { CreateActionModalProps, CreateActionFormProps, PersonRoleCascaderProps, PersonRoleCascaderFieldProps, CreateActionPrefill, CreateActionScopeLock, LockedContextField, ActionPersonCascadeOption, ActionPersonOption, CreateActionPersonCatalog, CreateActionSelectOption, CreateActionDimensionOption, CreateActionLoaders, CreateActionSelectPageQuery, CreateActionSelectPageResult, CreateActionSubmitPayload, CreateActionPersonValidateError, CreateActionPersonValidateResult, ActionFilterBarProps, ActionListTableProps, ActionFollowModalProps, ActionFollowView, CancelExecutionModalProps, ActionListFilters, ActionListRowBase, ActionListSelectOption, ActionListColumns, ActionListEmptyConfig, } from './ActionTracking';
|
|
7
|
+
export type { CreateActionModalProps, CreateActionFormProps, PersonRoleCascaderProps, PersonRoleCascaderFieldProps, CreateActionPrefill, CreateActionScopeLock, CreateActionScopeMode, LockedContextField, ActionPersonCascadeOption, ActionPersonOption, CreateActionPersonCatalog, CreateActionSelectOption, CreateActionDimensionOption, CreateActionLoaders, CreateActionSelectPageQuery, CreateActionSelectPageResult, CreateActionSubmitPayload, CreateActionPersonValidateError, CreateActionPersonValidateResult, ActionFilterBarProps, ActionListTableProps, ActionFollowModalProps, ActionFollowView, CancelExecutionModalProps, ActionListFilters, ActionListRowBase, ActionListSelectOption, ActionListColumns, ActionListEmptyConfig, } from './ActionTracking';
|
|
8
8
|
export { MessageTemplateAdmin } from './MessageCenter';
|
|
9
9
|
export type { MessageTemplateAdminProps, MessageTemplateAdminItem, MessageEventCatalogItem, MessageEventCatalogPayload, MessageAudienceRoleOption, MessageAudienceUserOption, MessageTemplateVariable, MessageTemplateVariableAdmin, PushRuleAdminItem, MessageCrudFlags, MessageAdminPermissions, } from './MessageCenter';
|
|
10
10
|
export { generateTemplateCode, normalizeTemplatePlaceholders, applyTemplateVars, resolveMessageAdminPermissions, MSG_CENTER_APP_SWITCH_STORAGE_KEY, SYSTEM_APP_TO_MSG_CENTER_APP_KEY, MSG_CENTER_SWITCHABLE_APP_KEYS, msgCenterAppKeyFromSystemAppCode, filterMsgCenterSwitchableApps, getMsgCenterAppKey, setMsgCenterAppKey, subscribeMsgCenterAppKey, bindMsgCenterAppKeyStorageSync, resolveMsgCenterSwitchState, useMsgCenterAppKey, MsgCenterAppSwitcher, } from './MessageCenter';
|
package/dist/file.js
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as r } from "./components/File/FileLink/index.js";
|
|
2
|
+
import { default as l } from "./components/File/FilePreview/index.js";
|
|
3
3
|
import { default as a } from "./components/File/FilePreviewLink/index.js";
|
|
4
|
-
import { default as
|
|
5
|
-
import { FileItem as
|
|
6
|
-
import { downloadFileItem as
|
|
7
|
-
import {
|
|
4
|
+
import { default as m } from "./components/File/FilePreviewModal/index.js";
|
|
5
|
+
import { FileItem as n } from "./components/File/FileItem/index.js";
|
|
6
|
+
import { downloadFileItem as s, getFileDownloadAuthHeaders as p, getFileDownloadUrl as u } from "./components/File/utils/download.js";
|
|
7
|
+
import { fetchAuthedArrayBuffer as x, fetchAuthedObjectUrl as w, fetchWithMarsunAuth as c, needsAuthFetch as A } from "./components/File/utils/authedFetch.js";
|
|
8
|
+
import { getFileExtension as I, getFileIcon as v, getFileTypeName as y, normalizeExtension as D, normalizeFileDisplayItem as P, parseFileNameFromUrl as U } from "./components/File/fileDisplay.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
n as FileItemView,
|
|
11
|
+
r as FileLink,
|
|
12
|
+
l as FilePreview,
|
|
12
13
|
a as FilePreviewLink,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
m as FilePreviewModal,
|
|
15
|
+
s as downloadFileItem,
|
|
16
|
+
x as fetchAuthedArrayBuffer,
|
|
17
|
+
w as fetchAuthedObjectUrl,
|
|
18
|
+
c as fetchWithMarsunAuth,
|
|
19
|
+
p as getFileDownloadAuthHeaders,
|
|
20
|
+
u as getFileDownloadUrl,
|
|
21
|
+
I as getFileExtension,
|
|
22
|
+
v as getFileIcon,
|
|
23
|
+
y as getFileTypeName,
|
|
24
|
+
A as needsAuthFetch,
|
|
25
|
+
D as normalizeExtension,
|
|
26
|
+
P as normalizeFileDisplayItem,
|
|
27
|
+
U as parseFileNameFromUrl
|
|
23
28
|
};
|
|
24
29
|
//# sourceMappingURL=file.js.map
|
package/dist/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/form-info.js
CHANGED
|
@@ -3,7 +3,7 @@ import { default as a } from "./components/Form/FetchSelect.js";
|
|
|
3
3
|
import { default as l } from "./components/Form/FetchTreeSelect.js";
|
|
4
4
|
import { default as m } from "./components/Form/PersonOptionRow/index.js";
|
|
5
5
|
import { normalizeLabelTips as s, withNormalizedLabelTips as d } from "./components/Form/normalizeLabelTips.js";
|
|
6
|
-
import { SUPER_SELECT_ALL_VALUE as
|
|
6
|
+
import { SUPER_SELECT_ALL_VALUE as S, SuperSelect as x, isSuperSelectAllValue as F } from "./components/Form/SuperSelect.js";
|
|
7
7
|
import { SUPER_SELECT_EMPTY_TEXT as c, defaultSuperSelectEmpty as E } from "./components/Form/superSelectEmpty.js";
|
|
8
8
|
import { PAGED_SUPER_SELECT_PAGE_SIZE as L, createPagedSuperSelectApi as R, pagedSuperSelectGetSearchProps as P, pagedSuperSelectPagination as _ } from "./components/Form/createPagedSuperSelectApi.js";
|
|
9
9
|
import { InputRange as A } from "./components/Form/InputRange.js";
|
|
@@ -11,61 +11,62 @@ import { inputRangeRules as g } from "./components/Form/inputRangeRules.js";
|
|
|
11
11
|
import { default as G } from "./components/FormInfo/ErrorTip.js";
|
|
12
12
|
import { default as w } from "./components/FormInfo/Form.js";
|
|
13
13
|
import { default as C } from "./components/FormInfo/FormApiButton.js";
|
|
14
|
-
import { default as
|
|
14
|
+
import { default as U, useFormDrawer as y } from "./components/FormInfo/FormDrawer.js";
|
|
15
15
|
import { default as V } from "./components/FormInfo/FormItem.js";
|
|
16
16
|
import { default as z, useFormModal as O } from "./components/FormInfo/FormModal.js";
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
17
|
+
import { default as X } from "./components/FormInfo/FormSteps.js";
|
|
18
|
+
import { default as Z, useFormStepModal as j } from "./components/FormInfo/FormStepsModal.js";
|
|
19
19
|
import { default as H } from "./components/FormInfo/MultiField.js";
|
|
20
|
-
import { CancelButton as K,
|
|
21
|
-
import { default as
|
|
22
|
-
import { GroupList as
|
|
23
|
-
import { default as
|
|
24
|
-
import { RichTextField as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { VariableMentionField as
|
|
28
|
-
import { buildFormOverlayProps as
|
|
20
|
+
import { CancelButton as K, DatePicker as Q, Input as W, InputNumber as $, RadioGroup as ee, ResetButton as re, Select as te, SubmitButton as oe, Switch as ae, TextArea as pe, TreeSelect as le } from "./components/FormInfo/fields.js";
|
|
21
|
+
import { default as me } from "./components/FormInfo/FormInfo.js";
|
|
22
|
+
import { GroupList as se, RULES as de, default as ie, useField as Se, useFormApi as xe, useFormContext as Fe, useGroup as ne, useReset as ce, useSubmit as Ee } from "@kne/react-form";
|
|
23
|
+
import { default as Le, default as Re } from "./components/FormInfo/List.js";
|
|
24
|
+
import { RichTextField as _e } from "./components/FormInfo/RichTextField/index.js";
|
|
25
|
+
import { default as Ae, validateFieldsByName as Me } from "./components/FormInfo/Steps.js";
|
|
26
|
+
import { default as he } from "./components/FormInfo/TableList.js";
|
|
27
|
+
import { VariableMentionField as Ie } from "./components/FormInfo/VariableMentionInput/index.js";
|
|
28
|
+
import { buildFormOverlayProps as Be } from "./components/FormInfo/buildFormOverlayProps.js";
|
|
29
29
|
export {
|
|
30
30
|
K as CancelButton,
|
|
31
|
+
Q as DatePicker,
|
|
31
32
|
G as ErrorTip,
|
|
32
33
|
a as FetchSelect,
|
|
33
34
|
l as FetchTreeSelect,
|
|
34
35
|
w as Form,
|
|
35
36
|
C as FormApiButton,
|
|
36
37
|
t as FormDataSync,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
U as FormDrawer,
|
|
39
|
+
me as FormInfo,
|
|
39
40
|
V as FormItem,
|
|
40
41
|
z as FormModal,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
X as FormSteps,
|
|
43
|
+
Z as FormStepsModal,
|
|
44
|
+
se as GroupList,
|
|
45
|
+
W as Input,
|
|
46
|
+
$ as InputNumber,
|
|
46
47
|
A as InputRange,
|
|
47
|
-
|
|
48
|
+
Le as List,
|
|
48
49
|
H as MultiField,
|
|
49
50
|
L as PAGED_SUPER_SELECT_PAGE_SIZE,
|
|
50
51
|
m as PersonOptionRow,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
de as RULES,
|
|
53
|
+
ee as RadioGroup,
|
|
54
|
+
ie as ReactForm,
|
|
55
|
+
re as ResetButton,
|
|
56
|
+
_e as RichTextField,
|
|
57
|
+
S as SUPER_SELECT_ALL_VALUE,
|
|
57
58
|
c as SUPER_SELECT_EMPTY_TEXT,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
te as Select,
|
|
60
|
+
Ae as Steps,
|
|
61
|
+
Re as SubList,
|
|
62
|
+
oe as SubmitButton,
|
|
62
63
|
x as SuperSelect,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
ae as Switch,
|
|
65
|
+
he as TableList,
|
|
66
|
+
pe as TextArea,
|
|
67
|
+
le as TreeSelect,
|
|
68
|
+
Ie as VariableMentionField,
|
|
69
|
+
Be as buildFormOverlayProps,
|
|
69
70
|
R as createPagedSuperSelectApi,
|
|
70
71
|
E as defaultSuperSelectEmpty,
|
|
71
72
|
g as inputRangeRules,
|
|
@@ -74,15 +75,15 @@ export {
|
|
|
74
75
|
P as pagedSuperSelectGetSearchProps,
|
|
75
76
|
_ as pagedSuperSelectPagination,
|
|
76
77
|
Se as useField,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
xe as useFormApi,
|
|
79
|
+
Fe as useFormContext,
|
|
80
|
+
y as useFormDrawer,
|
|
80
81
|
O as useFormModal,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
j as useFormStepModal,
|
|
83
|
+
ne as useGroup,
|
|
84
|
+
ce as useReset,
|
|
85
|
+
Ee as useSubmit,
|
|
86
|
+
Me as validateFieldsByName,
|
|
86
87
|
d as withNormalizedLabelTips
|
|
87
88
|
};
|
|
88
89
|
//# sourceMappingURL=form-info.js.map
|