@ng-vagabond-lab/ng-dsv 0.0.1 → 0.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/.storybook/main.ts +18 -0
- package/.storybook/preview.ts +42 -0
- package/.storybook/tsconfig.json +21 -0
- package/.storybook/typings.d.ts +4 -0
- package/assets/global.scss +11 -0
- package/documentation.json +795 -0
- package/ds/accordion/component/accordion.component.html +8 -0
- package/ds/accordion/component/accordion.component.scss +46 -0
- package/ds/accordion/component/accordion.component.stories.ts +29 -0
- package/ds/accordion/component/accordion.component.ts +33 -0
- package/ds/accordion/ng-package.json +6 -0
- package/ds/avatar/component/avatar.component.html +4 -0
- package/ds/avatar/component/avatar.component.scss +46 -0
- package/ds/avatar/component/avatar.component.stories.ts +40 -0
- package/ds/avatar/component/avatar.component.ts +30 -0
- package/ds/avatar/ng-package.json +6 -0
- package/ds/button/component/button.component.html +24 -0
- package/ds/button/component/button.component.scss +56 -0
- package/ds/button/component/button.component.ts +33 -0
- package/ds/button/index.ts +1 -0
- package/ds/button/ng-package.json +6 -0
- package/ds/card/component/card.component.html +15 -0
- package/ds/card/component/card.component.scss +28 -0
- package/ds/card/component/card.component.stories.ts +32 -0
- package/ds/card/component/card.component.ts +18 -0
- package/ds/card/ng-package.json +6 -0
- package/ds/theme/component/dsv.theme.component.scss +44 -0
- package/ds/theme/component/dsv.theme.component.ts +69 -0
- package/ds/theme/index.ts +1 -0
- package/ds/theme/ng-package.json +6 -0
- package/ds/theme/switch/component/dsv.theme.switch.component.html +6 -0
- package/ds/theme/switch/component/dsv.theme.switch.component.ts +27 -0
- package/ds/theme/switch/service/dsv.theme.switch.service.ts +29 -0
- package/ds/toast/component/toast.component.html +17 -0
- package/ds/toast/component/toast.component.scss +64 -0
- package/ds/toast/component/toast.component.ts +38 -0
- package/ds/toast/dto/toast.dto.ts +11 -0
- package/ds/toast/index.ts +1 -0
- package/ds/toast/ng-package.json +6 -0
- package/ds/toast/service/toast.service.ts +53 -0
- package/ds/toast/stories/toast.stories.ts +78 -0
- package/i18n/index.ts +1 -0
- package/i18n/ng-package.json +6 -0
- package/i18n/src/translate.pipe.spec.ts +8 -0
- package/i18n/src/translate.pipe.ts +12 -0
- package/index.ts +1 -0
- package/ng-package.json +7 -0
- package/package.json +3 -46
- package/{public-api.d.ts → public-api.ts} +4 -0
- package/src/ui-sdk.component.spec.ts +22 -0
- package/src/ui-sdk.component.ts +10 -0
- package/src/ui-sdk.service.spec.ts +16 -0
- package/src/ui-sdk.service.ts +9 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/type/index.ts +1 -0
- package/type/ng-package.json +6 -0
- package/type/type.ts +9 -0
- package/ds/accordion/component/accordion.component.d.ts +0 -5
- package/ds/accordion/index.d.ts +0 -5
- package/ds/avatar/component/avatar.component.d.ts +0 -12
- package/ds/avatar/index.d.ts +0 -5
- package/ds/button/component/button.component.d.ts +0 -17
- package/ds/card/component/card.component.d.ts +0 -10
- package/ds/card/index.d.ts +0 -5
- package/ds/theme/component/dsv.theme.component.d.ts +0 -29
- package/ds/theme/index.d.ts +0 -5
- package/ds/toast/component/toast.component.d.ts +0 -13
- package/ds/toast/dto/toast.dto.d.ts +0 -10
- package/ds/toast/index.d.ts +0 -5
- package/ds/toast/service/toast.service.d.ts +0 -16
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-accordion.mjs +0 -19
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-accordion.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-avatar.mjs +0 -40
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-avatar.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-button.mjs +0 -47
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-button.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-card.mjs +0 -36
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-card.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-theme.mjs +0 -73
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-theme.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-toast.mjs +0 -88
- package/fesm2022/ng-vagabond-lab-ng-dsv-ds-toast.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-i18n.mjs +0 -25
- package/fesm2022/ng-vagabond-lab-ng-dsv-i18n.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv-type.mjs +0 -4
- package/fesm2022/ng-vagabond-lab-ng-dsv-type.mjs.map +0 -1
- package/fesm2022/ng-vagabond-lab-ng-dsv.mjs +0 -42
- package/fesm2022/ng-vagabond-lab-ng-dsv.mjs.map +0 -1
- package/i18n/index.d.ts +0 -5
- package/i18n/src/translate.pipe.d.ts +0 -7
- package/index.d.ts +0 -5
- package/src/ui-sdk.component.d.ts +0 -5
- package/src/ui-sdk.service.d.ts +0 -6
- package/type/type.d.ts +0 -1
- /package/ds/{button/index.d.ts → accordion/index.ts} +0 -0
- /package/ds/accordion/{public-api.d.ts → public-api.ts} +0 -0
- /package/{type/index.d.ts → ds/avatar/index.ts} +0 -0
- /package/ds/avatar/{public-api.d.ts → public-api.ts} +0 -0
- /package/ds/button/{public-api.d.ts → public-api.ts} +0 -0
- /package/ds/card/{public-api.d.ts → public-api.ts} +0 -0
- /package/ds/theme/{public-api.d.ts → public-api.ts} +0 -0
- /package/ds/toast/{public-api.d.ts → public-api.ts} +0 -0
- /package/i18n/{public-api.d.ts → public-api.ts} +0 -0
- /package/type/{public-api.d.ts → public-api.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/angular';
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
stories: ['../**/*.mdx', '../**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
5
|
+
addons: [
|
|
6
|
+
'@storybook/addon-essentials',
|
|
7
|
+
'@chromatic-com/storybook',
|
|
8
|
+
'@storybook/addon-interactions',
|
|
9
|
+
],
|
|
10
|
+
framework: {
|
|
11
|
+
name: '@storybook/angular',
|
|
12
|
+
options: {},
|
|
13
|
+
},
|
|
14
|
+
env: (config) => ({
|
|
15
|
+
...config,
|
|
16
|
+
}),
|
|
17
|
+
};
|
|
18
|
+
export default config;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
componentWrapperDecorator,
|
|
3
|
+
moduleMetadata,
|
|
4
|
+
type Preview,
|
|
5
|
+
} from '@storybook/angular';
|
|
6
|
+
import { DsvThemeComponent } from './../ds/theme/component/dsv.theme.component';
|
|
7
|
+
import { DsvThemeSwitchComponent } from './../ds/theme/switch/component/dsv.theme.switch.component';
|
|
8
|
+
|
|
9
|
+
const theme = {
|
|
10
|
+
background: 'rgb(245, 245, 245)',
|
|
11
|
+
primary: '#2943c6',
|
|
12
|
+
};
|
|
13
|
+
const themeString = JSON.stringify(theme);
|
|
14
|
+
|
|
15
|
+
const preview: Preview = {
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: 'fullscreen',
|
|
18
|
+
controls: {
|
|
19
|
+
matchers: {
|
|
20
|
+
color: /(background|color)$/i,
|
|
21
|
+
date: /Date$/i,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
decorators: [
|
|
26
|
+
moduleMetadata({
|
|
27
|
+
imports: [DsvThemeComponent, DsvThemeSwitchComponent],
|
|
28
|
+
}),
|
|
29
|
+
componentWrapperDecorator((story) => {
|
|
30
|
+
return `<dsv-theme [theme]='${themeString}' class="flex flex1" >
|
|
31
|
+
<div style='padding: 5px; margin-bottom: 40px; min-height: 200px;'>
|
|
32
|
+
<div style='margin-bottom: 20px'>
|
|
33
|
+
<dsv-theme-switch></dsv-theme-switch>
|
|
34
|
+
</div>
|
|
35
|
+
${story}
|
|
36
|
+
</div>
|
|
37
|
+
</dsv-theme>`;
|
|
38
|
+
}),
|
|
39
|
+
],
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default preview;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.lib.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"types": [
|
|
5
|
+
"node"
|
|
6
|
+
],
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"resolveJsonModule": true
|
|
9
|
+
},
|
|
10
|
+
"exclude": [
|
|
11
|
+
"../test.ts",
|
|
12
|
+
"../**/*.spec.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"../**/*.stories.*",
|
|
16
|
+
"./preview.ts"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"./typings.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|