@thestarweb/ui 1.4.0 → 1.5.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.
Files changed (66) hide show
  1. package/build-ts/main.js +26 -4
  2. package/dist/star-ui.common.js +24800 -2754
  3. package/dist/star-ui.common.js.map +1 -1
  4. package/dist/star-ui.umd.js +24800 -2754
  5. package/dist/star-ui.umd.js.map +1 -1
  6. package/dist/star-ui.umd.min.js +280 -3
  7. package/dist/star-ui.umd.min.js.map +1 -1
  8. package/package.json +3 -2
  9. package/readme.md +2 -2
  10. package/src/components/button.vue +3 -3
  11. package/src/components/calendar.vue +193 -47
  12. package/src/components/call-render.tsx +22 -0
  13. package/src/components/card.vue +4 -4
  14. package/src/components/content/index.ts +1 -0
  15. package/src/components/content/page.vue +117 -0
  16. package/src/components/input.vue +5 -5
  17. package/src/components/layout-h.vue +3 -4
  18. package/src/components/layout-main.vue +3 -2
  19. package/src/components/layout-v.vue +3 -2
  20. package/src/components/line-h.vue +9 -8
  21. package/src/components/line-v.vue +9 -8
  22. package/src/components/menu/index.ts +1 -0
  23. package/src/components/menu/index.vue +83 -0
  24. package/src/components/menu/menu-h/index.vue +66 -0
  25. package/src/components/menu/menu-h/menu-h-child.vue +74 -0
  26. package/src/components/menu/menu-h/menu-h-item.vue +65 -0
  27. package/src/components/menu/menu-v/index.vue +56 -0
  28. package/src/components/select.vue +3 -3
  29. package/src/components/slider.vue +33 -8
  30. package/src/components/switch.vue +43 -43
  31. package/src/components/table.vue +3 -3
  32. package/src/components/tree/index.vue +3 -3
  33. package/src/components/tree/tree-item.vue +5 -4
  34. package/src/components/view-control.vue +3 -4
  35. package/src/directives/is-focus.ts +10 -0
  36. package/src/global-style.css +3 -0
  37. package/src/icon-font/iconfont.css +17 -7
  38. package/src/icon-font/iconfont.json +22 -1
  39. package/src/icon-font/iconfont.ttf +0 -0
  40. package/src/icon-font/iconfont.woff +0 -0
  41. package/src/icon-font/iconfont.woff2 +0 -0
  42. package/src/main.ts +36 -25
  43. package/src/reg.ts +26 -6
  44. package/src/types.d.ts +6 -0
  45. package/src/utils.ts +1 -1
  46. package/types/components/button.vue.d.ts +1 -1
  47. package/types/components/calendar.vue.d.ts +20 -4
  48. package/types/components/call-render.d.ts +6 -0
  49. package/types/components/content/index.d.ts +1 -0
  50. package/types/components/content/page.vue.d.ts +10 -0
  51. package/types/components/layout-h.vue.d.ts +1 -1
  52. package/types/components/layout-main.vue.d.ts +1 -1
  53. package/types/components/layout-v.vue.d.ts +1 -1
  54. package/types/components/line-h.vue.d.ts +1 -1
  55. package/types/components/line-v.vue.d.ts +1 -1
  56. package/types/components/menu/index.d.ts +1 -0
  57. package/types/components/menu/index.vue.d.ts +12 -0
  58. package/types/components/menu/menu-h/index.vue.d.ts +8 -0
  59. package/types/components/menu/menu-h/menu-h-child.vue.d.ts +7 -0
  60. package/types/components/menu/menu-h/menu-h-item.vue.d.ts +8 -0
  61. package/types/components/menu/menu-v/index.vue.d.ts +9 -0
  62. package/types/components/slider.vue.d.ts +2 -0
  63. package/types/directives/is-focus.d.ts +4 -0
  64. package/types/main.d.ts +68 -6
  65. package/types/reg.d.ts +18 -5
  66. package/dist/img/iconfont.ff1d7f50.svg +0 -62
@@ -1,6 +1,8 @@
1
1
  :root{
2
2
  /*背景颜色*/
3
3
  --star-ui-backgorund-color:#FFF;
4
+ /*背景颜色*/
5
+ --star-ui-font-color:#222;
4
6
  /*表格头*/
5
7
  --star-ui-table-head-color:#f8f8f9;
6
8
  /*基础颜色*/
@@ -30,6 +32,7 @@
30
32
  margin:0;
31
33
  padding: 0;
32
34
  position: relative;
35
+ box-sizing: border-box;
33
36
  }
34
37
  /*内容容器大大小*/
35
38
  .star-ui-container{
@@ -1,10 +1,8 @@
1
- @font-face {font-family: "star-ui-iconfont";
2
- src: url('iconfont.eot?t=1618646407015'); /* IE9 */
3
- src: url('iconfont.eot?t=1618646407015#iefix') format('embedded-opentype'), /* IE6-IE8 */
4
- url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAWUAAsAAAAADCgAAAVHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEIgqIQIZWATYCJAM0CxwABCAFhU0HgU0bVwqjolYvSnqyv0iwg+GPDWu9hkAksM2maagQEYmIcQTvcMQX5Fovfm7Fw3/7/W+fmbk2973/P2JSyR41EYp4Y9FcExVKIpMCWTxZe/P9pl7VqBlJ5cvEaTencEeJkQfUZkm+Zha7mWo6l1/Tv722OcCWzFR6MCyc7Z+/36s/KRKojj0AePe/qPO7qWJNFfRxmEBr7PYi2wBnE9aZiFdvYjo6e+N1AtV6KZyO1LX0AE8FnReIKzxHA89WRJmxhd7fjtxaxGtu+vQkOeRV/vPx3cKTpMnoTSfP1bKg4hNLXIwzo6nZyLi7FIy7yNgLKMTd0cx1LmV9LxfVq7o6CfhP6yXpU/l0wU3PJyb4BHBC80S4oGq1WIj8Jw/IWr1OIyTFoBpNiBYpE2XRu1b0E4gpMp+cKFo+OVP0fHIJ6Tx0RUgD5BASwEHINsF5kPFwIUIG4CKEVOBihIzAJeBOTDu9ZTVgAYi1QDxGxjMyWSjTyY8SQQQFxPj6xgYHBxGEv39QkNq6KKTHbAzttSzeawqj+mwmLWVdtKtDRlK7F4fjxci6LWTUjENDF+8Mn21bI3E2055FISxaYoBshIObHj77yZOep097nz/ve/ZsNJKogjTpAXn6AabZ5aS9BRlz9jSrae/i0F7Otni3MYQ1mznOtnHPiZJsfbwldHu4bUPYbLT5lD0NzLYegWSxJthMErIe27X+eKrrdifZwjc/YgRajLu8/RftMbVSixm0j6hPgKVe9Lzju0NdjbsWhSHrhnCrTWLNJ/aEuZ3EpdCyPsRirqRwJL54cWHEwqTTHp0VgfftoiKOGjjetOLIbKJ9xE4cmRVtv3iRiqzdfmVqit9WZeq1qyYfn2g/KTFlO0gxEMSyYCTOokRIkQkJIfgSQWSLh0ZiQLrknnb59y+flnRKEqEeM25NXu/y6JELxPUqgaCGfLuj6oIQQRxxDCSXIFJRuyCFdkVt7515BiIcBfCiB/ZvnxZGKiPtz57u2IcjEyIXnr2YdBQPDIYpOXcJPuiVoedL8pfk0pcPyPv7nGfFO5XqrvKu6DqnxApHi3KcQ4GVwKrG14q7TdXdbsU5lcqhdMwfrwA3GnpeB6mcP2dnf3MW+eG2oeeNm1i6v39cgQMPB48qx6l+hxK8/3F977f5vr3izsKkAOvi+QlY5e6i8YUg8GuG/STDf5g9zO9zPkA+6uzw1He0ebZrzkvcE+lLjhVvEpVPHnM8SMJJ91IFAKQP6a+QAOPzPGX/ts6FMyr504//glUfN51YqczuFIdv9BJs9vfNMhcVn6fotLjzF58qMLWPC7+KkCoH+JUXFnt3GN8y9nDCgtAaks42yBakqIu+BBqjo9Ba0AfVHtzdoyVWcRFlwG7bBYSN7kMy5zdkG/1XFVPEQmN5lErtmL4bqlMhPXK0PW7XwyKkZciSA2Mkzwg6FJ0je0syLaYO8amdrXZBbkhDi0PTOt9JQVHiBR2ZmZYx3KqHOige4gppmMuSZUQiUdCSdeHboEYjkHpRUEFGThuUZX1Rejoa+6I0RtACb4eJIJoMYpEGjCHxGAIdlDpl3q5200SphpTlU2erXSDOUzSMOTHnNJehwB0ofHv3SJnSZGygrld0G017KTSuHsbJIpMhJEQUTS1SnZmCNLIuIOnHT1KBGLI0gxtU9YqkK8shrpJ2eJ/2PdoEFX3SNFLkKNFEG130MUSNMSYxjTnltMBCN0YjSGk3pHXuEtTcr1O9aVEURlI1EMmeVWxI3xfZOKrzwQiR5wblwLmDUhGv0fA6juBM1/Vui8fi4PW8GwYA') format('woff2'),
5
- url('iconfont.woff?t=1618646407015') format('woff'),
6
- url('iconfont.ttf?t=1618646407015') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
7
- url('iconfont.svg?t=1618646407015#star-ui-iconfont') format('svg'); /* iOS 4.1- */
1
+ @font-face {
2
+ font-family: "star-ui-iconfont"; /* Project id 2493685 */
3
+ src: url('iconfont.woff2?t=1636814190896') format('woff2'),
4
+ url('iconfont.woff?t=1636814190896') format('woff'),
5
+ url('iconfont.ttf?t=1636814190896') format('truetype');
8
6
  }
9
7
 
10
8
  .star-ui-icon-font {
@@ -15,6 +13,18 @@
15
13
  -moz-osx-font-smoothing: grayscale;
16
14
  }
17
15
 
16
+ .star-ui-icon-menu:before {
17
+ content: "\e65f";
18
+ }
19
+
20
+ .star-ui-icon-add:before {
21
+ content: "\e6da";
22
+ }
23
+
24
+ .star-ui-icon-home:before {
25
+ content: "\e6b8";
26
+ }
27
+
18
28
  .star-ui-icon-code:before {
19
29
  content: "\e667";
20
30
  }
@@ -2,9 +2,30 @@
2
2
  "id": "2493685",
3
3
  "name": "star-ui",
4
4
  "font_family": "star-ui-iconfont",
5
- "css_prefix_text": "star-ui-icon",
5
+ "css_prefix_text": "star-ui-icon-",
6
6
  "description": "",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "1251228",
10
+ "name": "menu",
11
+ "font_class": "menu",
12
+ "unicode": "e65f",
13
+ "unicode_decimal": 58975
14
+ },
15
+ {
16
+ "icon_id": "38747",
17
+ "name": "add",
18
+ "font_class": "add",
19
+ "unicode": "e6da",
20
+ "unicode_decimal": 59098
21
+ },
22
+ {
23
+ "icon_id": "33516",
24
+ "name": "home",
25
+ "font_class": "home",
26
+ "unicode": "e6b8",
27
+ "unicode_decimal": 59064
28
+ },
8
29
  {
9
30
  "icon_id": "15838443",
10
31
  "name": "code",
Binary file
Binary file
Binary file
package/src/main.ts CHANGED
@@ -1,37 +1,48 @@
1
1
  //布局
2
- import SuHLayout from "./components/layout-h.vue";
3
- import SuVLayout from "./components/layout-v.vue";
4
- import SuMain from "./components/layout-main.vue";
5
- import SuTable from "./components/table.vue";
6
- import SuHLine from "./components/line-h.vue";
7
- import SuVLine from "./components/line-v.vue";
8
- import SuCard from "./components/card.vue";
9
- import SuTree from "./components/tree/index.vue";
2
+ export { default as SuHLayout } from "./components/layout-h.vue";
3
+ export { default as SuVLayout } from "./components/layout-v.vue";
4
+ export { default as SuMain } from "./components/layout-main.vue";
5
+ export { default as SuTable } from "./components/table.vue";
6
+ export { default as SuHLine } from "./components/line-h.vue";
7
+ export { default as SuVLine } from "./components/line-v.vue";
8
+ export { default as SuCard } from "./components/card.vue";
9
+ export { default as SuTree } from "./components/tree/index.vue";
10
10
  //表单
11
- import SuInput from "./components/input.vue";
12
- import SuSelect from "./components/select.vue";
13
- import SuButton from "./components/button.vue";
14
- import SuSwitch from "./components/switch.vue";
15
- import SuSlider from "./components/slider.vue";
11
+ export { default as SuInput } from "./components/input.vue";
12
+ export { default as SuSelect } from "./components/select.vue";
13
+ export { default as SuButton } from "./components/button.vue";
14
+ export { default as SuSwitch } from "./components/switch.vue";
15
+ export { default as SuSlider } from "./components/slider.vue";
16
16
 
17
17
 
18
- import SuCalendar from "./components/calendar.vue";
18
+ export { default as SuCalendar } from "./components/calendar.vue";
19
19
 
20
- import ViewControl from "./components/view-control.vue";
20
+ export { default as SuViewControl } from "./components/view-control.vue";
21
21
 
22
- import { App } from 'vue';
22
+ export * from "./components/menu";
23
+ export * from "./components/content";
23
24
 
24
- declare interface IObj {
25
- // eslint-disable-next-line
26
- [key: string]: any,
27
- }
28
- export const components={SuHLayout,SuVLayout,SuMain,SuHLine,SuVLine,SuCard,SuTree,SuTable,SuButton,SuInput,SuSelect,ViewControl,SuSwitch,SuCalendar,SuSlider} as IObj;
29
- //export components;
30
- const registComponents=function(app:App):void{
31
- for(const key in components){
32
- app.component(components[key].__o.name,components[key]);
25
+ import { data } from "./reg";
26
+
27
+ import { App, readonly } from "vue";
28
+
29
+ // eslint-disable-next-line
30
+ export const components:Record<string,any>={};
31
+ Object.keys(data).map((key) => {
32
+ if(data[key].component&&!data[key].internalOnly){
33
+ components[key]=data[key].component;
33
34
  }
35
+ });
36
+ export const allData = readonly(data);
37
+
38
+ const registComponents=function(app:App):void{
39
+ Object.keys(data).map((key) => {
40
+ if(data[key].component&&!data[key].internalOnly){
41
+ app.component(components[key].__o.name,components[key]);
42
+ }
43
+ });
34
44
  }
45
+ export const infos = readonly(data);
35
46
  export default {
36
47
  ...components,
37
48
  components,
package/src/reg.ts CHANGED
@@ -1,14 +1,35 @@
1
- import { VueDecorator, PropOptions, createDecorator } from 'vue-class-component';
2
- import { reactive } from 'vue';
3
-
1
+ import { VueDecorator, PropOptions, createDecorator, Vue, VueConstructor, VueBase } from "vue-class-component";
2
+ import { ComponentOptions, reactive } from "vue";
3
+ interface ComponentInfo{
4
+ hideInDoc?:boolean;
5
+ internalOnly?:boolean;
6
+ type?:'from'|'layout';
7
+ }
4
8
 
5
9
  export const data = reactive({
6
10
  //
7
11
  } as {[key:string]: {
8
12
  props?:{
9
13
  [key:string]: PropOptions
14
+ };
15
+ component?:VueConstructor<VueBase>;
16
+ }&ComponentInfo});
17
+
18
+ export type RegisterOptions<V> = ComponentOptions & ThisType<V> & ComponentInfo;
19
+ export function Register<V extends Vue>({ hideInDoc, internalOnly, ...options }:RegisterOptions<V>):<VC extends VueConstructor<VueBase>>(target: VC) => VC{
20
+ return (Component) => {
21
+ if(options.name){
22
+ if(!data[options.name]) data[options.name] = {};
23
+ // eslint-disable-next-line
24
+ data[options.name].component = Component;
25
+ data[options.name].hideInDoc = hideInDoc;
26
+ data[options.name].internalOnly = internalOnly;
27
+ }
28
+ // eslint-disable-next-line
29
+ (Component as any).__o = options
30
+ return Component
10
31
  }
11
- }});
32
+ }
12
33
 
13
34
  const hyphenate = (str:string) => str.replace(/\B([A-Z])/g, '-$1').toLowerCase();
14
35
  // eslint-disable-next-line
@@ -62,7 +83,6 @@ export function Emit(event?:string, shouldEmit?:(res:any)=>boolean):VueDecorator
62
83
  export function Prop(propOptions:PropOptions):VueDecorator{
63
84
  return createDecorator((componentOptions, key) => {
64
85
  if(componentOptions.name){
65
- // console.log(componentOptions.name);
66
86
  if(!data[componentOptions.name]) data[componentOptions.name] = {};
67
87
  if(!data[componentOptions.name].props) data[componentOptions.name].props={};
68
88
  // eslint-disable-next-line
@@ -71,4 +91,4 @@ export function Prop(propOptions:PropOptions):VueDecorator{
71
91
  if(!componentOptions.props) componentOptions.props={};
72
92
  componentOptions.props[key] = propOptions;
73
93
  });
74
- }
94
+ }
package/src/types.d.ts CHANGED
@@ -1,3 +1,9 @@
1
1
  export interface ViewCtrlInfo{
2
2
  isMobile?:boolean;
3
3
  }
4
+ export interface MenuItem{
5
+ name?:string;
6
+ path:string;
7
+ title:string;
8
+ children?:MenuItem[];
9
+ }
package/src/utils.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
 
3
3
  export function getParentNodeByClass(node:HTMLElement,className:string):HTMLElement|null{
4
4
  let p:HTMLElement|null = node;
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
  import "../global-style.css";
3
3
  export default class SuButton extends Vue {
4
4
  size: string;
@@ -1,10 +1,26 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
+ import moment from "moment";
2
3
  import "../global-style.css";
4
+ interface DateBaseInfo {
5
+ display: number;
6
+ isPrevious: boolean;
7
+ isNext: boolean;
8
+ week: string;
9
+ date: moment.Moment;
10
+ }
3
11
  export default class SuCalendar extends Vue {
4
- readonly displayMonth: Date;
5
- private get displayMonthStartDate();
12
+ readonly displayMonth: Date | string;
13
+ private dYear;
14
+ private dMonth;
15
+ private get displayMonthDate();
6
16
  readonly weekName: string[];
17
+ weekOffect: number;
7
18
  private get displayHead();
8
- private getMonthDate;
9
19
  private get displayData();
20
+ readonly renderCell: (arg: DateBaseInfo) => unknown;
21
+ private showSelYear;
22
+ private dShowSelYear;
23
+ private showSelMonth;
24
+ private dateClick;
10
25
  }
26
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Vue } from 'vue-class-component';
2
+ export default class CallRender extends Vue {
3
+ func: (...arg: any[]) => any;
4
+ args: any[];
5
+ render(): any;
6
+ }
@@ -0,0 +1 @@
1
+ export { default as SuPage } from "./page.vue";
@@ -0,0 +1,10 @@
1
+ import { Vue } from "vue-class-component";
2
+ import { ViewCtrlInfo } from "../../types";
3
+ import "@ui-root/global-style.css";
4
+ export default class SuMain extends Vue {
5
+ readonly suControl: ViewCtrlInfo;
6
+ private title;
7
+ private logo;
8
+ private menu;
9
+ private isOpenMenu;
10
+ }
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
  import "../global-style.css";
3
3
  export default class SuHLayout extends Vue {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
  import "../global-style.css";
3
3
  export default class SuMain extends Vue {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
  import "../global-style.css";
3
3
  export default class SuVLayout extends Vue {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
  import "../global-style.css";
3
3
  export default class SuHLine extends Vue {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Vue } from 'vue-class-component';
1
+ import { Vue } from "vue-class-component";
2
2
  import "../global-style.css";
3
3
  export default class SuVLine extends Vue {
4
4
  }
@@ -0,0 +1 @@
1
+ export { default as SuMenu } from "./index.vue";
@@ -0,0 +1,12 @@
1
+ import { Vue } from "vue-class-component";
2
+ import '@ui-root/global-style.css';
3
+ export default class SuHMenu extends Vue {
4
+ private menu;
5
+ private direction;
6
+ private get menuComponent();
7
+ private component;
8
+ private get displayComponent();
9
+ private key;
10
+ private get useedKey();
11
+ private handleItemClick;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { Vue } from 'vue-class-component';
2
+ import '@ui-root/global-style.css';
3
+ export default class SuHMenu extends Vue {
4
+ private menu;
5
+ private splitMenu;
6
+ private displayItem;
7
+ created(): void;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { Vue } from 'vue-class-component';
2
+ import '@ui-root/global-style.css';
3
+ export default class SuHMenuChild extends Vue {
4
+ private menu;
5
+ private itemComponent;
6
+ private direction;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { Vue } from "vue-class-component";
2
+ import '@ui-root/global-style.css';
3
+ export default class SuHMenuItem extends Vue {
4
+ isFocus: boolean;
5
+ private item;
6
+ private selfClass;
7
+ private childDirection;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { Vue } from 'vue-class-component';
2
+ import '@ui-root/global-style.css';
3
+ export default class SuHMenu extends Vue {
4
+ private menu;
5
+ private path;
6
+ private get current();
7
+ private handlePathClick;
8
+ private handleItemClick;
9
+ }
@@ -16,7 +16,9 @@ export default class SuSlider extends Vue {
16
16
  private get displayValue();
17
17
  private get positionLeft();
18
18
  private updateEvent;
19
+ private handleBarClick;
19
20
  private dx;
21
+ private isHover;
20
22
  private handleMouseDown;
21
23
  private touchstartPoint;
22
24
  private handleTouchStart;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ mounted(el: HTMLElement, cb: any): void;
3
+ };
4
+ export default _default;
package/types/main.d.ts CHANGED
@@ -1,10 +1,72 @@
1
- import { App } from 'vue';
2
- declare interface IObj {
3
- [key: string]: any;
4
- }
5
- export declare const components: IObj;
1
+ export { default as SuHLayout } from "./components/layout-h.vue";
2
+ export { default as SuVLayout } from "./components/layout-v.vue";
3
+ export { default as SuMain } from "./components/layout-main.vue";
4
+ export { default as SuTable } from "./components/table.vue";
5
+ export { default as SuHLine } from "./components/line-h.vue";
6
+ export { default as SuVLine } from "./components/line-v.vue";
7
+ export { default as SuCard } from "./components/card.vue";
8
+ export { default as SuTree } from "./components/tree/index.vue";
9
+ export { default as SuInput } from "./components/input.vue";
10
+ export { default as SuSelect } from "./components/select.vue";
11
+ export { default as SuButton } from "./components/button.vue";
12
+ export { default as SuSwitch } from "./components/switch.vue";
13
+ export { default as SuSlider } from "./components/slider.vue";
14
+ export { default as SuCalendar } from "./components/calendar.vue";
15
+ export { default as SuViewControl } from "./components/view-control.vue";
16
+ export * from "./components/menu";
17
+ export * from "./components/content";
18
+ import { App } from "vue";
19
+ export declare const components: Record<string, any>;
20
+ export declare const allData: {
21
+ readonly [x: string]: {
22
+ readonly props?: {
23
+ readonly [x: string]: {
24
+ readonly type?: true | (new (...args: any[]) => any) | (() => any) | {
25
+ (): any;
26
+ new (): any;
27
+ readonly prototype: any;
28
+ } | readonly ((new (...args: any[]) => any) | (() => any) | {
29
+ (): any;
30
+ new (): any;
31
+ readonly prototype: any;
32
+ })[] | null | undefined;
33
+ readonly required?: boolean | undefined;
34
+ readonly default?: any;
35
+ readonly validator?: ((value: unknown) => boolean) | undefined;
36
+ };
37
+ } | undefined;
38
+ readonly component?: import("vue-class-component").VueConstructor<import("vue-class-component").Vue<unknown, never[], {}>> | undefined;
39
+ readonly hideInDoc?: boolean | undefined;
40
+ readonly internalOnly?: boolean | undefined;
41
+ readonly type?: "from" | "layout" | undefined;
42
+ };
43
+ };
44
+ export declare const infos: {
45
+ readonly [x: string]: {
46
+ readonly props?: {
47
+ readonly [x: string]: {
48
+ readonly type?: true | (new (...args: any[]) => any) | (() => any) | {
49
+ (): any;
50
+ new (): any;
51
+ readonly prototype: any;
52
+ } | readonly ((new (...args: any[]) => any) | (() => any) | {
53
+ (): any;
54
+ new (): any;
55
+ readonly prototype: any;
56
+ })[] | null | undefined;
57
+ readonly required?: boolean | undefined;
58
+ readonly default?: any;
59
+ readonly validator?: ((value: unknown) => boolean) | undefined;
60
+ };
61
+ } | undefined;
62
+ readonly component?: import("vue-class-component").VueConstructor<import("vue-class-component").Vue<unknown, never[], {}>> | undefined;
63
+ readonly hideInDoc?: boolean | undefined;
64
+ readonly internalOnly?: boolean | undefined;
65
+ readonly type?: "from" | "layout" | undefined;
66
+ };
67
+ };
6
68
  declare const _default: {
7
- components: IObj;
69
+ components: Record<string, any>;
8
70
  install(app: App): void;
9
71
  };
10
72
  export default _default;
package/types/reg.d.ts CHANGED
@@ -1,4 +1,10 @@
1
- import { VueDecorator, PropOptions } from 'vue-class-component';
1
+ import { VueDecorator, PropOptions, Vue, VueConstructor, VueBase } from "vue-class-component";
2
+ import { ComponentOptions } from "vue";
3
+ interface ComponentInfo {
4
+ hideInDoc?: boolean;
5
+ internalOnly?: boolean;
6
+ type?: 'from' | 'layout';
7
+ }
2
8
  export declare const data: {
3
9
  [x: string]: {
4
10
  props?: {
@@ -11,13 +17,20 @@ export declare const data: {
11
17
  (): any;
12
18
  new (): any;
13
19
  readonly prototype: any;
14
- })[];
15
- required?: boolean;
20
+ })[] | null | undefined;
21
+ required?: boolean | undefined;
16
22
  default?: any;
17
- validator?: (value: unknown) => boolean;
23
+ validator?: ((value: unknown) => boolean) | undefined;
18
24
  };
19
- };
25
+ } | undefined;
26
+ component?: VueConstructor<Vue<unknown, never[], {}>> | undefined;
27
+ hideInDoc?: boolean | undefined;
28
+ internalOnly?: boolean | undefined;
29
+ type?: "from" | "layout" | undefined;
20
30
  };
21
31
  };
32
+ export declare type RegisterOptions<V> = ComponentOptions & ThisType<V> & ComponentInfo;
33
+ export declare function Register<V extends Vue>({ hideInDoc, internalOnly, ...options }: RegisterOptions<V>): <VC extends VueConstructor<VueBase>>(target: VC) => VC;
22
34
  export declare function Emit(event?: string, shouldEmit?: (res: any) => boolean): VueDecorator;
23
35
  export declare function Prop(propOptions: PropOptions): VueDecorator;
36
+ export {};
@@ -1,62 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
- <!--
4
- 2013-9-30: Created.
5
- -->
6
- <svg>
7
- <metadata>
8
- Created by iconfont
9
- </metadata>
10
- <defs>
11
-
12
- <font id="star-ui-iconfont" horiz-adv-x="1024" >
13
- <font-face
14
- font-family="star-ui-iconfont"
15
- font-weight="500"
16
- font-stretch="normal"
17
- units-per-em="1024"
18
- ascent="896"
19
- descent="-128"
20
- />
21
- <missing-glyph />
22
-
23
- <glyph glyph-name="code" unicode="&#58983;" d="M322.133333 599.466667c-12.8 12.8-32 12.8-44.8 0l-192-192c-12.8-12.8-12.8-32 0-44.8l192-192c6.4-6.4 14.933333-8.533333 23.466667-8.533334s17.066667 2.133333 23.466667 8.533334c12.8 12.8 12.8 32 0 44.8L151.466667 384l168.533333 168.533333c12.8 12.8 12.8 34.133333 2.133333 46.933334zM940.8 407.466667l-192 192c-12.8 12.8-32 12.8-44.8 0-12.8-12.8-12.8-32 0-44.8l168.533333-168.533334-168.533333-168.533333c-12.8-12.8-12.8-32 0-44.8 6.4-6.4 14.933333-8.533333 23.466667-8.533333s17.066667 2.133333 23.466666 8.533333l192 192c8.533333 8.533333 8.533333 29.866667-2.133333 42.666667zM622.933333 819.2c-17.066667 4.266667-34.133333-6.4-38.4-23.466667L366.933333-6.4c-4.266667-17.066667 6.4-34.133333 23.466667-38.4 2.133333 0 6.4-2.133333 8.533333-2.133333 14.933333 0 27.733333 8.533333 29.866667 23.466666L644.266667 780.8c4.266667 17.066667-4.266667 34.133333-21.333334 38.4z" horiz-adv-x="1024" />
24
-
25
-
26
- <glyph glyph-name="close" unicode="&#58984;" d="M556.8 384L832 659.2c12.8 12.8 12.8 32 0 44.8-12.8 12.8-32 12.8-44.8 0L512 428.8l-275.2 277.333333c-12.8 12.8-32 12.8-44.8 0-12.8-12.8-12.8-32 0-44.8l275.2-277.333333-277.333333-275.2c-12.8-12.8-12.8-32 0-44.8 6.4-6.4 14.933333-8.533333 23.466666-8.533333s17.066667 2.133333 23.466667 8.533333L512 339.2 787.2 64c6.4-6.4 14.933333-8.533333 23.466667-8.533333s17.066667 2.133333 23.466666 8.533333c12.8 12.8 12.8 32 0 44.8L556.8 384z" horiz-adv-x="1024" />
27
-
28
-
29
- <glyph glyph-name="clean" unicode="&#58880;" d="M512 821.333333C270.933333 821.333333 74.666667 625.066667 74.666667 384S270.933333-53.33333300000004 512-53.33333300000004 949.333333 142.93333299999995 949.333333 384 753.066667 821.333333 512 821.333333z m0-810.666666c-204.8 0-373.333333 168.533333-373.333333 373.333333S307.2 757.333333 512 757.333333 885.333333 588.8 885.333333 384 716.8 10.666666999999961 512 10.666666999999961zM657.066667 535.4666669999999c-12.8 12.8-32 12.8-44.8 0l-102.4-102.4-102.4 102.4c-12.8 12.8-32 12.8-44.8 0-12.8-12.8-12.8-32 0-44.8l102.4-102.4-102.4-102.4c-12.8-12.8-12.8-32 0-44.8 6.4-6.4 14.933333-8.533333 23.466666-8.533334s17.066667 2.133333 23.466667 8.533334l102.4 102.4 102.4-102.4c6.4-6.4 14.933333-8.533333 23.466667-8.533334s17.066667 2.133333 23.466666 8.533334c12.8 12.8 12.8 32 0 44.8l-106.666666 100.266666 102.4 102.4c12.8 12.8 12.8 34.133333 0 46.933334z" horiz-adv-x="1024" />
30
-
31
-
32
- <glyph glyph-name="select" unicode="&#59006;" d="M409.6 138.666667c-8.533333 0-17.066667 2.133333-23.466667 8.533333l-238.933333 234.666667c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l215.466667-213.333334 422.4 428.8c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L430.933333 149.333333c-4.266667-8.533333-12.8-10.666667-21.333333-10.666666z" horiz-adv-x="1024" />
33
-
34
-
35
- <glyph glyph-name="arrow-left" unicode="&#58884;" d="M384 384L731.733333 693.333333c17.066667 14.933333 19.2 42.666667 4.266667 59.733334-14.933333 17.066667-42.666667 19.2-59.733333 4.266666l-384-341.333333c-10.666667-8.533333-14.933333-19.2-14.933334-32s4.266667-23.466667 14.933334-32l384-341.333333c8.533333-6.4 19.2-10.666667 27.733333-10.666667 12.8 0 23.466667 4.266667 32 14.933333 14.933333 17.066667 14.933333 44.8-4.266667 59.733334L384 384z" horiz-adv-x="1024" />
36
-
37
-
38
- <glyph glyph-name="arrow-up" unicode="&#58881;" d="M904.533333 221.866667l-362.666666 362.666666c-17.066667 17.066667-42.666667 17.066667-59.733334 0l-362.666666-362.666666c-17.066667-17.066667-17.066667-42.666667 0-59.733334 17.066667-17.066667 42.666667-17.066667 59.733333 0L512 494.933333l332.8-332.8c8.533333-8.533333 19.2-12.8 29.866667-12.8s21.333333 4.266667 29.866666 12.8c17.066667 17.066667 17.066667 42.666667 0 59.733334z" horiz-adv-x="1024" />
39
-
40
-
41
- <glyph glyph-name="arrow-down" unicode="&#58883;" d="M904.533333 584.5333330000001c-17.066667 17.066667-42.666667 17.066667-59.733333 0L512 251.73333300000002 179.2 584.5333330000001c-17.066667 17.066667-42.666667 17.066667-59.733333 0-17.066667-17.066667-17.066667-42.666667 0-59.733333l362.666666-362.666667c8.533333-8.533333 19.2-12.8 29.866667-12.8s21.333333 4.266667 29.866667 12.8l362.666666 362.666667c17.066667 17.066667 17.066667 42.666667 0 59.733333z" horiz-adv-x="1024" />
42
-
43
-
44
- <glyph glyph-name="arrow-right" unicode="&#58882;" d="M731.733333 416l-384 341.333333c-17.066667 14.933333-44.8 14.933333-59.733333-4.266666-14.933333-17.066667-14.933333-44.8 4.266667-59.733334L640 384 292.266667 74.66666699999996c-17.066667-14.933333-19.2-42.666667-4.266667-59.733334 8.533333-8.533333 19.2-14.933333 32-14.933333 10.666667 0 19.2 4.266667 27.733333 10.666667l384 341.333333c8.533333 8.533333 14.933333 19.2 14.933334 32s-4.266667 23.466667-14.933334 32z" horiz-adv-x="1024" />
45
-
46
-
47
- <glyph glyph-name="arrow-up-filling" unicode="&#59017;" d="M541.866667 610.133333l345.6-345.6c17.066667-17.066667 17.066667-42.666667 0-59.733333-8.533333-8.533333-19.2-12.8-29.866667-12.8H168.533333c-23.466667 0-42.666667 19.2-42.666666 42.666667 0 10.666667 4.266667 21.333333 12.8 29.866666l343.466666 345.6c17.066667 17.066667 42.666667 17.066667 59.733334 0z" horiz-adv-x="1024" />
48
-
49
-
50
- <glyph glyph-name="arrow-down-filling" unicode="&#59018;" d="M482.133333 157.866667L136.533333 503.466667c-17.066667 17.066667-17.066667 42.666667 0 59.733333 8.533333 8.533333 19.2 12.8 29.866667 12.8h689.066667c23.466667 0 42.666667-19.2 42.666666-42.666667 0-10.666667-4.266667-21.333333-12.8-29.866666L541.866667 157.866667c-17.066667-17.066667-42.666667-17.066667-59.733334 0z" horiz-adv-x="1024" />
51
-
52
-
53
- <glyph glyph-name="arrow-left-filling" unicode="&#59019;" d="M268.8 416L633.6 746.666667c17.066667 14.933333 44.8 14.933333 59.733333-2.133334 6.4-8.533333 10.666667-19.2 10.666667-29.866666v-661.333334c0-23.466667-19.2-42.666667-42.666667-42.666666-10.666667 0-21.333333 4.266667-27.733333 10.666666l-362.666667 330.666667c-17.066667 14.933333-19.2 42.666667-2.133333 59.733333-2.133333 2.133333 0 2.133333 0 4.266667z" horiz-adv-x="1024" />
54
-
55
-
56
- <glyph glyph-name="arrow-right-filling" unicode="&#59020;" d="M755.2 352L390.4 21.333333c-17.066667-14.933333-44.8-14.933333-59.733333 2.133334-6.4 8.533333-10.666667 19.2-10.666667 29.866666v661.333334c0 23.466667 19.2 42.666667 42.666667 42.666666 10.666667 0 21.333333-4.266667 27.733333-10.666666l362.666667-330.666667c17.066667-14.933333 19.2-42.666667 2.133333-59.733333 2.133333-2.133333 0-2.133333 0-4.266667z" horiz-adv-x="1024" />
57
-
58
-
59
-
60
-
61
- </font>
62
- </defs></svg>