yc-pro-components 0.0.49 → 0.0.51

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 (61) hide show
  1. package/es/components/yc-config-provider/src/type.d.ts +2 -0
  2. package/es/components/yc-config-provider/src/type.mjs +2 -1
  3. package/es/components/yc-plus-page/src/index.vue.d.ts +60 -172
  4. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  5. package/es/components/yc-plus-page/src/index.vue2.mjs +21 -3
  6. package/es/defaults.mjs +4 -1
  7. package/es/directives/dist/index.mjs +14 -0
  8. package/es/index.css +11 -11
  9. package/es/index.d.ts +1 -0
  10. package/es/index.mjs +1 -0
  11. package/es/make-installer.d.ts +7 -2
  12. package/es/make-installer.mjs +7 -2
  13. package/es/version.d.ts +1 -1
  14. package/es/version.mjs +1 -1
  15. package/es/yc-components/index.d.ts +1 -0
  16. package/es/yc-components/make-installer.d.ts +7 -2
  17. package/es/yc-components/version.d.ts +1 -1
  18. package/index.css +6 -6
  19. package/index.js +51 -13
  20. package/index.min.css +1 -1
  21. package/index.min.js +11 -11
  22. package/index.min.mjs +11 -11
  23. package/index.mjs +48 -10
  24. package/lib/components/yc-config-provider/src/type.d.ts +2 -0
  25. package/lib/components/yc-config-provider/src/type.js +2 -1
  26. package/lib/components/yc-plus-page/src/index.vue.d.ts +60 -172
  27. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  28. package/lib/components/yc-plus-page/src/index.vue2.js +20 -2
  29. package/lib/defaults.js +4 -1
  30. package/lib/directives/dist/index.js +16 -0
  31. package/lib/index.css +10 -10
  32. package/lib/index.d.ts +1 -0
  33. package/lib/index.js +2 -0
  34. package/lib/make-installer.d.ts +7 -2
  35. package/lib/make-installer.js +7 -2
  36. package/lib/version.d.ts +1 -1
  37. package/lib/version.js +1 -1
  38. package/lib/yc-components/index.d.ts +1 -0
  39. package/lib/yc-components/make-installer.d.ts +7 -2
  40. package/lib/yc-components/version.d.ts +1 -1
  41. package/locale/en.js +1 -1
  42. package/locale/en.min.js +1 -1
  43. package/locale/en.min.mjs +1 -1
  44. package/locale/en.mjs +1 -1
  45. package/locale/ja.js +1 -1
  46. package/locale/ja.min.js +1 -1
  47. package/locale/ja.min.mjs +1 -1
  48. package/locale/ja.mjs +1 -1
  49. package/locale/ko.js +1 -1
  50. package/locale/ko.min.js +1 -1
  51. package/locale/ko.min.mjs +1 -1
  52. package/locale/ko.mjs +1 -1
  53. package/locale/zh-cn.js +1 -1
  54. package/locale/zh-cn.min.js +1 -1
  55. package/locale/zh-cn.min.mjs +1 -1
  56. package/locale/zh-cn.mjs +1 -1
  57. package/locale/zh-tw.js +1 -1
  58. package/locale/zh-tw.min.js +1 -1
  59. package/locale/zh-tw.min.mjs +1 -1
  60. package/locale/zh-tw.mjs +1 -1
  61. package/package.json +2 -1
package/index.mjs CHANGED
@@ -1,10 +1,16 @@
1
- /*! yc-pro-components v0.0.49 */
1
+ /*! yc-pro-components v0.0.51 */
2
2
  import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, useAttrs, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow, createStaticVNode, hasInjectionContext, markRaw, effectScope, toRaw } from 'vue';
3
3
  import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, TableV2FixedDir, ElAutoResizer, ElTableV2, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop, ElUpload } from 'element-plus';
4
+ import jiti from 'file:///Users/alansherlock/Desktop/cnb.jinbizhihui/yc-components/node_modules/.pnpm/jiti@1.21.0/node_modules/jiti/lib/index.js';
4
5
 
5
- const makeInstaller = (components = []) => {
6
+ const makeInstaller = (components = [], directives = {}) => {
6
7
  const install = (app) => {
7
- components.forEach((component) => app.component(component.name, component));
8
+ components.forEach(
9
+ (component) => app.component(component.name, component)
10
+ );
11
+ Object.entries(directives).forEach(
12
+ ([name, directive]) => app.directive(name, directive)
13
+ );
8
14
  };
9
15
  return {
10
16
  install
@@ -31950,7 +31956,8 @@ const DEFAULT_YC_CONFIG = {
31950
31956
  t: (key) => key,
31951
31957
  components: {
31952
31958
  plusPage: {
31953
- showSearch: true
31959
+ showSearch: true,
31960
+ columnSettingsText: "\u5B57\u6BB5\u7BA1\u7406"
31954
31961
  },
31955
31962
  tabsWithFilter: {
31956
31963
  filterText: "\u7B5B\u9009"
@@ -32818,7 +32825,8 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
32818
32825
  headerFilter: { type: [Object, Boolean], default: false },
32819
32826
  hideHeaderFilter: { type: Boolean, default: true },
32820
32827
  columnCacheKey: { default: void 0 },
32821
- disableColumnCache: { type: Boolean, default: false }
32828
+ disableColumnCache: { type: Boolean, default: false },
32829
+ columnSettingsText: { default: void 0 }
32822
32830
  },
32823
32831
  emits: ["header-filter-confirm", "header-filter-reset"],
32824
32832
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -32960,6 +32968,16 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
32960
32968
  if (customIcon) return customIcon;
32961
32969
  return getCdnUrl("images", "table_value_setting.svg");
32962
32970
  });
32971
+ const resolvedColumnSettingsText = computed(() => {
32972
+ if (props.columnSettingsText !== void 0) {
32973
+ return props.columnSettingsText;
32974
+ }
32975
+ const fromGlobal = plusPageConfig == null ? void 0 : plusPageConfig.columnSettingsText;
32976
+ if (fromGlobal !== void 0) {
32977
+ return fromGlobal;
32978
+ }
32979
+ return "\u5B57\u6BB5\u7BA1\u7406";
32980
+ });
32963
32981
  watch(
32964
32982
  showSearch,
32965
32983
  () => {
@@ -33203,6 +33221,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
33203
33221
  return !((tableConfig == null ? void 0 : tableConfig.border) === true);
33204
33222
  });
33205
33223
  void fieldSettingIconUrl.value;
33224
+ void resolvedColumnSettingsText.value;
33206
33225
  void hasRequest.value;
33207
33226
  void showDefaultColumnSettingsIcon.value;
33208
33227
  __expose({
@@ -33268,7 +33287,13 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
33268
33287
  src: fieldSettingIconUrl.value,
33269
33288
  size: 16
33270
33289
  }, null, 8, ["src"]),
33271
- createElementVNode("span", { class: "column-settings-text" }, "\u5B57\u6BB5\u7BA1\u7406")
33290
+ createElementVNode(
33291
+ "span",
33292
+ { class: "column-settings-text" },
33293
+ toDisplayString(resolvedColumnSettingsText.value),
33294
+ 1
33295
+ /* TEXT */
33296
+ )
33272
33297
  ])
33273
33298
  ]),
33274
33299
  key: "1"
@@ -33290,7 +33315,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
33290
33315
  }
33291
33316
  });
33292
33317
 
33293
- var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c7557953"], ["__file", "index.vue"]]);
33318
+ var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-bc9aafd7"], ["__file", "index.vue"]]);
33294
33319
 
33295
33320
  function compareValues(a, b) {
33296
33321
  if (a == null && b == null) return 0;
@@ -62100,7 +62125,20 @@ const plugins = [
62100
62125
  YcTabsWithFilter
62101
62126
  ];
62102
62127
 
62103
- var installer = makeInstaller([...plugins]);
62128
+ /** @type {import("/Users/alansherlock/Desktop/cnb.jinbizhihui/yc-components/packages/directives/src/index")} */
62129
+ const _module = jiti(null, {
62130
+ "esmResolve": true,
62131
+ "interopDefault": true,
62132
+ "alias": {
62133
+ "@yc-components/directives": "/Users/alansherlock/Desktop/cnb.jinbizhihui/yc-components/packages/directives"
62134
+ }
62135
+ })("/Users/alansherlock/Desktop/cnb.jinbizhihui/yc-components/packages/directives/src/index.ts");
62136
+
62137
+ const fnPerm = _module.fnPerm;
62138
+
62139
+ var installer = makeInstaller([...plugins], {
62140
+ "fn-perm": fnPerm
62141
+ });
62104
62142
 
62105
62143
  const _withScopeId$1 = (n) => (pushScopeId("data-v-ffeed27e"), n = n(), popScopeId(), n);
62106
62144
  const _hoisted_1$1 = { class: "upload-record-list" };
@@ -63795,8 +63833,8 @@ function createDictStore(config) {
63795
63833
  });
63796
63834
  }
63797
63835
 
63798
- const version = "0.0.13";
63836
+ const version = "0.0.51";
63799
63837
 
63800
63838
  const install = installer.install;
63801
63839
 
63802
- export { DEFAULT_CDN_CONFIG, DEFAULT_OPERATORS, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, NO_VALUE_OPERATORS, OPERATOR_CATALOG, OPERATOR_LABELS, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, PlusVirtualTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcBatchImportDialog as ReBatchImportDialog, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcBatchImportDialog, YcBatchImportDialogWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTableHeaderFilterCell, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, createDictStore, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useColumnAdapter, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useHeaderFilter, useLocalHeaderFilter, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useVirtualScroll, useVirtualSelection, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
63840
+ export { DEFAULT_CDN_CONFIG, DEFAULT_OPERATORS, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, NO_VALUE_OPERATORS, OPERATOR_CATALOG, OPERATOR_LABELS, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, PlusVirtualTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcBatchImportDialog as ReBatchImportDialog, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcBatchImportDialog, YcBatchImportDialogWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTableHeaderFilterCell, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, createDictStore, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, fnPerm, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useColumnAdapter, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useHeaderFilter, useLocalHeaderFilter, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useVirtualScroll, useVirtualSelection, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
@@ -60,6 +60,8 @@ export interface YcGlobalConfig {
60
60
  showSearch?: boolean;
61
61
  /** 字段管理图标 URL */
62
62
  fieldSettingIcon?: string;
63
+ /** 工具栏「字段管理」/列设置旁文案,默认「字段管理」 */
64
+ columnSettingsText?: string;
63
65
  };
64
66
  /** YcTabsWithFilter 默认配置 */
65
67
  tabsWithFilter?: {
@@ -14,7 +14,8 @@ const DEFAULT_YC_CONFIG = {
14
14
  t: (key) => key,
15
15
  components: {
16
16
  plusPage: {
17
- showSearch: true
17
+ showSearch: true,
18
+ columnSettingsText: "\u5B57\u6BB5\u7BA1\u7406"
18
19
  },
19
20
  tabsWithFilter: {
20
21
  filterText: "\u7B5B\u9009"