@xdmp-open/ui-shared 0.1.2 → 0.1.4

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.4
4
+
5
+ ### 补丁变更
6
+
7
+ - `PageDataInfo` 动态注册开关对齐后端:启用=`1`,不启用=`0`。
8
+
9
+ ## 0.1.3
10
+
11
+ ### 补丁变更
12
+
13
+ - 新增 Control Registry(`registerControl` / `resolveControl` / `listControlTypes`),`formItem` 支持 `controlType`(LCDP)并兼容原 `element`。
14
+ - `formItem` 增加 `el-switch`。
15
+
3
16
  ## 0.1.2
4
17
 
5
18
  ### 补丁变更
@@ -0,0 +1,18 @@
1
+ /**
2
+ * LCDP / SearchForm 控件注册表:独立 controlType ↔ 既有 formItem element。
3
+ *
4
+ * @deprecated 语义 registry 已迁到 `@xdmp-open/ui-lowcode-core`;
5
+ * `el-*` 映射已迁到 `@xdmp-open/ui-lowcode-element`。
6
+ * 本文件保留为 SearchForm 兼容桥,禁止在 IR 中写入 element 名。
7
+ */
8
+ export type LcdpControlType = 'INPUT' | 'TEXTAREA' | 'NUMBER' | 'SELECT' | 'DATE' | 'SWITCH' | 'TREE_SELECT';
9
+ export type ControlDescriptor = {
10
+ /** 兼容 SearchForm formItem 的 element 值 */
11
+ element: string;
12
+ /** 额外默认 props(如 textarea) */
13
+ defaultProps?: Record<string, unknown>;
14
+ };
15
+ export declare function registerControl(controlType: string, descriptor: ControlDescriptor): void;
16
+ export declare function resolveControl(controlTypeOrElement: string | undefined | null): ControlDescriptor | null;
17
+ export declare function listControlTypes(): LcdpControlType[];
18
+ export declare function controlTypeToElement(controlType: string): string | undefined;
package/dist/index.d.ts CHANGED
@@ -31,12 +31,14 @@ import { isExternal, validPassword, validMoblie, validInputLength, validSpecialN
31
31
  import { debounce } from './utils/debounce';
32
32
  import { Encrypt } from './utils/encrypt';
33
33
  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';
34
+ import { registerControl, resolveControl, listControlTypes, controlTypeToElement } from './controls/registry';
35
+ export type { LcdpControlType, ControlDescriptor } from './controls/registry';
34
36
  /**
35
37
  * 插件入口:全局注册全部组件与 emoji/highlight 指令。
36
38
  * v-permission 指令需单独调用 setupPermissionDirective 注入判定函数后注册。
37
39
  */
38
40
  declare function install(app: App): void;
39
- 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, install };
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 };
40
42
  export type { HasPermissionFn, BinaryUploadQuery, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy };
41
43
  declare const _default: {
42
44
  install: typeof install;