@duskmoon-dev/el-form-group 1.7.2 → 1.7.3
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -39,8 +39,8 @@ var __export = (target, all) => {
|
|
|
39
39
|
// src/index.ts
|
|
40
40
|
var exports_src = {};
|
|
41
41
|
__export(exports_src, {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
ElDmFormGroup: () => ElDmFormGroup,
|
|
43
|
+
register: () => register
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(exports_src);
|
|
46
46
|
|
|
@@ -84,5 +84,5 @@ function register() {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
//# debugId=
|
|
87
|
+
//# debugId=BB448CC2B8A50FD064756E2164756E21
|
|
88
88
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"import { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as formGroupCSS } from '@duskmoon-dev/core/components/form-group';\n\nconst coreStyles = formGroupCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\n\nconst styles = css`\n :host {\n display: block;\n width: 100%;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n ${coreStyles}\n`;\n\nexport class ElDmFormGroup extends BaseElement {\n static properties = {\n orientation: { type: String, reflect: true, default: 'vertical' },\n };\n\n declare orientation: 'vertical' | 'horizontal';\n\n constructor() {\n super();\n this.attachStyles(styles);\n }\n\n render(): string {\n const orientationClass =\n this.orientation === 'horizontal' ? 'form-group form-group-horizontal' : 'form-group';\n return `\n <div class=\"${orientationClass}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nexport function register(): void {\n if (!customElements.get('el-dm-form-group')) {\n customElements.define('el-dm-form-group', ElDmFormGroup);\n }\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAiC,IAAjC;AACoC,IAApC;AAEA,IAAM,aAAa,sBAAa,QAAQ,4BAA4B,EAAE,EAAE,QAAQ,UAAU,EAAE;AAE5F,IAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUX;AAAA;AAAA;AAGG,MAAM,sBAAsB,2BAAY;AAAA,SACtC,aAAa;AAAA,IAClB,aAAa,EAAE,MAAM,QAAQ,SAAS,MAAM,SAAS,WAAW;AAAA,EAClE;AAAA,EAIA,WAAW,GAAG;AAAA,IACZ,MAAM;AAAA,IACN,KAAK,aAAa,MAAM;AAAA;AAAA,EAG1B,MAAM,GAAW;AAAA,IACf,MAAM,mBACJ,KAAK,gBAAgB,eAAe,qCAAqC;AAAA,IAC3E,OAAO;AAAA,oBACS;AAAA;AAAA;AAAA;AAAA;AAKpB;AAEO,SAAS,QAAQ,GAAS;AAAA,EAC/B,IAAI,CAAC,eAAe,IAAI,kBAAkB,GAAG;AAAA,IAC3C,eAAe,OAAO,oBAAoB,aAAa;AAAA,EACzD;AAAA;",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "BB448CC2B8A50FD064756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"import { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as formGroupCSS } from '@duskmoon-dev/core/components/form-group';\n\nconst coreStyles = formGroupCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\n\nconst styles = css`\n :host {\n display: block;\n width: 100%;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n ${coreStyles}\n`;\n\nexport class ElDmFormGroup extends BaseElement {\n static properties = {\n orientation: { type: String, reflect: true, default: 'vertical' },\n };\n\n declare orientation: 'vertical' | 'horizontal';\n\n constructor() {\n super();\n this.attachStyles(styles);\n }\n\n render(): string {\n const orientationClass =\n this.orientation === 'horizontal' ? 'form-group form-group-horizontal' : 'form-group';\n return `\n <div class=\"${orientationClass}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nexport function register(): void {\n if (!customElements.get('el-dm-form-group')) {\n customElements.define('el-dm-form-group', ElDmFormGroup);\n }\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";AAAA;AACA,gBAAS;AAET,IAAM,aAAa,aAAa,QAAQ,4BAA4B,EAAE,EAAE,QAAQ,UAAU,EAAE;AAE5F,IAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUX;AAAA;AAAA;AAGG,MAAM,sBAAsB,YAAY;AAAA,SACtC,aAAa;AAAA,IAClB,aAAa,EAAE,MAAM,QAAQ,SAAS,MAAM,SAAS,WAAW;AAAA,EAClE;AAAA,EAIA,WAAW,GAAG;AAAA,IACZ,MAAM;AAAA,IACN,KAAK,aAAa,MAAM;AAAA;AAAA,EAG1B,MAAM,GAAW;AAAA,IACf,MAAM,mBACJ,KAAK,gBAAgB,eAAe,qCAAqC;AAAA,IAC3E,OAAO;AAAA,oBACS;AAAA;AAAA;AAAA;AAAA;AAKpB;AAEO,SAAS,QAAQ,GAAS;AAAA,EAC/B,IAAI,CAAC,eAAe,IAAI,kBAAkB,GAAG;AAAA,IAC3C,eAAe,OAAO,oBAAoB,aAAa;AAAA,EACzD;AAAA;",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "DB538382EBA0801A64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duskmoon-dev/el-form-group",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "DuskMoon FormGroup custom element for grouping form fields",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"typecheck": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@duskmoon-dev/el-base": "1.7.
|
|
38
|
-
"@duskmoon-dev/core": "1.18.
|
|
37
|
+
"@duskmoon-dev/el-base": "1.7.3",
|
|
38
|
+
"@duskmoon-dev/core": "1.18.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "6.0.3"
|