@xdmp-open/ui-shared 0.1.4 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @xdmp-open/ui-shared
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### 补丁变更
6
+
7
+ - 新增 `PlaceholderPage`。菜单已下发但宿主没有对应页面时,显示「标题 · 页面建设中」。
8
+
9
+ ## 0.1.5
10
+
11
+ ### 补丁变更
12
+
13
+ - 新增 `--xdmp-*` token 名与中性 fallback;`theme-default.css` 才是现网蓝。
14
+ - 下沉 `searchInputCustomStyle`。`@xdmp-open/ui-shared/styles` = tokens + theme-default + 原样式 + 搜索皮肤。SaaS 可只引 `tokens.css` 再覆盖 `:root`。
15
+
3
16
  ## 0.1.4
4
17
 
5
18
  ### 补丁变更
package/README.md CHANGED
@@ -48,18 +48,18 @@ setupBinaryApi(sdkClient)
48
48
  也可按需单组件引入:
49
49
 
50
50
  ```ts
51
- import { Pagination, UiapDrawer } from '@xdmp-open/ui-shared'
51
+ import { Pagination, XdmpDrawer } from '@xdmp-open/ui-shared'
52
52
  ```
53
53
 
54
54
  > 注意:组件不再依赖宿主全局注册 element-plus 组件;但 `PageDecs` 等模板中的
55
- > `uiap-icon-*`/`el-icon-uiap-*` 图标字体 class、`SvgIcon` 的 SVG sprite(`#icon-*`)
55
+ > `xdmp-icon-*`/`el-icon-xdmp-*` 图标字体 class、`SvgIcon` 的 SVG sprite(`#icon-*`)
56
56
  > 仍由宿主应用提供(与原实现一致)。
57
57
 
58
58
  ## 组件清单
59
59
 
60
60
  | 导出名 | 来源(应用壳) | 说明 |
61
61
  | --- | --- | --- |
62
- | `UiapDrawer` | `components/uiapDrawer` | 抽屉容器(el-drawer 封装,footer 取消/确定) |
62
+ | `XdmpDrawer` | `components/xdmpDrawer` | 抽屉容器(el-drawer 封装,footer 取消/确定) |
63
63
  | `SearchForm` | `components/SearchForm` | 配置式搜索表单(内部依赖 `MultipleTree`) |
64
64
  | `Pagination` | `components/Pagination` | 分页(el-pagination 封装,含 scrollTo) |
65
65
  | `TreeSelect` | `components/TreeSelect` | 树下拉选择 |
@@ -0,0 +1,42 @@
1
+ /** 菜单已下发但宿主还没有对应页面时的占位。标题取路由 meta.title。 */
2
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {
3
+ description(this: {
4
+ $route?: {
5
+ meta?: {
6
+ title?: unknown;
7
+ };
8
+ };
9
+ }): string;
10
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
11
+ ElEmpty: import('element-plus/es/utils/vue/typescript.mjs').SFCWithInstall<{
12
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').EmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
13
+ description: string;
14
+ image: string;
15
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<import('element-plus').EmptyProps> & Readonly<{}>, {}, {}, {}, {}, {
23
+ description: string;
24
+ image: string;
25
+ }>;
26
+ __isFragment?: never;
27
+ __isTeleport?: never;
28
+ __isSuspense?: never;
29
+ } & import('vue').ComponentOptionsBase<Readonly<import('element-plus').EmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
30
+ description: string;
31
+ image: string;
32
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
33
+ $slots: {
34
+ image?: (props: {}) => any;
35
+ } & {
36
+ description?: (props: {}) => any;
37
+ } & {
38
+ default?: (props: {}) => any;
39
+ };
40
+ })>;
41
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
42
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue';
2
- import { default as UiapDrawer } from './components/UiapDrawer/index.vue';
2
+ import { default as XdmpDrawer } from './components/XdmpDrawer/index.vue';
3
3
  import { default as SearchForm } from './components/SearchForm/index.vue';
4
4
  import { default as Pagination } from './components/Pagination/index.vue';
5
5
  import { default as TreeSelect } from './components/TreeSelect/index.vue';
@@ -18,6 +18,7 @@ import { default as VueCountTo } from './components/VueCountTo/index.vue';
18
18
  import { default as ScaleSrceen } from './components/ScaleSrceen/index.vue';
19
19
  import { default as AvatarUpload } from './components/AvatarUpload/index.vue';
20
20
  import { default as FileUpload } from './components/FileUpload/index.vue';
21
+ import { default as PlaceholderPage } from './components/PlaceholderPage/index.vue';
21
22
  import { default as chartResizeMixin } from './components/Charts/mixins/resize';
22
23
  import { emoji } from './directives/emoji';
23
24
  import { highlight } from './directives/highlight';
@@ -31,14 +32,16 @@ import { isExternal, validPassword, validMoblie, validInputLength, validSpecialN
31
32
  import { debounce } from './utils/debounce';
32
33
  import { Encrypt } from './utils/encrypt';
33
34
  import { isDevRuntime, isRetainFieldDisabled, isRetainYes, RETAIN_INDEX, RETAIN_MSG_DELETE, RETAIN_MSG_DISABLE, RETAIN_MSG_UPDATE, YES_OR_NO_YES, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy } from './utils/retain';
35
+ import { TOKEN_NAMES, TOKEN_NEUTRAL_FALLBACKS } from './tokens';
34
36
  import { registerControl, resolveControl, listControlTypes, controlTypeToElement } from './controls/registry';
37
+ export type { TokenName } from './tokens';
35
38
  export type { LcdpControlType, ControlDescriptor } from './controls/registry';
36
39
  /**
37
40
  * 插件入口:全局注册全部组件与 emoji/highlight 指令。
38
41
  * v-permission 指令需单独调用 setupPermissionDirective 注入判定函数后注册。
39
42
  */
40
43
  declare function install(app: App): void;
41
- export { UiapDrawer, SearchForm, Pagination, TreeSelect, MultipleTree, BackPage, PageDataInfo, PageDecs, PageMoreDataInfo, IconSelect, SvgIcon, KeyboardChart, LineMarkerChart, MixChart, ChartComponent, VueCountTo, ScaleSrceen, AvatarUpload, FileUpload, chartResizeMixin, setupBinaryApi, getBinaryResource, binaryUpload, binaryDownloadBlob, emoji, highlight, createPermissionDirective, setupPermissionDirective, registerSvgIcons, getSvgIconNames, isRegisteredSvgIcon, useIcons, $on, $off, $once, $emit, scrollTo, isExternal, validPassword, validMoblie, validInputLength, validSpecialName, validLegalInput, validBitMapString, validEnumString, isInteger, debounce, Encrypt, isRetainYes, isRetainFieldDisabled, isDevRuntime, RETAIN_INDEX, RETAIN_MSG_DELETE, RETAIN_MSG_DISABLE, RETAIN_MSG_UPDATE, YES_OR_NO_YES, registerControl, resolveControl, listControlTypes, controlTypeToElement, install };
44
+ export { XdmpDrawer, SearchForm, Pagination, TreeSelect, MultipleTree, BackPage, PageDataInfo, PageDecs, PageMoreDataInfo, IconSelect, SvgIcon, KeyboardChart, LineMarkerChart, MixChart, ChartComponent, VueCountTo, ScaleSrceen, AvatarUpload, FileUpload, PlaceholderPage, chartResizeMixin, setupBinaryApi, getBinaryResource, binaryUpload, binaryDownloadBlob, emoji, highlight, createPermissionDirective, setupPermissionDirective, registerSvgIcons, getSvgIconNames, isRegisteredSvgIcon, useIcons, $on, $off, $once, $emit, scrollTo, isExternal, validPassword, validMoblie, validInputLength, validSpecialName, validLegalInput, validBitMapString, validEnumString, isInteger, debounce, Encrypt, isRetainYes, isRetainFieldDisabled, isDevRuntime, RETAIN_INDEX, RETAIN_MSG_DELETE, RETAIN_MSG_DISABLE, RETAIN_MSG_UPDATE, YES_OR_NO_YES, registerControl, resolveControl, listControlTypes, controlTypeToElement, TOKEN_NAMES, TOKEN_NEUTRAL_FALLBACKS, install };
42
45
  export type { HasPermissionFn, BinaryUploadQuery, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy };
43
46
  declare const _default: {
44
47
  install: typeof install;