@operato/data-tree 7.1.25 → 7.1.32

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.
@@ -1,90 +0,0 @@
1
- import '../src/ox-tree.js'
2
- import '@material/web/icon/icon.js'
3
-
4
- import { html, TemplateResult } from 'lit'
5
-
6
- export default {
7
- title: '3 modes in ox-tree',
8
- component: 'ox-tree',
9
- argTypes: {
10
- data: { control: 'object' }
11
- }
12
- }
13
-
14
- interface Story<T> {
15
- (args: T): TemplateResult
16
- args?: Partial<T>
17
- argTypes?: Record<string, unknown>
18
- }
19
-
20
- interface ArgTypes {
21
- data: object
22
- }
23
-
24
- const Template: Story<ArgTypes> = ({ data }: ArgTypes) => html`
25
- <link
26
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
27
- rel="stylesheet"
28
- />
29
- <link
30
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
31
- rel="stylesheet"
32
- />
33
- <link
34
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
35
- rel="stylesheet"
36
- />
37
-
38
- <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="/themes/light.css" rel="stylesheet" />
40
- <link href="/themes/dark.css" rel="stylesheet" />
41
- <link href="/themes/spacing.css" rel="stylesheet" />
42
- <link href="/themes/grist-theme.css" rel="stylesheet" />
43
- <link href="/themes/form-theme.css" rel="stylesheet" />
44
-
45
- <ox-tree .data=${data}></ox-tree>
46
- `
47
-
48
- export const Regular = Template.bind({})
49
- Regular.args = {
50
- data: {
51
- id: '0',
52
- label: 'AAAAA',
53
- children: [
54
- {
55
- id: '1-1',
56
- label: 'AAAAA-1',
57
- children: [
58
- {
59
- id: '1-1-1',
60
- label: 'AAAAA-2'
61
- }
62
- ]
63
- },
64
- {
65
- id: '1-2',
66
- label: 'BBBBB-1',
67
- children: [
68
- {
69
- id: '1-2-1',
70
- label: 'BBBBB-2'
71
- },
72
- {
73
- id: '1-2-2',
74
- label: 'BBBBB-21'
75
- }
76
- ]
77
- },
78
- {
79
- id: '1-3',
80
- label: 'CCCCC-1',
81
- children: [
82
- {
83
- id: '1-3-1',
84
- label: 'CCCCC-2'
85
- }
86
- ]
87
- }
88
- ]
89
- }
90
- }
package/tsconfig.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2018",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "noEmitOnError": true,
7
- "lib": ["es2017", "dom"],
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "allowJs": true,
12
- "experimentalDecorators": true,
13
- "useDefineForClassFields": false,
14
- "importHelpers": true,
15
- "outDir": "dist",
16
- "sourceMap": true,
17
- "inlineSources": true,
18
- "rootDir": "./",
19
- "declaration": true,
20
- "incremental": true,
21
- "skipLibCheck": true,
22
- "types": ["node", "mocha"]
23
- },
24
- "include": ["**/*.ts", "*.d.ts"],
25
- "exclude": ["dist", "node_modules"]
26
- }
@@ -1,27 +0,0 @@
1
- // import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
2
-
3
- /** Use Hot Module replacement by adding --hmr to the start command */
4
- const hmr = process.argv.includes('--hmr')
5
-
6
- export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
7
- open: '/demo/',
8
- /** Use regular watch mode if HMR is not enabled. */
9
- watch: !hmr,
10
- /** Resolve bare module imports */
11
- nodeResolve: {
12
- exportConditions: ['browser', 'development']
13
- },
14
-
15
- /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
16
- // esbuildTarget: 'auto'
17
-
18
- /** Set appIndex to enable SPA routing */
19
- // appIndex: 'demo/index.html',
20
-
21
- plugins: [
22
- /** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
23
- // hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
24
- ]
25
-
26
- // See documentation for all available options
27
- })
@@ -1,45 +0,0 @@
1
- // import { playwrightLauncher } from '@web/test-runner-playwright';
2
-
3
- const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode']
4
-
5
- export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
6
- files: 'dist/test/**/*.test.js',
7
-
8
- /** Resolve bare module imports */
9
- nodeResolve: {
10
- exportConditions: ['browser', 'development']
11
- },
12
-
13
- /** Filter out lit dev mode logs */
14
- filterBrowserLogs(log) {
15
- for (const arg of log.args) {
16
- if (typeof arg === 'string' && filteredLogs.some(l => arg.includes(l))) {
17
- return false
18
- }
19
- }
20
- return true
21
- }
22
-
23
- /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
24
- // esbuildTarget: 'auto',
25
-
26
- /** Confgure bare import resolve plugin */
27
- // nodeResolve: {
28
- // exportConditions: ['browser', 'development']
29
- // },
30
-
31
- /** Amount of browsers to run concurrently */
32
- // concurrentBrowsers: 2,
33
-
34
- /** Amount of test files per browser to test concurrently */
35
- // concurrency: 1,
36
-
37
- /** Browsers to run tests on */
38
- // browsers: [
39
- // playwrightLauncher({ product: 'chromium' }),
40
- // playwrightLauncher({ product: 'firefox' }),
41
- // playwrightLauncher({ product: 'webkit' }),
42
- // ],
43
-
44
- // See documentation for all available options
45
- })