orion-design 0.1.31 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
- package/dist/Throne/hooks/use-throne-context.js +15 -0
- package/dist/Throne/hooks/use-throne-context.js.map +1 -0
- package/dist/Throne/index.d.ts +1 -1
- package/dist/Throne/index.js +14 -30
- package/dist/Throne/index.js.map +1 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/Button/index.js +36 -41
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Flex/index.js +89 -122
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.js +2 -2
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
- package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
- package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
- package/dist/components/Form/LovInput/index.js +4 -4
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
- package/dist/components/Form/MultiTableSelect/index.js +7 -0
- package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
- package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
- package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
- package/dist/components/Form/hooks/index.js +69 -127
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +790 -829
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Form/utils/index.js +18 -30
- package/dist/components/Form/utils/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +510 -6
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
- package/dist/components/LovTable/index.d.ts +489 -5
- package/dist/components/LovTable/index.js +104 -179
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Modal/index.js +56 -111
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.d.ts +1 -1
- package/dist/components/Modal/types.js +3 -4
- package/dist/components/Modal/types.js.map +1 -1
- package/dist/components/Modal/useModal.js +5 -5
- package/dist/components/Modal/useModal.js.map +1 -1
- package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +880 -0
- package/dist/components/MultiTableSelectPagetable/index.d.ts +462 -0
- package/dist/components/MultiTableSelectPagetable/index.js +164 -0
- package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +96 -3
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +14 -1
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +14 -1
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +14 -1
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +14 -1
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +14 -1
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +14 -1
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +14 -1
- package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
- package/dist/components/Pagetable/hooks/useCode.js +24 -0
- package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
- package/dist/components/Pagetable/hooks/useColumns.js +85 -88
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +159 -2
- package/dist/components/Pagetable/index.js +601 -684
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.js +54 -92
- package/dist/components/Pagetable/utils/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +80 -2
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
- package/dist/components/Querytable/hooks/useColumns.js +79 -82
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +147 -1
- package/dist/components/Querytable/index.js +526 -579
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Querytable/utils/index.js +54 -92
- package/dist/components/Querytable/utils/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.js +74 -100
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/Tabs/constants.js +2 -2
- package/dist/components/Tabs/constants.js.map +1 -1
- package/dist/components/Tabs/index.js +358 -603
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Tabs/tab-bar.js +6 -6
- package/dist/components/Tabs/tab-bar.js.map +1 -1
- package/dist/components/Tabs/tab-pane.js +3 -3
- package/dist/components/Tabs/tab-pane.js.map +1 -1
- package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
- package/dist/components/_constants/aria.js +2 -2
- package/dist/components/_constants/aria.js.map +1 -1
- package/dist/components/_constants/event.js +4 -6
- package/dist/components/_constants/event.js.map +1 -1
- package/dist/components/_constants/index.js +6 -6
- package/dist/components/_hooks/index.js +7 -7
- package/dist/components/_hooks/use-namespace/index.js +39 -74
- package/dist/components/_hooks/use-namespace/index.js.map +1 -1
- package/dist/components/_hooks/use-ordered-children/index.js +19 -29
- package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
- package/dist/components/_util/arrays.js +5 -9
- package/dist/components/_util/arrays.js.map +1 -1
- package/dist/components/_util/browser.js +6 -6
- package/dist/components/_util/browser.js.map +1 -1
- package/dist/components/_util/classNames.js +17 -22
- package/dist/components/_util/classNames.js.map +1 -1
- package/dist/components/_util/dom/aria.js +39 -74
- package/dist/components/_util/dom/aria.js.map +1 -1
- package/dist/components/_util/dom/element.js +8 -9
- package/dist/components/_util/dom/element.js.map +1 -1
- package/dist/components/_util/dom/event.js +7 -14
- package/dist/components/_util/dom/event.js.map +1 -1
- package/dist/components/_util/dom/index.js +36 -36
- package/dist/components/_util/dom/position.js +25 -49
- package/dist/components/_util/dom/position.js.map +1 -1
- package/dist/components/_util/dom/scroll.js +61 -103
- package/dist/components/_util/dom/scroll.js.map +1 -1
- package/dist/components/_util/dom/style.js +50 -65
- package/dist/components/_util/dom/style.js.map +1 -1
- package/dist/components/_util/easings.js +4 -8
- package/dist/components/_util/easings.js.map +1 -1
- package/dist/components/_util/error.js +11 -12
- package/dist/components/_util/error.js.map +1 -1
- package/dist/components/_util/functions.js +3 -3
- package/dist/components/_util/i18n.js +2 -2
- package/dist/components/_util/i18n.js.map +1 -1
- package/dist/components/_util/index.js +137 -137
- package/dist/components/_util/isValid.js +2 -4
- package/dist/components/_util/isValid.js.map +1 -1
- package/dist/components/_util/objects.js +14 -18
- package/dist/components/_util/objects.js.map +1 -1
- package/dist/components/_util/props-util/index.js +20 -46
- package/dist/components/_util/props-util/index.js.map +1 -1
- package/dist/components/_util/props-util/initDefaultProps.js +10 -18
- package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
- package/dist/components/_util/raf.js +4 -5
- package/dist/components/_util/raf.js.map +1 -1
- package/dist/components/_util/rand.js +3 -4
- package/dist/components/_util/rand.js.map +1 -1
- package/dist/components/_util/strings.js +8 -9
- package/dist/components/_util/strings.js.map +1 -1
- package/dist/components/_util/throttleByRaf.js +10 -16
- package/dist/components/_util/throttleByRaf.js.map +1 -1
- package/dist/components/_util/type.js +38 -41
- package/dist/components/_util/type.js.map +1 -1
- package/dist/components/_util/types.js +22 -41
- package/dist/components/_util/types.js.map +1 -1
- package/dist/components/_util/typescript.js +2 -2
- package/dist/components/_util/typescript.js.map +1 -1
- package/dist/components/_util/util.js +43 -85
- package/dist/components/_util/util.js.map +1 -1
- package/dist/components/_util/vue/global-node.js +15 -27
- package/dist/components/_util/vue/global-node.js.map +1 -1
- package/dist/components/_util/vue/icon.js +25 -29
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/_util/vue/index.js +41 -41
- package/dist/components/_util/vue/install.js +18 -35
- package/dist/components/_util/vue/install.js.map +1 -1
- package/dist/components/_util/vue/props/index.js +6 -6
- package/dist/components/_util/vue/props/runtime.js +30 -46
- package/dist/components/_util/vue/props/runtime.js.map +1 -1
- package/dist/components/_util/vue/refs.js +6 -12
- package/dist/components/_util/vue/refs.js.map +1 -1
- package/dist/components/_util/vue/size.js +3 -5
- package/dist/components/_util/vue/size.js.map +1 -1
- package/dist/components/_util/vue/validator.js +4 -5
- package/dist/components/_util/vue/validator.js.map +1 -1
- package/dist/components/_util/vue/vnode.js +54 -100
- package/dist/components/_util/vue/vnode.js.map +1 -1
- package/dist/components/_util/vue-types/index.js +220 -231
- package/dist/components/_util/vue-types/index.js.map +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +24 -20
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +43 -38
- package/dist/components/index.js.map +1 -1
- package/dist/components-DP9bnDLm.js +48 -0
- package/dist/components-DP9bnDLm.js.map +1 -0
- package/dist/error/OrionError.js +4 -8
- package/dist/error/OrionError.js.map +1 -1
- package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
- package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
- package/dist/index.css +1 -797
- package/dist/index.d.ts +1 -0
- package/dist/index.js +46 -36
- package/dist/index.js.map +1 -1
- package/dist/print/LodopFuncs.js +43 -101
- package/dist/print/LodopFuncs.js.map +1 -1
- package/dist/print/index.js +108 -200
- package/dist/print/index.js.map +1 -1
- package/dist/request/ErrorHandlerChain.js +14 -17
- package/dist/request/ErrorHandlerChain.js.map +1 -1
- package/dist/request/RequestFilterChain.js +13 -16
- package/dist/request/RequestFilterChain.js.map +1 -1
- package/dist/request/ResponseParserChain.js +14 -17
- package/dist/request/ResponseParserChain.js.map +1 -1
- package/dist/request/disivion/DateSerializer.js +22 -47
- package/dist/request/disivion/DateSerializer.js.map +1 -1
- package/dist/request/disivion/DivisionErrorHandler.js +25 -40
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
- package/dist/request/disivion/DivisionResponseParser.js +10 -16
- package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
- package/dist/request/disivion/index.js +201 -305
- package/dist/request/disivion/index.js.map +1 -1
- package/dist/request/error/BizExceptionResponseError.js +5 -11
- package/dist/request/error/BizExceptionResponseError.js.map +1 -1
- package/dist/request/error/ExceptionResponseError.js +5 -11
- package/dist/request/error/ExceptionResponseError.js.map +1 -1
- package/dist/request/error/ResponseError.js +4 -9
- package/dist/request/error/ResponseError.js.map +1 -1
- package/dist/request/error/SessionExceptionResponseError.js +5 -11
- package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
- package/dist/request/index.js +11 -11
- package/dist/utils/DateUtil.js +33 -48
- package/dist/utils/DateUtil.js.map +1 -1
- package/dist/utils/NumberUtil.js +6 -6
- package/dist/utils/NumberUtil.js.map +1 -1
- package/dist/utils/cloneDeep.js +2 -2
- package/dist/utils/delay.js +3 -3
- package/dist/utils/delay.js.map +1 -1
- package/dist/utils/functions.js +3 -3
- package/dist/utils/index.js +12 -12
- package/dist/utils/md5.js +93 -191
- package/dist/utils/md5.js.map +1 -1
- package/dist/utils/uuid.js +25 -35
- package/dist/utils/uuid.js.map +1 -1
- package/dist/version/index.js +2 -2
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +2 -2
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/_commonjsHelpers-DWwsNxpa.js +0 -9
- package/dist/_commonjsHelpers-DWwsNxpa.js.map +0 -1
- package/dist/components-8oZ2kpUC.js +0 -27
- package/dist/components-8oZ2kpUC.js.map +0 -1
- package/dist/components-B3d9m_tn.js +0 -27
- package/dist/components-B3d9m_tn.js.map +0 -1
- package/dist/functions-BeMkokbY.js +0 -63
- package/dist/functions-BeMkokbY.js.map +0 -1
- package/dist/index-BOKLZnqH.js +0 -54
- package/dist/index-BOKLZnqH.js.map +0 -1
- package/dist/index-D1m0KTpK.js +0 -69
- package/dist/index-D1m0KTpK.js.map +0 -1
- package/dist/index-DR5ZP7mD.js +0 -160
- package/dist/index-DR5ZP7mD.js.map +0 -1
- package/dist/index-DkwIULcN.js +0 -200
- package/dist/index-DkwIULcN.js.map +0 -1
@@ -1,15 +1,15 @@
|
|
1
1
|
import "lodash-es";
|
2
2
|
import "vue";
|
3
|
-
import { buildProps, definePropType } from "../_util/vue/props/runtime.js";
|
3
|
+
import { buildProps as r, definePropType as o } from "../_util/vue/props/runtime.js";
|
4
4
|
import "element-plus";
|
5
|
-
import { mutable } from "../_util/typescript.js";
|
6
|
-
const
|
5
|
+
import { mutable as t } from "../_util/typescript.js";
|
6
|
+
const b = r({
|
7
7
|
tabs: {
|
8
|
-
type:
|
9
|
-
default: () =>
|
8
|
+
type: o(Array),
|
9
|
+
default: () => t([])
|
10
10
|
}
|
11
11
|
});
|
12
12
|
export {
|
13
|
-
tabBarProps
|
13
|
+
b as tabBarProps
|
14
14
|
};
|
15
15
|
//# sourceMappingURL=tab-bar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tab-bar.js","sources":["../../../src/components/Tabs/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '../_util'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type { TabsPaneContext } from './constants'\r\nimport type TabBar from './tab-bar.vue'\r\n\r\nexport const tabBarProps = buildProps({\r\n tabs: {\r\n type: definePropType<TabsPaneContext[]>(Array),\r\n default: () => mutable([] as const),\r\n },\r\n} as const)\r\n\r\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\r\nexport type TabBarInstance = InstanceType<typeof TabBar>\r\n"],"names":[],"mappings":";;;;;AAKO,
|
1
|
+
{"version":3,"file":"tab-bar.js","sources":["../../../src/components/Tabs/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '../_util'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type { TabsPaneContext } from './constants'\r\nimport type TabBar from './tab-bar.vue'\r\n\r\nexport const tabBarProps = buildProps({\r\n tabs: {\r\n type: definePropType<TabsPaneContext[]>(Array),\r\n default: () => mutable([] as const),\r\n },\r\n} as const)\r\n\r\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\r\nexport type TabBarInstance = InstanceType<typeof TabBar>\r\n"],"names":["tabBarProps","buildProps","definePropType","mutable"],"mappings":";;;;;AAKO,MAAMA,IAAcC,EAAW;AAAA,EACpC,MAAM;AAAA,IACJ,MAAMC,EAAkC,KAAK;AAAA,IAC7C,SAAS,MAAMC,EAAQ,EAAW;AAAA,EACpC;AACF,CAAU;"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import "lodash-es";
|
2
2
|
import "vue";
|
3
|
-
import { buildProps } from "../_util/vue/props/runtime.js";
|
3
|
+
import { buildProps as o } from "../_util/vue/props/runtime.js";
|
4
4
|
import "element-plus";
|
5
|
-
const
|
5
|
+
const r = o({
|
6
6
|
/**
|
7
7
|
* @description title of the tab
|
8
8
|
*/
|
@@ -30,6 +30,6 @@ const tabPaneProps = buildProps({
|
|
30
30
|
lazy: Boolean
|
31
31
|
});
|
32
32
|
export {
|
33
|
-
tabPaneProps
|
33
|
+
r as tabPaneProps
|
34
34
|
};
|
35
35
|
//# sourceMappingURL=tab-pane.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tab-pane.js","sources":["../../../src/components/Tabs/tab-pane.ts"],"sourcesContent":["import { buildProps } from '../_util'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type TabPane from './tab-pane.vue'\r\n\r\nexport const tabPaneProps = buildProps({\r\n /**\r\n * @description title of the tab\r\n */\r\n label: {\r\n type: String,\r\n default: '',\r\n },\r\n /**\r\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\r\n */\r\n name: {\r\n type: [String, Number],\r\n },\r\n /**\r\n * @description whether Tab is closable\r\n */\r\n closable: Boolean,\r\n /**\r\n * @description whether Tab is disabled\r\n */\r\n disabled: Boolean,\r\n /**\r\n * @description whether Tab is lazily rendered\r\n */\r\n lazy: Boolean,\r\n} as const)\r\n\r\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\r\n\r\nexport type TabPaneInstance = InstanceType<typeof TabPane>\r\n"],"names":[],"mappings":";;;;AAIO,
|
1
|
+
{"version":3,"file":"tab-pane.js","sources":["../../../src/components/Tabs/tab-pane.ts"],"sourcesContent":["import { buildProps } from '../_util'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type TabPane from './tab-pane.vue'\r\n\r\nexport const tabPaneProps = buildProps({\r\n /**\r\n * @description title of the tab\r\n */\r\n label: {\r\n type: String,\r\n default: '',\r\n },\r\n /**\r\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\r\n */\r\n name: {\r\n type: [String, Number],\r\n },\r\n /**\r\n * @description whether Tab is closable\r\n */\r\n closable: Boolean,\r\n /**\r\n * @description whether Tab is disabled\r\n */\r\n disabled: Boolean,\r\n /**\r\n * @description whether Tab is lazily rendered\r\n */\r\n lazy: Boolean,\r\n} as const)\r\n\r\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\r\n\r\nexport type TabPaneInstance = InstanceType<typeof TabPane>\r\n"],"names":["tabPaneProps","buildProps"],"mappings":";;;;AAIO,MAAMA,IAAeC,EAAW;AAAA;AAAA;AAAA;AAAA,EAIrC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAM;AAAA,IACJ,MAAM,CAAC,QAAQ,MAAM;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAU;AAAA;AAAA;AAAA;AAAA,EAIV,UAAU;AAAA;AAAA;AAAA;AAAA,EAIV,MAAM;AACR,CAAU;"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
export declare const throneContextProviderProps: () => {
|
3
|
+
context: {
|
4
|
+
type: PropType<Record<string, any>>;
|
5
|
+
default: Record<string, any>;
|
6
|
+
};
|
7
|
+
};
|
8
|
+
export type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>;
|
9
|
+
export type ThroneContextProviderContext = Partial<ThroneContextProviderProps>;
|
10
|
+
declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<ExtractPropTypes<{
|
11
|
+
context: {
|
12
|
+
type: PropType<Record<string, any>>;
|
13
|
+
default: Record<string, any>;
|
14
|
+
};
|
15
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
16
|
+
[key: string]: any;
|
17
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
18
|
+
context: {
|
19
|
+
type: PropType<Record<string, any>>;
|
20
|
+
default: Record<string, any>;
|
21
|
+
};
|
22
|
+
}>> & Readonly<{}>, {
|
23
|
+
context: Record<string, any>;
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {};
|
25
|
+
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aria.js","sources":["../../../src/components/_constants/aria.ts"],"sourcesContent":["export const EVENT_CODE = {\r\n tab: 'Tab',\r\n enter: 'Enter',\r\n space: 'Space',\r\n left: 'ArrowLeft', // 37\r\n up: 'ArrowUp', // 38\r\n right: 'ArrowRight', // 39\r\n down: 'ArrowDown', // 40\r\n esc: 'Escape',\r\n delete: 'Delete',\r\n backspace: 'Backspace',\r\n numpadEnter: 'NumpadEnter',\r\n pageUp: 'PageUp',\r\n pageDown: 'PageDown',\r\n home: 'Home',\r\n end: 'End',\r\n}\r\n"],"names":[],"mappings":"AAAO,
|
1
|
+
{"version":3,"file":"aria.js","sources":["../../../src/components/_constants/aria.ts"],"sourcesContent":["export const EVENT_CODE = {\r\n tab: 'Tab',\r\n enter: 'Enter',\r\n space: 'Space',\r\n left: 'ArrowLeft', // 37\r\n up: 'ArrowUp', // 38\r\n right: 'ArrowRight', // 39\r\n down: 'ArrowDown', // 40\r\n esc: 'Escape',\r\n delete: 'Delete',\r\n backspace: 'Backspace',\r\n numpadEnter: 'NumpadEnter',\r\n pageUp: 'PageUp',\r\n pageDown: 'PageDown',\r\n home: 'Home',\r\n end: 'End',\r\n}\r\n"],"names":["EVENT_CODE"],"mappings":"AAAO,MAAMA,IAAa;AAAA,EACxB,KAAK;AAAA,EACL,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA;AAAA,EACN,IAAI;AAAA;AAAA,EACJ,OAAO;AAAA;AAAA,EACP,MAAM;AAAA;AAAA,EACN,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,KAAK;AACP;"}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
const
|
2
|
-
const CHANGE_EVENT = "change";
|
3
|
-
const INPUT_EVENT = "input";
|
1
|
+
const E = "update:modelValue", t = "change", e = "input";
|
4
2
|
export {
|
5
|
-
CHANGE_EVENT,
|
6
|
-
INPUT_EVENT,
|
7
|
-
UPDATE_MODEL_EVENT
|
3
|
+
t as CHANGE_EVENT,
|
4
|
+
e as INPUT_EVENT,
|
5
|
+
E as UPDATE_MODEL_EVENT
|
8
6
|
};
|
9
7
|
//# sourceMappingURL=event.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"event.js","sources":["../../../src/components/_constants/event.ts"],"sourcesContent":["export const UPDATE_MODEL_EVENT = 'update:modelValue'\r\nexport const CHANGE_EVENT = 'change'\r\nexport const INPUT_EVENT = 'input'\r\n"],"names":[],"mappings":"AAAO,
|
1
|
+
{"version":3,"file":"event.js","sources":["../../../src/components/_constants/event.ts"],"sourcesContent":["export const UPDATE_MODEL_EVENT = 'update:modelValue'\r\nexport const CHANGE_EVENT = 'change'\r\nexport const INPUT_EVENT = 'input'\r\n"],"names":["UPDATE_MODEL_EVENT","CHANGE_EVENT","INPUT_EVENT"],"mappings":"AAAO,MAAMA,IAAqB,qBACrBC,IAAe,UACfC,IAAc;"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { EVENT_CODE } from "./aria.js";
|
2
|
-
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from "./event.js";
|
1
|
+
import { EVENT_CODE as T } from "./aria.js";
|
2
|
+
import { CHANGE_EVENT as o, INPUT_EVENT as r, UPDATE_MODEL_EVENT as V } from "./event.js";
|
3
3
|
export {
|
4
|
-
CHANGE_EVENT,
|
5
|
-
EVENT_CODE,
|
6
|
-
INPUT_EVENT,
|
7
|
-
UPDATE_MODEL_EVENT
|
4
|
+
o as CHANGE_EVENT,
|
5
|
+
T as EVENT_CODE,
|
6
|
+
r as INPUT_EVENT,
|
7
|
+
V as UPDATE_MODEL_EVENT
|
8
8
|
};
|
9
9
|
//# sourceMappingURL=index.js.map
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defaultNamespace, namespaceContextKey, useGetDerivedNamespace, useNamespace } from "./use-namespace/index.js";
|
2
|
-
import { useOrderedChildren } from "./use-ordered-children/index.js";
|
1
|
+
import { defaultNamespace as r, namespaceContextKey as s, useGetDerivedNamespace as m, useNamespace as p } from "./use-namespace/index.js";
|
2
|
+
import { useOrderedChildren as d } from "./use-ordered-children/index.js";
|
3
3
|
export {
|
4
|
-
defaultNamespace,
|
5
|
-
namespaceContextKey,
|
6
|
-
useGetDerivedNamespace,
|
7
|
-
useNamespace,
|
8
|
-
useOrderedChildren
|
4
|
+
r as defaultNamespace,
|
5
|
+
s as namespaceContextKey,
|
6
|
+
m as useGetDerivedNamespace,
|
7
|
+
p as useNamespace,
|
8
|
+
d as useOrderedChildren
|
9
9
|
};
|
10
10
|
//# sourceMappingURL=index.js.map
|
@@ -1,81 +1,46 @@
|
|
1
|
-
import { getCurrentInstance, inject, ref, computed, unref } from "vue";
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
cls += `__${element}`;
|
11
|
-
}
|
12
|
-
if (modifier) {
|
13
|
-
cls += `--${modifier}`;
|
14
|
-
}
|
15
|
-
return cls;
|
16
|
-
};
|
17
|
-
const namespaceContextKey = Symbol("namespaceContextKey");
|
18
|
-
const useGetDerivedNamespace = (namespaceOverrides) => {
|
19
|
-
const derivedNamespace = namespaceOverrides || (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
|
20
|
-
const namespace = computed(() => {
|
21
|
-
return unref(derivedNamespace) || defaultNamespace;
|
22
|
-
});
|
23
|
-
return namespace;
|
24
|
-
};
|
25
|
-
const useNamespace = (block, namespaceOverrides) => {
|
26
|
-
const namespace = useGetDerivedNamespace(namespaceOverrides);
|
27
|
-
const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
|
28
|
-
const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
|
29
|
-
const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
|
30
|
-
const be = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : "";
|
31
|
-
const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : "";
|
32
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : "";
|
33
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : "";
|
34
|
-
const is = (name, ...args) => {
|
35
|
-
const state = args.length >= 1 ? args[0] : true;
|
36
|
-
return name && state ? `${statePrefix}${name}` : "";
|
37
|
-
};
|
38
|
-
const cssVar = (object) => {
|
39
|
-
const styles = {};
|
40
|
-
for (const key in object) {
|
41
|
-
if (object[key]) {
|
42
|
-
styles[`--${namespace.value}-${key}`] = object[key];
|
43
|
-
}
|
44
|
-
}
|
45
|
-
return styles;
|
46
|
-
};
|
47
|
-
const cssVarBlock = (object) => {
|
48
|
-
const styles = {};
|
49
|
-
for (const key in object) {
|
50
|
-
if (object[key]) {
|
51
|
-
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
52
|
-
}
|
53
|
-
}
|
54
|
-
return styles;
|
55
|
-
};
|
56
|
-
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
57
|
-
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
1
|
+
import { getCurrentInstance as p, inject as N, ref as v, computed as V, unref as y } from "vue";
|
2
|
+
const m = "orion", l = "is-", c = (a, r, t, o, $) => {
|
3
|
+
let u = `${a}-${r}`;
|
4
|
+
return t && (u += `-${t}`), o && (u += `__${o}`), $ && (u += `--${$}`), u;
|
5
|
+
}, B = Symbol("namespaceContextKey"), C = (a) => {
|
6
|
+
const r = a || (p() ? N(B, v(m)) : v(m));
|
7
|
+
return V(() => y(r) || m);
|
8
|
+
}, q = (a, r) => {
|
9
|
+
const t = C(r);
|
58
10
|
return {
|
59
|
-
namespace,
|
60
|
-
b,
|
61
|
-
e,
|
62
|
-
m,
|
63
|
-
be,
|
64
|
-
em,
|
65
|
-
bm,
|
66
|
-
bem,
|
67
|
-
is,
|
11
|
+
namespace: t,
|
12
|
+
b: (s = "") => c(t.value, a, s, "", ""),
|
13
|
+
e: (s) => s ? c(t.value, a, "", s, "") : "",
|
14
|
+
m: (s) => s ? c(t.value, a, "", "", s) : "",
|
15
|
+
be: (s, e) => s && e ? c(t.value, a, s, e, "") : "",
|
16
|
+
em: (s, e) => s && e ? c(t.value, a, "", s, e) : "",
|
17
|
+
bm: (s, e) => s && e ? c(t.value, a, s, "", e) : "",
|
18
|
+
bem: (s, e, n) => s && e && n ? c(t.value, a, s, e, n) : "",
|
19
|
+
is: (s, ...e) => {
|
20
|
+
const n = e.length >= 1 ? e[0] : !0;
|
21
|
+
return s && n ? `${l}${s}` : "";
|
22
|
+
},
|
68
23
|
// css
|
69
|
-
cssVar
|
70
|
-
|
71
|
-
|
72
|
-
|
24
|
+
cssVar: (s) => {
|
25
|
+
const e = {};
|
26
|
+
for (const n in s)
|
27
|
+
s[n] && (e[`--${t.value}-${n}`] = s[n]);
|
28
|
+
return e;
|
29
|
+
},
|
30
|
+
cssVarName: (s) => `--${t.value}-${s}`,
|
31
|
+
cssVarBlock: (s) => {
|
32
|
+
const e = {};
|
33
|
+
for (const n in s)
|
34
|
+
s[n] && (e[`--${t.value}-${a}-${n}`] = s[n]);
|
35
|
+
return e;
|
36
|
+
},
|
37
|
+
cssVarBlockName: (s) => `--${t.value}-${a}-${s}`
|
73
38
|
};
|
74
39
|
};
|
75
40
|
export {
|
76
|
-
defaultNamespace,
|
77
|
-
namespaceContextKey,
|
78
|
-
useGetDerivedNamespace,
|
79
|
-
useNamespace
|
41
|
+
m as defaultNamespace,
|
42
|
+
B as namespaceContextKey,
|
43
|
+
C as useGetDerivedNamespace,
|
44
|
+
q as useNamespace
|
80
45
|
};
|
81
46
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/_hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref, unref } from 'vue'\r\n\r\nimport type { InjectionKey, Ref } from 'vue'\r\n\r\nexport const defaultNamespace = 'orion'\r\nconst statePrefix = 'is-'\r\n\r\nconst _bem = (\r\n namespace: string,\r\n block: string,\r\n blockSuffix: string,\r\n element: string,\r\n modifier: string\r\n) => {\r\n let cls = `${namespace}-${block}`\r\n if (blockSuffix) {\r\n cls += `-${blockSuffix}`\r\n }\r\n if (element) {\r\n cls += `__${element}`\r\n }\r\n if (modifier) {\r\n cls += `--${modifier}`\r\n }\r\n return cls\r\n}\r\n\r\nexport const namespaceContextKey: InjectionKey<Ref<string | undefined>> =\r\n Symbol('namespaceContextKey')\r\n\r\nexport const useGetDerivedNamespace = (\r\n namespaceOverrides?: Ref<string | undefined>\r\n) => {\r\n const derivedNamespace =\r\n namespaceOverrides ||\r\n (getCurrentInstance()\r\n ? inject(namespaceContextKey, ref(defaultNamespace))\r\n : ref(defaultNamespace))\r\n const namespace = computed(() => {\r\n return unref(derivedNamespace) || defaultNamespace\r\n })\r\n return namespace\r\n}\r\n\r\nexport const useNamespace = (\r\n block: string,\r\n namespaceOverrides?: Ref<string | undefined>\r\n) => {\r\n const namespace = useGetDerivedNamespace(namespaceOverrides)\r\n const b = (blockSuffix = '') =>\r\n _bem(namespace.value, block, blockSuffix, '', '')\r\n const e = (element?: string) =>\r\n element ? _bem(namespace.value, block, '', element, '') : ''\r\n const m = (modifier?: string) =>\r\n modifier ? _bem(namespace.value, block, '', '', modifier) : ''\r\n const be = (blockSuffix?: string, element?: string) =>\r\n blockSuffix && element\r\n ? _bem(namespace.value, block, blockSuffix, element, '')\r\n : ''\r\n const em = (element?: string, modifier?: string) =>\r\n element && modifier\r\n ? _bem(namespace.value, block, '', element, modifier)\r\n : ''\r\n const bm = (blockSuffix?: string, modifier?: string) =>\r\n blockSuffix && modifier\r\n ? _bem(namespace.value, block, blockSuffix, '', modifier)\r\n : ''\r\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\r\n blockSuffix && element && modifier\r\n ? _bem(namespace.value, block, blockSuffix, element, modifier)\r\n : ''\r\n const is: {\r\n (name: string, state: boolean | undefined): string\r\n (name: string): string\r\n } = (name: string, ...args: [boolean | undefined] | []) => {\r\n const state = args.length >= 1 ? args[0]! : true\r\n return name && state ? `${statePrefix}${name}` : ''\r\n }\r\n\r\n // for css var\r\n // --el-xxx: value;\r\n const cssVar = (object: Record<string, string>) => {\r\n const styles: Record<string, string> = {}\r\n for (const key in object) {\r\n if (object[key]) {\r\n styles[`--${namespace.value}-${key}`] = object[key]\r\n }\r\n }\r\n return styles\r\n }\r\n // with block\r\n const cssVarBlock = (object: Record<string, string>) => {\r\n const styles: Record<string, string> = {}\r\n for (const key in object) {\r\n if (object[key]) {\r\n styles[`--${namespace.value}-${block}-${key}`] = object[key]\r\n }\r\n }\r\n return styles\r\n }\r\n\r\n const cssVarName = (name: string) => `--${namespace.value}-${name}`\r\n const cssVarBlockName = (name: string) =>\r\n `--${namespace.value}-${block}-${name}`\r\n\r\n return {\r\n namespace,\r\n b,\r\n e,\r\n m,\r\n be,\r\n em,\r\n bm,\r\n bem,\r\n is,\r\n // css\r\n cssVar,\r\n cssVarName,\r\n cssVarBlock,\r\n cssVarBlockName,\r\n }\r\n}\r\n\r\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\r\n"],"names":[],"mappings":";AAIO,
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/_hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref, unref } from 'vue'\r\n\r\nimport type { InjectionKey, Ref } from 'vue'\r\n\r\nexport const defaultNamespace = 'orion'\r\nconst statePrefix = 'is-'\r\n\r\nconst _bem = (\r\n namespace: string,\r\n block: string,\r\n blockSuffix: string,\r\n element: string,\r\n modifier: string\r\n) => {\r\n let cls = `${namespace}-${block}`\r\n if (blockSuffix) {\r\n cls += `-${blockSuffix}`\r\n }\r\n if (element) {\r\n cls += `__${element}`\r\n }\r\n if (modifier) {\r\n cls += `--${modifier}`\r\n }\r\n return cls\r\n}\r\n\r\nexport const namespaceContextKey: InjectionKey<Ref<string | undefined>> =\r\n Symbol('namespaceContextKey')\r\n\r\nexport const useGetDerivedNamespace = (\r\n namespaceOverrides?: Ref<string | undefined>\r\n) => {\r\n const derivedNamespace =\r\n namespaceOverrides ||\r\n (getCurrentInstance()\r\n ? inject(namespaceContextKey, ref(defaultNamespace))\r\n : ref(defaultNamespace))\r\n const namespace = computed(() => {\r\n return unref(derivedNamespace) || defaultNamespace\r\n })\r\n return namespace\r\n}\r\n\r\nexport const useNamespace = (\r\n block: string,\r\n namespaceOverrides?: Ref<string | undefined>\r\n) => {\r\n const namespace = useGetDerivedNamespace(namespaceOverrides)\r\n const b = (blockSuffix = '') =>\r\n _bem(namespace.value, block, blockSuffix, '', '')\r\n const e = (element?: string) =>\r\n element ? _bem(namespace.value, block, '', element, '') : ''\r\n const m = (modifier?: string) =>\r\n modifier ? _bem(namespace.value, block, '', '', modifier) : ''\r\n const be = (blockSuffix?: string, element?: string) =>\r\n blockSuffix && element\r\n ? _bem(namespace.value, block, blockSuffix, element, '')\r\n : ''\r\n const em = (element?: string, modifier?: string) =>\r\n element && modifier\r\n ? _bem(namespace.value, block, '', element, modifier)\r\n : ''\r\n const bm = (blockSuffix?: string, modifier?: string) =>\r\n blockSuffix && modifier\r\n ? _bem(namespace.value, block, blockSuffix, '', modifier)\r\n : ''\r\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\r\n blockSuffix && element && modifier\r\n ? _bem(namespace.value, block, blockSuffix, element, modifier)\r\n : ''\r\n const is: {\r\n (name: string, state: boolean | undefined): string\r\n (name: string): string\r\n } = (name: string, ...args: [boolean | undefined] | []) => {\r\n const state = args.length >= 1 ? args[0]! : true\r\n return name && state ? `${statePrefix}${name}` : ''\r\n }\r\n\r\n // for css var\r\n // --el-xxx: value;\r\n const cssVar = (object: Record<string, string>) => {\r\n const styles: Record<string, string> = {}\r\n for (const key in object) {\r\n if (object[key]) {\r\n styles[`--${namespace.value}-${key}`] = object[key]\r\n }\r\n }\r\n return styles\r\n }\r\n // with block\r\n const cssVarBlock = (object: Record<string, string>) => {\r\n const styles: Record<string, string> = {}\r\n for (const key in object) {\r\n if (object[key]) {\r\n styles[`--${namespace.value}-${block}-${key}`] = object[key]\r\n }\r\n }\r\n return styles\r\n }\r\n\r\n const cssVarName = (name: string) => `--${namespace.value}-${name}`\r\n const cssVarBlockName = (name: string) =>\r\n `--${namespace.value}-${block}-${name}`\r\n\r\n return {\r\n namespace,\r\n b,\r\n e,\r\n m,\r\n be,\r\n em,\r\n bm,\r\n bem,\r\n is,\r\n // css\r\n cssVar,\r\n cssVarName,\r\n cssVarBlock,\r\n cssVarBlockName,\r\n }\r\n}\r\n\r\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\r\n"],"names":["defaultNamespace","statePrefix","_bem","namespace","block","blockSuffix","element","modifier","cls","namespaceContextKey","useGetDerivedNamespace","namespaceOverrides","derivedNamespace","getCurrentInstance","inject","ref","computed","unref","useNamespace","name","args","state","object","styles","key"],"mappings":";AAIO,MAAMA,IAAmB,SAC1BC,IAAc,OAEdC,IAAO,CACXC,GACAC,GACAC,GACAC,GACAC,MACG;AACH,MAAIC,IAAM,GAAGL,CAAS,IAAIC,CAAK;AAC/B,SAAIC,MACFG,KAAO,IAAIH,CAAW,KAEpBC,MACFE,KAAO,KAAKF,CAAO,KAEjBC,MACFC,KAAO,KAAKD,CAAQ,KAEfC;AACT,GAEaC,IACX,OAAO,qBAAqB,GAEjBC,IAAyB,CACpCC,MACG;AACG,QAAAC,IACJD,MACCE,EAAA,IACGC,EAAOL,GAAqBM,EAAIf,CAAgB,CAAC,IACjDe,EAAIf,CAAgB;AAInB,SAHWgB,EAAS,MAClBC,EAAML,CAAgB,KAAKZ,CACnC;AAEH,GAEakB,IAAe,CAC1Bd,GACAO,MACG;AACG,QAAAR,IAAYO,EAAuBC,CAAkB;AAyDpD,SAAA;AAAA,IACL,WAAAR;AAAA,IACA,GA1DQ,CAACE,IAAc,OACvBH,EAAKC,EAAU,OAAOC,GAAOC,GAAa,IAAI,EAAE;AAAA,IA0DhD,GAzDQ,CAACC,MACTA,IAAUJ,EAAKC,EAAU,OAAOC,GAAO,IAAIE,GAAS,EAAE,IAAI;AAAA,IAyD1D,GAxDQ,CAACC,MACTA,IAAWL,EAAKC,EAAU,OAAOC,GAAO,IAAI,IAAIG,CAAQ,IAAI;AAAA,IAwD5D,IAvDS,CAACF,GAAsBC,MAChCD,KAAeC,IACXJ,EAAKC,EAAU,OAAOC,GAAOC,GAAaC,GAAS,EAAE,IACrD;AAAA,IAqDJ,IApDS,CAACA,GAAkBC,MAC5BD,KAAWC,IACPL,EAAKC,EAAU,OAAOC,GAAO,IAAIE,GAASC,CAAQ,IAClD;AAAA,IAkDJ,IAjDS,CAACF,GAAsBE,MAChCF,KAAeE,IACXL,EAAKC,EAAU,OAAOC,GAAOC,GAAa,IAAIE,CAAQ,IACtD;AAAA,IA+CJ,KA9CU,CAACF,GAAsBC,GAAkBC,MACnDF,KAAeC,KAAWC,IACtBL,EAAKC,EAAU,OAAOC,GAAOC,GAAaC,GAASC,CAAQ,IAC3D;AAAA,IA4CJ,IAxCE,CAACY,MAAiBC,MAAqC;AACzD,YAAMC,IAAQD,EAAK,UAAU,IAAIA,EAAK,CAAC,IAAK;AAC5C,aAAOD,KAAQE,IAAQ,GAAGpB,CAAW,GAAGkB,CAAI,KAAK;AAAA,IAAA;AAAA;AAAA,IAwCjD,QAnCa,CAACG,MAAmC;AACjD,YAAMC,IAAiC,CAAA;AACvC,iBAAWC,KAAOF;AACZ,QAAAA,EAAOE,CAAG,MACLD,EAAA,KAAKpB,EAAU,KAAK,IAAIqB,CAAG,EAAE,IAAIF,EAAOE,CAAG;AAG/C,aAAAD;AAAA,IAAA;AAAA,IA6BP,YAhBiB,CAACJ,MAAiB,KAAKhB,EAAU,KAAK,IAAIgB,CAAI;AAAA,IAiB/D,aA3BkB,CAACG,MAAmC;AACtD,YAAMC,IAAiC,CAAA;AACvC,iBAAWC,KAAOF;AACZ,QAAAA,EAAOE,CAAG,MACLD,EAAA,KAAKpB,EAAU,KAAK,IAAIC,CAAK,IAAIoB,CAAG,EAAE,IAAIF,EAAOE,CAAG;AAGxD,aAAAD;AAAA,IAAA;AAAA,IAqBP,iBAjBsB,CAACJ,MACvB,KAAKhB,EAAU,KAAK,IAAIC,CAAK,IAAIe,CAAI;AAAA,EAgBrC;AAEJ;"}
|
@@ -1,37 +1,27 @@
|
|
1
|
-
import { shallowRef, isVNode } from "vue";
|
1
|
+
import { shallowRef as s, isVNode as m } from "vue";
|
2
2
|
import "lodash-es";
|
3
3
|
import "element-plus";
|
4
|
-
import { flattedChildren } from "../../_util/vue/vnode.js";
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
);
|
12
|
-
const uids = nodes.map((n) => n.component.uid);
|
13
|
-
return uids.map((uid) => children[uid]).filter((p) => !!p);
|
14
|
-
};
|
15
|
-
const useOrderedChildren = (vm, childComponentName) => {
|
16
|
-
const children = {};
|
17
|
-
const orderedChildren = shallowRef([]);
|
18
|
-
const addChild = (child) => {
|
19
|
-
children[child.uid] = child;
|
20
|
-
orderedChildren.value = getOrderedChildren(vm, childComponentName, children);
|
21
|
-
};
|
22
|
-
const removeChild = (uid) => {
|
23
|
-
delete children[uid];
|
24
|
-
orderedChildren.value = orderedChildren.value.filter(
|
25
|
-
(children2) => children2.uid !== uid
|
26
|
-
);
|
27
|
-
};
|
4
|
+
import { flattedChildren as c } from "../../_util/vue/vnode.js";
|
5
|
+
const u = (t, i, d) => c(t.subTree).filter(
|
6
|
+
(e) => {
|
7
|
+
var r;
|
8
|
+
return m(e) && ((r = e.type) == null ? void 0 : r.name) === i && !!e.component;
|
9
|
+
}
|
10
|
+
).map((e) => e.component.uid).map((e) => d[e]).filter((e) => !!e), f = (t, i) => {
|
11
|
+
const d = {}, o = s([]);
|
28
12
|
return {
|
29
|
-
children:
|
30
|
-
addChild
|
31
|
-
|
13
|
+
children: o,
|
14
|
+
addChild: (r) => {
|
15
|
+
d[r.uid] = r, o.value = u(t, i, d);
|
16
|
+
},
|
17
|
+
removeChild: (r) => {
|
18
|
+
delete d[r], o.value = o.value.filter(
|
19
|
+
(l) => l.uid !== r
|
20
|
+
);
|
21
|
+
}
|
32
22
|
};
|
33
23
|
};
|
34
24
|
export {
|
35
|
-
useOrderedChildren
|
25
|
+
f as useOrderedChildren
|
36
26
|
};
|
37
27
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/_hooks/use-ordered-children/index.ts"],"sourcesContent":["import { shallowRef } from 'vue'\r\nimport { flattedChildren, isVNode } from '../../_util'\r\n\r\nimport type { ComponentInternalInstance, VNode } from 'vue'\r\n\r\nconst getOrderedChildren = <T>(\r\n vm: ComponentInternalInstance,\r\n childComponentName: string,\r\n children: Record<number, T>\r\n): T[] => {\r\n const nodes = flattedChildren(vm.subTree).filter(\r\n (n): n is VNode =>\r\n isVNode(n) &&\r\n (n.type as any)?.name === childComponentName &&\r\n !!n.component\r\n )\r\n const uids = nodes.map((n) => n.component!.uid)\r\n return uids.map((uid) => children[uid]).filter((p) => !!p)\r\n}\r\n\r\nexport const useOrderedChildren = <T extends { uid: number }>(\r\n vm: ComponentInternalInstance,\r\n childComponentName: string\r\n) => {\r\n const children: Record<number, T> = {}\r\n const orderedChildren = shallowRef<T[]>([])\r\n\r\n // TODO: split into two functions: addChild and sortChildren\r\n const addChild = (child: T) => {\r\n children[child.uid] = child\r\n orderedChildren.value = getOrderedChildren(vm, childComponentName, children)\r\n }\r\n const removeChild = (uid: number) => {\r\n delete children[uid]\r\n orderedChildren.value = orderedChildren.value.filter(\r\n (children) => children.uid !== uid\r\n )\r\n }\r\n\r\n return {\r\n children: orderedChildren,\r\n addChild,\r\n removeChild,\r\n }\r\n}\r\n"],"names":["children"],"mappings":";;;;AAKA,
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/_hooks/use-ordered-children/index.ts"],"sourcesContent":["import { shallowRef } from 'vue'\r\nimport { flattedChildren, isVNode } from '../../_util'\r\n\r\nimport type { ComponentInternalInstance, VNode } from 'vue'\r\n\r\nconst getOrderedChildren = <T>(\r\n vm: ComponentInternalInstance,\r\n childComponentName: string,\r\n children: Record<number, T>\r\n): T[] => {\r\n const nodes = flattedChildren(vm.subTree).filter(\r\n (n): n is VNode =>\r\n isVNode(n) &&\r\n (n.type as any)?.name === childComponentName &&\r\n !!n.component\r\n )\r\n const uids = nodes.map((n) => n.component!.uid)\r\n return uids.map((uid) => children[uid]).filter((p) => !!p)\r\n}\r\n\r\nexport const useOrderedChildren = <T extends { uid: number }>(\r\n vm: ComponentInternalInstance,\r\n childComponentName: string\r\n) => {\r\n const children: Record<number, T> = {}\r\n const orderedChildren = shallowRef<T[]>([])\r\n\r\n // TODO: split into two functions: addChild and sortChildren\r\n const addChild = (child: T) => {\r\n children[child.uid] = child\r\n orderedChildren.value = getOrderedChildren(vm, childComponentName, children)\r\n }\r\n const removeChild = (uid: number) => {\r\n delete children[uid]\r\n orderedChildren.value = orderedChildren.value.filter(\r\n (children) => children.uid !== uid\r\n )\r\n }\r\n\r\n return {\r\n children: orderedChildren,\r\n addChild,\r\n removeChild,\r\n }\r\n}\r\n"],"names":["getOrderedChildren","vm","childComponentName","children","flattedChildren","n","isVNode","_a","uid","p","useOrderedChildren","orderedChildren","shallowRef","child"],"mappings":";;;;AAKA,MAAMA,IAAqB,CACzBC,GACAC,GACAC,MAEcC,EAAgBH,EAAG,OAAO,EAAE;AAAA,EACxC,CAACI,MACC;;AAAA,WAAAC,EAAQD,CAAC,OACRE,IAAAF,EAAE,SAAF,gBAAAE,EAAgB,UAASL,KAC1B,CAAC,CAACG,EAAE;AAAA;AAAA,EAEW,IAAI,CAACA,MAAMA,EAAE,UAAW,GAAG,EAClC,IAAI,CAACG,MAAQL,EAASK,CAAG,CAAC,EAAE,OAAO,CAACC,MAAM,CAAC,CAACA,CAAC,GAG9CC,IAAqB,CAChCT,GACAC,MACG;AACH,QAAMC,IAA8B,CAAA,GAC9BQ,IAAkBC,EAAgB,CAAA,CAAE;AAcnC,SAAA;AAAA,IACL,UAAUD;AAAA,IACV,UAbe,CAACE,MAAa;AACpB,MAAAV,EAAAU,EAAM,GAAG,IAAIA,GACtBF,EAAgB,QAAQX,EAAmBC,GAAIC,GAAoBC,CAAQ;AAAA,IAAA;AAAA,IAY3E,aAVkB,CAACK,MAAgB;AACnC,aAAOL,EAASK,CAAG,GACHG,EAAA,QAAQA,EAAgB,MAAM;AAAA,QAC5C,CAACR,MAAaA,EAAS,QAAQK;AAAA,MAAA;AAAA,IACjC;AAAA,EAMA;AAEJ;"}
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import { castArray } from "lodash-es";
|
2
|
-
const
|
3
|
-
const castArray2 = (arr) => {
|
4
|
-
if (!arr && arr !== 0) return [];
|
5
|
-
return Array.isArray(arr) ? arr : [arr];
|
6
|
-
};
|
1
|
+
import { castArray as o } from "lodash-es";
|
2
|
+
const e = (r) => [...new Set(r)], t = (r) => !r && r !== 0 ? [] : Array.isArray(r) ? r : [r];
|
7
3
|
export {
|
8
|
-
|
9
|
-
|
10
|
-
unique
|
4
|
+
t as castArray,
|
5
|
+
o as ensureArray,
|
6
|
+
e as unique
|
11
7
|
};
|
12
8
|
//# sourceMappingURL=arrays.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"arrays.js","sources":["../../../src/components/_util/arrays.ts"],"sourcesContent":["export const unique = <T>(arr: T[]) => [...new Set(arr)]\r\n\r\ntype Many<T> = T | ReadonlyArray<T>\r\n// TODO: rename to `ensureArray`\r\n/** like `_.castArray`, except falsy value returns empty array. */\r\nexport const castArray = <T>(arr: Many<T>): T[] => {\r\n if (!arr && (arr as any) !== 0) return []\r\n return Array.isArray(arr) ? arr : [arr]\r\n}\r\n\r\n// TODO: remove import alias\r\n// avoid naming conflicts\r\nexport { castArray as ensureArray } from 'lodash-unified'\r\n"],"names":["castArray"],"mappings":";AAAa,
|
1
|
+
{"version":3,"file":"arrays.js","sources":["../../../src/components/_util/arrays.ts"],"sourcesContent":["export const unique = <T>(arr: T[]) => [...new Set(arr)]\r\n\r\ntype Many<T> = T | ReadonlyArray<T>\r\n// TODO: rename to `ensureArray`\r\n/** like `_.castArray`, except falsy value returns empty array. */\r\nexport const castArray = <T>(arr: Many<T>): T[] => {\r\n if (!arr && (arr as any) !== 0) return []\r\n return Array.isArray(arr) ? arr : [arr]\r\n}\r\n\r\n// TODO: remove import alias\r\n// avoid naming conflicts\r\nexport { castArray as ensureArray } from 'lodash-unified'\r\n"],"names":["unique","arr","castArray"],"mappings":";AAAa,MAAAA,IAAS,CAAIC,MAAa,CAAC,GAAG,IAAI,IAAIA,CAAG,CAAC,GAK1CC,IAAY,CAAID,MACvB,CAACA,KAAQA,MAAgB,IAAU,CAAA,IAChC,MAAM,QAAQA,CAAG,IAAIA,IAAM,CAACA,CAAG;"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { i
|
2
|
-
import { a } from "../../index-
|
3
|
-
const
|
1
|
+
import { i } from "../../index-C9tCD90X.js";
|
2
|
+
import { a as s } from "../../index-C9tCD90X.js";
|
3
|
+
const r = () => i && /firefox/i.test(window.navigator.userAgent);
|
4
4
|
export {
|
5
|
-
isClient,
|
6
|
-
isFirefox,
|
7
|
-
|
5
|
+
i as isClient,
|
6
|
+
r as isFirefox,
|
7
|
+
s as isIOS
|
8
8
|
};
|
9
9
|
//# sourceMappingURL=browser.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"browser.js","sources":["../../../src/components/_util/browser.ts"],"sourcesContent":["import { isClient, isIOS } from '@vueuse/core'\r\n\r\nexport const isFirefox = (): boolean =>\r\n isClient && /firefox/i.test(window.navigator.userAgent)\r\n\r\nexport { isClient, isIOS }\r\n"],"names":[],"mappings":";;AAEO,
|
1
|
+
{"version":3,"file":"browser.js","sources":["../../../src/components/_util/browser.ts"],"sourcesContent":["import { isClient, isIOS } from '@vueuse/core'\r\n\r\nexport const isFirefox = (): boolean =>\r\n isClient && /firefox/i.test(window.navigator.userAgent)\r\n\r\nexport { isClient, isIOS }\r\n"],"names":["isFirefox","isClient"],"mappings":";;AAEO,MAAMA,IAAY,MACvBC,KAAY,WAAW,KAAK,OAAO,UAAU,SAAS;"}
|
@@ -1,29 +1,24 @@
|
|
1
|
-
import { isString, isArray, isObject } from "./util.js";
|
2
|
-
function
|
3
|
-
const
|
4
|
-
for (let
|
5
|
-
const
|
6
|
-
if (
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
classes.push(inner);
|
1
|
+
import { isString as f, isArray as r, isObject as l } from "./util.js";
|
2
|
+
function c(...t) {
|
3
|
+
const s = [];
|
4
|
+
for (let n = 0; n < t.length; n++) {
|
5
|
+
const e = t[n];
|
6
|
+
if (e) {
|
7
|
+
if (f(e))
|
8
|
+
s.push(e);
|
9
|
+
else if (r(e))
|
10
|
+
for (let i = 0; i < e.length; i++) {
|
11
|
+
const o = c(e[i]);
|
12
|
+
o && s.push(o);
|
14
13
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
if (value[name]) {
|
19
|
-
classes.push(name);
|
20
|
-
}
|
21
|
-
}
|
14
|
+
else if (l(e))
|
15
|
+
for (const i in e)
|
16
|
+
e[i] && s.push(i);
|
22
17
|
}
|
23
18
|
}
|
24
|
-
return
|
19
|
+
return s.join(" ");
|
25
20
|
}
|
26
21
|
export {
|
27
|
-
|
22
|
+
c as default
|
28
23
|
};
|
29
24
|
//# sourceMappingURL=classNames.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classNames.js","sources":["../../../src/components/_util/classNames.ts"],"sourcesContent":["import { isArray, isString, isObject } from './util'\r\nfunction classNames(...args: any[]) {\r\n const classes = []\r\n for (let i = 0; i < args.length; i++) {\r\n const value = args[i]\r\n if (!value) continue\r\n if (isString(value)) {\r\n // @ts-ignore\r\n classes.push(value)\r\n } else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const inner = classNames(value[i])\r\n if (inner) {\r\n // @ts-ignore\r\n classes.push(inner)\r\n }\r\n }\r\n } else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n // @ts-ignore\r\n classes.push(name)\r\n }\r\n }\r\n }\r\n }\r\n return classes.join(' ')\r\n}\r\n\r\nexport default classNames\r\n"],"names":["i"],"mappings":";AACA,
|
1
|
+
{"version":3,"file":"classNames.js","sources":["../../../src/components/_util/classNames.ts"],"sourcesContent":["import { isArray, isString, isObject } from './util'\r\nfunction classNames(...args: any[]) {\r\n const classes = []\r\n for (let i = 0; i < args.length; i++) {\r\n const value = args[i]\r\n if (!value) continue\r\n if (isString(value)) {\r\n // @ts-ignore\r\n classes.push(value)\r\n } else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const inner = classNames(value[i])\r\n if (inner) {\r\n // @ts-ignore\r\n classes.push(inner)\r\n }\r\n }\r\n } else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n // @ts-ignore\r\n classes.push(name)\r\n }\r\n }\r\n }\r\n }\r\n return classes.join(' ')\r\n}\r\n\r\nexport default classNames\r\n"],"names":["classNames","args","classes","i","value","isString","isArray","inner","isObject","name"],"mappings":";AACA,SAASA,KAAcC,GAAa;AAClC,QAAMC,IAAU,CAAA;AAChB,WAASC,IAAI,GAAGA,IAAIF,EAAK,QAAQE,KAAK;AAC9B,UAAAC,IAAQH,EAAKE,CAAC;AACpB,QAAKC;AACD,UAAAC,EAASD,CAAK;AAEhB,QAAAF,EAAQ,KAAKE,CAAK;AAAA,eACTE,EAAQF,CAAK;AACtB,iBAASD,IAAI,GAAGA,IAAIC,EAAM,QAAQD,KAAK;AACrC,gBAAMI,IAAQP,EAAWI,EAAMD,CAAC,CAAC;AACjC,UAAII,KAEFL,EAAQ,KAAKK,CAAK;AAAA,QAEtB;AAAA,eACSC,EAASJ,CAAK;AACvB,mBAAWK,KAAQL;AACb,UAAAA,EAAMK,CAAI,KAEZP,EAAQ,KAAKO,CAAI;AAAA;AAAA,EAIzB;AACO,SAAAP,EAAQ,KAAK,GAAG;AACzB;"}
|