@opens/widget-ui 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -2
- package/dist/app-identification-page.vue.d.ts +4 -0
- package/dist/app-identification-page.vue.d.ts.map +1 -0
- package/dist/app-service-page.vue.d.ts +4 -0
- package/dist/app-service-page.vue.d.ts.map +1 -0
- package/dist/buttons/app-button.vue.d.ts +4 -0
- package/dist/buttons/app-button.vue.d.ts.map +1 -0
- package/dist/components/buttons/app-button.vue.d.ts +51 -0
- package/dist/components/icons/app-icon.vue.d.ts +29 -0
- package/dist/components/inputs/app-form-text-input.vue.d.ts +26 -0
- package/dist/components/inputs/app-text-input.vue.d.ts +30 -0
- package/dist/components/messages/app-message.vue.d.ts +14 -0
- package/dist/components/pages/app-identification-page.vue.d.ts +13 -0
- package/dist/components/pages/app-screen-page.vue.d.ts +11 -0
- package/dist/components/pages/app-service-page.vue.d.ts +7 -0
- package/dist/components/typography/app-text.vue.d.ts +3 -0
- package/dist/components/typography/types.d.ts +25 -0
- package/dist/components/typography/use-typography-classes.d.ts +42 -0
- package/dist/components/ui/app-carousel.vue.d.ts +17 -0
- package/dist/components/ui/app-group.vue.d.ts +32 -0
- package/dist/components/widget/app-activator.vue.d.ts +33 -0
- package/dist/components/widget/app-widget.vue.d.ts +19 -0
- package/dist/composables/use-app-flow.d.ts +13 -0
- package/dist/composables/use-app-widget.d.ts +7 -0
- package/dist/composables/use-button-style.d.ts +11 -0
- package/dist/composables/use-identification-page.d.ts +35 -0
- package/dist/composables/use-input-style.d.ts +10 -0
- package/dist/composables/use-mask-functions.d.ts +7 -0
- package/dist/favicon.ico +0 -0
- package/dist/histoire-setup.d.ts +1 -0
- package/dist/icons/app-icon.vue.d.ts +4 -0
- package/dist/icons/app-icon.vue.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/inputs/app-form-text-input.vue.d.ts +4 -0
- package/dist/inputs/app-form-text-input.vue.d.ts.map +1 -0
- package/dist/inputs/app-text-input.vue.d.ts +4 -0
- package/dist/inputs/app-text-input.vue.d.ts.map +1 -0
- package/dist/main.d.ts +24 -0
- package/dist/messages/app-message.vue.d.ts +4 -0
- package/dist/messages/app-message.vue.d.ts.map +1 -0
- package/dist/mocks/demo-config.d.ts +26 -0
- package/dist/mocks/demo-workflow.d.ts +4 -0
- package/dist/pages/app-screen-page.vue.d.ts +4 -0
- package/dist/pages/app-screen-page.vue.d.ts.map +1 -0
- package/dist/typography/app-text.vue.d.ts +5 -0
- package/dist/typography/app-text.vue.d.ts.map +1 -0
- package/dist/ui/app-carousel.vue.d.ts +5 -0
- package/dist/ui/app-carousel.vue.d.ts.map +1 -0
- package/dist/ui/app-group.vue.d.ts +4 -0
- package/dist/ui/app-group.vue.d.ts.map +1 -0
- package/dist/widget/app-activator.vue.d.ts +4 -0
- package/dist/widget/app-activator.vue.d.ts.map +1 -0
- package/dist/widget/app-widget.vue.d.ts +5 -0
- package/dist/widget/app-widget.vue.d.ts.map +1 -0
- package/dist/yunique_widget_ui.cjs.js +1 -0
- package/dist/yunique_widget_ui.css +1 -0
- package/dist/yunique_widget_ui.es.js +4118 -0
- package/dist/yunique_widget_ui.umd.js +2 -0
- package/package.json +81 -3
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# yunique-widget-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Biblioteca de componentes Vue 3 para widgets Yunique, baseada na estrutura do `yunique-ui` (Vite + Tailwind + Histoire + Vitest).
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Desenvolvimento
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm run dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Histoire (stories)
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm run story:dev
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Build
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npm run build
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Testes unitários
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm run test:unit
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Estrutura
|
|
36
|
+
|
|
37
|
+
- `src/components` — componentes Vue
|
|
38
|
+
- `src/composables` — composables
|
|
39
|
+
- `__tests__` — testes unitários (espelha a estrutura de `src`)
|
|
40
|
+
- `src/*.story.vue` — stories do Histoire (junto ao componente)
|
|
41
|
+
- Configs: Vite, Tailwind (`yu-` prefix), Histoire, Vitest, Cypress
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/pages/app-identification-page.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/pages/app-identification-page.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-identification-page.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-identification-page.vue.d.ts","sourceRoot":"","sources":["../src/components/pages/app-identification-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0HAA0H,CAAC;AACjJ,cAAc,0HAA0H,CAAC;AACzI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/pages/app-service-page.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/pages/app-service-page.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-service-page.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-service-page.vue.d.ts","sourceRoot":"","sources":["../src/components/pages/app-service-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mHAAmH,CAAC;AAC1I,cAAc,mHAAmH,CAAC;AAClI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/buttons/app-button.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/buttons/app-button.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-button.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-button.vue.d.ts","sourceRoot":"","sources":["../../src/components/buttons/app-button.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,+GAA+G,CAAC;AACtI,cAAc,+GAA+G,CAAC;AAC9H,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
small: BooleanConstructor;
|
|
3
|
+
soft: BooleanConstructor;
|
|
4
|
+
outline: BooleanConstructor;
|
|
5
|
+
ghost: BooleanConstructor;
|
|
6
|
+
link: BooleanConstructor;
|
|
7
|
+
round: BooleanConstructor;
|
|
8
|
+
icon: BooleanConstructor;
|
|
9
|
+
fluid: BooleanConstructor;
|
|
10
|
+
disabled: BooleanConstructor;
|
|
11
|
+
loading: BooleanConstructor;
|
|
12
|
+
alert: BooleanConstructor;
|
|
13
|
+
warning: BooleanConstructor;
|
|
14
|
+
success: BooleanConstructor;
|
|
15
|
+
block: BooleanConstructor;
|
|
16
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
click: (event: MouseEvent) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
small: BooleanConstructor;
|
|
20
|
+
soft: BooleanConstructor;
|
|
21
|
+
outline: BooleanConstructor;
|
|
22
|
+
ghost: BooleanConstructor;
|
|
23
|
+
link: BooleanConstructor;
|
|
24
|
+
round: BooleanConstructor;
|
|
25
|
+
icon: BooleanConstructor;
|
|
26
|
+
fluid: BooleanConstructor;
|
|
27
|
+
disabled: BooleanConstructor;
|
|
28
|
+
loading: BooleanConstructor;
|
|
29
|
+
alert: BooleanConstructor;
|
|
30
|
+
warning: BooleanConstructor;
|
|
31
|
+
success: BooleanConstructor;
|
|
32
|
+
block: BooleanConstructor;
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
link: boolean;
|
|
37
|
+
small: boolean;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
fluid: boolean;
|
|
40
|
+
soft: boolean;
|
|
41
|
+
outline: boolean;
|
|
42
|
+
ghost: boolean;
|
|
43
|
+
round: boolean;
|
|
44
|
+
icon: boolean;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
alert: boolean;
|
|
47
|
+
warning: boolean;
|
|
48
|
+
success: boolean;
|
|
49
|
+
block: boolean;
|
|
50
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
small: BooleanConstructor;
|
|
3
|
+
large: BooleanConstructor;
|
|
4
|
+
extraLarge: BooleanConstructor;
|
|
5
|
+
gray: BooleanConstructor;
|
|
6
|
+
base: BooleanConstructor;
|
|
7
|
+
light: BooleanConstructor;
|
|
8
|
+
dark: BooleanConstructor;
|
|
9
|
+
outlined: BooleanConstructor;
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
small: BooleanConstructor;
|
|
12
|
+
large: BooleanConstructor;
|
|
13
|
+
extraLarge: BooleanConstructor;
|
|
14
|
+
gray: BooleanConstructor;
|
|
15
|
+
base: BooleanConstructor;
|
|
16
|
+
light: BooleanConstructor;
|
|
17
|
+
dark: BooleanConstructor;
|
|
18
|
+
outlined: BooleanConstructor;
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
base: boolean;
|
|
21
|
+
small: boolean;
|
|
22
|
+
large: boolean;
|
|
23
|
+
extraLarge: boolean;
|
|
24
|
+
light: boolean;
|
|
25
|
+
gray: boolean;
|
|
26
|
+
dark: boolean;
|
|
27
|
+
outlined: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MaskFunction } from '../../composables/use-mask-functions';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
maxLength?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
valid?: boolean;
|
|
10
|
+
fluid?: boolean;
|
|
11
|
+
maskFunction?: MaskFunction;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
14
|
+
focus: import('vue').Ref<boolean, boolean>;
|
|
15
|
+
content: import('vue').Ref<string, string>;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string) => any;
|
|
18
|
+
"keyup-enter": () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
+
"onKeyup-enter"?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
type: string;
|
|
24
|
+
modelValue: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MaskFunction } from '../../composables/use-mask-functions';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
maxLength?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
small?: boolean;
|
|
10
|
+
fluid?: boolean;
|
|
11
|
+
round?: boolean;
|
|
12
|
+
valid?: boolean;
|
|
13
|
+
block?: boolean;
|
|
14
|
+
maskFunction?: MaskFunction;
|
|
15
|
+
passwordToggle?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
18
|
+
focus: import('vue').Ref<boolean, boolean>;
|
|
19
|
+
content: import('vue').Ref<string, string>;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string) => any;
|
|
22
|
+
"keyup-enter": () => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
|
+
"onKeyup-enter"?: (() => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
type: string;
|
|
28
|
+
modelValue: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
primary: BooleanConstructor;
|
|
3
|
+
secondary: BooleanConstructor;
|
|
4
|
+
tertiary: BooleanConstructor;
|
|
5
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
6
|
+
primary: BooleanConstructor;
|
|
7
|
+
secondary: BooleanConstructor;
|
|
8
|
+
tertiary: BooleanConstructor;
|
|
9
|
+
}>> & Readonly<{}>, {
|
|
10
|
+
primary: boolean;
|
|
11
|
+
secondary: boolean;
|
|
12
|
+
tertiary: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rule: Rule;
|
|
4
|
+
edges?: Rule[];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
submit: (values: Record<string, string>) => any;
|
|
8
|
+
back: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
11
|
+
onBack?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rule: Rule;
|
|
4
|
+
edges?: Rule[];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"edge-click": (edge: Rule) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onEdge-click"?: ((edge: Rule) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rule: Rule;
|
|
4
|
+
edges?: Rule[];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ITypographyProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ITypographyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ITypographyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ITypographyProps = {
|
|
2
|
+
extraSmall?: boolean;
|
|
3
|
+
inter?: boolean;
|
|
4
|
+
plus?: boolean;
|
|
5
|
+
titillium?: boolean;
|
|
6
|
+
small?: boolean;
|
|
7
|
+
base?: boolean;
|
|
8
|
+
large?: boolean;
|
|
9
|
+
extraLarge?: boolean;
|
|
10
|
+
thin?: boolean;
|
|
11
|
+
extralight?: boolean;
|
|
12
|
+
light?: boolean;
|
|
13
|
+
normal?: boolean;
|
|
14
|
+
medium?: boolean;
|
|
15
|
+
semibold?: boolean;
|
|
16
|
+
bold?: boolean;
|
|
17
|
+
extrabold?: boolean;
|
|
18
|
+
black?: boolean;
|
|
19
|
+
primary?: boolean;
|
|
20
|
+
secondary?: boolean;
|
|
21
|
+
gray?: boolean;
|
|
22
|
+
neutral?: boolean;
|
|
23
|
+
white?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type IElement = 'title' | 'subtitle' | 'text';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IElement, ITypographyProps } from './types';
|
|
2
|
+
export declare function useTypographyClasses(element: IElement, props: ITypographyProps): {
|
|
3
|
+
fontClass: import('vue').ComputedRef<{
|
|
4
|
+
'!yu-font-plus': boolean | undefined;
|
|
5
|
+
'!yu-font-inter': boolean | undefined;
|
|
6
|
+
'!yu-font-titillium': boolean | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
colorClass: import('vue').ComputedRef<{
|
|
9
|
+
'!yu-text-white': boolean | undefined;
|
|
10
|
+
'!yu-text-primary': boolean | undefined;
|
|
11
|
+
'!yu-text-secondary': boolean | undefined;
|
|
12
|
+
'!yu-text-base': boolean | undefined;
|
|
13
|
+
'!yu-text-neutral': boolean | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
weightClass: import('vue').ComputedRef<{
|
|
16
|
+
'!yu-font-thin': boolean | undefined;
|
|
17
|
+
'!yu-font-extralight': boolean | undefined;
|
|
18
|
+
'!yu-font-light': boolean | undefined;
|
|
19
|
+
'!yu-font-normal': boolean | undefined;
|
|
20
|
+
'!yu-font-medium': boolean | undefined;
|
|
21
|
+
'!yu-font-semibold': boolean | undefined;
|
|
22
|
+
'!yu-font-bold': boolean | undefined;
|
|
23
|
+
'!yu-font-extrabold': boolean | undefined;
|
|
24
|
+
'!yu-font-black': boolean | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
sizeClass: import('vue').ComputedRef<{
|
|
27
|
+
'!yu-text-xl': boolean | undefined;
|
|
28
|
+
'!yu-text-2xl': boolean | undefined;
|
|
29
|
+
'!yu-text-3xl': boolean | undefined;
|
|
30
|
+
'!yu-text-4xl': boolean | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
'!yu-text-sm': boolean | undefined;
|
|
33
|
+
'!yu-text-md': boolean | undefined;
|
|
34
|
+
'!yu-text-xl': boolean | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
'!yu-text-xxs': boolean | undefined;
|
|
37
|
+
'!yu-text-xs': boolean | undefined;
|
|
38
|
+
'!yu-text-sm': boolean | undefined;
|
|
39
|
+
'!yu-text-lg': boolean | undefined;
|
|
40
|
+
'!yu-text-2xl': boolean | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: number;
|
|
3
|
+
vertical?: boolean;
|
|
4
|
+
fill?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
+
next: () => void;
|
|
8
|
+
prev: () => void;
|
|
9
|
+
goTo: (index: number) => void;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (index: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((index: number) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
modelValue: number;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
fit?: boolean;
|
|
3
|
+
full?: boolean;
|
|
4
|
+
row?: boolean;
|
|
5
|
+
col?: boolean;
|
|
6
|
+
gapNone?: boolean;
|
|
7
|
+
gapXs?: boolean;
|
|
8
|
+
gapBase?: boolean;
|
|
9
|
+
gapSm?: boolean;
|
|
10
|
+
gapMd?: boolean;
|
|
11
|
+
gapLg?: boolean;
|
|
12
|
+
wrap?: boolean;
|
|
13
|
+
paddingNone?: boolean;
|
|
14
|
+
paddingBase?: boolean;
|
|
15
|
+
paddingXs?: boolean;
|
|
16
|
+
paddingSm?: boolean;
|
|
17
|
+
paddingMd?: boolean;
|
|
18
|
+
paddingLg?: boolean;
|
|
19
|
+
center?: boolean;
|
|
20
|
+
justifyEnd?: boolean;
|
|
21
|
+
centerBetween?: boolean;
|
|
22
|
+
border?: boolean;
|
|
23
|
+
borderPrimary?: boolean;
|
|
24
|
+
rounded?: boolean;
|
|
25
|
+
roundedTop?: boolean;
|
|
26
|
+
roundedBottom?: boolean;
|
|
27
|
+
bgPrimary?: boolean;
|
|
28
|
+
bgWhite?: boolean;
|
|
29
|
+
divisor?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
small: BooleanConstructor;
|
|
3
|
+
logo: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
outline: BooleanConstructor;
|
|
8
|
+
ghost: BooleanConstructor;
|
|
9
|
+
disabled: BooleanConstructor;
|
|
10
|
+
loading: BooleanConstructor;
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
click: (event: MouseEvent) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
small: BooleanConstructor;
|
|
15
|
+
logo: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
outline: BooleanConstructor;
|
|
20
|
+
ghost: BooleanConstructor;
|
|
21
|
+
disabled: BooleanConstructor;
|
|
22
|
+
loading: BooleanConstructor;
|
|
23
|
+
}>> & Readonly<{
|
|
24
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
small: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
outline: boolean;
|
|
29
|
+
ghost: boolean;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
logo: string;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Rule, WidgetProviderConfig, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
|
+
type WidgetConfiguration = Pick<WidgetProviderConfig, 'configurations'>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
workflow: WorkflowData;
|
|
5
|
+
config: WidgetConfiguration;
|
|
6
|
+
fullscreen?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
submit: (values: Record<string, string>) => any;
|
|
10
|
+
back: () => any;
|
|
11
|
+
close: () => any;
|
|
12
|
+
"edge-click": (edge: Rule) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
15
|
+
onBack?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
|
+
"onEdge-click"?: ((edge: Rule) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
+
export declare function getWorkflowRootRule(workflow: WorkflowData): Rule;
|
|
4
|
+
export declare function getWorkflowEdges(workflow: WorkflowData, ruleId: string): Rule[];
|
|
5
|
+
export declare function useAppFlow(workflow: MaybeRefOrGetter<WorkflowData>): {
|
|
6
|
+
currentRule: import('vue').ComputedRef<Rule>;
|
|
7
|
+
edges: import('vue').ComputedRef<Rule[]>;
|
|
8
|
+
history: import('vue').Ref<string[], string[]>;
|
|
9
|
+
edgeClick: (edge: Rule) => void;
|
|
10
|
+
submit: (_values: Record<string, string>) => void;
|
|
11
|
+
back: () => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface StyleProps {
|
|
2
|
+
fluid?: boolean;
|
|
3
|
+
small?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useButtonStyle(props: StyleProps): {
|
|
6
|
+
height: import('vue').ComputedRef<"" | "!yu-h-8 !yu-min-h-[2rem]">;
|
|
7
|
+
textSize: import('vue').ComputedRef<string>;
|
|
8
|
+
padding: import('vue').ComputedRef<"yu-px-[0.625rem]" | "yu-p-[0.9rem]">;
|
|
9
|
+
width: import('vue').ComputedRef<"!yu-w-full" | "yu-w-fit">;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { IdentificationRuleFieldComponent, Rule } from '@opens/gateways/chat-config';
|
|
3
|
+
import { MaskFunction } from './use-mask-functions';
|
|
4
|
+
export declare function useIdentificationPage(rule: MaybeRefOrGetter<Rule>, emit: {
|
|
5
|
+
(event: 'submit', values: Record<string, string>): void;
|
|
6
|
+
(event: 'back'): void;
|
|
7
|
+
}): {
|
|
8
|
+
stepTransition: import('vue').ComputedRef<"step-back" | "step-forward">;
|
|
9
|
+
currentField: import('vue').ComputedRef<IdentificationRuleFieldComponent>;
|
|
10
|
+
canContinue: import('vue').ComputedRef<boolean>;
|
|
11
|
+
currentStep: import('vue').Ref<number, number>;
|
|
12
|
+
isLastStep: import('vue').ComputedRef<boolean>;
|
|
13
|
+
stepIntro: import('vue').ComputedRef<{
|
|
14
|
+
eyebrow: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle: string;
|
|
17
|
+
}>;
|
|
18
|
+
fieldHost: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
19
|
+
showBack: import('vue').ComputedRef<boolean>;
|
|
20
|
+
fields: import('vue').ComputedRef<IdentificationRuleFieldComponent[]>;
|
|
21
|
+
form: Record<string, string>;
|
|
22
|
+
continueStep: () => void;
|
|
23
|
+
canContinueAt: (index: number) => boolean;
|
|
24
|
+
introFor: (index: number) => {
|
|
25
|
+
eyebrow: string;
|
|
26
|
+
title: string;
|
|
27
|
+
subtitle: string;
|
|
28
|
+
};
|
|
29
|
+
fieldLabel: (field: IdentificationRuleFieldComponent) => string;
|
|
30
|
+
fieldPlaceholder: (field: IdentificationRuleFieldComponent) => string;
|
|
31
|
+
fieldType: (name: string) => "email" | "tel" | "text";
|
|
32
|
+
fieldMask: (name: string) => MaskFunction | undefined;
|
|
33
|
+
fieldIcon: (name: string) => "email" | "call" | "person" | "receipt" | "badge";
|
|
34
|
+
goBack: () => void;
|
|
35
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface StyleProps {
|
|
2
|
+
fluid?: boolean;
|
|
3
|
+
small?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useInputStyle(props: StyleProps): {
|
|
6
|
+
height: import('vue').ComputedRef<"!yu-h-8 !yu-min-h-[2rem]" | "!yu-h-12 !yu-min-h-[3rem]">;
|
|
7
|
+
textSize: import('vue').ComputedRef<string>;
|
|
8
|
+
width: import('vue').ComputedRef<"!yu-w-full" | "yu-w-fit">;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setupVue3: import('@histoire/plugin-vue').Vue3StorySetupHandler;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/icons/app-icon.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/icons/app-icon.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-icon.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-icon.vue.d.ts","sourceRoot":"","sources":["../../src/components/icons/app-icon.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,2GAA2G,CAAC;AAClI,cAAc,2GAA2G,CAAC;AAC1H,eAAe,SAAS,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default, AppIdentificationPage, AppServicePage, AppScreenPage, AppFormTextInput, AppTextInput, AppButton, AppWidget, AppActivator, AppCarousel, AppGroup, AppMessage, AppIcon, AppText, } from './main';
|
|
2
|
+
export { useMaskFunctions } from './composables/use-mask-functions';
|
|
3
|
+
export type { MaskFunction } from './composables/use-mask-functions';
|
|
4
|
+
export { useAppWidget } from './composables/use-app-widget';
|
|
5
|
+
export { useAppFlow, getWorkflowEdges, getWorkflowRootRule } from './composables/use-app-flow';
|
|
6
|
+
export { demoWidgetConfig } from './mocks/demo-config';
|
|
7
|
+
export type { WidgetConfiguration } from './mocks/demo-config';
|
|
8
|
+
export { demoWorkflow, demoRootRule, findDemoRuleById } from './mocks/demo-workflow';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/inputs/app-form-text-input.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/inputs/app-form-text-input.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-form-text-input.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-form-text-input.vue.d.ts","sourceRoot":"","sources":["../../src/components/inputs/app-form-text-input.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uHAAuH,CAAC;AAC9I,cAAc,uHAAuH,CAAC;AACtI,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/inputs/app-text-input.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/inputs/app-text-input.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-text-input.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-text-input.vue.d.ts","sourceRoot":"","sources":["../../src/components/inputs/app-text-input.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kHAAkH,CAAC;AACzI,cAAc,kHAAkH,CAAC;AACjI,eAAe,SAAS,CAAC"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as AppIdentificationPage } from './components/pages/app-identification-page.vue';
|
|
3
|
+
import { default as AppServicePage } from './components/pages/app-service-page.vue';
|
|
4
|
+
import { default as AppScreenPage } from './components/pages/app-screen-page.vue';
|
|
5
|
+
import { default as AppFormTextInput } from './components/inputs/app-form-text-input.vue';
|
|
6
|
+
import { default as AppTextInput } from './components/inputs/app-text-input.vue';
|
|
7
|
+
import { default as AppMessage } from './components/messages/app-message.vue';
|
|
8
|
+
import { default as AppButton } from './components/buttons/app-button.vue';
|
|
9
|
+
import { default as AppText } from './components/typography/app-text.vue';
|
|
10
|
+
import { default as AppWidget } from './components/widget/app-widget.vue';
|
|
11
|
+
import { default as AppActivator } from './components/widget/app-activator.vue';
|
|
12
|
+
import { default as AppIcon } from './components/icons/app-icon.vue';
|
|
13
|
+
import { default as AppCarousel } from './components/ui/app-carousel.vue';
|
|
14
|
+
import { default as AppGroup } from './components/ui/app-group.vue';
|
|
15
|
+
declare const _default: {
|
|
16
|
+
install: (app: App) => void;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
export { AppIdentificationPage, AppServicePage, AppScreenPage, AppFormTextInput, AppTextInput, AppMessage, AppWidget, AppActivator, AppButton, AppCarousel, AppGroup, AppIcon, AppText, };
|
|
20
|
+
export { demoWidgetConfig } from './mocks/demo-config';
|
|
21
|
+
export type { WidgetConfiguration } from './mocks/demo-config';
|
|
22
|
+
export { demoWorkflow, demoRootRule, findDemoRuleById } from './mocks/demo-workflow';
|
|
23
|
+
export { useAppWidget } from './composables/use-app-widget';
|
|
24
|
+
export { useAppFlow, getWorkflowEdges, getWorkflowRootRule } from './composables/use-app-flow';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/messages/app-message.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
+
export default _sfc_main;
|
|
4
|
+
//# sourceMappingURL=app-message.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-message.vue.d.ts","sourceRoot":"","sources":["../../src/components/messages/app-message.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iHAAiH,CAAC;AACxI,cAAc,iHAAiH,CAAC;AAChI,eAAe,SAAS,CAAC"}
|