@silver-formily/element-plus 0.0.1-alpha.0 → 0.0.1-beta.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 +4 -0
- package/package.json +40 -33
- package/esm/__builtins__/configs/index.d.ts +0 -1
- package/esm/__builtins__/configs/index.mjs +0 -5
- package/esm/__builtins__/configs/index.mjs.map +0 -1
- package/esm/__builtins__/index.d.ts +0 -2
- package/esm/__builtins__/index.mjs +0 -27
- package/esm/__builtins__/index.mjs.map +0 -1
- package/esm/__builtins__/shared/hooks.d.ts +0 -7
- package/esm/__builtins__/shared/hooks.mjs +0 -59
- package/esm/__builtins__/shared/hooks.mjs.map +0 -1
- package/esm/__builtins__/shared/index.d.ts +0 -7
- package/esm/__builtins__/shared/index.mjs +0 -25
- package/esm/__builtins__/shared/index.mjs.map +0 -1
- package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
- package/esm/__builtins__/shared/load-config-provider.mjs +0 -13
- package/esm/__builtins__/shared/load-config-provider.mjs.map +0 -1
- package/esm/__builtins__/shared/loading.d.ts +0 -12
- package/esm/__builtins__/shared/loading.mjs +0 -49
- package/esm/__builtins__/shared/loading.mjs.map +0 -1
- package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
- package/esm/__builtins__/shared/simple-version-compare.mjs +0 -18
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +0 -1
- package/esm/__builtins__/shared/transform-component.d.ts +0 -8
- package/esm/__builtins__/shared/transform-component.mjs +0 -50
- package/esm/__builtins__/shared/transform-component.mjs.map +0 -1
- package/esm/__builtins__/shared/types.d.ts +0 -2
- package/esm/__builtins__/shared/types.mjs +0 -2
- package/esm/__builtins__/shared/types.mjs.map +0 -1
- package/esm/__builtins__/shared/utils.d.ts +0 -8
- package/esm/__builtins__/shared/utils.mjs +0 -34
- package/esm/__builtins__/shared/utils.mjs.map +0 -1
- package/esm/array-base/array-base-addition.d.ts +0 -5
- package/esm/array-base/array-base-index.d.ts +0 -19
- package/esm/array-base/array-base-inner.d.ts +0 -18
- package/esm/array-base/array-base-item.d.ts +0 -18
- package/esm/array-base/array-base-move-down.d.ts +0 -18
- package/esm/array-base/array-base-move-up.d.ts +0 -18
- package/esm/array-base/array-base-remove.d.ts +0 -18
- package/esm/array-base/array-base-sort-handle.d.ts +0 -2
- package/esm/array-base/index.d.ts +0 -114
- package/esm/array-base/index.mjs +0 -225
- package/esm/array-base/index.mjs.map +0 -1
- package/esm/array-base/symbols.d.ts +0 -4
- package/esm/array-base/symbols.mjs +0 -6
- package/esm/array-base/symbols.mjs.map +0 -1
- package/esm/array-base/types.d.ts +0 -28
- package/esm/array-base/types.mjs +0 -2
- package/esm/array-base/types.mjs.map +0 -1
- package/esm/array-base/utils.d.ts +0 -18
- package/esm/array-base/utils.mjs +0 -88
- package/esm/array-base/utils.mjs.map +0 -1
- package/esm/array-cards/array-cards.d.ts +0 -13
- package/esm/array-cards/index.d.ts +0 -122
- package/esm/array-cards/index.mjs +0 -119
- package/esm/array-cards/index.mjs.map +0 -1
- package/esm/array-collapse/array-collapse-item.d.ts +0 -18
- package/esm/array-collapse/array-collapse.d.ts +0 -16
- package/esm/array-collapse/index.d.ts +0 -134
- package/esm/array-collapse/index.mjs +0 -180
- package/esm/array-collapse/index.mjs.map +0 -1
- package/esm/array-collapse/utils.d.ts +0 -1
- package/esm/array-collapse/utils.mjs +0 -12
- package/esm/array-collapse/utils.mjs.map +0 -1
- package/esm/array-items/array-items-item.d.ts +0 -30
- package/esm/array-items/array-items.d.ts +0 -2
- package/esm/array-items/index.d.ts +0 -130
- package/esm/array-items/index.mjs +0 -105
- package/esm/array-items/index.mjs.map +0 -1
- package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
- package/esm/array-list-tabs/index.d.ts +0 -83
- package/esm/array-list-tabs/index.mjs +0 -183
- package/esm/array-list-tabs/index.mjs.map +0 -1
- package/esm/array-list-tabs/utils.d.ts +0 -3
- package/esm/array-list-tabs/utils.mjs +0 -16
- package/esm/array-list-tabs/utils.mjs.map +0 -1
- package/esm/array-table/index.mjs +0 -230
- package/esm/array-table/index.mjs.map +0 -1
- package/esm/array-table/types.d.ts +0 -6
- package/esm/array-table/types.mjs +0 -2
- package/esm/array-table/types.mjs.map +0 -1
- package/esm/array-table/utils.d.ts +0 -5
- package/esm/array-table/utils.mjs +0 -26
- package/esm/array-table/utils.mjs.map +0 -1
- package/esm/array-tabs/array-tabs.d.ts +0 -2
- package/esm/array-tabs/index.d.ts +0 -2
- package/esm/array-tabs/index.mjs +0 -88
- package/esm/array-tabs/index.mjs.map +0 -1
- package/esm/cascader/cascader.d.ts +0 -30
- package/esm/cascader/index.d.ts +0 -41
- package/esm/cascader/index.mjs +0 -54
- package/esm/cascader/index.mjs.map +0 -1
- package/esm/checkbox/checkbox-group.d.ts +0 -58
- package/esm/checkbox/index.d.ts +0 -716
- package/esm/checkbox/index.mjs +0 -86
- package/esm/checkbox/index.mjs.map +0 -1
- package/esm/date-picker/index.d.ts +0 -2
- package/esm/date-picker/index.mjs +0 -57
- package/esm/date-picker/index.mjs.map +0 -1
- package/esm/editable/editable-popover.d.ts +0 -25
- package/esm/editable/editable.d.ts +0 -187
- package/esm/editable/index.d.ts +0 -147
- package/esm/editable/index.mjs +0 -231
- package/esm/editable/index.mjs.map +0 -1
- package/esm/form/form.d.ts +0 -46
- package/esm/form/form.mjs +0 -77
- package/esm/form/form.mjs.map +0 -1
- package/esm/form/index.d.ts +0 -1
- package/esm/form/index.mjs +0 -6
- package/esm/form/index.mjs.map +0 -1
- package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
- package/esm/form-button-group/form-button-group.d.ts +0 -48
- package/esm/form-button-group/index.d.ts +0 -87
- package/esm/form-button-group/index.mjs +0 -90
- package/esm/form-button-group/index.mjs.map +0 -1
- package/esm/form-button-group/utils.d.ts +0 -1
- package/esm/form-button-group/utils.mjs +0 -12
- package/esm/form-button-group/utils.mjs.map +0 -1
- package/esm/form-collapse/form-collapse.d.ts +0 -18
- package/esm/form-collapse/index.d.ts +0 -45
- package/esm/form-collapse/index.mjs +0 -103
- package/esm/form-collapse/index.mjs.map +0 -1
- package/esm/form-collapse/utils.d.ts +0 -31
- package/esm/form-collapse/utils.mjs +0 -54
- package/esm/form-collapse/utils.mjs.map +0 -1
- package/esm/form-dialog/dialog-content.d.ts +0 -60
- package/esm/form-dialog/index.d.ts +0 -4
- package/esm/form-dialog/index.mjs +0 -209
- package/esm/form-dialog/index.mjs.map +0 -1
- package/esm/form-dialog/types.d.ts +0 -32
- package/esm/form-dialog/types.mjs +0 -2
- package/esm/form-dialog/types.mjs.map +0 -1
- package/esm/form-drawer/drawer-content.d.ts +0 -60
- package/esm/form-drawer/index.d.ts +0 -4
- package/esm/form-drawer/index.mjs +0 -203
- package/esm/form-drawer/index.mjs.map +0 -1
- package/esm/form-drawer/types.d.ts +0 -32
- package/esm/form-drawer/types.mjs +0 -2
- package/esm/form-drawer/types.mjs.map +0 -1
- package/esm/form-grid/form-grid-column.d.ts +0 -29
- package/esm/form-grid/form-grid.d.ts +0 -101
- package/esm/form-grid/hooks.d.ts +0 -4
- package/esm/form-grid/hooks.mjs +0 -7
- package/esm/form-grid/hooks.mjs.map +0 -1
- package/esm/form-grid/index.d.ts +0 -182
- package/esm/form-grid/index.mjs +0 -106
- package/esm/form-grid/index.mjs.map +0 -1
- package/esm/form-item/form-item.d.ts +0 -18
- package/esm/form-item/index.d.ts +0 -70
- package/esm/form-item/index.mjs +0 -346
- package/esm/form-item/index.mjs.map +0 -1
- package/esm/form-item/types.d.ts +0 -25
- package/esm/form-item/types.mjs +0 -2
- package/esm/form-item/types.mjs.map +0 -1
- package/esm/form-item/utils.d.ts +0 -3
- package/esm/form-item/utils.mjs +0 -18
- package/esm/form-item/utils.mjs.map +0 -1
- package/esm/form-layout/form-layout.d.ts +0 -32
- package/esm/form-layout/form-layout.mjs +0 -86
- package/esm/form-layout/form-layout.mjs.map +0 -1
- package/esm/form-layout/index.d.ts +0 -1
- package/esm/form-layout/index.mjs +0 -6
- package/esm/form-layout/index.mjs.map +0 -1
- package/esm/form-layout/types.d.ts +0 -43
- package/esm/form-layout/types.mjs +0 -2
- package/esm/form-layout/types.mjs.map +0 -1
- package/esm/form-layout/utils.d.ts +0 -57
- package/esm/form-layout/utils.mjs +0 -109
- package/esm/form-layout/utils.mjs.map +0 -1
- package/esm/form-step/form-step-pane.d.ts +0 -2
- package/esm/form-step/form-step.d.ts +0 -5
- package/esm/form-step/index.d.ts +0 -24
- package/esm/form-step/index.mjs +0 -96
- package/esm/form-step/index.mjs.map +0 -1
- package/esm/form-step/types.d.ts +0 -21
- package/esm/form-step/types.mjs +0 -2
- package/esm/form-step/types.mjs.map +0 -1
- package/esm/form-step/utils.d.ts +0 -11
- package/esm/form-step/utils.mjs +0 -66
- package/esm/form-step/utils.mjs.map +0 -1
- package/esm/form-tab/form-tab.d.ts +0 -7
- package/esm/form-tab/hooks.d.ts +0 -7
- package/esm/form-tab/hooks.mjs +0 -32
- package/esm/form-tab/hooks.mjs.map +0 -1
- package/esm/form-tab/index.d.ts +0 -28
- package/esm/form-tab/index.mjs +0 -80
- package/esm/form-tab/index.mjs.map +0 -1
- package/esm/form-tab/types.d.ts +0 -12
- package/esm/form-tab/types.mjs +0 -2
- package/esm/form-tab/types.mjs.map +0 -1
- package/esm/form-tab/utils.d.ts +0 -4
- package/esm/form-tab/utils.mjs +0 -14
- package/esm/form-tab/utils.mjs.map +0 -1
- package/esm/index.d.ts +0 -37
- package/esm/index.mjs +0 -81
- package/esm/index.mjs.map +0 -1
- package/esm/input/index.d.ts +0 -84
- package/esm/input/index.mjs +0 -77
- package/esm/input/index.mjs.map +0 -1
- package/esm/input/input.d.ts +0 -32
- package/esm/input-number/index.d.ts +0 -4
- package/esm/input-number/index.mjs +0 -30
- package/esm/input-number/index.mjs.map +0 -1
- package/esm/pagination/components/jumper.d.ts +0 -16
- package/esm/pagination/components/jumper.mjs +0 -12
- package/esm/pagination/components/jumper.mjs.map +0 -1
- package/esm/pagination/components/next.d.ts +0 -42
- package/esm/pagination/components/next.mjs +0 -23
- package/esm/pagination/components/next.mjs.map +0 -1
- package/esm/pagination/components/pager.d.ts +0 -42
- package/esm/pagination/components/pager.mjs +0 -23
- package/esm/pagination/components/pager.mjs.map +0 -1
- package/esm/pagination/components/prev.d.ts +0 -39
- package/esm/pagination/components/prev.mjs +0 -22
- package/esm/pagination/components/prev.mjs.map +0 -1
- package/esm/pagination/components/sizes.d.ts +0 -56
- package/esm/pagination/components/sizes.mjs +0 -7
- package/esm/pagination/components/sizes.mjs.map +0 -1
- package/esm/pagination/components/total.d.ts +0 -8
- package/esm/pagination/components/total.mjs +0 -11
- package/esm/pagination/components/total.mjs.map +0 -1
- package/esm/pagination/pagination.d.ts +0 -128
- package/esm/pagination/pagination.mjs +0 -631
- package/esm/pagination/pagination.mjs.map +0 -1
- package/esm/password/index.d.ts +0 -86
- package/esm/password/index.mjs +0 -14
- package/esm/password/index.mjs.map +0 -1
- package/esm/preview-text/cascader.d.ts +0 -5
- package/esm/preview-text/date-picker.d.ts +0 -5
- package/esm/preview-text/index.d.ts +0 -102
- package/esm/preview-text/index.mjs +0 -321
- package/esm/preview-text/index.mjs.map +0 -1
- package/esm/preview-text/input.d.ts +0 -28
- package/esm/preview-text/preview.d.ts +0 -18
- package/esm/preview-text/select.d.ts +0 -5
- package/esm/preview-text/time-picker.d.ts +0 -5
- package/esm/preview-text/tree.d.ts +0 -22
- package/esm/preview-text/utils.d.ts +0 -14
- package/esm/preview-text/utils.mjs +0 -16
- package/esm/preview-text/utils.mjs.map +0 -1
- package/esm/radio/index.d.ts +0 -634
- package/esm/radio/index.mjs +0 -80
- package/esm/radio/index.mjs.map +0 -1
- package/esm/radio/radio-group.d.ts +0 -44
- package/esm/reset/index.d.ts +0 -63
- package/esm/reset/index.mjs +0 -48
- package/esm/reset/index.mjs.map +0 -1
- package/esm/reset/reset.d.ts +0 -45
- package/esm/select/index.d.ts +0 -142
- package/esm/select/index.mjs +0 -132
- package/esm/select/index.mjs.map +0 -1
- package/esm/select/select.d.ts +0 -50
- package/esm/select-table/index.mjs +0 -204
- package/esm/select-table/index.mjs.map +0 -1
- package/esm/select-table/types.d.ts +0 -14
- package/esm/select-table/types.mjs +0 -2
- package/esm/select-table/types.mjs.map +0 -1
- package/esm/space/index.d.ts +0 -1
- package/esm/space/index.mjs +0 -6
- package/esm/space/index.mjs.map +0 -1
- package/esm/styles/array-base/index.css +0 -1
- package/esm/styles/array-cards/index.css +0 -1
- package/esm/styles/array-collapse/index.css +0 -1
- package/esm/styles/array-items/index.css +0 -1
- package/esm/styles/array-list-tabs/index.css +0 -1
- package/esm/styles/array-table/index.css +0 -1
- package/esm/styles/array-tabs/index.css +0 -1
- package/esm/styles/editable/index.css +0 -1
- package/esm/styles/form-button-group/index.css +0 -1
- package/esm/styles/form-collapse/index.css +0 -1
- package/esm/styles/form-grid/index.css +0 -1
- package/esm/styles/form-item/index.css +0 -1
- package/esm/styles/form-tab/index.css +0 -1
- package/esm/styles/preview-text/index.css +0 -1
- package/esm/styles/radio/index.css +0 -1
- package/esm/styles/select-table/index.css +0 -1
- package/esm/submit/index.d.ts +0 -48
- package/esm/submit/index.mjs +0 -47
- package/esm/submit/index.mjs.map +0 -1
- package/esm/submit/submit.d.ts +0 -36
- package/esm/switch/index.d.ts +0 -4
- package/esm/switch/index.mjs +0 -19
- package/esm/switch/index.mjs.map +0 -1
- package/esm/time-picker/index.d.ts +0 -4
- package/esm/time-picker/index.mjs +0 -21
- package/esm/time-picker/index.mjs.map +0 -1
- package/esm/time-select/index.d.ts +0 -2
- package/esm/time-select/index.mjs +0 -21
- package/esm/time-select/index.mjs.map +0 -1
- package/esm/transfer/index.d.ts +0 -1509
- package/esm/transfer/index.mjs +0 -11
- package/esm/transfer/index.mjs.map +0 -1
- package/esm/tree/index.d.ts +0 -42
- package/esm/tree/index.mjs +0 -105
- package/esm/tree/index.mjs.map +0 -1
- package/esm/tree/tree.d.ts +0 -20
- package/esm/tree/types.d.ts +0 -13
- package/esm/tree/types.mjs +0 -2
- package/esm/tree/types.mjs.map +0 -1
- package/esm/tree/utils.d.ts +0 -45
- package/esm/tree/utils.mjs +0 -161
- package/esm/tree/utils.mjs.map +0 -1
- package/esm/tree-select/index.d.ts +0 -32
- package/esm/tree-select/index.mjs +0 -51
- package/esm/tree-select/index.mjs.map +0 -1
- package/esm/tree-select/tree-select.d.ts +0 -17
- package/esm/upload/index.d.ts +0 -889
- package/esm/upload/index.mjs +0 -185
- package/esm/upload/index.mjs.map +0 -1
- package/esm/upload/upload.d.ts +0 -1613
- package/esm/vendor/icon.mjs +0 -11
- package/esm/vendor/icon.mjs.map +0 -1
- package/esm/vendor/lodash.mjs +0 -1400
- package/esm/vendor/lodash.mjs.map +0 -1
- package/esm/vendor/runtime.mjs +0 -29
- package/esm/vendor/runtime.mjs.map +0 -1
- package/esm/vendor/shared.esm-bundler.mjs +0 -14
- package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
- package/esm/vendor/sizes.mjs +0 -27
- package/esm/vendor/sizes.mjs.map +0 -1
- package/esm/vendor/types.mjs +0 -19
- package/esm/vendor/types.mjs.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { stylePrefix as r } from "../__builtins__/configs/index.mjs";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
import "@formily/reactive";
|
|
5
|
-
import "@formily/core";
|
|
6
|
-
import "@formily/reactive-vue";
|
|
7
|
-
import "@formily/vue";
|
|
8
|
-
const s = `${r}-array-collapse`;
|
|
9
|
-
export {
|
|
10
|
-
s as prefixCls
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../src/array-collapse/utils.ts"],"sourcesContent":["import { stylePrefix } from '../__builtins__'\n\nexport const prefixCls = `${stylePrefix}-array-collapse`\n"],"names":["prefixCls","stylePrefix"],"mappings":";;;;;;;AAEO,MAAMA,IAAY,GAAGC,CAAW;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {};
|
|
8
|
-
rootEl: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
-
type: {
|
|
13
|
-
type: PropType<"card" | "divide">;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
-
type: {
|
|
18
|
-
type: PropType<"card" | "divide">;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
22
|
-
type: "card" | "divide";
|
|
23
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
export declare const ArrayItems: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
14
|
-
Item: {
|
|
15
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
-
type: {
|
|
17
|
-
type: import('vue').PropType<"card" | "divide">;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
21
|
-
type: "card" | "divide";
|
|
22
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
23
|
-
P: {};
|
|
24
|
-
B: {};
|
|
25
|
-
D: {};
|
|
26
|
-
C: {};
|
|
27
|
-
M: {};
|
|
28
|
-
Defaults: {};
|
|
29
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
-
type: {
|
|
31
|
-
type: import('vue').PropType<"card" | "divide">;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
35
|
-
type: "card" | "divide";
|
|
36
|
-
}>;
|
|
37
|
-
__isFragment?: never;
|
|
38
|
-
__isTeleport?: never;
|
|
39
|
-
__isSuspense?: never;
|
|
40
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
41
|
-
type: {
|
|
42
|
-
type: import('vue').PropType<"card" | "divide">;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
46
|
-
type: "card" | "divide";
|
|
47
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
48
|
-
$slots: {
|
|
49
|
-
default?(_: {}): any;
|
|
50
|
-
};
|
|
51
|
-
});
|
|
52
|
-
Index: {
|
|
53
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
54
|
-
P: {};
|
|
55
|
-
B: {};
|
|
56
|
-
D: {};
|
|
57
|
-
C: {};
|
|
58
|
-
M: {};
|
|
59
|
-
Defaults: {};
|
|
60
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
61
|
-
__isFragment?: never;
|
|
62
|
-
__isTeleport?: never;
|
|
63
|
-
__isSuspense?: never;
|
|
64
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
65
|
-
$slots: {
|
|
66
|
-
default?(_: {
|
|
67
|
-
index: number;
|
|
68
|
-
}): any;
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
SortHandle: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
72
|
-
Addition: import('vue').DefineComponent<import('../array-base/types').IArrayBaseAdditionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../array-base/types').IArrayBaseAdditionProps> & Readonly<{}>, {
|
|
73
|
-
method: "push" | "unshift";
|
|
74
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
75
|
-
Remove: {
|
|
76
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
77
|
-
P: {};
|
|
78
|
-
B: {};
|
|
79
|
-
D: {};
|
|
80
|
-
C: {};
|
|
81
|
-
M: {};
|
|
82
|
-
Defaults: {};
|
|
83
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
84
|
-
__isFragment?: never;
|
|
85
|
-
__isTeleport?: never;
|
|
86
|
-
__isSuspense?: never;
|
|
87
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
88
|
-
$slots: {
|
|
89
|
-
default?(_: {}): any;
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
MoveDown: {
|
|
93
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
94
|
-
P: {};
|
|
95
|
-
B: {};
|
|
96
|
-
D: {};
|
|
97
|
-
C: {};
|
|
98
|
-
M: {};
|
|
99
|
-
Defaults: {};
|
|
100
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
101
|
-
__isFragment?: never;
|
|
102
|
-
__isTeleport?: never;
|
|
103
|
-
__isSuspense?: never;
|
|
104
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
105
|
-
$slots: {
|
|
106
|
-
default?(_: {}): any;
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
MoveUp: {
|
|
110
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
111
|
-
P: {};
|
|
112
|
-
B: {};
|
|
113
|
-
D: {};
|
|
114
|
-
C: {};
|
|
115
|
-
M: {};
|
|
116
|
-
Defaults: {};
|
|
117
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
118
|
-
__isFragment?: never;
|
|
119
|
-
__isTeleport?: never;
|
|
120
|
-
__isSuspense?: never;
|
|
121
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
122
|
-
$slots: {
|
|
123
|
-
default?(_: {}): any;
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
useArray: typeof import('../array-base/utils').useArray;
|
|
127
|
-
useIndex: typeof import('../array-base/utils').useIndex;
|
|
128
|
-
useRecord: typeof import('../array-base/utils').useRecord;
|
|
129
|
-
};
|
|
130
|
-
export default ArrayItems;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, createElementBlock as s, openBlock as o, normalizeClass as _, renderSlot as M, ref as x, mergeProps as B, unref as e, createVNode as f, withCtx as y, Fragment as v, renderList as k, createBlock as $, createCommentVNode as D } from "vue";
|
|
2
|
-
import "element-plus";
|
|
3
|
-
import { autorun as E } from "@formily/reactive";
|
|
4
|
-
import "@formily/core";
|
|
5
|
-
import "@formily/reactive-vue";
|
|
6
|
-
import { useField as K, useFieldSchema as P, RecursionField as C } from "@formily/vue";
|
|
7
|
-
import { useCleanAttrs as U, composeExport as V } from "../__builtins__/shared/utils.mjs";
|
|
8
|
-
import { ArrayBase as r } from "../array-base/index.mjs";
|
|
9
|
-
import { stylePrefix as h } from "../__builtins__/configs/index.mjs";
|
|
10
|
-
import { isArr as b } from "@formily/shared";
|
|
11
|
-
import { VueDraggable as H } from "vue-draggable-plus";
|
|
12
|
-
import { useKey as N, getArrayItemSchema as z, isAdditionComponent as L } from "../array-base/utils.mjs";
|
|
13
|
-
import '../styles/array-items/index.css';const j = /* @__PURE__ */ R({
|
|
14
|
-
name: "FArrayItemsItem",
|
|
15
|
-
__name: "array-items-item",
|
|
16
|
-
props: {
|
|
17
|
-
type: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "card"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(I) {
|
|
23
|
-
const i = I, m = `${h}-array-items`;
|
|
24
|
-
return (n, c) => (o(), s("div", {
|
|
25
|
-
class: _(`${m}-${i.type}`)
|
|
26
|
-
}, [
|
|
27
|
-
M(n.$slots, "default")
|
|
28
|
-
], 2));
|
|
29
|
-
}
|
|
30
|
-
}), q = ["index"], G = /* @__PURE__ */ R({
|
|
31
|
-
name: "FArrayItems",
|
|
32
|
-
inheritAttrs: !1,
|
|
33
|
-
__name: "array-items",
|
|
34
|
-
setup(I) {
|
|
35
|
-
const i = K(), m = P(), n = i.value, c = m.value, u = `${h}-array-items`, { getKey: A, keyMap: l } = N(m.value), d = x(n.value), F = x(0);
|
|
36
|
-
E(() => {
|
|
37
|
-
d.value = [...n.value];
|
|
38
|
-
});
|
|
39
|
-
async function S(g) {
|
|
40
|
-
const { oldIndex: p, newIndex: t } = g;
|
|
41
|
-
b(l) && l.splice(t, 0, l.splice(p, 1)[0]), await n.move(p, t), F.value++;
|
|
42
|
-
}
|
|
43
|
-
const { props: w } = U(["value"]);
|
|
44
|
-
return (g, p) => (o(), s("div", B({ class: u }, e(w)), [
|
|
45
|
-
f(e(r), { "key-map": e(l) }, {
|
|
46
|
-
default: y(() => [
|
|
47
|
-
f(e(H), {
|
|
48
|
-
class: _(`${u}-list`),
|
|
49
|
-
"model-value": d.value,
|
|
50
|
-
handle: `.${e(h)}-array-base-sort-handle`,
|
|
51
|
-
animation: 150,
|
|
52
|
-
onEnd: S
|
|
53
|
-
}, {
|
|
54
|
-
default: y(() => [
|
|
55
|
-
(o(!0), s(v, null, k(d.value, (t, a) => (o(), $(e(r).Item, {
|
|
56
|
-
key: e(A)(t, a),
|
|
57
|
-
index: a,
|
|
58
|
-
record: t
|
|
59
|
-
}, {
|
|
60
|
-
default: y(() => [
|
|
61
|
-
(o(), s("div", {
|
|
62
|
-
key: e(A)(t, a),
|
|
63
|
-
class: _([`${u}-item-inner`]),
|
|
64
|
-
index: a
|
|
65
|
-
}, [
|
|
66
|
-
f(e(C), {
|
|
67
|
-
schema: e(z)(e(c), a),
|
|
68
|
-
name: a
|
|
69
|
-
}, null, 8, ["schema", "name"])
|
|
70
|
-
], 10, q))
|
|
71
|
-
]),
|
|
72
|
-
_: 2
|
|
73
|
-
}, 1032, ["index", "record"]))), 128))
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
}, 8, ["class", "model-value", "handle"]),
|
|
77
|
-
(o(!0), s(v, null, k(e(c).properties, (t, a) => (o(), s(v, { key: a }, [
|
|
78
|
-
e(L)(t) ? (o(), $(e(C), {
|
|
79
|
-
key: 0,
|
|
80
|
-
schema: t,
|
|
81
|
-
name: "addition"
|
|
82
|
-
}, null, 8, ["schema"])) : D("", !0)
|
|
83
|
-
], 64))), 128))
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["key-map"])
|
|
87
|
-
], 16));
|
|
88
|
-
}
|
|
89
|
-
}), oe = V(G, {
|
|
90
|
-
Item: j,
|
|
91
|
-
Index: r.Index,
|
|
92
|
-
SortHandle: r.SortHandle,
|
|
93
|
-
Addition: r.Addition,
|
|
94
|
-
Remove: r.Remove,
|
|
95
|
-
MoveDown: r.MoveDown,
|
|
96
|
-
MoveUp: r.MoveUp,
|
|
97
|
-
useArray: r.useArray,
|
|
98
|
-
useIndex: r.useIndex,
|
|
99
|
-
useRecord: r.useRecord
|
|
100
|
-
});
|
|
101
|
-
export {
|
|
102
|
-
oe as ArrayItems,
|
|
103
|
-
oe as default
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/array-items/array-items-item.vue","../../src/array-items/array-items.vue","../../src/array-items/index.ts"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { PropType } from 'vue'\nimport { stylePrefix } from '../__builtins__/configs'\n\ndefineOptions({\n name: 'FArrayItemsItem',\n})\n\nconst props = defineProps({\n type: {\n type: String as PropType<'card' | 'divide'>,\n default: 'card',\n },\n})\n\nconst prefixCls = `${stylePrefix}-array-items`\n</script>\n\n<template>\n <div\n :class=\"`${prefixCls}-${props.type}`\"\n >\n <slot />\n </div>\n</template>\n","<script lang=\"ts\" setup>\nimport type { ArrayField } from '@formily/core'\nimport { autorun } from '@formily/reactive'\nimport { isArr } from '@formily/shared'\nimport { RecursionField, useField, useFieldSchema } from '@formily/vue'\nimport { ref } from 'vue'\nimport { VueDraggable } from 'vue-draggable-plus'\nimport { useCleanAttrs } from '../__builtins__'\nimport { stylePrefix } from '../__builtins__/configs'\nimport { ArrayBase } from '../array-base'\nimport { getArrayItemSchema, isAdditionComponent, useKey } from '../array-base/utils'\n\ndefineOptions({\n name: 'FArrayItems',\n inheritAttrs: false,\n})\n\nconst fieldRef = useField<ArrayField>()\nconst schemaRef = useFieldSchema()\nconst field = fieldRef.value\nconst schema = schemaRef.value\n\nconst prefixCls = `${stylePrefix}-array-items`\nconst { getKey, keyMap } = useKey(schemaRef.value)\nconst dataSource = ref(field.value)\nconst triggerUpdateKey = ref(0)\n\nautorun(() => {\n dataSource.value = [...field.value]\n})\n\nasync function handleDragEnd(evt: { oldIndex: number, newIndex: number }) {\n const { oldIndex, newIndex } = evt\n if (isArr(keyMap)) {\n keyMap.splice(newIndex, 0, keyMap.splice(oldIndex, 1)[0])\n }\n await field.move(oldIndex, newIndex)\n triggerUpdateKey.value++\n}\nconst { props: arrayItemsProps } = useCleanAttrs(['value'])\n</script>\n\n<template>\n <div :class=\"prefixCls\" v-bind=\"arrayItemsProps\">\n <ArrayBase :key-map=\"keyMap\">\n <VueDraggable\n :class=\"`${prefixCls}-list`\"\n :model-value=\"dataSource\"\n :handle=\"`.${stylePrefix}-array-base-sort-handle`\"\n :animation=\"150\"\n @end=\"handleDragEnd\"\n >\n <ArrayBase.Item\n v-for=\"(element, index) of dataSource\"\n :key=\"getKey(element, index)\"\n :index=\"index\"\n :record=\"element\"\n >\n <div :key=\"getKey(element, index)\" :class=\"[`${prefixCls}-item-inner`]\" :index=\"index\">\n <RecursionField :schema=\"getArrayItemSchema(schema, index)\" :name=\"index\" />\n </div>\n </ArrayBase.Item>\n </VueDraggable>\n\n <template v-for=\"(itemSchema, key) of schema.properties\" :key=\"key\">\n <RecursionField v-if=\"isAdditionComponent(itemSchema)\" :schema=\"itemSchema\" name=\"addition\" />\n </template>\n </ArrayBase>\n </div>\n</template>\n","import { composeExport } from '../__builtins__/shared'\nimport { ArrayBase } from '../array-base'\nimport ArrayItemsItem from './array-items-item.vue'\nimport ArrayItemsInner from './array-items.vue'\nimport './style.scss'\n\nexport const ArrayItems = composeExport(ArrayItemsInner, {\n Item: ArrayItemsItem,\n Index: ArrayBase.Index,\n SortHandle: ArrayBase.SortHandle,\n Addition: ArrayBase.Addition,\n Remove: ArrayBase.Remove,\n MoveDown: ArrayBase.MoveDown,\n MoveUp: ArrayBase.MoveUp,\n useArray: ArrayBase.useArray,\n useIndex: ArrayBase.useIndex,\n useRecord: ArrayBase.useRecord,\n})\n\nexport default ArrayItems\n"],"names":["props","__props","prefixCls","stylePrefix","_createElementBlock","_normalizeClass","_renderSlot","_ctx","fieldRef","useField","schemaRef","useFieldSchema","field","schema","getKey","keyMap","useKey","dataSource","ref","triggerUpdateKey","autorun","handleDragEnd","evt","oldIndex","newIndex","isArr","arrayItemsProps","useCleanAttrs","_openBlock","_mergeProps","_unref","_createVNode","ArrayBase","VueDraggable","_Fragment","_renderList","element","index","_createBlock","RecursionField","getArrayItemSchema","itemSchema","key","isAdditionComponent","ArrayItems","composeExport","ArrayItemsInner","ArrayItemsItem"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,UAAMA,IAAQC,GAORC,IAAY,GAAGC,CAAW;2BAI9BC,EAIM,OAAA;AAAA,MAHH,OAAKC,EAAA,GAAKH,CAAS,IAAIF,EAAM,IAAI,EAAA;AAAA,IAAA;MAElCM,EAAQC,EAAA,QAAA,SAAA;AAAA,IAAA;;;;;;;ACLZ,UAAMC,IAAWC,EAAA,GACXC,IAAYC,EAAA,GACZC,IAAQJ,EAAS,OACjBK,IAASH,EAAU,OAEnBR,IAAY,GAAGC,CAAW,gBAC1B,EAAE,QAAAW,GAAQ,QAAAC,EAAA,IAAWC,EAAON,EAAU,KAAK,GAC3CO,IAAaC,EAAIN,EAAM,KAAK,GAC5BO,IAAmBD,EAAI,CAAC;AAE9B,IAAAE,EAAQ,MAAM;AACZ,MAAAH,EAAW,QAAQ,CAAC,GAAGL,EAAM,KAAK;AAAA,IACpC,CAAC;AAED,mBAAeS,EAAcC,GAA6C;AACxE,YAAM,EAAE,UAAAC,GAAU,UAAAC,EAAA,IAAaF;AAC/B,MAAIG,EAAMV,CAAM,KACdA,EAAO,OAAOS,GAAU,GAAGT,EA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AoC;AAAA,YAC1CZ,EAAAa,CAAA,EAAoBF,CAAU,UAApDH,EAA8FR,EAAAS,CAAA,GAAA;AAAA;cAAtC,QAAQE;AAAA,cAAY,MAAK;AAAA,YAAA;;;;;;;IC3D5EG,KAAaC,EAAcC,GAAiB;AAAA,EACvD,MAAMC;AAAAA,EACN,OAAOf,EAAU;AAAA,EACjB,YAAYA,EAAU;AAAA,EACtB,UAAUA,EAAU;AAAA,EACpB,QAAQA,EAAU;AAAA,EAClB,UAAUA,EAAU;AAAA,EACpB,QAAQA,EAAU;AAAA,EAClB,UAAUA,EAAU;AAAA,EACpB,UAAUA,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB,CAAC;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
tabTitleField: {
|
|
3
|
-
required: true;
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
};
|
|
6
|
-
showTitleFieldInTab: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
value: {
|
|
11
|
-
type: ArrayConstructor;
|
|
12
|
-
default: () => any[];
|
|
13
|
-
};
|
|
14
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
-
tabTitleField: {
|
|
16
|
-
required: true;
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
};
|
|
19
|
-
showTitleFieldInTab: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
value: {
|
|
24
|
-
type: ArrayConstructor;
|
|
25
|
-
default: () => any[];
|
|
26
|
-
};
|
|
27
|
-
}>> & Readonly<{}>, {
|
|
28
|
-
value: unknown[];
|
|
29
|
-
showTitleFieldInTab: boolean;
|
|
30
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
31
|
-
export default _default;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export declare const ArrayListTabs: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
-
tabTitleField: {
|
|
4
|
-
required: true;
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
};
|
|
7
|
-
showTitleFieldInTab: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
value: {
|
|
12
|
-
type: ArrayConstructor;
|
|
13
|
-
default: () => any[];
|
|
14
|
-
};
|
|
15
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
16
|
-
value: unknown[];
|
|
17
|
-
showTitleFieldInTab: boolean;
|
|
18
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
19
|
-
P: {};
|
|
20
|
-
B: {};
|
|
21
|
-
D: {};
|
|
22
|
-
C: {};
|
|
23
|
-
M: {};
|
|
24
|
-
Defaults: {};
|
|
25
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
-
tabTitleField: {
|
|
27
|
-
required: true;
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
};
|
|
30
|
-
showTitleFieldInTab: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
value: {
|
|
35
|
-
type: ArrayConstructor;
|
|
36
|
-
default: () => any[];
|
|
37
|
-
};
|
|
38
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
39
|
-
value: unknown[];
|
|
40
|
-
showTitleFieldInTab: boolean;
|
|
41
|
-
}>;
|
|
42
|
-
__isFragment?: never;
|
|
43
|
-
__isTeleport?: never;
|
|
44
|
-
__isSuspense?: never;
|
|
45
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
-
tabTitleField: {
|
|
47
|
-
required: true;
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
};
|
|
50
|
-
showTitleFieldInTab: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
value: {
|
|
55
|
-
type: ArrayConstructor;
|
|
56
|
-
default: () => any[];
|
|
57
|
-
};
|
|
58
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
59
|
-
value: unknown[];
|
|
60
|
-
showTitleFieldInTab: boolean;
|
|
61
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
62
|
-
Addition: import('vue').DefineComponent<import('../array-base/types').IArrayBaseAdditionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../array-base/types').IArrayBaseAdditionProps> & Readonly<{}>, {
|
|
63
|
-
method: "push" | "unshift";
|
|
64
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
65
|
-
Remove: {
|
|
66
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
67
|
-
P: {};
|
|
68
|
-
B: {};
|
|
69
|
-
D: {};
|
|
70
|
-
C: {};
|
|
71
|
-
M: {};
|
|
72
|
-
Defaults: {};
|
|
73
|
-
}, Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
74
|
-
__isFragment?: never;
|
|
75
|
-
__isTeleport?: never;
|
|
76
|
-
__isSuspense?: never;
|
|
77
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../array-base/types').IArrayBaseOperationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
78
|
-
$slots: {
|
|
79
|
-
default?(_: {}): any;
|
|
80
|
-
};
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
export default ArrayListTabs;
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, ref as C, createElementBlock as i, openBlock as l, normalizeClass as u, unref as e, createBlock as y, withCtx as f, createElementVNode as I, createCommentVNode as A, createVNode as v, Fragment as k, renderList as $, toDisplayString as q, normalizeStyle as z } from "vue";
|
|
2
|
-
import { ElScrollbar as K, ElBadge as N, ElEmpty as V } from "element-plus";
|
|
3
|
-
import { observable as D, autorun as w } from "@formily/reactive";
|
|
4
|
-
import "@formily/core";
|
|
5
|
-
import "@formily/reactive-vue";
|
|
6
|
-
import { useField as M, useFieldSchema as G, RecursionField as T } from "@formily/vue";
|
|
7
|
-
import { composeExport as H } from "../__builtins__/shared/utils.mjs";
|
|
8
|
-
import { ArrayBase as m } from "../array-base/index.mjs";
|
|
9
|
-
import { isRemoveComponent as B, isAdditionComponent as J, getArrayItemSchema as O } from "../array-base/utils.mjs";
|
|
10
|
-
import { prefixCls as p, isTabTitleComponent as E } from "./utils.mjs";
|
|
11
|
-
import '../styles/array-list-tabs/index.css';const Q = ["id", "aria-controls", "onClick"], U = ["id", "aria-labelledby"], W = /* @__PURE__ */ P({
|
|
12
|
-
name: "FArrayListTabs",
|
|
13
|
-
__name: "array-list-tabs",
|
|
14
|
-
props: {
|
|
15
|
-
tabTitleField: {
|
|
16
|
-
required: !0,
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
showTitleFieldInTab: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
value: {
|
|
24
|
-
type: Array,
|
|
25
|
-
default: () => []
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
setup(R) {
|
|
29
|
-
const o = R, S = M(), F = G(), r = S.value, h = F.value, d = C(0), { getKey: g, keyMap: j } = m.useKey(F.value), b = D.computed(() => o.showTitleFieldInTab ? r.value.map((s, n) => {
|
|
30
|
-
const a = r.path.concat(n);
|
|
31
|
-
return r.form.queryFeedbacks({
|
|
32
|
-
type: "error",
|
|
33
|
-
path: `${a}.*(!${o.tabTitleField})`
|
|
34
|
-
}).length;
|
|
35
|
-
}) : r.value.map((s, n) => {
|
|
36
|
-
const a = r.path.concat(n);
|
|
37
|
-
return r.form.queryFeedbacks({
|
|
38
|
-
type: "error",
|
|
39
|
-
path: `${a}.**`
|
|
40
|
-
}).length;
|
|
41
|
-
})), _ = C();
|
|
42
|
-
w(() => {
|
|
43
|
-
if (o.showTitleFieldInTab) {
|
|
44
|
-
const s = r.value.map((n, a) => [
|
|
45
|
-
a,
|
|
46
|
-
b.value[a]
|
|
47
|
-
].join("|")).join(",");
|
|
48
|
-
_.value = s;
|
|
49
|
-
} else {
|
|
50
|
-
const s = r.value.map((n, a) => [
|
|
51
|
-
a,
|
|
52
|
-
n == null ? void 0 : n[o.tabTitleField],
|
|
53
|
-
b.value[a]
|
|
54
|
-
].join("|")).join(",");
|
|
55
|
-
_.value = s;
|
|
56
|
-
}
|
|
57
|
-
}), w(() => {
|
|
58
|
-
r.value.length > 0 && d.value >= r.value.length && (d.value = r.value.length - 1);
|
|
59
|
-
});
|
|
60
|
-
function L(s) {
|
|
61
|
-
return `${(s == null ? void 0 : s[o.tabTitleField]) || "未命名条目"}`;
|
|
62
|
-
}
|
|
63
|
-
return (s, n) => (l(), i("div", {
|
|
64
|
-
class: u(e(p))
|
|
65
|
-
}, [
|
|
66
|
-
(l(), y(e(m), {
|
|
67
|
-
key: o.value.length,
|
|
68
|
-
"key-map": e(j)
|
|
69
|
-
}, {
|
|
70
|
-
default: f(() => [
|
|
71
|
-
I("ul", {
|
|
72
|
-
class: u(`${e(p)}_list`)
|
|
73
|
-
}, [
|
|
74
|
-
v(e(K), {
|
|
75
|
-
class: u(`${e(p)}_list--scroll-wrapper`)
|
|
76
|
-
}, {
|
|
77
|
-
default: f(() => [
|
|
78
|
-
(l(!0), i(k, null, $(o.value, (a, t) => (l(), y(e(m).Item, {
|
|
79
|
-
key: t,
|
|
80
|
-
index: t,
|
|
81
|
-
record: a
|
|
82
|
-
}, {
|
|
83
|
-
default: f(() => [
|
|
84
|
-
(l(), i("li", {
|
|
85
|
-
id: `${e(r).props.name}-tab-${t}`,
|
|
86
|
-
key: _.value,
|
|
87
|
-
class: u([
|
|
88
|
-
`${e(p)}_list-item`,
|
|
89
|
-
d.value === t && "is-active"
|
|
90
|
-
]),
|
|
91
|
-
role: "tab",
|
|
92
|
-
"aria-controls": `${e(r).props.name}-tab-panel-${t}`,
|
|
93
|
-
onClick: () => d.value = t
|
|
94
|
-
}, [
|
|
95
|
-
I("div", {
|
|
96
|
-
class: u(`${e(p)}_list-item--content`)
|
|
97
|
-
}, [
|
|
98
|
-
v(e(N), {
|
|
99
|
-
class: u([`${e(p)}-errors-badge`]),
|
|
100
|
-
value: e(b).value[t],
|
|
101
|
-
offset: [5, 0],
|
|
102
|
-
hidden: e(b).value[t] === 0
|
|
103
|
-
}, {
|
|
104
|
-
default: f(() => [
|
|
105
|
-
o.showTitleFieldInTab ? (l(), y(e(T), {
|
|
106
|
-
key: 1,
|
|
107
|
-
schema: e(h).items,
|
|
108
|
-
name: t,
|
|
109
|
-
"filter-properties": (c) => e(E)(c, o.tabTitleField),
|
|
110
|
-
"only-render-properties": ""
|
|
111
|
-
}, null, 8, ["schema", "name", "filter-properties"])) : (l(), i("span", {
|
|
112
|
-
key: 0,
|
|
113
|
-
class: u(`${e(p)}_list-item--title`)
|
|
114
|
-
}, q(L(a)), 3))
|
|
115
|
-
]),
|
|
116
|
-
_: 2
|
|
117
|
-
}, 1032, ["class", "value", "hidden"])
|
|
118
|
-
], 2),
|
|
119
|
-
v(e(T), {
|
|
120
|
-
schema: e(h).items,
|
|
121
|
-
name: t,
|
|
122
|
-
"filter-properties": (c) => e(B)(c),
|
|
123
|
-
"only-render-properties": ""
|
|
124
|
-
}, null, 8, ["schema", "name", "filter-properties"])
|
|
125
|
-
], 10, Q))
|
|
126
|
-
]),
|
|
127
|
-
_: 2
|
|
128
|
-
}, 1032, ["index", "record"]))), 128))
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["class"]),
|
|
132
|
-
(l(!0), i(k, null, $(e(h).properties, (a, t) => (l(), i(k, { key: t }, [
|
|
133
|
-
e(J)(a) ? (l(), y(e(T), {
|
|
134
|
-
key: 0,
|
|
135
|
-
schema: a,
|
|
136
|
-
name: "addition"
|
|
137
|
-
}, null, 8, ["schema"])) : A("", !0)
|
|
138
|
-
], 64))), 128))
|
|
139
|
-
], 2),
|
|
140
|
-
o.value.length === 0 ? (l(), i("div", {
|
|
141
|
-
key: 0,
|
|
142
|
-
class: u(`${e(p)}-tabpane`)
|
|
143
|
-
}, [
|
|
144
|
-
v(e(V), { "image-size": 100 })
|
|
145
|
-
], 2)) : A("", !0),
|
|
146
|
-
(l(!0), i(k, null, $(o.value, (a, t) => (l(), y(e(m).Item, {
|
|
147
|
-
key: e(g)(a, t),
|
|
148
|
-
index: t,
|
|
149
|
-
record: a
|
|
150
|
-
}, {
|
|
151
|
-
default: f(() => [
|
|
152
|
-
(l(), i("div", {
|
|
153
|
-
id: `${e(r).props.name}-tab-panel-${t}`,
|
|
154
|
-
key: e(g)(a, t),
|
|
155
|
-
class: u(`${e(p)}-tabpane`),
|
|
156
|
-
style: z({ display: d.value === t ? void 0 : "none" }),
|
|
157
|
-
role: "tabpanel",
|
|
158
|
-
"aria-labelledby": `${e(r).props.name}-tab-${t}`
|
|
159
|
-
}, [
|
|
160
|
-
v(e(T), {
|
|
161
|
-
schema: e(O)(e(h), t),
|
|
162
|
-
name: t,
|
|
163
|
-
"filter-properties": (c) => e(B)(c) ? !1 : o.showTitleFieldInTab ? !e(E)(c, o.tabTitleField) : !0,
|
|
164
|
-
"only-render-properties": ""
|
|
165
|
-
}, null, 8, ["schema", "name", "filter-properties"])
|
|
166
|
-
], 14, U))
|
|
167
|
-
]),
|
|
168
|
-
_: 2
|
|
169
|
-
}, 1032, ["index", "record"]))), 128))
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
}, 8, ["key-map"]))
|
|
173
|
-
], 2));
|
|
174
|
-
}
|
|
175
|
-
}), se = H(W, {
|
|
176
|
-
Addition: m.Addition,
|
|
177
|
-
Remove: m.Remove
|
|
178
|
-
});
|
|
179
|
-
export {
|
|
180
|
-
se as ArrayListTabs,
|
|
181
|
-
se as default
|
|
182
|
-
};
|
|
183
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/array-list-tabs/array-list-tabs.vue","../../src/array-list-tabs/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ArrayField } from '@formily/core'\nimport type { ISchema } from '@formily/json-schema'\nimport { autorun, observable } from '@formily/reactive'\nimport { RecursionField, useField, useFieldSchema } from '@formily/vue'\nimport { ElBadge, ElEmpty, ElScrollbar } from 'element-plus'\nimport { ref } from 'vue'\nimport { ArrayBase } from '../array-base'\nimport { getArrayItemSchema, isAdditionComponent, isRemoveComponent } from '../array-base/utils'\nimport { isTabTitleComponent, prefixCls } from './utils'\nimport './style.scss'\n\ndefineOptions({\n name: 'FArrayListTabs',\n})\n\nconst props = defineProps({\n tabTitleField: {\n required: true,\n type: String,\n },\n showTitleFieldInTab: {\n type: Boolean,\n default: false,\n },\n value: {\n type: Array,\n default: () => [],\n },\n})\n\nconst fieldRef = useField<ArrayField>()\nconst schemaRef = useFieldSchema()\nconst field = fieldRef.value\nconst schema = schemaRef.value\n\nconst activeIndex = ref(0)\nconst { getKey, keyMap } = ArrayBase.useKey(schemaRef.value)\n\nconst errorCountList = observable.computed(() => {\n if (props.showTitleFieldInTab) {\n return field.value.map((item, index) => {\n const path = field.path.concat(index)\n return field.form.queryFeedbacks({\n type: 'error',\n path: `${path}.*(!${props.tabTitleField})`,\n }).length\n })\n }\n return field.value.map((item, index) => {\n const path = field.path.concat(index)\n return field.form.queryFeedbacks({\n type: 'error',\n path: `${path}.**`,\n }).length\n })\n})\n\n// 保证arrayBase在必要时重新渲染\nconst arrayBaseKey = ref()\n\nautorun(() => {\n if (props.showTitleFieldInTab) {\n const key = field.value.map((item, index) => {\n const keyParts = [\n index,\n errorCountList.value[index],\n ]\n return keyParts.join('|')\n }).join(',')\n arrayBaseKey.value = key\n }\n else {\n const key = field.value.map((item, index) => {\n const keyParts = [\n index,\n item?.[props.tabTitleField],\n errorCountList.value[index],\n ]\n return keyParts.join('|')\n }).join(',')\n arrayBaseKey.value = key\n }\n})\n\nautorun(() => {\n if (field.value.length > 0 && activeIndex.value >= field.value.length) {\n activeIndex.value = field.value.length - 1\n }\n})\n\nfunction getTabTitle(item) {\n return `${item?.[props.tabTitleField] || '未命名条目'}`\n}\n</script>\n\n<template>\n <div :class=\"prefixCls\">\n <ArrayBase :key=\"props.value.length\" :key-map=\"keyMap\">\n <ul :class=\"`${prefixCls}_list`\">\n <ElScrollbar :class=\"`${prefixCls}_list--scroll-wrapper`\">\n <ArrayBase.Item\n v-for=\"(item, index) in props.value\"\n :key=\"index\"\n :index=\"index\"\n :record=\"item\"\n >\n <li\n :id=\"`${field.props.name}-tab-${index}`\"\n :key=\"arrayBaseKey\"\n :class=\"[\n `${prefixCls}_list-item`,\n activeIndex === index && 'is-active',\n ]\"\n role=\"tab\"\n :aria-controls=\"`${field.props.name}-tab-panel-${index}`\"\n @click=\"() => activeIndex = index\"\n >\n <div :class=\"`${prefixCls}_list-item--content`\">\n <ElBadge\n :class=\"[`${prefixCls}-errors-badge`]\"\n :value=\"errorCountList.value[index]\"\n :offset=\"[5, 0]\"\n :hidden=\"errorCountList.value[index] === 0\"\n >\n <template v-if=\"!props.showTitleFieldInTab\">\n <span :class=\"`${prefixCls}_list-item--title`\">{{ getTabTitle(item) }}</span>\n </template>\n <template v-else>\n <RecursionField\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isTabTitleComponent(schema, props.tabTitleField)\"\n only-render-properties\n />\n </template>\n </ElBadge>\n </div>\n <!-- remove icon -->\n <RecursionField\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isRemoveComponent(schema)\"\n only-render-properties\n />\n </li>\n </ArrayBase.Item>\n </ElScrollbar>\n <template v-for=\"(property, key) in schema.properties\" :key=\"key\">\n <RecursionField\n v-if=\"isAdditionComponent(property)\"\n :schema=\"property\"\n name=\"addition\"\n />\n </template>\n </ul>\n <div v-if=\"props.value.length === 0\" :class=\"`${prefixCls}-tabpane`\">\n <ElEmpty :image-size=\"100\" />\n </div>\n <ArrayBase.Item\n v-for=\"(item, index) in props.value\"\n :key=\"getKey(item, index)\"\n :index=\"index\"\n :record=\"item\"\n >\n <!-- tab-panel -->\n <div\n :id=\"`${field.props.name}-tab-panel-${index}`\"\n :key=\"getKey(item, index)\"\n :class=\"`${prefixCls}-tabpane`\"\n :style=\"{ display: activeIndex === index ? undefined : 'none' }\"\n role=\"tabpanel\"\n :aria-labelledby=\"`${field.props.name}-tab-${index}`\"\n >\n <RecursionField\n :schema=\"getArrayItemSchema(schema, index)\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => {\n if (isRemoveComponent(schema)) {\n return false\n }\n if (props.showTitleFieldInTab) {\n return !isTabTitleComponent(schema, props.tabTitleField)\n }\n return true\n }\"\n only-render-properties\n />\n </div>\n </ArrayBase.Item>\n </ArrayBase>\n </div>\n</template>\n","import { composeExport } from '../__builtins__/shared'\r\nimport { ArrayBase } from '../array-base'\r\nimport ArrayListTabsInner from './array-list-tabs.vue'\r\nimport './style.scss'\r\n\r\nexport const ArrayListTabs = composeExport(ArrayListTabsInner, {\r\n Addition: ArrayBase.Addition,\r\n Remove: ArrayBase.Remove,\r\n})\r\n\r\nexport default ArrayListTabs\r\n"],"names":["props","__props","fieldRef","useField","schemaRef","useFieldSchema","field","schema","activeIndex","ref","getKey","keyMap","ArrayBase","errorCountList","observable","item","index","path","arrayBaseKey","autorun","key","getTabTitle","_createElementBlock","_unref","prefixCls","_createBlock","_createElementVNode","_createVNode","ElScrollbar","_openBlock","_Fragment","_normalizeClass","ElBadge","RecursionField","isTabTitleComponent","_toDisplayString","isRemoveComponent","property","isAdditionComponent","ElEmpty","_normalizeStyle","getArrayItemSchema","ArrayListTabs","composeExport","ArrayListTabsInner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAeRC,IAAWC,EAAA,GACXC,IAAYC,EAAA,GACZC,IAAQJ,EAAS,OACjBK,IAASH,EAAU,OAEnBI,IAAcC,EAAI,CAAC,GACnB,EAAE,QAAAC,GAAQ,QAAAC,EAAA,IAAWC,EAAU,OAAOR,EAAU,KAAK,GAErDS,IAAiBC,EAAW,SAAS,MACrCd,EAAM,sBACDM,EAAM,MAAM,IAAI,CAACS,GAAMC,MAAU;AACtC,YAAMC,IAAOX,EAAM,KAAK,OAAOU,CAAK;AACpC,aAAOV,EAAM,KAAK,eAAe;AAAA,QAC/B,MAAM;AAAA,QACN,MAAM,GAAGW,CAAI,OAAOjB,EAAM,aAAa;AAAA,MAAA,CACxC,EAAE;AAAA,IACL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