@xdmp-open/ui-shared 0.1.7 → 0.1.9

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,27 @@
1
1
  # @xdmp-open/ui-shared
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 7d954ae: 修正 package.json `author` 字段为 Linkwith IoT(原误写 China Mobile IoT)。npm 已发布版本的元数据不可原地修改,本修正随各包下一个版本生效;npm 包页面展示的 author 取自最新版元数据。
8
+ - Updated dependencies [7d954ae]
9
+ - Updated dependencies [fbaa3a9]
10
+ - Updated dependencies [fbaa3a9]
11
+ - Updated dependencies [fbaa3a9]
12
+ - Updated dependencies [bc71f0f]
13
+ - Updated dependencies [8aed561]
14
+ - Updated dependencies [8aed561]
15
+ - Updated dependencies [8d94128]
16
+ - @xdmp-open/sdk-admin@0.1.8
17
+
18
+ ## 0.1.8
19
+
20
+ ### Patch Changes
21
+
22
+ - 3023a26: - `ui-shared`:新增组合式函数 `useAdaptiveHeight({ offset?, min? })`(视口自适应高度,resize 监听 + 卸载清理;常量 `ADAPTIVE_HEIGHT_DEFAULT_OFFSET` / `ADAPTIVE_HEIGHT_MIN`),供表格 `height` 等场景复用。
23
+ - `ui-lowcode-element`:Schema 浏览器双表改用 `useAdaptiveHeight`,删除页内临时实现。
24
+
3
25
  ## 0.1.7
4
26
 
5
27
  ### Patch Changes
@@ -18,6 +18,7 @@ export interface BinaryUploadQuery {
18
18
  * 成功 resolve 拆包后的 data(含 id),失败抛 SdkError(SDK notifier 已完成错误提示)。
19
19
  */
20
20
  export declare function binaryUpload(file: File | Blob, query: BinaryUploadQuery): Promise<{
21
+ accessFlag?: "0-\u5426" | "1-\u662F";
21
22
  bucketName?: string;
22
23
  contentType?: string;
23
24
  createBy?: string;
@@ -21,7 +21,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
21
21
  };
22
22
  }>, {}, {
23
23
  showDesc: boolean;
24
- }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
+ }, {
25
+ displayDesc(): string;
26
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
27
  title: {
26
28
  type: StringConstructor;
27
29
  default: string;
@@ -0,0 +1,16 @@
1
+ import { Ref } from 'vue';
2
+ /** 默认预留高度:页头 page-desc + 筛选区 + 分页 + 宿主外框等占位 */
3
+ export declare const ADAPTIVE_HEIGHT_DEFAULT_OFFSET = 380;
4
+ /** 默认最小高度兜底 */
5
+ export declare const ADAPTIVE_HEIGHT_MIN = 320;
6
+ export interface AdaptiveHeightOptions {
7
+ /** 视口高度减去的预留高度(页头/筛选区/分页等占位),默认 {@link ADAPTIVE_HEIGHT_DEFAULT_OFFSET} */
8
+ offset?: number;
9
+ /** 最小高度,默认 {@link ADAPTIVE_HEIGHT_MIN} */
10
+ min?: number;
11
+ }
12
+ /**
13
+ * 视口自适应高度(常用于 el-table 的 height):window.innerHeight - offset,
14
+ * 下限 min;监听 resize 并在卸载时移除。
15
+ */
16
+ export declare function useAdaptiveHeight(options?: AdaptiveHeightOptions): Ref<number>;
package/dist/index.d.ts CHANGED
@@ -33,15 +33,17 @@ import { debounce } from './utils/debounce';
33
33
  import { Encrypt } from './utils/encrypt';
34
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
35
  import { TOKEN_NAMES, TOKEN_NEUTRAL_FALLBACKS } from './tokens';
36
+ import { ADAPTIVE_HEIGHT_DEFAULT_OFFSET, ADAPTIVE_HEIGHT_MIN, useAdaptiveHeight, AdaptiveHeightOptions } from './composables/useAdaptiveHeight';
36
37
  import { registerControl, resolveControl, listControlTypes, controlTypeToElement } from './controls/registry';
37
38
  export type { TokenName } from './tokens';
39
+ export type { AdaptiveHeightOptions };
38
40
  export type { LcdpControlType, ControlDescriptor } from './controls/registry';
39
41
  /**
40
42
  * 插件入口:全局注册全部组件与 emoji/highlight 指令。
41
43
  * v-permission 指令需单独调用 setupPermissionDirective 注入判定函数后注册。
42
44
  */
43
45
  declare function install(app: App): void;
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 };
46
+ 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, ADAPTIVE_HEIGHT_DEFAULT_OFFSET, ADAPTIVE_HEIGHT_MIN, useAdaptiveHeight, install };
45
47
  export type { HasPermissionFn, BinaryUploadQuery, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy };
46
48
  declare const _default: {
47
49
  install: typeof install;