jplan-pack 0.4.44 → 0.4.46

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.
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ actions?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ 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>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -18,9 +18,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
18
18
  default?(_: {}): any;
19
19
  };
20
20
  emit: (event: "click", ...args: any[]) => void;
21
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
22
- [key: string]: any;
23
- }> & {
21
+ }>) => import('vue').VNode & {
24
22
  __ctx?: Awaited<typeof __VLS_setup>;
25
23
  };
26
24
  export default _default;
@@ -11,6 +11,7 @@ import { default as JDialog } from './JDialog';
11
11
  import { default as ConfirmDialog } from './ConfirmDialog';
12
12
  import { default as JAvatar } from './JAvatar';
13
13
  import { default as AvatarPicture } from './AvatarPicture';
14
+ import { default as ContextMenu } from './ContextMenu';
14
15
  import { default as JTextField } from './form/JTextField';
15
16
  import { default as JSelect } from './form/JSelect';
16
17
  import { default as JTextArea } from './form/JTextArea';
@@ -19,7 +20,7 @@ import { default as TabFormHeader } from './form/headless/TabFormHeader';
19
20
  import { default as FormHeadless } from './form/headless/FormHeadless';
20
21
  import { default as SpinnerLoader } from './spinner/SpinnerLoader';
21
22
  import { TablerIcons } from './icon/tabler';
22
- export { UiTable, ConfirmDialog, CopyButton, DotsMenu, FormMetadata, JBtn, DeleteButton, EditButton, JDialog, JIconBtn, JSelect, JTextArea, JTextField, JForm, TabFormHeader, FormHeadless, TablerIcons, ParentCard, ColumnSettingsDialog, SpinnerLoader, JAvatar, AvatarPicture, };
23
+ export { UiTable, ConfirmDialog, CopyButton, DotsMenu, FormMetadata, JBtn, DeleteButton, EditButton, JDialog, JIconBtn, JSelect, JTextArea, JTextField, JForm, TabFormHeader, FormHeadless, TablerIcons, ParentCard, ColumnSettingsDialog, SpinnerLoader, ContextMenu, JAvatar, AvatarPicture, };
23
24
  declare const _default: {
24
25
  IconSet: import('vue').DefineComponent<{
25
26
  item: import('..').IconType | string;
@@ -9,25 +9,25 @@ export default function useGlobalScope(): {
9
9
  globalScope: Readonly<Ref<Readonly<Ref<{
10
10
  readonly domain: Readonly<string>;
11
11
  readonly environment: Readonly<string>;
12
- readonly scope_type?: ("org" | "team" | "shared" | "user" | "") | undefined;
12
+ readonly scope_type?: "org" | "team" | "shared" | "user" | "" | undefined;
13
13
  readonly organization?: string | undefined;
14
14
  readonly team?: string | undefined;
15
15
  } | null, {
16
16
  readonly domain: Readonly<string>;
17
17
  readonly environment: Readonly<string>;
18
- readonly scope_type?: ("org" | "team" | "shared" | "user" | "") | undefined;
18
+ readonly scope_type?: "org" | "team" | "shared" | "user" | "" | undefined;
19
19
  readonly organization?: string | undefined;
20
20
  readonly team?: string | undefined;
21
21
  } | null>>, Readonly<Ref<{
22
22
  readonly domain: Readonly<string>;
23
23
  readonly environment: Readonly<string>;
24
- readonly scope_type?: ("org" | "team" | "shared" | "user" | "") | undefined;
24
+ readonly scope_type?: "org" | "team" | "shared" | "user" | "" | undefined;
25
25
  readonly organization?: string | undefined;
26
26
  readonly team?: string | undefined;
27
27
  } | null, {
28
28
  readonly domain: Readonly<string>;
29
29
  readonly environment: Readonly<string>;
30
- readonly scope_type?: ("org" | "team" | "shared" | "user" | "") | undefined;
30
+ readonly scope_type?: "org" | "team" | "shared" | "user" | "" | undefined;
31
31
  readonly organization?: string | undefined;
32
32
  readonly team?: string | undefined;
33
33
  } | null>>>>;
@@ -0,0 +1,42 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ /**
3
+ * The label of the button
4
+ */
5
+ label: string;
6
+ /**
7
+ * primary or secondary button
8
+ */
9
+ primary?: boolean;
10
+ /**
11
+ * size of the button
12
+ */
13
+ size?: "small" | "medium" | "large";
14
+ /**
15
+ * background color of the button
16
+ */
17
+ backgroundColor?: string;
18
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ click: (id: number) => any;
20
+ }, string, import('vue').PublicProps, Readonly<{
21
+ /**
22
+ * The label of the button
23
+ */
24
+ label: string;
25
+ /**
26
+ * primary or secondary button
27
+ */
28
+ primary?: boolean;
29
+ /**
30
+ * size of the button
31
+ */
32
+ size?: "small" | "medium" | "large";
33
+ /**
34
+ * background color of the button
35
+ */
36
+ backgroundColor?: string;
37
+ }> & Readonly<{
38
+ onClick?: ((id: number) => any) | undefined;
39
+ }>, {
40
+ primary: boolean;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{
5
+ label: string;
6
+ primary?: boolean;
7
+ size?: "small" | "medium" | "large";
8
+ backgroundColor?: string;
9
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ click: (id: number) => any;
11
+ }, string, import('vue').PublicProps, Readonly<{
12
+ label: string;
13
+ primary?: boolean;
14
+ size?: "small" | "medium" | "large";
15
+ backgroundColor?: string;
16
+ }> & Readonly<{
17
+ onClick?: ((id: number) => any) | undefined;
18
+ }>, {
19
+ primary: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ tags: string[];
22
+ argTypes: {
23
+ size: {
24
+ control: "select";
25
+ options: string[];
26
+ };
27
+ backgroundColor: {
28
+ control: "color";
29
+ };
30
+ };
31
+ args: {
32
+ primary: false;
33
+ onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
34
+ };
35
+ };
36
+ export default meta;
37
+ type Story = StoryObj<typeof meta>;
38
+ export declare const Primary: Story;
39
+ export declare const Secondary: Story;
40
+ export declare const Large: Story;
41
+ export declare const Small: Story;
@@ -0,0 +1,18 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ user: {
3
+ name: string;
4
+ } | null;
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ createAccount: () => any;
7
+ login: () => any;
8
+ logout: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<{
10
+ user: {
11
+ name: string;
12
+ } | null;
13
+ }> & Readonly<{
14
+ onCreateAccount?: (() => any) | undefined;
15
+ onLogin?: (() => any) | undefined;
16
+ onLogout?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{
5
+ user: {
6
+ name: string;
7
+ } | null;
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ createAccount: () => any;
10
+ login: () => any;
11
+ logout: () => any;
12
+ }, string, import('vue').PublicProps, Readonly<{
13
+ user: {
14
+ name: string;
15
+ } | null;
16
+ }> & Readonly<{
17
+ onCreateAccount?: (() => any) | undefined;
18
+ onLogin?: (() => any) | undefined;
19
+ onLogout?: (() => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ render: (args: any) => {
22
+ components: {
23
+ MyHeader: import('vue').DefineComponent<{
24
+ user: {
25
+ name: string;
26
+ } | null;
27
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ createAccount: () => any;
29
+ login: () => any;
30
+ logout: () => any;
31
+ }, string, import('vue').PublicProps, Readonly<{
32
+ user: {
33
+ name: string;
34
+ } | null;
35
+ }> & Readonly<{
36
+ onCreateAccount?: (() => any) | undefined;
37
+ onLogin?: (() => any) | undefined;
38
+ onLogout?: (() => any) | undefined;
39
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
+ };
41
+ setup(this: void): {
42
+ args: any;
43
+ };
44
+ template: string;
45
+ };
46
+ parameters: {
47
+ layout: string;
48
+ };
49
+ args: {
50
+ onLogin: import('@vitest/spy').Mock<(...args: any[]) => any>;
51
+ onLogout: import('@vitest/spy').Mock<(...args: any[]) => any>;
52
+ onCreateAccount: import('@vitest/spy').Mock<(...args: any[]) => any>;
53
+ };
54
+ tags: string[];
55
+ };
56
+ export default meta;
57
+ type Story = StoryObj<typeof meta>;
58
+ export declare const LoggedIn: Story;
59
+ export declare const LoggedOut: Story;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ render: () => {
6
+ components: {
7
+ MyPage: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ };
9
+ template: string;
10
+ };
11
+ parameters: {
12
+ layout: string;
13
+ };
14
+ tags: string[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const LoggedIn: Story;
19
+ export declare const LoggedOut: Story;
@@ -0,0 +1,7 @@
1
+ import { StoryFn } from '@storybook/vue3';
2
+ declare const _default: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ };
6
+ export default _default;
7
+ export declare const Default: StoryFn<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jplan-pack",
3
- "version": "0.4.44",
3
+ "version": "0.4.46",
4
4
  "main": "./dist/jplan-pack.cjs.js",
5
5
  "module": "./dist/jplan-pack.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,9 @@
18
18
  "build": "rimraf dist && vue-tsc && vite build",
19
19
  "docs:dev": "vitepress dev docs",
20
20
  "docs:build": "vitepress build docs",
21
- "docs:serve": "vitepress serve docs"
21
+ "docs:serve": "vitepress serve docs",
22
+ "storybook": "storybook dev -p 6006",
23
+ "build-storybook": "storybook build"
22
24
  },
23
25
  "dependencies": {
24
26
  "@azure/msal-browser": "^4.1.0",
@@ -28,9 +30,11 @@
28
30
  "@vue/runtime-dom": "^3.5.13",
29
31
  "@vueuse/core": "^11.2.0",
30
32
  "axios": "^1.7.9",
33
+ "create-storybook": "^8.6.0",
31
34
  "date-fns": "^4.1.0",
32
35
  "lodash": "^4.17.21",
33
36
  "pinia": "^2.2.6",
37
+ "vite-plugin-css": "^1.0.4",
34
38
  "vue-draggable-next": "^2.2.1",
35
39
  "vue-tabler-icons": "^2.21.0",
36
40
  "vue-toastification": "^2.0.0-rc.5"
@@ -42,10 +46,19 @@
42
46
  "vuetify": "^3.7.4"
43
47
  },
44
48
  "devDependencies": {
49
+ "@chromatic-com/storybook": "^3.2.5",
50
+ "@storybook/addon-essentials": "^8.6.0",
51
+ "@storybook/addon-interactions": "^8.6.0",
52
+ "@storybook/addon-onboarding": "^8.6.0",
53
+ "@storybook/blocks": "^8.6.0",
54
+ "@storybook/test": "^8.6.0",
55
+ "@storybook/vue3": "^8.6.0",
56
+ "@storybook/vue3-vite": "^8.6.0",
45
57
  "@types/lodash": "^4.17.15",
46
58
  "@types/node": "^20.3.3",
47
59
  "rimraf": "^5.0.1",
48
60
  "sass": "^1.63.6",
61
+ "storybook": "^8.6.0",
49
62
  "typescript": "^5.1.6",
50
63
  "vite": "^6.0.11",
51
64
  "vite-plugin-dts": "^4.3.0",