@shortfuse/materialdesignweb 0.9.3 → 0.9.4
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 +3 -1
- package/components/NavItem.js +4 -1
- package/components/Pane.js +0 -2
- package/core/observe.js +5 -3
- package/dist/CustomElement.min.js +1 -1
- package/dist/CustomElement.min.js.map +2 -2
- package/dist/index.min.js +27 -24
- package/dist/index.min.js.map +4 -4
- package/dist/meta.json +1 -1
- package/mixins/FlexableMixin.js +1 -1
- package/package.json +25 -7
- package/types/components/NavBarItem.d.ts +1 -0
- package/types/components/NavDrawerItem.d.ts +1 -0
- package/types/components/NavItem.d.ts +1 -0
- package/types/components/NavItem.d.ts.map +1 -1
- package/types/components/NavRailItem.d.ts +1 -0
- package/types/core/observe.d.ts +2 -2
- package/types/core/observe.d.ts.map +1 -1
package/dist/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"core/optimizations.js":{"bytes":597,"imports":[],"format":"esm"},"core/CompositionAdapter.js":{"bytes":9660,"imports":[{"path":"core/optimizations.js","kind":"import-statement","original":"./optimizations.js"}],"format":"esm"},"core/css.js":{"bytes":4807,"imports":[],"format":"esm"},"core/dom.js":{"bytes":2583,"imports":[],"format":"esm"},"core/jsonMergePatch.js":{"bytes":3901,"imports":[],"format":"esm"},"core/observe.js":{"bytes":
|
|
1
|
+
{"inputs":{"core/optimizations.js":{"bytes":597,"imports":[],"format":"esm"},"core/CompositionAdapter.js":{"bytes":9660,"imports":[{"path":"core/optimizations.js","kind":"import-statement","original":"./optimizations.js"}],"format":"esm"},"core/css.js":{"bytes":4807,"imports":[],"format":"esm"},"core/dom.js":{"bytes":2583,"imports":[],"format":"esm"},"core/jsonMergePatch.js":{"bytes":3901,"imports":[],"format":"esm"},"core/observe.js":{"bytes":13402,"imports":[{"path":"core/dom.js","kind":"import-statement","original":"./dom.js"},{"path":"core/jsonMergePatch.js","kind":"import-statement","original":"./jsonMergePatch.js"}],"format":"esm"},"core/uid.js":{"bytes":475,"imports":[],"format":"esm"},"core/template.js":{"bytes":3062,"imports":[{"path":"core/uid.js","kind":"import-statement","original":"./uid.js"}],"format":"esm"},"core/Composition.js":{"bytes":45317,"imports":[{"path":"core/CompositionAdapter.js","kind":"import-statement","original":"./CompositionAdapter.js"},{"path":"core/css.js","kind":"import-statement","original":"./css.js"},{"path":"core/observe.js","kind":"import-statement","original":"./observe.js"},{"path":"core/optimizations.js","kind":"import-statement","original":"./optimizations.js"},{"path":"core/template.js","kind":"import-statement","original":"./template.js"},{"path":"core/uid.js","kind":"import-statement","original":"./uid.js"}],"format":"esm"},"core/CustomElement.js":{"bytes":38833,"imports":[{"path":"core/Composition.js","kind":"import-statement","original":"./Composition.js"},{"path":"core/css.js","kind":"import-statement","original":"./css.js"},{"path":"core/dom.js","kind":"import-statement","original":"./dom.js"},{"path":"core/jsonMergePatch.js","kind":"import-statement","original":"./jsonMergePatch.js"},{"path":"core/observe.js","kind":"import-statement","original":"./observe.js"},{"path":"core/template.js","kind":"import-statement","original":"./template.js"}],"format":"esm"}},"outputs":{"dist/CustomElement.min.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":174233},"dist/CustomElement.min.js":{"imports":[],"exports":["cloneAttributeCallback","default"],"entryPoint":"core/CustomElement.js","inputs":{"core/optimizations.js":{"bytesInOutput":108},"core/CompositionAdapter.js":{"bytesInOutput":2522},"core/css.js":{"bytesInOutput":1031},"core/dom.js":{"bytesInOutput":586},"core/jsonMergePatch.js":{"bytesInOutput":1011},"core/observe.js":{"bytesInOutput":3366},"core/uid.js":{"bytesInOutput":131},"core/template.js":{"bytesInOutput":723},"core/Composition.js":{"bytesInOutput":12418},"core/CustomElement.js":{"bytesInOutput":8967}},"bytes":30960}}}
|
package/mixins/FlexableMixin.js
CHANGED
|
@@ -130,7 +130,7 @@ export default function FlexableMixin(Base) {
|
|
|
130
130
|
:host(:is([gap="24"])) {gap: 24px;}
|
|
131
131
|
|
|
132
132
|
:host(:is([padding])) {padding: 0;}
|
|
133
|
-
:host(:is([padding="pane"])) { padding-inline: var(--mdw-pane__padding-inline,
|
|
133
|
+
:host(:is([padding="pane"])) { padding-inline: var(--mdw-pane__padding-inline, 16px) }
|
|
134
134
|
:host(:is([padding="4"])) {padding: 4px;}
|
|
135
135
|
:host(:is([padding="8"])) {padding: 8px;}
|
|
136
136
|
:host(:is([padding="12"])) {padding: 12px;}
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"@babel/preset-env": "^7.26.9",
|
|
14
14
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
15
15
|
"@playwright/test": "^1.50.1",
|
|
16
|
+
"@pwrs/cem": "^0.7.5",
|
|
16
17
|
"@rollup/plugin-babel": "^6.0.4",
|
|
17
18
|
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
18
19
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -31,9 +32,10 @@
|
|
|
31
32
|
"ajv": "^8.17.1",
|
|
32
33
|
"browserslist-to-esbuild": "^2.1.1",
|
|
33
34
|
"clean-css": "^5.3.3",
|
|
35
|
+
"custom-element-vs-code-integration": "^1.5.0",
|
|
34
36
|
"custom-elements-manifest": "^2.1.0",
|
|
35
37
|
"element-internals-polyfill": "^1.3.13",
|
|
36
|
-
"esbuild": "^0.
|
|
38
|
+
"esbuild": "^0.27.2",
|
|
37
39
|
"esbuild-postcss": "^0.0.4",
|
|
38
40
|
"eslint": "^8.57.1",
|
|
39
41
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -98,20 +100,24 @@
|
|
|
98
100
|
"url": "git+https://github.com/clshortfuse/materialdesignweb.git"
|
|
99
101
|
},
|
|
100
102
|
"scripts": {
|
|
101
|
-
"cem": "node scripts/cem-generate.js",
|
|
102
|
-
"demo": "node build/esbuild.js demo/demo.js --outdir=demo --minify --metafile",
|
|
103
|
+
"cem": "node scripts/cem-generate.js && node scripts/cem-vscode.js",
|
|
103
104
|
"demo:rollup": "rollup -c build/rollup.config.js demo/demo.js --dir=demo --compact",
|
|
104
105
|
"build:index": "node build/esbuild.js index.js --outdir=dist --minify --metafile --production --format=iife",
|
|
106
|
+
"build:demo": "node build/esbuild.js demo/demo.js --outdir=demo --minify --metafile",
|
|
105
107
|
"build:custom-element": "node build/esbuild.js core/CustomElement.js --outdir=dist --minify --metafile --production --format=esm",
|
|
106
|
-
"
|
|
108
|
+
"build": "npm run build:index && npm run build:custom-element",
|
|
109
|
+
"demo": "npm run build:demo",
|
|
110
|
+
"dist": "npm run build",
|
|
107
111
|
"predemo": "node bin/mdw-css.js --custom=yellow,orange:orange,green:0f0,alias:aqua | npx esbuild --minify --loader=css > demo/theme.css",
|
|
108
112
|
"predemo-alt": "node bin/mdw-css.js --color=a46750 --custom=yellow,orange:orange,green:0f0,alias:aqua | npx esbuild --minify --loader=css > demo/alt-theme.css",
|
|
109
113
|
"prepublishOnly": "npm run types && npm run cem && npm run dist",
|
|
110
|
-
"
|
|
114
|
+
"eslint": "eslint --ignore-path .gitignore",
|
|
115
|
+
"pretest": "npm run eslint && npm run build:index",
|
|
111
116
|
"preversion": "npm run prepublishOnly",
|
|
112
117
|
"serve": "node build/esbuild.js demo/demo.js --outdir=demo --metafile --serve --live --tree-shaking=true",
|
|
113
118
|
"serve:rollup": "rollup -c build/rollup.config.js demo/demo.js --dir=demo --watch --environment SERVE",
|
|
114
119
|
"test": "web-test-runner \"test/**/*.test.js\" --node-resolve --playwright --browsers chromium firefox webkit --concurrency 1",
|
|
120
|
+
"test:cem": "npx @pwrs/cem validate",
|
|
115
121
|
"test:custom": "web-test-runner \"test/**/*.test.js\" --node-resolve --concurrency 1",
|
|
116
122
|
"test:chromium": "web-test-runner \"test/**/*.test.js\" --node-resolve --playwright --browsers chromium",
|
|
117
123
|
"test:firefox": "web-test-runner \"test/**/*.test.js\" --node-resolve --playwright --browsers firefox --concurrency 1",
|
|
@@ -133,6 +139,18 @@
|
|
|
133
139
|
"./demo/demo/*.js",
|
|
134
140
|
"./demo/polyfills/*.js"
|
|
135
141
|
],
|
|
142
|
+
"contributes": {
|
|
143
|
+
"html": {
|
|
144
|
+
"customData": [
|
|
145
|
+
"./docs/html.html-data.json"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"css": {
|
|
149
|
+
"customData": [
|
|
150
|
+
"./docs/css.css-data.json"
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
136
154
|
"type": "module",
|
|
137
155
|
"typesVersions": {
|
|
138
156
|
"*": {
|
|
@@ -141,5 +159,5 @@
|
|
|
141
159
|
]
|
|
142
160
|
}
|
|
143
161
|
},
|
|
144
|
-
"version": "0.9.
|
|
145
|
-
}
|
|
162
|
+
"version": "0.9.4"
|
|
163
|
+
}
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof import("../index.js").CustomElement & import("../
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
//# sourceMappingURL=NavBarItem.d.ts.map
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof import("../index.js").CustomElement & import("../
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
//# sourceMappingURL=NavDrawerItem.d.ts.map
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof CustomElement & import("../core/CustomElement.js"
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
export type DeprecatedHTMLAnchorElementProperties = "charset" | "coords" | "name" | "shape";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../components/NavItem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../components/NavItem.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAYc,SAAS,GAAC,QAAQ,GAAC,MAAM,GAAC,OAAO;0BAPrB,0BAA0B"}
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof import("../index.js").CustomElement & import("../
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
//# sourceMappingURL=NavRailItem.d.ts.map
|
package/types/core/observe.d.ts
CHANGED
|
@@ -62,8 +62,8 @@ export function parsePropertyValue(this: ObserverConfiguration<any, any, any, an
|
|
|
62
62
|
* @return {ObserverConfiguration<T1,T2,C,K>}
|
|
63
63
|
*/
|
|
64
64
|
export function defineObservableProperty<T1 extends ObserverPropertyType, T2 extends unknown, C extends Object, K extends keyof C & string>(object: C, key: K, options: ObserverOptions<T1, T2, C>): ObserverConfiguration<T1, T2, C, K>;
|
|
65
|
-
export type ObserverPropertyType = "string" | "boolean" | "map" | "set" | "float" | "integer" | "object" | "function" | "array";
|
|
66
|
-
export type ParsedObserverPropertyType<T extends ObserverPropertyType> = (T extends "boolean" ? boolean : T extends "string" ? string : T extends "float" | "integer" ? number : T extends "array" ? any[] : T extends "object" ? any : T extends "function" ? (...args: any) => any : unknown);
|
|
65
|
+
export type ObserverPropertyType = "string" | "boolean" | "map" | "set" | "float" | "integer" | "number" | "object" | "function" | "array";
|
|
66
|
+
export type ParsedObserverPropertyType<T extends ObserverPropertyType> = (T extends "boolean" ? boolean : T extends "string" ? string : T extends "float" | "integer" | "number" ? number : T extends "array" ? any[] : T extends "object" ? any : T extends "function" ? (...args: any) => any : unknown);
|
|
67
67
|
export type ObserverOptions<T1 extends ObserverPropertyType, T2 extends unknown, C extends Object = any> = {
|
|
68
68
|
type?: T1;
|
|
69
69
|
enumerable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../core/observe.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../core/observe.js"],"names":[],"mappings":"AAoLA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,+CApBW,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,GAAG,WACxB,GAAG,EAAA,GAEL;IACR,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;KAClB,CAAC;IACF,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;KACjB,CAAC;IACF,SAAS,EAAE;QACV,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;QACjB,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACnB,CAAC;IACF,YAAY,EAAE,GAAG,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CAClB,CAoCH;AAKD;;;;;;;;;GASG;AACH,qCATsB,CAAC,SAAV,MAAQ,EACgB,EAAE,SAAzB,oBAAqB,QACf,EAAE,mDACC,CAAC,SAAV,MAAO,cACV,CAAC,kBACD,EAAE,GAAC,eAAe,CAAC,EAAE,EAAC,EAAE,CAAC,WACzB,GAAG,GACF,qBAAqB,CAAC,EAAE,EAAC,EAAE,EAAC,CAAC,EAAC,CAAC,CAAC,GAAG,eAAe,CAAC,EAAE,EAAC,EAAE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