@fishbelly/form-morph-arco 0.1.1 → 0.2.0
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/README.md +248 -211
- package/dist/components/ArcoFormItem.vue.d.ts +1 -1
- package/dist/components/ArcoFormShell.vue.d.ts +5 -0
- package/dist/containers/CardContainer.vue.d.ts +1 -1
- package/dist/containers/DividerContainer.vue.d.ts +1 -1
- package/dist/containers/SectionContainer.vue.d.ts +1 -1
- package/dist/fields/CascaderInput.vue.d.ts +1 -1
- package/dist/fields/CheckboxInput.vue.d.ts +1 -1
- package/dist/fields/ColorInput.vue.d.ts +1 -1
- package/dist/fields/DateInput.vue.d.ts +1 -1
- package/dist/fields/NumberInput.vue.d.ts +1 -1
- package/dist/fields/RadioInput.vue.d.ts +1 -1
- package/dist/fields/RateInput.vue.d.ts +1 -1
- package/dist/fields/SelectInput.vue.d.ts +1 -1
- package/dist/fields/SliderInput.vue.d.ts +1 -1
- package/dist/fields/StaticText.vue.d.ts +1 -1
- package/dist/fields/SwitchInput.vue.d.ts +1 -1
- package/dist/fields/TextInput.vue.d.ts +1 -1
- package/dist/fields/TimeInput.vue.d.ts +1 -1
- package/dist/fields/TreeSelectInput.vue.d.ts +1 -1
- package/dist/fields/UploadInput.vue.d.ts +1 -1
- package/dist/fields/treeValue.d.ts +8 -0
- package/dist/i18n.d.ts +12 -0
- package/dist/index.d.ts +15 -6
- package/dist/index.js +766 -551
- package/dist/index.js.map +1 -1
- package/dist/locale.d.ts +14 -0
- package/dist/locales/en-US.d.ts +3 -0
- package/dist/locales/en-US.js +139 -0
- package/dist/locales/en-US.js.map +1 -0
- package/dist/locales/zh-CN.d.ts +34 -0
- package/dist/shell.d.ts +12 -0
- package/dist/style.css +1 -1
- package/package.json +6 -2
- package/dist/__tests__/dateValue.test.d.ts +0 -1
- package/dist/__tests__/fieldConfig.test.d.ts +0 -1
- package/dist/__tests__/uploadInput.test.d.ts +0 -1
- package/dist/__tests__/uploadValue.test.d.ts +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataSourceOption } from '@fishbelly/form-morph';
|
|
2
|
+
export interface ArcoTreeNode {
|
|
3
|
+
key: string | number;
|
|
4
|
+
title: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
children?: ArcoTreeNode[];
|
|
7
|
+
}
|
|
8
|
+
export declare function buildTreeData(options?: DataSourceOption[]): ArcoTreeNode[];
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MessageParams } from '@fishbelly/form-morph';
|
|
2
|
+
import { ArcoMessageKey } from './locales/zh-CN';
|
|
3
|
+
/**
|
|
4
|
+
* Widget-side translation helper.
|
|
5
|
+
*
|
|
6
|
+
* Resolves pack messages through the engine locale context and falls back to
|
|
7
|
+
* the bundled zh-CN copy when no locale resource is registered (for example
|
|
8
|
+
* when a widget is mounted standalone).
|
|
9
|
+
*/
|
|
10
|
+
export declare function useFieldLocale(): {
|
|
11
|
+
tField: (key: ArcoMessageKey, params?: MessageParams) => string;
|
|
12
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VueFieldTypeDefinition, VueFormMorphPlugin, LocaleMessages } from '@fishbelly/form-morph';
|
|
2
2
|
import { default as TextInput } from './fields/TextInput.vue';
|
|
3
3
|
import { default as NumberInput } from './fields/NumberInput.vue';
|
|
4
4
|
import { default as SelectInput } from './fields/SelectInput.vue';
|
|
@@ -19,10 +19,19 @@ import { default as ArcoFormShell } from './components/ArcoFormShell.vue';
|
|
|
19
19
|
import { default as CardContainer } from './containers/CardContainer.vue';
|
|
20
20
|
import { default as SectionContainer } from './containers/SectionContainer.vue';
|
|
21
21
|
import { default as DividerContainer } from './containers/DividerContainer.vue';
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { createArcoFormShell } from './shell';
|
|
23
|
+
import { arcoZhCN } from './locales/zh-CN';
|
|
24
|
+
import { ArcoLocale } from './locale';
|
|
25
|
+
export declare const arcoFieldTypes: VueFieldTypeDefinition[];
|
|
26
|
+
export interface ArcoPackOptions {
|
|
24
27
|
name?: string;
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
locales?: Record<string, LocaleMessages>;
|
|
29
|
+
uiLocales?: Record<string, ArcoLocale>;
|
|
30
|
+
syncLibraryLocale?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function createArcoPack(options?: ArcoPackOptions): VueFormMorphPlugin;
|
|
33
|
+
export declare const arcoPack: VueFormMorphPlugin;
|
|
27
34
|
export default arcoPack;
|
|
28
|
-
export { TextInput, NumberInput, SelectInput, RadioInput, CheckboxInput, SwitchInput, SliderInput, RateInput, DateInput, TimeInput, UploadInput, CascaderInput, TreeSelectInput, ColorInput, StaticText, ArcoFormItem, ArcoFormShell, CardContainer, SectionContainer, DividerContainer };
|
|
35
|
+
export { TextInput, NumberInput, SelectInput, RadioInput, CheckboxInput, SwitchInput, SliderInput, RateInput, DateInput, TimeInput, UploadInput, CascaderInput, TreeSelectInput, ColorInput, StaticText, ArcoFormItem, ArcoFormShell, CardContainer, SectionContainer, DividerContainer, createArcoFormShell, arcoZhCN };
|
|
36
|
+
export type { ArcoLocale } from './locale';
|
|
37
|
+
export type { ArcoShellOptions } from './shell';
|