@tnlmedia/inkmagine-gui 1.0.1 → 2.0.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 (82) hide show
  1. package/README.md +18 -0
  2. package/README.zh-tw.md +349 -1
  3. package/dist/chunks/InkCheckbox.Bo9P4Fnq.js +5 -0
  4. package/dist/chunks/InkCheckbox.Bo9P4Fnq.js.map +1 -0
  5. package/dist/chunks/InkDatetime.DuIlN9qX.js +5 -0
  6. package/dist/chunks/InkDatetime.DuIlN9qX.js.map +1 -0
  7. package/dist/chunks/InkDatetimerng.Un2rLzLU.js +5 -0
  8. package/dist/chunks/InkDatetimerng.Un2rLzLU.js.map +1 -0
  9. package/dist/chunks/InkHashtag.C2MlkO78.js +5 -0
  10. package/dist/chunks/InkHashtag.C2MlkO78.js.map +1 -0
  11. package/dist/chunks/InkRadio.Dlej2ra5.js +5 -0
  12. package/dist/chunks/InkRadio.Dlej2ra5.js.map +1 -0
  13. package/dist/chunks/InkSelect.DWiVv_fE.js +5 -0
  14. package/dist/chunks/InkSelect.DWiVv_fE.js.map +1 -0
  15. package/dist/chunks/InkSwitch.Bmrcv2_W.js +5 -0
  16. package/dist/chunks/InkSwitch.Bmrcv2_W.js.map +1 -0
  17. package/dist/chunks/InkText.2z3CBfGZ.js +5 -0
  18. package/dist/chunks/InkText.2z3CBfGZ.js.map +1 -0
  19. package/dist/chunks/InkTextarea.bSKGpfeu.js +5 -0
  20. package/dist/chunks/InkTextarea.bSKGpfeu.js.map +1 -0
  21. package/dist/chunks/InkUrl.y40jqTAY.js +5 -0
  22. package/dist/chunks/InkUrl.y40jqTAY.js.map +1 -0
  23. package/dist/chunks/en.CHdwefRA.js +183 -0
  24. package/dist/chunks/en.CHdwefRA.js.map +1 -0
  25. package/dist/chunks/ja.AHwqhlss.js +146 -0
  26. package/dist/chunks/ja.AHwqhlss.js.map +1 -0
  27. package/dist/chunks/zh-tw.0zg_GCuJ.js +182 -0
  28. package/dist/chunks/zh-tw.0zg_GCuJ.js.map +1 -0
  29. package/dist/inkmagine-gui.es.js +4542 -0
  30. package/dist/inkmagine-gui.es.js.map +1 -0
  31. package/dist/inkmagine-gui.umd.js +3 -0
  32. package/dist/inkmagine-gui.umd.js.map +1 -0
  33. package/dist/style/index.css +1 -0
  34. package/dist/tailwind.config.js +158 -0
  35. package/dist/types/components/InkBadge.vue.d.ts +27 -0
  36. package/dist/types/components/InkButton.vue.d.ts +33 -0
  37. package/dist/types/components/InkNavbar.vue.d.ts +11 -0
  38. package/dist/types/components/InkSpinner.vue.d.ts +8 -0
  39. package/dist/types/components/ink-disclosure/InkDisclosure.vue.d.ts +17 -0
  40. package/dist/types/components/ink-disclosure/InkDisclosureButton.vue.d.ts +24 -0
  41. package/dist/types/components/ink-disclosure/InkDisclosurePanel.vue.d.ts +17 -0
  42. package/dist/types/components/ink-menu/InkMenu.vue.d.ts +23 -0
  43. package/dist/types/components/ink-menu/InkMenuButton.vue.d.ts +23 -0
  44. package/dist/types/components/ink-menu/InkMenuItem.vue.d.ts +22 -0
  45. package/dist/types/components/ink-menu/InkMenuItems.vue.d.ts +17 -0
  46. package/dist/types/components/ink-menu/InkMenuItemsWrapper.vue.d.ts +17 -0
  47. package/dist/types/components/ink-sidebar/InkSidebar.vue.d.ts +57 -0
  48. package/dist/types/components/ink-sidebar/InkSidebarMenu.vue.d.ts +26 -0
  49. package/dist/types/components/ink-sidebar/InkSidebarSimpleHide.vue.d.ts +22 -0
  50. package/dist/types/components/ink-tooltip/Ink-tooltip.d.ts +3 -0
  51. package/dist/types/components/ink-tooltip/InkVTooltip.vue.d.ts +18 -0
  52. package/dist/types/components/input/InkCheckbox.vue.d.ts +72 -0
  53. package/dist/types/components/input/InkDatetime.vue.d.ts +543 -0
  54. package/dist/types/components/input/InkDatetimerng.vue.d.ts +1015 -0
  55. package/dist/types/components/input/InkElConfigProvider.vue.d.ts +17 -0
  56. package/dist/types/components/input/InkErrorMessage.vue.d.ts +14 -0
  57. package/dist/types/components/input/InkField.vue.d.ts +10 -0
  58. package/dist/types/components/input/InkFieldMessage.vue.d.ts +14 -0
  59. package/dist/types/components/input/InkHashtag.vue.d.ts +72 -0
  60. package/dist/types/components/input/InkRadio.vue.d.ts +72 -0
  61. package/dist/types/components/input/InkSelect.vue.d.ts +72 -0
  62. package/dist/types/components/input/InkSwitch.vue.d.ts +61 -0
  63. package/dist/types/components/input/InkText.vue.d.ts +70 -0
  64. package/dist/types/components/input/InkTextarea.vue.d.ts +70 -0
  65. package/dist/types/components/input/InkUrl.vue.d.ts +70 -0
  66. package/dist/types/components/input/InkWordCount.vue.d.ts +6 -0
  67. package/dist/types/components/input/InputFrame.vue.d.ts +29 -0
  68. package/dist/types/components/input/InputInner.vue.d.ts +17 -0
  69. package/dist/types/components/input/InputWrapper.vue.d.ts +17 -0
  70. package/dist/types/components/input/field-data-interface.d.ts +144 -0
  71. package/dist/types/components/input/input-default-value.d.ts +75 -0
  72. package/dist/types/helper/dayjs.d.ts +10 -0
  73. package/dist/types/helper/handle-sidebar-toggler-click.d.ts +1 -0
  74. package/dist/types/helper/i18n.d.ts +288 -0
  75. package/dist/types/helper/set-font.d.ts +1 -0
  76. package/dist/types/helper/useAttrs.d.ts +3 -0
  77. package/dist/types/helper/useDefineRule.d.ts +2 -0
  78. package/dist/types/index.d.ts +36 -0
  79. package/dist/types/lang/en-us.json.d.ts +52 -0
  80. package/dist/types/lang/ja-jp.json.d.ts +52 -0
  81. package/dist/types/lang/zh-tw.json.d.ts +53 -0
  82. package/package.json +23 -7
@@ -0,0 +1,57 @@
1
+ interface SwitchItem {
2
+ id: string | number;
3
+ name: string;
4
+ logo: string;
5
+ }
6
+ interface MenuItemSchema {
7
+ id: string;
8
+ name: string;
9
+ icon: string;
10
+ route?: {
11
+ name: string;
12
+ [key: string]: string | number;
13
+ };
14
+ children?: MenuChildrenItemSchema[];
15
+ isAllow?: boolean;
16
+ }
17
+ interface MenuChildrenItemSchema {
18
+ id: string | number;
19
+ name: string;
20
+ route: {
21
+ name: string;
22
+ [key: string]: string | number;
23
+ };
24
+ isAllow: boolean;
25
+ }
26
+ interface SidebarProps {
27
+ currentAppName: string;
28
+ currentMainSwitchItem: SwitchItem;
29
+ mainSwitchItems: SwitchItem[];
30
+ currentTabSwitchItemId?: string | number;
31
+ tabSwitchItems?: SwitchItem[];
32
+ menu: MenuItemSchema[];
33
+ currentMenuItemId: string | number;
34
+ }
35
+ declare function __VLS_template(): {
36
+ attrs: Partial<{}>;
37
+ slots: {
38
+ default?(_: {}): any;
39
+ };
40
+ refs: {};
41
+ rootEl: HTMLElement;
42
+ };
43
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
44
+ declare const __VLS_component: import('vue').DefineComponent<SidebarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ mainItemCheckSwitch: (...args: any[]) => void;
46
+ tabItemCheckSwitch: (...args: any[]) => void;
47
+ }, string, import('vue').PublicProps, Readonly<SidebarProps> & Readonly<{
48
+ onMainItemCheckSwitch?: ((...args: any[]) => any) | undefined;
49
+ onTabItemCheckSwitch?: ((...args: any[]) => any) | undefined;
50
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
51
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
+ export default _default;
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,26 @@
1
+ export interface MenuItemSchema {
2
+ id: string;
3
+ name: string;
4
+ icon: string;
5
+ route?: {
6
+ name: string;
7
+ [key: string]: string | number;
8
+ };
9
+ children?: MenuChildrenItemSchema[];
10
+ isAllow?: boolean;
11
+ }
12
+ export interface MenuChildrenItemSchema {
13
+ id: string | number;
14
+ name: string;
15
+ route: {
16
+ name: string;
17
+ [key: string]: string | number;
18
+ };
19
+ isAllow: boolean;
20
+ }
21
+ interface SidebarMenuProps {
22
+ menu: MenuItemSchema[];
23
+ currentMenuItemId: string | number;
24
+ }
25
+ declare const _default: import('vue').DefineComponent<SidebarMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
26
+ export default _default;
@@ -0,0 +1,22 @@
1
+ interface SidebarSimpleHideProps {
2
+ as?: string;
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<SidebarSimpleHideProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarSimpleHideProps> & Readonly<{}>, {
14
+ as: string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,3 @@
1
+ import { default as InkVTooltip } from './InkVTooltip.vue';
2
+ import { vTooltip as vInkTooltip } from 'floating-vue';
3
+ export { vInkTooltip, InkVTooltip };
@@ -0,0 +1,18 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ popper?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,72 @@
1
+ import { PropType } from 'vue';
2
+ import { CheckBoxSharp, CheckBoxInputBind } from './field-data-interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ field: {
5
+ type: PropType<CheckBoxSharp>;
6
+ required: true;
7
+ };
8
+ inputBind: {
9
+ type: PropType<CheckBoxInputBind>;
10
+ default: () => {};
11
+ };
12
+ valueIndex: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ required: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ inputTotal: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ inputOn: {
29
+ type: ObjectConstructor;
30
+ };
31
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ removeInputItemFn: (...args: any[]) => void;
33
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
+ field: {
35
+ type: PropType<CheckBoxSharp>;
36
+ required: true;
37
+ };
38
+ inputBind: {
39
+ type: PropType<CheckBoxInputBind>;
40
+ default: () => {};
41
+ };
42
+ valueIndex: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ required: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ disabled: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ inputTotal: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ inputOn: {
59
+ type: ObjectConstructor;
60
+ };
61
+ }>> & Readonly<{
62
+ onRemoveInputItemFn?: ((...args: any[]) => any) | undefined;
63
+ }>, {
64
+ disabled: boolean;
65
+ required: boolean;
66
+ inputTotal: number;
67
+ inputBind: CheckBoxInputBind;
68
+ valueIndex: number;
69
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
70
+ load: HTMLDivElement;
71
+ }, any>;
72
+ export default _default;