@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.
Files changed (46) hide show
  1. package/README.md +1 -0
  2. package/dist/components/File/FileItem/index.js +65 -55
  3. package/dist/components/File/FileItem/index.js.map +1 -1
  4. package/dist/components/File/FilePreview/FilePreviewContent.js +114 -90
  5. package/dist/components/File/FilePreview/FilePreviewContent.js.map +1 -1
  6. package/dist/components/File/FilePreview/index.js +43 -33
  7. package/dist/components/File/FilePreview/index.js.map +1 -1
  8. package/dist/components/File/index.d.ts +1 -0
  9. package/dist/components/File/utils/authedFetch.d.ts +12 -0
  10. package/dist/components/File/utils/authedFetch.js +50 -0
  11. package/dist/components/File/utils/authedFetch.js.map +1 -0
  12. package/dist/components/Form/index.d.ts +1 -1
  13. package/dist/components/Form/kneFormInfo.d.ts +2 -0
  14. package/dist/components/Form/kneFormInfo.js +30 -27
  15. package/dist/components/Form/kneFormInfo.js.map +1 -1
  16. package/dist/components/FormInfo/fields.d.ts +2 -0
  17. package/dist/components/FormInfo/fields.js +22 -19
  18. package/dist/components/FormInfo/fields.js.map +1 -1
  19. package/dist/components/FormInfo/index.d.ts +1 -1
  20. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +8 -1
  21. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +148 -142
  22. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
  23. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.module.scss.js +5 -4
  24. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.module.scss.js.map +1 -1
  25. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.d.ts +10 -2
  26. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js +122 -116
  27. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionModal.js.map +1 -1
  28. package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.js +20 -31
  29. package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.js.map +1 -1
  30. package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.module.scss.js +1 -2
  31. package/dist/components/Tools/ActionTracking/CreateAction/PersonRoleCascaderField.module.scss.js.map +1 -1
  32. package/dist/components/Tools/ActionTracking/CreateAction/index.d.ts +1 -1
  33. package/dist/components/Tools/ActionTracking/CreateAction/submitHelpers.d.ts +5 -0
  34. package/dist/components/Tools/ActionTracking/CreateAction/submitHelpers.js +37 -18
  35. package/dist/components/Tools/ActionTracking/CreateAction/submitHelpers.js.map +1 -1
  36. package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +9 -0
  37. package/dist/components/Tools/ActionTracking/index.d.ts +1 -1
  38. package/dist/components/Tools/index.d.ts +1 -1
  39. package/dist/file.js +24 -19
  40. package/dist/file.js.map +1 -1
  41. package/dist/form-info.js +46 -45
  42. package/dist/index.js +452 -446
  43. package/dist/index.js.map +1 -1
  44. package/dist/marsun-components-core.css +1 -1
  45. package/dist/styles/global.css +1 -1
  46. 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 o } from "./components/File/FileLink/index.js";
2
- import { default as r } from "./components/File/FilePreview/index.js";
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 F } from "./components/File/FilePreviewModal/index.js";
5
- import { FileItem as f } from "./components/File/FileItem/index.js";
6
- import { downloadFileItem as p, getFileDownloadAuthHeaders as s, getFileDownloadUrl as x } from "./components/File/utils/download.js";
7
- import { getFileExtension as g, getFileIcon as u, getFileTypeName as I, normalizeExtension as v, normalizeFileDisplayItem as D, parseFileNameFromUrl as P } from "./components/File/fileDisplay.js";
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
- f as FileItemView,
10
- o as FileLink,
11
- r as FilePreview,
10
+ n as FileItemView,
11
+ r as FileLink,
12
+ l as FilePreview,
12
13
  a as FilePreviewLink,
13
- F as FilePreviewModal,
14
- p as downloadFileItem,
15
- s as getFileDownloadAuthHeaders,
16
- x as getFileDownloadUrl,
17
- g as getFileExtension,
18
- u as getFileIcon,
19
- I as getFileTypeName,
20
- v as normalizeExtension,
21
- D as normalizeFileDisplayItem,
22
- P as parseFileNameFromUrl
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 i, SuperSelect as x, isSuperSelectAllValue as F } from "./components/Form/SuperSelect.js";
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 y, useFormDrawer as D } from "./components/FormInfo/FormDrawer.js";
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 Y } from "./components/FormInfo/FormSteps.js";
18
- import { default as j, useFormStepModal as k } from "./components/FormInfo/FormStepsModal.js";
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, Input as Q, InputNumber as W, RadioGroup as $, ResetButton as ee, Select as re, SubmitButton as te, Switch as oe, TextArea as ae, TreeSelect as pe } from "./components/FormInfo/fields.js";
21
- import { default as ue } from "./components/FormInfo/FormInfo.js";
22
- import { GroupList as fe, RULES as se, default as de, useField as Se, useFormApi as ie, useFormContext as xe, useGroup as Fe, useReset as ne, useSubmit as ce } from "@kne/react-form";
23
- import { default as Te, default as Le } from "./components/FormInfo/List.js";
24
- import { RichTextField as Pe } from "./components/FormInfo/RichTextField/index.js";
25
- import { default as be, validateFieldsByName as Ae } from "./components/FormInfo/Steps.js";
26
- import { default as ge } from "./components/FormInfo/TableList.js";
27
- import { VariableMentionField as Ge } from "./components/FormInfo/VariableMentionInput/index.js";
28
- import { buildFormOverlayProps as we } from "./components/FormInfo/buildFormOverlayProps.js";
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
- y as FormDrawer,
38
- ue as FormInfo,
38
+ U as FormDrawer,
39
+ me as FormInfo,
39
40
  V as FormItem,
40
41
  z as FormModal,
41
- Y as FormSteps,
42
- j as FormStepsModal,
43
- fe as GroupList,
44
- Q as Input,
45
- W as InputNumber,
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
- Te as List,
48
+ Le as List,
48
49
  H as MultiField,
49
50
  L as PAGED_SUPER_SELECT_PAGE_SIZE,
50
51
  m as PersonOptionRow,
51
- se as RULES,
52
- $ as RadioGroup,
53
- de as ReactForm,
54
- ee as ResetButton,
55
- Pe as RichTextField,
56
- i as SUPER_SELECT_ALL_VALUE,
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
- re as Select,
59
- be as Steps,
60
- Le as SubList,
61
- te as SubmitButton,
59
+ te as Select,
60
+ Ae as Steps,
61
+ Re as SubList,
62
+ oe as SubmitButton,
62
63
  x as SuperSelect,
63
- oe as Switch,
64
- ge as TableList,
65
- ae as TextArea,
66
- pe as TreeSelect,
67
- Ge as VariableMentionField,
68
- we as buildFormOverlayProps,
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
- ie as useFormApi,
78
- xe as useFormContext,
79
- D as useFormDrawer,
78
+ xe as useFormApi,
79
+ Fe as useFormContext,
80
+ y as useFormDrawer,
80
81
  O as useFormModal,
81
- k as useFormStepModal,
82
- Fe as useGroup,
83
- ne as useReset,
84
- ce as useSubmit,
85
- Ae as validateFieldsByName,
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