@jt-home/mfe-components 1.0.62 → 1.0.64

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 (112) hide show
  1. package/dist/package/JtAttachmentPreview/index.cjs +2 -0
  2. package/dist/package/JtAttachmentPreview/index.mjs +907 -0
  3. package/dist/package/JtAttachmentPreview/style.css +1 -0
  4. package/dist/package/el-table-column-CdKtbSnU.js +9 -0
  5. package/dist/package/el-table-column-Cvm2mF29.cjs +1 -0
  6. package/dist/package/el-table-column.css +1 -0
  7. package/dist/package/globalInfo/index.cjs +4 -0
  8. package/dist/package/globalInfo/index.mjs +4039 -0
  9. package/dist/package/globalInfo/style.css +1 -0
  10. package/dist/package/index.cjs +3 -0
  11. package/dist/package/index.mjs +1679 -0
  12. package/dist/{locale → package/locale}/index.cjs +1 -1
  13. package/dist/{locale → package/locale}/index.mjs +1 -1
  14. package/dist/package/style.css +1 -0
  15. package/dist/{types → package/types}/components/JtAttachmentPreview/index.d.ts +3 -2
  16. package/dist/{types → package/types}/components/JtAttachmentPreview/types.d.ts +6 -4
  17. package/dist/{types → package/types}/components/JtButton/index.vue.d.ts +9 -3
  18. package/dist/package/types/components/JtCard/index.d.ts +1 -0
  19. package/dist/package/types/components/JtCard/index.vue.d.ts +21 -0
  20. package/dist/package/types/components/JtConfirmDialog/index.d.ts +8 -0
  21. package/dist/package/types/components/JtConfirmDialog/index.vue.d.ts +26 -0
  22. package/dist/package/types/components/JtConfirmDialog/types.d.ts +23 -0
  23. package/dist/package/types/components/JtDrawer/index.d.ts +1 -0
  24. package/dist/package/types/components/JtDrawer/index.vue.d.ts +50 -0
  25. package/dist/{types → package/types}/components/JtPageHeader/index.d.ts +1 -1
  26. package/dist/{types → package/types}/components/JtPageHeader/index.vue.d.ts +8 -3
  27. package/dist/{types → package/types}/components/JtPageHeader/types.d.ts +7 -3
  28. package/dist/package/types/components/JtTab/JtTabItem.vue.d.ts +16 -0
  29. package/dist/package/types/components/JtTab/index.d.ts +3 -0
  30. package/dist/package/types/components/JtTab/index.vue.d.ts +25 -0
  31. package/dist/package/types/components/JtTab/types.d.ts +28 -0
  32. package/dist/{types → package/types}/components/globalInfo/model/fieldUtils.d.ts +3 -19
  33. package/dist/{types → package/types}/components/globalInfo/model/slotIdentity.d.ts +1 -1
  34. package/dist/{types → package/types}/components/globalInfo/model/types.d.ts +2 -2
  35. package/dist/{types → package/types}/components/index.d.ts +6 -3
  36. package/dist/{types → package/types}/locale/types.d.ts +1 -1
  37. package/dist/package/types/main.d.ts +5 -0
  38. package/package.json +49 -25
  39. package/readme.md +713 -694
  40. package/dist/JtAttachmentPreview/index.cjs +0 -1
  41. package/dist/JtAttachmentPreview/index.mjs +0 -1120
  42. package/dist/JtAttachmentPreview/style.css +0 -1
  43. package/dist/index.cjs +0 -3
  44. package/dist/index.mjs +0 -5309
  45. package/dist/pdf-BmBuG7of.js +0 -18058
  46. package/dist/pdf-Da0bm_Ya.cjs +0 -55
  47. package/dist/pdf.worker.min-4PI-nNLo.js +0 -4
  48. package/dist/pdf.worker.min-BAJUPwg6.cjs +0 -1
  49. package/dist/style.css +0 -1
  50. package/dist/types/components/globalInfo/renderers/attachmentPreview.d.ts +0 -2
  51. package/dist/types/main.d.ts +0 -5
  52. package/dist/{types → package/types}/components/JtButton/index.d.ts +0 -0
  53. package/dist/{types → package/types}/components/form/JtFormItems.vue.d.ts +0 -0
  54. package/dist/{types → package/types}/components/form/index.d.ts +0 -0
  55. package/dist/{types → package/types}/components/form/item/JtCascader/cascaderProps.d.ts +0 -0
  56. package/dist/{types → package/types}/components/form/item/JtCascader/index.d.ts +0 -0
  57. package/dist/{types → package/types}/components/form/item/JtCascader/index.vue.d.ts +0 -0
  58. package/dist/{types → package/types}/components/form/item/JtDatePicker/index.d.ts +0 -0
  59. package/dist/{types → package/types}/components/form/item/JtDatePicker/index.vue.d.ts +0 -0
  60. package/dist/{types → package/types}/components/form/item/JtInput/index.d.ts +0 -0
  61. package/dist/{types → package/types}/components/form/item/JtInput/index.vue.d.ts +0 -0
  62. package/dist/{types → package/types}/components/form/item/JtSelect/index.d.ts +0 -0
  63. package/dist/{types → package/types}/components/form/item/JtSelect/index.vue.d.ts +0 -0
  64. package/dist/{types → package/types}/components/form/item/JtSelect/types.d.ts +0 -0
  65. package/dist/{types → package/types}/components/form/item/index.d.ts +0 -0
  66. package/dist/{types → package/types}/components/form/types.d.ts +0 -0
  67. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoGroup.vue.d.ts +0 -0
  68. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoLeftNav.vue.d.ts +0 -0
  69. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoProvider.vue.d.ts +0 -0
  70. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoSectionBlock.vue.d.ts +0 -0
  71. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoSectionOutlet.vue.d.ts +0 -0
  72. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoSections.vue.d.ts +0 -0
  73. package/dist/{types → package/types}/components/globalInfo/components/GlobalInfoSlotErrorBoundary.vue.d.ts +0 -0
  74. package/dist/{types → package/types}/components/globalInfo/controller/controllerFieldOptions.d.ts +0 -0
  75. package/dist/{types → package/types}/components/globalInfo/controller/controllerIdentity.d.ts +0 -0
  76. package/dist/{types → package/types}/components/globalInfo/controller/controllerRequests.d.ts +0 -0
  77. package/dist/{types → package/types}/components/globalInfo/controller/controllerSectionStore.d.ts +0 -0
  78. package/dist/{types → package/types}/components/globalInfo/controller/controllerStatus.d.ts +0 -0
  79. package/dist/{types → package/types}/components/globalInfo/controller/useGlobalInfoController.d.ts +0 -0
  80. package/dist/{types → package/types}/components/globalInfo/index.d.ts +0 -0
  81. package/dist/{types → package/types}/components/globalInfo/model/adapter.d.ts +0 -0
  82. package/dist/{types → package/types}/components/globalInfo/model/fieldValidation.d.ts +0 -0
  83. package/dist/{types → package/types}/components/globalInfo/model/requiredInfoSetValidation.d.ts +0 -0
  84. package/dist/{types → package/types}/components/globalInfo/model/valueListOptions.d.ts +0 -0
  85. package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoAutoRenderer.vue.d.ts +0 -0
  86. package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoDeleteConfirm.vue.d.ts +1 -1
  87. /package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoFieldControl.vue.d.ts +0 -0
  88. /package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoFieldValue.vue.d.ts +0 -0
  89. /package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoFormRenderer.vue.d.ts +0 -0
  90. /package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoMultiFormRenderer.vue.d.ts +0 -0
  91. /package/dist/{types → package/types}/components/globalInfo/renderers/GlobalInfoTableRenderer.vue.d.ts +0 -0
  92. /package/dist/{types → package/types}/components/globalInfo/renderers/optionPreload.d.ts +0 -0
  93. /package/dist/{types → package/types}/components/table/JtCrudTable.vue.d.ts +0 -0
  94. /package/dist/{types → package/types}/components/table/JtFilterBar.vue.d.ts +0 -0
  95. /package/dist/{types → package/types}/components/table/JtPagination.vue.d.ts +0 -0
  96. /package/dist/{types → package/types}/components/table/JtTable.vue.d.ts +0 -0
  97. /package/dist/{types → package/types}/components/table/index.d.ts +0 -0
  98. /package/dist/{types → package/types}/components/table/types.d.ts +0 -0
  99. /package/dist/{types → package/types}/components/table/useSearchDisabled.d.ts +0 -0
  100. /package/dist/{types → package/types}/locale/index.d.ts +0 -0
  101. /package/dist/{types → package/types}/locale/messages/de.d.ts +0 -0
  102. /package/dist/{types → package/types}/locale/messages/en.d.ts +0 -0
  103. /package/dist/{types → package/types}/locale/messages/es.d.ts +0 -0
  104. /package/dist/{types → package/types}/locale/messages/id.d.ts +0 -0
  105. /package/dist/{types → package/types}/locale/messages/index.d.ts +0 -0
  106. /package/dist/{types → package/types}/locale/messages/km.d.ts +0 -0
  107. /package/dist/{types → package/types}/locale/messages/pt.d.ts +0 -0
  108. /package/dist/{types → package/types}/locale/messages/th.d.ts +0 -0
  109. /package/dist/{types → package/types}/locale/messages/vi.d.ts +0 -0
  110. /package/dist/{types → package/types}/locale/messages/zh-cn.d.ts +0 -0
  111. /package/dist/{types → package/types}/locale/normalizeLocale.d.ts +0 -0
  112. /package/dist/{types → package/types}/utils/componentAttrs.d.ts +0 -0
@@ -0,0 +1,28 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ export type JtTabValue = string | number;
3
+ export type JtTabType = 'line' | 'capsule';
4
+ export type JtTabSize = 'large' | 'default' | 'small';
5
+ export interface JtTabProps {
6
+ /** 当前选中的 tab value,通过 v-model 传入。 */
7
+ modelValue?: JtTabValue;
8
+ /** tab 视觉类型:line 对应下划线样式,capsule 对应顶部胶囊样式。 */
9
+ type?: JtTabType;
10
+ /** tab 高度尺寸:large 50px,default 32px,small 24px。 */
11
+ size?: JtTabSize;
12
+ /** line 类型默认带 12px 左右内边距;详情页和抽屉贴边场景可传 false。 */
13
+ inset?: boolean;
14
+ }
15
+ export interface JtTabItemProps {
16
+ /** 当前 tab 项唯一值,用于和父级 v-model 匹配。 */
17
+ value: JtTabValue;
18
+ /** 禁用后不参与点击和键盘切换。 */
19
+ disabled?: boolean;
20
+ }
21
+ export interface JtTabContext {
22
+ /** 父级受控选中值,子项只读取,不在本地复制状态。 */
23
+ modelValue: Readonly<Ref<JtTabValue | undefined>>;
24
+ type: Readonly<Ref<JtTabType>>;
25
+ size: Readonly<Ref<JtTabSize>>;
26
+ activate: (value: JtTabValue) => void;
27
+ }
28
+ export declare const jtTabContextKey: InjectionKey<JtTabContext>;
@@ -1,25 +1,9 @@
1
1
  import type { GlobalInfoField, GlobalInfoFieldOption, GlobalInfoFieldValue, GlobalInfoApiOperation, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoSection } from './types';
2
2
  export type GlobalInfoFieldControlKind = 'text' | 'textarea' | 'select' | 'select_remote' | 'date' | 'number' | 'switch' | 'file' | 'html' | 'code' | 'multi-row' | 'empty';
3
3
  export type GlobalInfoFieldDisplayKind = 'text' | 'select' | 'switch' | 'file' | 'html' | 'code' | 'multi-row' | 'empty';
4
- export type GlobalInfoAttachmentPreviewAction = {
5
- type: 'direct';
6
- options: string | GlobalInfoAttachmentPreviewOptions;
7
- } | {
8
- type: 'params';
9
- params: {
10
- fileId: string;
11
- };
12
- };
13
- export interface GlobalInfoAttachmentPreviewItem {
4
+ export interface GlobalInfoAttachmentItem {
14
5
  key: string;
15
6
  text: string;
16
- action?: GlobalInfoAttachmentPreviewAction;
17
- }
18
- export interface GlobalInfoAttachmentPreviewOptions {
19
- url: string;
20
- name?: string;
21
- mimeType?: string;
22
- extension?: string;
23
7
  }
24
8
  type GlobalInfoFieldKindSource = Pick<GlobalInfoField, 'type' | 'renderType'> & Partial<Pick<GlobalInfoField, 'fieldType' | 'frontInputType'>>;
25
9
  type GlobalInfoRemoteSelectKindSource = Partial<Pick<GlobalInfoField, 'type' | 'fieldType' | 'frontInputType' | 'raw'>>;
@@ -46,6 +30,6 @@ export declare function isGlobalInfoOptionValueMatched(option: Pick<GlobalInfoFi
46
30
  export declare function resolveGlobalInfoVisibleFields(fields: GlobalInfoField[], section?: GlobalInfoSection | null, config?: GlobalInfoRenderConfig, runtime?: GlobalInfoFieldVisibilityRuntime): GlobalInfoField[];
47
31
  export declare function isGlobalInfoSequenceField(field: GlobalInfoField): boolean;
48
32
  export declare function isGlobalInfoSeqNoField(field: GlobalInfoField): boolean;
49
- export declare function isGlobalInfoAttachmentPreviewField(field: GlobalInfoField): boolean;
50
- export declare function resolveGlobalInfoAttachmentPreviewItems(field: GlobalInfoField, value: GlobalInfoFieldValue, emptyText?: string): GlobalInfoAttachmentPreviewItem[];
33
+ export declare function isGlobalInfoAttachField(field: GlobalInfoField): boolean;
34
+ export declare function resolveGlobalInfoAttachmentItems(field: GlobalInfoField, value: GlobalInfoFieldValue, emptyText?: string): GlobalInfoAttachmentItem[];
51
35
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { GlobalInfoNode, GlobalInfoSection } from './types';
2
2
  type SlotRegistry = Record<string, unknown>;
3
3
  export declare function getNodeSlotIdentity(node: Pick<GlobalInfoNode, 'code'>): string;
4
- export declare function getSectionSlotIdentity(node: Pick<GlobalInfoNode, 'code'>, section?: Pick<GlobalInfoSection, 'code'> | null): string;
4
+ export declare function getSectionSlotIdentity(node: Partial<Pick<GlobalInfoNode, 'code' | 'infSetId' | 'setId'>>, section?: Pick<GlobalInfoSection, 'code'> | null): string;
5
5
  export declare function findGlobalInfoSlotName(slotMap: SlotRegistry, prefix: string, identity: string): string;
6
6
  export {};
@@ -103,7 +103,7 @@ export interface GlobalInfoFieldRequiredContext {
103
103
  /** 表格场景下的完整 rows,表单场景不传。 */
104
104
  rows?: GlobalInfoRawRecord[];
105
105
  }
106
- /** 返回 true 表示必填,返回字符串表示必填并使用该字符串作为错误文案。 */
106
+ /** 返回 true 表示必填,返回字符串表示必填并使用该字符串作为错误文案,返回 false 表示当前字段实例不必填。 */
107
107
  export type GlobalInfoFieldRequiredRule = (context: GlobalInfoFieldRequiredContext) => boolean | string;
108
108
  /** 保存前业务钩子上下文;payload 已经是即将提交给后端的数据。 */
109
109
  export interface GlobalInfoBeforeSaveContext {
@@ -418,7 +418,7 @@ export interface GlobalInfoField {
418
418
  placeholder?: string;
419
419
  /** 静态或动态加载后的选项。 */
420
420
  options?: GlobalInfoFieldOption[];
421
- /** 信息集枚举来源类型:NOTRANS 不处理,REST 调接口,ENUMS 使用详情响应内联枚举。 */
421
+ /** 信息集枚举来源类型:NULL 兼容旧接口,REST 调接口,ENUMS 使用详情响应内联枚举,NOTRANS 不处理。 */
422
422
  valueListType?: string;
423
423
  /** 字段动态接口描述,常用于级联下拉。 */
424
424
  interface?: GlobalInfoApiOperation;
@@ -1,11 +1,14 @@
1
1
  export { JtCrudTable, JtFilterBar, JtPagination, JtTable } from './table/index';
2
2
  export type { JtCrudColumn, JtCrudOption, JtDicItem, JtPaginationData, JtSearchType, } from './table/index';
3
3
  export { JtButton } from './JtButton/index';
4
- export { JtAttachmentPreview, JtAttachmentPreviewByParams, setupJtAttachmentPreview, } from './JtAttachmentPreview/index';
4
+ export { JtCard } from './JtCard/index';
5
+ export { JtDrawer } from './JtDrawer/index';
6
+ export { openJtConfirmDialog } from './JtConfirmDialog/index';
7
+ export { JtTab, JtTabItem } from './JtTab/index';
5
8
  export { JtCascader, JtDatePicker, JtFormItems, JtInput, JtSelect } from './form/index';
6
9
  export { JtPageHeader } from './JtPageHeader/index';
7
- export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoLeftNav, GlobalInfoMultiFormRenderer, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, useGlobalInfoController, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoOptions, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './globalInfo/index';
8
10
  export type { JTCascaderFormItemConfig, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemCascaderOption, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JtOptionItem, } from './form/index';
9
- export type { JtPageHeaderOperate, JtPageHeaderProps } from './JtPageHeader/index';
11
+ export type { JtPageHeaderOperate, JtPageHeaderProps, JtPageHeaderSize } from './JtPageHeader/index';
12
+ export type { JtTabContext, JtTabItemProps, JtTabProps, JtTabSize, JtTabType, JtTabValue, } from './JtTab/index';
10
13
  export type { JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, } from './JtAttachmentPreview/index';
11
14
  export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRequiredInfoSetEmptyMessage, GlobalInfoRequiredInfoSetEmptyMessageContext, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTableRowDeleteVisibleContext, GlobalInfoTableRowDeleteVisibleRule, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, } from './globalInfo/index';
@@ -5,7 +5,7 @@ export type LocaleMessageTree = {
5
5
  [key: string]: LocaleValue | LocaleMessageTree;
6
6
  };
7
7
  export type LocaleMessages = Record<string, LocaleMessageTree>;
8
- export type LocaleSource = LocaleCode;
8
+ export type LocaleSource = LocaleCode | (() => LocaleCode);
9
9
  export type LocaleOptions = {
10
10
  /** 当前组件库语言,业务方通常只需要传这个值。 */
11
11
  locale?: LocaleSource;
@@ -0,0 +1,5 @@
1
+ import './assets/styles/base.css';
2
+ export { getLocale as getJtLocale, install, installLocale, normalizeLocale, resetLocale as resetJtLocale, setLocale as setJtLocale, } from './locale';
3
+ export type { LocaleCode, LocaleOptions, LocaleSource, } from './locale';
4
+ export { JtButton, JtCard, JtCascader, JtCrudTable, JtDatePicker, JtDrawer, JtFilterBar, JtFormItems, JtInput, JtPageHeader, JtPagination, JtSelect, JtTab, JtTabItem, JtTable, openJtConfirmDialog, } from './components/index';
5
+ export type { JTCascaderFormItemConfig, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemConfig, JTFormItemCascaderOption, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JtCrudColumn, JtCrudOption, JtDicItem, JtOptionItem, JtPageHeaderOperate, JtPageHeaderProps, JtPageHeaderSize, JtPaginationData, JtSearchType, JtTabContext, JtTabItemProps, JtTabProps, JtTabSize, JtTabType, JtTabValue, } from './components/index';
package/package.json CHANGED
@@ -1,46 +1,49 @@
1
1
  {
2
2
  "name": "@jt-home/mfe-components",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "private": false,
5
5
  "type": "module",
6
- "main": "dist/index.cjs",
7
- "module": "dist/index.mjs",
8
- "types": "dist/types/main.d.ts",
9
- "style": "dist/style.css",
6
+ "main": "dist/package/index.cjs",
7
+ "module": "dist/package/index.mjs",
8
+ "types": "dist/package/types/main.d.ts",
9
+ "style": "dist/package/style.css",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
13
  "exports": {
14
14
  ".": {
15
- "types": "./dist/types/main.d.ts",
16
- "import": "./dist/index.mjs",
17
- "require": "./dist/index.cjs"
15
+ "types": "./dist/package/types/main.d.ts",
16
+ "import": "./dist/package/index.mjs",
17
+ "require": "./dist/package/index.cjs"
18
18
  },
19
19
  "./locale": {
20
- "types": "./dist/types/locale/index.d.ts",
21
- "import": "./dist/locale/index.mjs",
22
- "require": "./dist/locale/index.cjs"
20
+ "types": "./dist/package/types/locale/index.d.ts",
21
+ "import": "./dist/package/locale/index.mjs",
22
+ "require": "./dist/package/locale/index.cjs"
23
+ },
24
+ "./globalInfo": {
25
+ "types": "./dist/package/types/components/globalInfo/index.d.ts",
26
+ "import": "./dist/package/globalInfo/index.mjs",
27
+ "require": "./dist/package/globalInfo/index.cjs"
23
28
  },
24
29
  "./JtAttachmentPreview": {
25
- "types": "./dist/types/components/JtAttachmentPreview/index.d.ts",
26
- "import": "./dist/JtAttachmentPreview/index.mjs",
27
- "require": "./dist/JtAttachmentPreview/index.cjs"
30
+ "types": "./dist/package/types/components/JtAttachmentPreview/index.d.ts",
31
+ "import": "./dist/package/JtAttachmentPreview/index.mjs",
32
+ "require": "./dist/package/JtAttachmentPreview/index.cjs"
28
33
  },
29
- "./style.css": "./dist/style.css",
30
- "./JtAttachmentPreview/style.css": "./dist/JtAttachmentPreview/style.css"
34
+ "./style.css": "./dist/package/style.css"
31
35
  },
32
36
  "files": [
33
- "dist"
37
+ "dist/package"
34
38
  ],
35
39
  "sideEffects": [
36
40
  "*.css",
37
41
  "*.scss"
38
42
  ],
39
43
  "dependencies": {
40
- "@element-plus/icons-vue": "^2.3.2",
41
44
  "@jt-home/jt-language-tools": "^1.0.2",
42
45
  "@jt-home/sdk-tools": "1.2.1-beta.4",
43
- "pdfjs-dist": "^5.7.284"
46
+ "vue-demi": "0.14.6"
44
47
  },
45
48
  "devDependencies": {
46
49
  "@babel/eslint-parser": "^7.24.5",
@@ -52,7 +55,9 @@
52
55
  "@typescript-eslint/eslint-plugin": "^7.9.0",
53
56
  "@typescript-eslint/parser": "^7.9.0",
54
57
  "@vitejs/plugin-vue": "^5.2.4",
58
+ "@vue-office/pdf": "^2.0.2",
55
59
  "@vue/tsconfig": "^0.8.1",
60
+ "@element-plus/icons-vue": "^2.3.2",
56
61
  "element-plus": "^2.14.0",
57
62
  "eslint": "^8.57.0",
58
63
  "eslint-config-prettier": "^9.1.0",
@@ -61,7 +66,6 @@
61
66
  "eslint-plugin-prettier": "^5.1.3",
62
67
  "eslint-plugin-react": "^7.34.1",
63
68
  "eslint-plugin-vue": "^9.26.0",
64
- "husky": "^9.1.7",
65
69
  "postcss": "^8.5.8",
66
70
  "postcss-pxtorem": "^6.1.0",
67
71
  "prettier": "^3.2.5",
@@ -73,33 +77,53 @@
73
77
  "unplugin-vue-components": "^28.8.0",
74
78
  "vite": "^5.4.6",
75
79
  "vite-plugin-svg-icons": "^2.0.1",
80
+ "vitepress": "1.6.4",
76
81
  "vue": "^3.5.10",
77
82
  "vue-eslint-parser": "^9.4.2",
78
83
  "vue-tsc": "^3.1.5"
79
84
  },
80
85
  "peerDependencies": {
86
+ "@element-plus/icons-vue": "^2.3.2",
87
+ "@vue-office/pdf": "^2.0.2",
81
88
  "element-plus": "^2.14.0",
82
89
  "vue": "^3.5.10"
83
90
  },
91
+ "peerDependenciesMeta": {
92
+ "@vue-office/pdf": {
93
+ "optional": true
94
+ }
95
+ },
84
96
  "scripts": {
85
- "dev": "vite",
97
+ "dev": "vitepress dev src/docs --host 127.0.0.1 --port 3005",
98
+ "build": "pnpm run build:bundle && pnpm run build:types",
86
99
  "build:types": "vue-tsc -p tsconfig.lib.json",
87
100
  "build:bundle": "vite build",
88
101
  "build:dev": "vite build -w",
89
- "build": "pnpm run build:bundle && pnpm run build:types",
102
+ "build:demo": "vitepress build src/docs",
103
+ "build:pre": "pnpm run changeset:auto && pnpm run version:packages && pnpm run clean:dist && pnpm run publish:stable && pnpm run build:docs && pnpm run build:skill-references",
104
+ "build:test": "pnpm run changeset:auto && pnpm run version:packages && pnpm run version:beta && pnpm run clean:dist && pnpm run publish:beta && pnpm run build:docs && pnpm run build:skill-references",
90
105
  "build:analyze": "vite build --mode analyze",
91
106
  "changeset": "changeset",
92
107
  "changeset:status": "changeset status",
93
108
  "version:packages": "changeset version",
109
+ "version:beta": "node scripts/set-beta-version.cjs",
94
110
  "release": "pnpm run changeset:status && pnpm run version:packages && pnpm build && changeset publish",
95
- "release:beta": "changeset version --snapshot beta && pnpm build && changeset publish --tag beta",
96
- "preview": "vite preview --host 127.0.0.1 --port 5001",
111
+ "release:beta": "pnpm run version:beta && pnpm build && changeset publish --tag beta",
112
+ "publish:beta": "changeset publish --tag beta",
113
+ "preview": "vitepress preview src/docs --host 127.0.0.1 --port 5001",
97
114
  "i18n:extract": "npx -y --package @jt-home/i18n-cli i18n-cli -c ./i18n.config.cjs",
98
115
  "i18n:translate": "npx -y --package @jt-home/i18n-cli i18n-cli translate -c ./i18n.config.cjs",
99
116
  "i18n:sync": "node scripts/sync-component-locale.cjs",
100
117
  "i18n:export": "npx -y --package @jt-home/i18n-cli i18n-cli exportExcel -c ./i18n.config.cjs",
101
118
  "test:locale": "tsc --skipLibCheck --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests-locale src/locale/index.ts src/locale/locale.test.ts src/locale/messages.test.ts && node tmp/unit-tests-locale/locale.test.js && node tmp/unit-tests-locale/messages.test.js",
102
119
  "test:component-attrs": "tsc --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests src/utils/componentAttrs.ts src/utils/componentAttrs.test.ts && node tmp/unit-tests/componentAttrs.test.js",
103
- "test:cascader-props": "tsc --skipLibCheck --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests src/components/form/item/JtCascader/cascaderProps.ts src/components/form/item/JtCascader/cascaderProps.test.ts && node tmp/unit-tests/cascaderProps.test.js"
120
+ "test:cascader-props": "tsc --skipLibCheck --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests src/components/form/item/JtCascader/cascaderProps.ts src/components/form/item/JtCascader/cascaderProps.test.ts && node tmp/unit-tests/cascaderProps.test.js",
121
+ "clean:dist": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
122
+ "changeset:auto": "node scripts/create-changeset-from-commit.cjs",
123
+ "build:npm": "pnpm run build:bundle && pnpm run build:types",
124
+ "build:docs": "pnpm run build:demo",
125
+ "build:skill-references": "node scripts/build-skill-references.cjs",
126
+ "publish:stable": "changeset publish",
127
+ "test:build-pre": "node src/tests/buildPreWorkflow.test.cjs"
104
128
  }
105
129
  }