@duskmoon-dev/el-progress 0.4.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/dist/cjs/index.js +245 -0
- package/dist/cjs/index.js.map +11 -0
- package/dist/cjs/register.js +248 -0
- package/dist/cjs/register.js.map +12 -0
- package/dist/esm/index.js +213 -0
- package/dist/esm/index.js.map +11 -0
- package/dist/esm/register.js +212 -0
- package/dist/esm/register.js.map +12 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/el-dm-progress.d.ts +77 -0
- package/dist/types/el-dm-progress.d.ts.map +1 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/register.d.ts +2 -0
- package/dist/types/register.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DuskMoon Progress Element
|
|
3
|
+
*
|
|
4
|
+
* A progress bar component for displaying completion status.
|
|
5
|
+
* Uses styles from @duskmoon-dev/core for consistent theming.
|
|
6
|
+
*
|
|
7
|
+
* @element el-dm-progress
|
|
8
|
+
*
|
|
9
|
+
* @attr {number} value - Current progress value (0-100)
|
|
10
|
+
* @attr {number} max - Maximum value (default: 100)
|
|
11
|
+
* @attr {string} color - Progress bar color: primary, secondary, tertiary, success, warning, error, info
|
|
12
|
+
* @attr {string} size - Progress bar size: sm, md, lg
|
|
13
|
+
* @attr {boolean} indeterminate - Whether to show indeterminate animation
|
|
14
|
+
* @attr {boolean} striped - Whether to show striped pattern
|
|
15
|
+
* @attr {boolean} animated - Whether to animate the stripes
|
|
16
|
+
* @attr {boolean} show-value - Whether to show the value label
|
|
17
|
+
*
|
|
18
|
+
* @csspart progress - The progress container
|
|
19
|
+
* @csspart bar - The progress bar
|
|
20
|
+
* @csspart value - The value label
|
|
21
|
+
*/
|
|
22
|
+
import { BaseElement } from '@duskmoon-dev/el-core';
|
|
23
|
+
export type ProgressColor = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error' | 'info';
|
|
24
|
+
export type ProgressSize = 'sm' | 'md' | 'lg';
|
|
25
|
+
export declare class ElDmProgress extends BaseElement {
|
|
26
|
+
static properties: {
|
|
27
|
+
value: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
max: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
reflect: boolean;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
color: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
reflect: boolean;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
size: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
reflect: boolean;
|
|
45
|
+
};
|
|
46
|
+
indeterminate: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
reflect: boolean;
|
|
49
|
+
};
|
|
50
|
+
striped: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
reflect: boolean;
|
|
53
|
+
};
|
|
54
|
+
animated: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
reflect: boolean;
|
|
57
|
+
};
|
|
58
|
+
showValue: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
attribute: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
value: number;
|
|
65
|
+
max: number;
|
|
66
|
+
color: ProgressColor;
|
|
67
|
+
size: ProgressSize;
|
|
68
|
+
indeterminate: boolean;
|
|
69
|
+
striped: boolean;
|
|
70
|
+
animated: boolean;
|
|
71
|
+
showValue: boolean;
|
|
72
|
+
constructor();
|
|
73
|
+
private _getPercentage;
|
|
74
|
+
private _getProgressClasses;
|
|
75
|
+
render(): string;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=el-dm-progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"el-dm-progress.d.ts","sourceRoot":"","sources":["../../src/el-dm-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,WAAW,EAAO,MAAM,uBAAuB,CAAC;AAmBzD,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AA8H9C,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASf;IAEM,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;;IAO3B,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,mBAAmB;IA0B3B,MAAM,IAAI,MAAM;CAsBjB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @duskmoon-dev/el-progress
|
|
3
|
+
*
|
|
4
|
+
* DuskMoon Progress custom element
|
|
5
|
+
*/
|
|
6
|
+
import { ElDmProgress } from './el-dm-progress.js';
|
|
7
|
+
export { ElDmProgress };
|
|
8
|
+
export type { ProgressColor, ProgressSize } from './el-dm-progress.js';
|
|
9
|
+
/**
|
|
10
|
+
* Register the el-dm-progress custom element
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { register } from '@duskmoon-dev/el-progress';
|
|
15
|
+
* register();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function register(): void;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEvE;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,IAAI,CAI/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/register.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@duskmoon-dev/el-progress",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.js",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"import": "./dist/esm/index.js",
|
|
12
|
+
"require": "./dist/cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./register": {
|
|
15
|
+
"types": "./dist/types/register.d.ts",
|
|
16
|
+
"import": "./dist/esm/register.js",
|
|
17
|
+
"require": "./dist/cjs/register.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"prebuild": "bun run clean",
|
|
25
|
+
"build": "bun run build:esm && bun run build:cjs && bun run build:types",
|
|
26
|
+
"build:esm": "bun build ./src/index.ts ./src/register.ts --outdir ./dist/esm --format esm --sourcemap --external @duskmoon-dev/el-core --external @duskmoon-dev/core",
|
|
27
|
+
"build:cjs": "bun build ./src/index.ts ./src/register.ts --outdir ./dist/cjs --format cjs --sourcemap --external @duskmoon-dev/el-core --external @duskmoon-dev/core",
|
|
28
|
+
"build:types": "tsc --emitDeclarationOnly --outDir ./dist/types",
|
|
29
|
+
"dev": "bun build ./src/index.ts --outdir ./dist/esm --format esm --sourcemap --external @duskmoon-dev/el-core --watch",
|
|
30
|
+
"clean": "del-cli dist",
|
|
31
|
+
"test": "bun test",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"format": "prettier --write 'src/**/*.ts' '*.json' ",
|
|
34
|
+
"format:check": "prettier --check 'src/**/*.ts' '*.json' ",
|
|
35
|
+
"lint": "eslint src",
|
|
36
|
+
"lint:check": "eslint src --max-warnings 0",
|
|
37
|
+
"lint:fix": "eslint src --fix",
|
|
38
|
+
"release": "bun publish",
|
|
39
|
+
"release:dry-run": "bun publish --dry-run"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@duskmoon-dev/el-core": "0.3.0",
|
|
43
|
+
"@duskmoon-dev/core": "^1.1.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"typescript": "^5.7.2"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"duskmoon-dev",
|
|
53
|
+
"custom-elements",
|
|
54
|
+
"web-components",
|
|
55
|
+
"progress",
|
|
56
|
+
"loading"
|
|
57
|
+
]
|
|
58
|
+
}
|