@krumio/trailhand-ui 1.5.0 → 1.6.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.
- package/README.md +102 -11
- package/dist/components/button/button.d.ts +20 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +189 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/icon/icon.d.ts +18 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +44 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/icon/index.js +2 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/colors.css +132 -0
- package/package.json +17 -8
- package/dist/Button.d.ts +0 -15
- package/dist/Button.d.ts.map +0 -1
- package/dist/Button.js +0 -18
- package/dist/Button.js.map +0 -1
- package/dist/Header.d.ts +0 -15
- package/dist/Header.d.ts.map +0 -1
- package/dist/Header.js +0 -44
- package/dist/Header.js.map +0 -1
- package/dist/Page.d.ts +0 -9
- package/dist/Page.d.ts.map +0 -1
- package/dist/Page.js +0 -61
- package/dist/Page.js.map +0 -1
- package/dist/action-menu.d.ts +0 -79
- package/dist/action-menu.d.ts.map +0 -1
- package/dist/action-menu.js +0 -321
- package/dist/action-menu.js.map +0 -1
- package/dist/assets/index-B7q5L5KS.js +0 -91
- package/dist/components/action-menu/action-menu.stories.d.ts +0 -261
- package/dist/components/action-menu/action-menu.stories.d.ts.map +0 -1
- package/dist/components/action-menu/action-menu.stories.js +0 -363
- package/dist/components/action-menu/action-menu.stories.js.map +0 -1
- package/dist/components/data-table/data-table.stories.d.ts +0 -507
- package/dist/components/data-table/data-table.stories.d.ts.map +0 -1
- package/dist/components/data-table/data-table.stories.js +0 -601
- package/dist/components/data-table/data-table.stories.js.map +0 -1
- package/dist/components/th-card/index.d.ts +0 -3
- package/dist/components/th-card/index.d.ts.map +0 -1
- package/dist/components/th-card/index.js +0 -2
- package/dist/components/th-card/index.js.map +0 -1
- package/dist/components/th-card/th-card.d.ts +0 -78
- package/dist/components/th-card/th-card.d.ts.map +0 -1
- package/dist/components/th-card/th-card.js +0 -449
- package/dist/components/th-card/th-card.js.map +0 -1
- package/dist/components/th-card/th-card.stories.d.ts +0 -232
- package/dist/components/th-card/th-card.stories.d.ts.map +0 -1
- package/dist/components/th-card/th-card.stories.js +0 -385
- package/dist/components/th-card/th-card.stories.js.map +0 -1
- package/dist/components/th-tag/index.d.ts +0 -3
- package/dist/components/th-tag/index.d.ts.map +0 -1
- package/dist/components/th-tag/index.js +0 -2
- package/dist/components/th-tag/index.js.map +0 -1
- package/dist/components/th-tag/th-tag.d.ts +0 -65
- package/dist/components/th-tag/th-tag.d.ts.map +0 -1
- package/dist/components/th-tag/th-tag.js +0 -307
- package/dist/components/th-tag/th-tag.js.map +0 -1
- package/dist/components/th-tag/th-tag.stories.d.ts +0 -277
- package/dist/components/th-tag/th-tag.stories.d.ts.map +0 -1
- package/dist/components/th-tag/th-tag.stories.js +0 -415
- package/dist/components/th-tag/th-tag.stories.js.map +0 -1
- package/dist/components/toggle-switch/toggle-switch.stories.d.ts +0 -239
- package/dist/components/toggle-switch/toggle-switch.stories.d.ts.map +0 -1
- package/dist/components/toggle-switch/toggle-switch.stories.js +0 -408
- package/dist/components/toggle-switch/toggle-switch.stories.js.map +0 -1
- package/dist/data-table.d.ts +0 -191
- package/dist/data-table.d.ts.map +0 -1
- package/dist/data-table.js +0 -796
- package/dist/data-table.js.map +0 -1
- package/dist/design-system/color-palette.stories.d.ts +0 -24
- package/dist/design-system/color-palette.stories.d.ts.map +0 -1
- package/dist/design-system/color-palette.stories.js +0 -361
- package/dist/design-system/color-palette.stories.js.map +0 -1
- package/dist/index.html +0 -102
- package/dist/toggle-switch.d.ts +0 -38
- package/dist/toggle-switch.d.ts.map +0 -1
- package/dist/toggle-switch.js +0 -175
- package/dist/toggle-switch.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krumio/trailhand-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Reusable web components built with Lit Element",
|
|
6
6
|
"main": "./dist/toggle-switch.js",
|
|
@@ -37,14 +37,19 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"
|
|
41
|
-
"build": "tsc",
|
|
40
|
+
"dev": "vite",
|
|
41
|
+
"build": "tsc -p tsconfig.build.json && mkdir -p dist/styles && cp src/styles/colors.css dist/styles/colors.css",
|
|
42
42
|
"build:demo": "vite build",
|
|
43
43
|
"typecheck": "tsc --noEmit",
|
|
44
44
|
"typecheck:watch": "tsc --noEmit --watch",
|
|
45
45
|
"storybook": "storybook dev -p 6006",
|
|
46
46
|
"build-storybook": "storybook build",
|
|
47
|
-
"prepublishOnly": "npm run build"
|
|
47
|
+
"prepublishOnly": "npm run build",
|
|
48
|
+
"chromatic": "chromatic --project-token=$CHROMATIC_PROJECT_TOKEN",
|
|
49
|
+
"test": "vitest",
|
|
50
|
+
"test:unit": "vitest --project unit",
|
|
51
|
+
"test:storybook": "vitest --project storybook",
|
|
52
|
+
"test:run": "vitest run"
|
|
48
53
|
},
|
|
49
54
|
"repository": {
|
|
50
55
|
"type": "git",
|
|
@@ -60,22 +65,26 @@
|
|
|
60
65
|
"author": "",
|
|
61
66
|
"license": "MIT",
|
|
62
67
|
"dependencies": {
|
|
68
|
+
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
69
|
+
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
63
70
|
"@iconify/icons-heroicons": "^1.2.9",
|
|
64
71
|
"iconify-icon": "^3.0.2",
|
|
65
72
|
"lit": "^3.3.1"
|
|
66
73
|
},
|
|
67
74
|
"devDependencies": {
|
|
75
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
68
76
|
"@storybook/addon-a11y": "^10.2.0",
|
|
69
77
|
"@storybook/addon-docs": "^10.2.0",
|
|
70
78
|
"@storybook/addon-vitest": "^10.2.0",
|
|
71
79
|
"@storybook/web-components-vite": "^10.2.0",
|
|
72
80
|
"@types/node": "^25.0.3",
|
|
81
|
+
"@vitest/browser-playwright": "^4.0.17",
|
|
82
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
83
|
+
"chromatic": "^15.0.0",
|
|
84
|
+
"playwright": "^1.57.0",
|
|
73
85
|
"storybook": "^10.2.0",
|
|
74
86
|
"typescript": "^5.9.3",
|
|
75
87
|
"vite": "^6.4.1",
|
|
76
|
-
"vitest": "^4.0.17"
|
|
77
|
-
"playwright": "^1.57.0",
|
|
78
|
-
"@vitest/browser-playwright": "^4.0.17",
|
|
79
|
-
"@vitest/coverage-v8": "^4.0.17"
|
|
88
|
+
"vitest": "^4.0.17"
|
|
80
89
|
}
|
|
81
90
|
}
|
package/dist/Button.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
import './button.css';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Button component
|
|
5
|
-
*/
|
|
6
|
-
export interface ButtonProps {
|
|
7
|
-
primary?: boolean;
|
|
8
|
-
backgroundColor?: string | null;
|
|
9
|
-
size?: 'small' | 'medium' | 'large';
|
|
10
|
-
label: string;
|
|
11
|
-
onClick?: (e: Event) => void;
|
|
12
|
-
}
|
|
13
|
-
/** Primary UI component for user interaction */
|
|
14
|
-
export declare const Button: ({ primary, backgroundColor, size, label, onClick }: ButtonProps) => TemplateResult;
|
|
15
|
-
//# sourceMappingURL=Button.d.ts.map
|
package/dist/Button.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../Components/Button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3C,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC9B;AAED,gDAAgD;AAChD,eAAO,MAAM,MAAM,GAAI,oDAMpB,WAAW,KAAG,cAahB,CAAC"}
|
package/dist/Button.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { styleMap } from 'lit/directives/style-map.js';
|
|
3
|
-
import './button.css';
|
|
4
|
-
/** Primary UI component for user interaction */
|
|
5
|
-
export const Button = ({ primary, backgroundColor = null, size, label, onClick }) => {
|
|
6
|
-
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
|
|
7
|
-
return html `
|
|
8
|
-
<button
|
|
9
|
-
type="button"
|
|
10
|
-
class=${['storybook-button', `storybook-button--${size || 'medium'}`, mode].join(' ')}
|
|
11
|
-
style=${styleMap({ backgroundColor })}
|
|
12
|
-
@click=${onClick}
|
|
13
|
-
>
|
|
14
|
-
${label}
|
|
15
|
-
</button>
|
|
16
|
-
`;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=Button.js.map
|
package/dist/Button.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../Components/Button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,cAAc,CAAC;AAatB,gDAAgD;AAChD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,OAAO,EACP,eAAe,GAAG,IAAI,EACtB,IAAI,EACJ,KAAK,EACL,OAAO,EACK,EAAkB,EAAE;IAChC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,6BAA6B,CAAC;IAEnF,OAAO,IAAI,CAAA;;;cAGC,CAAC,kBAAkB,EAAE,qBAAqB,IAAI,IAAI,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;cAC7E,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;eAC5B,OAAO;;QAEd,KAAK;;GAEV,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/Header.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
import './header.css';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Header component
|
|
5
|
-
*/
|
|
6
|
-
export interface HeaderProps {
|
|
7
|
-
user?: {
|
|
8
|
-
name?: string;
|
|
9
|
-
} | null;
|
|
10
|
-
onLogin?: (e: Event) => void;
|
|
11
|
-
onLogout?: (e: Event) => void;
|
|
12
|
-
onCreateAccount?: (e: Event) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => TemplateResult;
|
|
15
|
-
//# sourceMappingURL=Header.d.ts.map
|
package/dist/Header.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../Components/Header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3C,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,MAAM,GAAI,8CAKpB,WAAW,KAAG,cAuChB,CAAC"}
|
package/dist/Header.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { Button } from './Button';
|
|
3
|
-
import './header.css';
|
|
4
|
-
export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => html `
|
|
5
|
-
<header>
|
|
6
|
-
<div class="storybook-header">
|
|
7
|
-
<div>
|
|
8
|
-
<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
-
<g fill="none" fillRule="evenodd">
|
|
10
|
-
<path
|
|
11
|
-
d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z"
|
|
12
|
-
fill="#FFF"
|
|
13
|
-
/>
|
|
14
|
-
<path
|
|
15
|
-
d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z"
|
|
16
|
-
fill="#555AB9"
|
|
17
|
-
/>
|
|
18
|
-
<path
|
|
19
|
-
d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z"
|
|
20
|
-
fill="#91BAF8"
|
|
21
|
-
/>
|
|
22
|
-
</g>
|
|
23
|
-
</svg>
|
|
24
|
-
<h1>Acme</h1>
|
|
25
|
-
</div>
|
|
26
|
-
<div>
|
|
27
|
-
${user
|
|
28
|
-
? Button({ size: 'small', onClick: onLogout, label: 'Log out' })
|
|
29
|
-
: html `${Button({
|
|
30
|
-
size: 'small',
|
|
31
|
-
onClick: onLogin,
|
|
32
|
-
label: 'Log in',
|
|
33
|
-
})}
|
|
34
|
-
${Button({
|
|
35
|
-
primary: true,
|
|
36
|
-
size: 'small',
|
|
37
|
-
onClick: onCreateAccount,
|
|
38
|
-
label: 'Sign up',
|
|
39
|
-
})}`}
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</header>
|
|
43
|
-
`;
|
|
44
|
-
//# sourceMappingURL=Header.js.map
|
package/dist/Header.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../Components/Header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,cAAc,CAAC;AAYtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,eAAe,EACH,EAAkB,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;UAuB7B,IAAI;IACJ,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAChE,CAAC,CAAC,IAAI,CAAA,GAAG,MAAM,CAAC;QACZ,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,QAAQ;KAChB,CAAC;cACA,MAAM,CAAC;QACP,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,SAAS;KACjB,CAAC,EAAE;;;;CAIf,CAAC"}
|
package/dist/Page.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
import { HeaderProps } from './Header';
|
|
3
|
-
import './page.css';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the Page component (extends HeaderProps)
|
|
6
|
-
*/
|
|
7
|
-
export type PageProps = HeaderProps;
|
|
8
|
-
export declare const Page: ({ user, onLogin, onLogout, onCreateAccount }: PageProps) => TemplateResult;
|
|
9
|
-
//# sourceMappingURL=Page.d.ts.map
|
package/dist/Page.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../Components/Page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC;AAEpC,eAAO,MAAM,IAAI,GAAI,8CAKlB,SAAS,KAAG,cAwDd,CAAC"}
|
package/dist/Page.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { Header } from './Header';
|
|
3
|
-
import './page.css';
|
|
4
|
-
export const Page = ({ user, onLogin, onLogout, onCreateAccount }) => html `
|
|
5
|
-
<article>
|
|
6
|
-
${Header({
|
|
7
|
-
user,
|
|
8
|
-
onLogin,
|
|
9
|
-
onLogout,
|
|
10
|
-
onCreateAccount,
|
|
11
|
-
})}
|
|
12
|
-
|
|
13
|
-
<section class="storybook-page">
|
|
14
|
-
<h2>Pages in Storybook</h2>
|
|
15
|
-
<p>
|
|
16
|
-
We recommend building UIs with a
|
|
17
|
-
<a href="https://componentdriven.org" target="_blank" rel="noopener noreferrer">
|
|
18
|
-
<strong>component-driven</strong> </a
|
|
19
|
-
>process starting with atomic components and ending with pages.
|
|
20
|
-
</p>
|
|
21
|
-
<p>
|
|
22
|
-
Render pages with mock data. This makes it easy to build and review page states without
|
|
23
|
-
needing to navigate to them in your app. Here are some handy patterns for managing page data
|
|
24
|
-
in Storybook:
|
|
25
|
-
</p>
|
|
26
|
-
<ul>
|
|
27
|
-
<li>
|
|
28
|
-
Use a higher-level connected component. Storybook helps you compose such data from the
|
|
29
|
-
"args" of child component stories
|
|
30
|
-
</li>
|
|
31
|
-
<li>
|
|
32
|
-
Assemble data in the page component from your services. You can mock these services out
|
|
33
|
-
using Storybook.
|
|
34
|
-
</li>
|
|
35
|
-
</ul>
|
|
36
|
-
<p>
|
|
37
|
-
Get a guided tutorial on component-driven development at
|
|
38
|
-
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer">
|
|
39
|
-
Storybook tutorials
|
|
40
|
-
</a>
|
|
41
|
-
. Read more in the
|
|
42
|
-
<a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer"> docs </a>
|
|
43
|
-
.
|
|
44
|
-
</p>
|
|
45
|
-
<div class="tip-wrapper">
|
|
46
|
-
<span class="tip">Tip</span> Adjust the width of the canvas with the
|
|
47
|
-
<svg width="10" height="10" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
|
|
48
|
-
<g fill="none" fillRule="evenodd">
|
|
49
|
-
<path
|
|
50
|
-
d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
|
|
51
|
-
id="a"
|
|
52
|
-
fill="#999"
|
|
53
|
-
/>
|
|
54
|
-
</g>
|
|
55
|
-
</svg>
|
|
56
|
-
Viewports addon in the toolbar
|
|
57
|
-
</div>
|
|
58
|
-
</section>
|
|
59
|
-
</article>
|
|
60
|
-
`;
|
|
61
|
-
//# sourceMappingURL=Page.js.map
|
package/dist/Page.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../Components/Page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAe,MAAM,UAAU,CAAC;AAC/C,OAAO,YAAY,CAAC;AAOpB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,eAAe,EACL,EAAkB,EAAE,CAAC,IAAI,CAAA;;MAE/B,MAAM,CAAC;IACP,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,eAAe;CAChB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDL,CAAC"}
|
package/dist/action-menu.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* Type definition for resource data
|
|
4
|
-
*/
|
|
5
|
-
interface ResourceData {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
availableActions?: ActionMenuItem[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Type definition for action menu items
|
|
11
|
-
*/
|
|
12
|
-
export interface ActionMenuItem {
|
|
13
|
-
label?: string;
|
|
14
|
-
action?: (resource: ResourceData) => void;
|
|
15
|
-
enabled?: boolean | ((resource: ResourceData) => boolean);
|
|
16
|
-
visible?: boolean | ((resource: ResourceData) => boolean);
|
|
17
|
-
danger?: boolean;
|
|
18
|
-
divider?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* A dropdown action menu component for displaying contextual actions.
|
|
22
|
-
* Typically used in table rows or cards to provide action options.
|
|
23
|
-
*/
|
|
24
|
-
export declare class ActionMenu extends LitElement {
|
|
25
|
-
actions: ActionMenuItem[];
|
|
26
|
-
resource: ResourceData;
|
|
27
|
-
disabled: boolean;
|
|
28
|
-
private _isOpen;
|
|
29
|
-
private _boundHandleClickOutside;
|
|
30
|
-
static styles: import("lit").CSSResult;
|
|
31
|
-
constructor();
|
|
32
|
-
connectedCallback(): void;
|
|
33
|
-
disconnectedCallback(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Handle clicks outside the menu to close it
|
|
36
|
-
* @param e - The click event
|
|
37
|
-
* @private
|
|
38
|
-
*/
|
|
39
|
-
private _handleClickOutside;
|
|
40
|
-
/**
|
|
41
|
-
* Toggle the dropdown menu open/closed
|
|
42
|
-
* @param e - The click event
|
|
43
|
-
* @private
|
|
44
|
-
*/
|
|
45
|
-
private _toggleMenu;
|
|
46
|
-
/**
|
|
47
|
-
* Handle action click
|
|
48
|
-
* @param e - The click event
|
|
49
|
-
* @param action - The action object
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
private _handleActionClick;
|
|
53
|
-
/**
|
|
54
|
-
* Check if an action is enabled
|
|
55
|
-
* @param action - The action object
|
|
56
|
-
* @returns boolean
|
|
57
|
-
* @private
|
|
58
|
-
*/
|
|
59
|
-
private _isActionEnabled;
|
|
60
|
-
/**
|
|
61
|
-
* Render the three-dots icon
|
|
62
|
-
* @returns TemplateResult
|
|
63
|
-
* @private
|
|
64
|
-
*/
|
|
65
|
-
private _renderIcon;
|
|
66
|
-
/**
|
|
67
|
-
* Get actions to display
|
|
68
|
-
* @returns Array of actions
|
|
69
|
-
* @private
|
|
70
|
-
*/
|
|
71
|
-
private _getActions;
|
|
72
|
-
/**
|
|
73
|
-
* Render the component
|
|
74
|
-
* @returns TemplateResult
|
|
75
|
-
*/
|
|
76
|
-
render(): TemplateResult;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
|
79
|
-
//# sourceMappingURL=action-menu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,cAAc;CAuElC"}
|
package/dist/action-menu.js
DELETED
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { property, state } from 'lit/decorators.js';
|
|
9
|
-
/**
|
|
10
|
-
* A dropdown action menu component for displaying contextual actions.
|
|
11
|
-
* Typically used in table rows or cards to provide action options.
|
|
12
|
-
*/
|
|
13
|
-
export class ActionMenu extends LitElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.actions = [];
|
|
17
|
-
this.resource = {};
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
this._isOpen = false;
|
|
20
|
-
this._boundHandleClickOutside = this._handleClickOutside.bind(this);
|
|
21
|
-
}
|
|
22
|
-
connectedCallback() {
|
|
23
|
-
super.connectedCallback();
|
|
24
|
-
document.addEventListener('click', this._boundHandleClickOutside);
|
|
25
|
-
}
|
|
26
|
-
disconnectedCallback() {
|
|
27
|
-
super.disconnectedCallback();
|
|
28
|
-
document.removeEventListener('click', this._boundHandleClickOutside);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Handle clicks outside the menu to close it
|
|
32
|
-
* @param e - The click event
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
_handleClickOutside(e) {
|
|
36
|
-
const target = e.target;
|
|
37
|
-
if (this._isOpen && !this.contains(target)) {
|
|
38
|
-
this._isOpen = false;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Toggle the dropdown menu open/closed
|
|
43
|
-
* @param e - The click event
|
|
44
|
-
* @private
|
|
45
|
-
*/
|
|
46
|
-
_toggleMenu(e) {
|
|
47
|
-
e.stopPropagation();
|
|
48
|
-
if (!this.disabled) {
|
|
49
|
-
this._isOpen = !this._isOpen;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Handle action click
|
|
54
|
-
* @param e - The click event
|
|
55
|
-
* @param action - The action object
|
|
56
|
-
* @private
|
|
57
|
-
*/
|
|
58
|
-
_handleActionClick(e, action) {
|
|
59
|
-
e.stopPropagation();
|
|
60
|
-
if (this._isActionEnabled(action)) {
|
|
61
|
-
this._isOpen = false;
|
|
62
|
-
// Dispatch custom event
|
|
63
|
-
this.dispatchEvent(new CustomEvent('action-click', {
|
|
64
|
-
bubbles: true,
|
|
65
|
-
composed: true,
|
|
66
|
-
detail: { action, resource: this.resource }
|
|
67
|
-
}));
|
|
68
|
-
// Call action handler if provided
|
|
69
|
-
if (action.action && typeof action.action === 'function') {
|
|
70
|
-
action.action(this.resource);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Check if an action is enabled
|
|
76
|
-
* @param action - The action object
|
|
77
|
-
* @returns boolean
|
|
78
|
-
* @private
|
|
79
|
-
*/
|
|
80
|
-
_isActionEnabled(action) {
|
|
81
|
-
if (!action.enabled)
|
|
82
|
-
return true;
|
|
83
|
-
if (typeof action.enabled === 'function') {
|
|
84
|
-
return action.enabled(this.resource);
|
|
85
|
-
}
|
|
86
|
-
return action.enabled;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Render the three-dots icon
|
|
90
|
-
* @returns TemplateResult
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
_renderIcon() {
|
|
94
|
-
return html `
|
|
95
|
-
<svg class="action-menu__icon" viewBox="0 0 16 16" fill="currentColor">
|
|
96
|
-
<circle cx="2" cy="8" r="1.5" />
|
|
97
|
-
<circle cx="8" cy="8" r="1.5" />
|
|
98
|
-
<circle cx="14" cy="8" r="1.5" />
|
|
99
|
-
</svg>
|
|
100
|
-
`;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Get actions to display
|
|
104
|
-
* @returns Array of actions
|
|
105
|
-
* @private
|
|
106
|
-
*/
|
|
107
|
-
_getActions() {
|
|
108
|
-
// If actions are provided explicitly, use them
|
|
109
|
-
if (this.actions && this.actions.length > 0) {
|
|
110
|
-
return this.actions;
|
|
111
|
-
}
|
|
112
|
-
// Otherwise, try to get from resource.availableActions
|
|
113
|
-
if (this.resource && typeof this.resource.availableActions !== 'undefined') {
|
|
114
|
-
return this.resource.availableActions || [];
|
|
115
|
-
}
|
|
116
|
-
return [];
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Render the component
|
|
120
|
-
* @returns TemplateResult
|
|
121
|
-
*/
|
|
122
|
-
render() {
|
|
123
|
-
const allActions = this._getActions();
|
|
124
|
-
// Filter by visibility and enabled status
|
|
125
|
-
let visibleActions = allActions.filter(action => {
|
|
126
|
-
// Skip dividers in visibility check
|
|
127
|
-
if (action.divider)
|
|
128
|
-
return true;
|
|
129
|
-
// Check visible property
|
|
130
|
-
if (action.visible !== undefined) {
|
|
131
|
-
if (typeof action.visible === 'function') {
|
|
132
|
-
return action.visible(this.resource);
|
|
133
|
-
}
|
|
134
|
-
return action.visible;
|
|
135
|
-
}
|
|
136
|
-
// If no visible property, check enabled (hide if explicitly false)
|
|
137
|
-
if (action.enabled !== undefined && action.enabled === false) {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
return true;
|
|
141
|
-
});
|
|
142
|
-
// Remove consecutive dividers and trailing/leading dividers
|
|
143
|
-
visibleActions = visibleActions.filter((action, index, arr) => {
|
|
144
|
-
if (!action.divider)
|
|
145
|
-
return true;
|
|
146
|
-
// Remove if first or last
|
|
147
|
-
if (index === 0 || index === arr.length - 1)
|
|
148
|
-
return false;
|
|
149
|
-
// Remove if next to another divider
|
|
150
|
-
if (arr[index - 1]?.divider || arr[index + 1]?.divider)
|
|
151
|
-
return false;
|
|
152
|
-
return true;
|
|
153
|
-
});
|
|
154
|
-
return html `
|
|
155
|
-
<button
|
|
156
|
-
class="action-menu__button"
|
|
157
|
-
?disabled=${this.disabled}
|
|
158
|
-
@click=${this._toggleMenu}
|
|
159
|
-
aria-haspopup="true"
|
|
160
|
-
aria-expanded=${this._isOpen}
|
|
161
|
-
>
|
|
162
|
-
${this._renderIcon()}
|
|
163
|
-
</button>
|
|
164
|
-
|
|
165
|
-
<div class="action-menu__dropdown ${this._isOpen ? 'action-menu__dropdown--open' : ''}">
|
|
166
|
-
${visibleActions.length === 0 ? html `
|
|
167
|
-
<div class="action-menu__empty">No actions available</div>
|
|
168
|
-
` : html `
|
|
169
|
-
<ul class="action-menu__list" role="menu">
|
|
170
|
-
${visibleActions.map((action) => html `
|
|
171
|
-
${action.divider ? html `
|
|
172
|
-
<li class="action-menu__divider" role="separator"></li>
|
|
173
|
-
` : html `
|
|
174
|
-
<li class="action-menu__item" role="none">
|
|
175
|
-
<button
|
|
176
|
-
class="action-menu__action ${action.danger ? 'action-menu__action--danger' : ''}"
|
|
177
|
-
?disabled=${!this._isActionEnabled(action)}
|
|
178
|
-
@click=${(e) => this._handleActionClick(e, action)}
|
|
179
|
-
role="menuitem"
|
|
180
|
-
>
|
|
181
|
-
${action.label}
|
|
182
|
-
</button>
|
|
183
|
-
</li>
|
|
184
|
-
`}
|
|
185
|
-
`)}
|
|
186
|
-
</ul>
|
|
187
|
-
`}
|
|
188
|
-
</div>
|
|
189
|
-
`;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
ActionMenu.styles = css `
|
|
193
|
-
:host {
|
|
194
|
-
display: inline-block;
|
|
195
|
-
position: relative;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.action-menu__button {
|
|
199
|
-
display: flex;
|
|
200
|
-
align-items: center;
|
|
201
|
-
justify-content: center;
|
|
202
|
-
width: 32px;
|
|
203
|
-
height: 32px;
|
|
204
|
-
padding: 0;
|
|
205
|
-
border: 1px solid var(--border, #ddd);
|
|
206
|
-
border-radius: 4px;
|
|
207
|
-
background-color: var(--body-bg, #fff);
|
|
208
|
-
color: var(--body-text, #333);
|
|
209
|
-
cursor: pointer;
|
|
210
|
-
transition: all 0.2s;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.action-menu__button:hover:not(:disabled) {
|
|
214
|
-
background-color: var(--sortable-table-row-hover-bg, #f5f5f5);
|
|
215
|
-
border-color: var(--link, #007bff);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.action-menu__button:disabled {
|
|
219
|
-
opacity: 0.4;
|
|
220
|
-
cursor: not-allowed;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.action-menu__icon {
|
|
224
|
-
width: 16px;
|
|
225
|
-
height: 16px;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.action-menu__dropdown {
|
|
229
|
-
position: absolute;
|
|
230
|
-
right: 0;
|
|
231
|
-
top: 100%;
|
|
232
|
-
margin-top: 4px;
|
|
233
|
-
min-width: 180px;
|
|
234
|
-
background-color: var(--body-bg, #fff);
|
|
235
|
-
border: 1px solid var(--border, #ddd);
|
|
236
|
-
border-radius: 4px;
|
|
237
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
238
|
-
z-index: 1000;
|
|
239
|
-
opacity: 0;
|
|
240
|
-
visibility: hidden;
|
|
241
|
-
transform: translateY(-10px);
|
|
242
|
-
transition: all 0.2s ease-in-out;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.action-menu__dropdown--open {
|
|
246
|
-
opacity: 1;
|
|
247
|
-
visibility: visible;
|
|
248
|
-
transform: translateY(0);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.action-menu__list {
|
|
252
|
-
list-style: none;
|
|
253
|
-
margin: 0;
|
|
254
|
-
padding: 0.5rem 0;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.action-menu__item {
|
|
258
|
-
margin: 0;
|
|
259
|
-
padding: 0;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.action-menu__action {
|
|
263
|
-
display: flex;
|
|
264
|
-
align-items: center;
|
|
265
|
-
gap: 0.5rem;
|
|
266
|
-
width: 100%;
|
|
267
|
-
padding: 0.5rem 1rem;
|
|
268
|
-
border: none;
|
|
269
|
-
background: none;
|
|
270
|
-
color: var(--body-text, #333);
|
|
271
|
-
font-size: 14px;
|
|
272
|
-
text-align: left;
|
|
273
|
-
cursor: pointer;
|
|
274
|
-
transition: background-color 0.15s;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.action-menu__action:hover:not(:disabled) {
|
|
278
|
-
background-color: var(--sortable-table-row-hover-bg, #f5f5f5);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.action-menu__action:disabled {
|
|
282
|
-
opacity: 0.4;
|
|
283
|
-
cursor: not-allowed;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.action-menu__action--danger {
|
|
287
|
-
color: var(--error, #dc3545);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.action-menu__action--danger:hover:not(:disabled) {
|
|
291
|
-
background-color: rgba(220, 53, 69, 0.1);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.action-menu__divider {
|
|
295
|
-
height: 1px;
|
|
296
|
-
margin: 0.5rem 0;
|
|
297
|
-
background-color: var(--border, #ddd);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.action-menu__empty {
|
|
301
|
-
padding: 1rem;
|
|
302
|
-
text-align: center;
|
|
303
|
-
color: var(--muted, #999);
|
|
304
|
-
font-size: 13px;
|
|
305
|
-
}
|
|
306
|
-
`;
|
|
307
|
-
__decorate([
|
|
308
|
-
property({ type: Array })
|
|
309
|
-
], ActionMenu.prototype, "actions", void 0);
|
|
310
|
-
__decorate([
|
|
311
|
-
property({ type: Object })
|
|
312
|
-
], ActionMenu.prototype, "resource", void 0);
|
|
313
|
-
__decorate([
|
|
314
|
-
property({ type: Boolean })
|
|
315
|
-
], ActionMenu.prototype, "disabled", void 0);
|
|
316
|
-
__decorate([
|
|
317
|
-
state()
|
|
318
|
-
], ActionMenu.prototype, "_isOpen", void 0);
|
|
319
|
-
// Register the element
|
|
320
|
-
customElements.define('action-menu', ActionMenu);
|
|
321
|
-
//# sourceMappingURL=action-menu.js.map
|
package/dist/action-menu.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-menu.js","sourceRoot":"","sources":["../Components/action-menu.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAsBpD;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,UAAU;IAmIxC;QACE,KAAK,EAAE,CAAC;QAlIV,YAAO,GAAqB,EAAE,CAAC;QAG/B,aAAQ,GAAiB,EAAE,CAAC;QAG5B,aAAQ,GAAG,KAAK,CAAC;QAGT,YAAO,GAAG,KAAK,CAAC;QA0HtB,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtE,CAAC;IAEQ,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACpE,CAAC;IAEQ,oBAAoB;QAC3B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,wBAAwB,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