@exmg/exm-form-drawer 1.0.0 → 1.0.1
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 +1 -1
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/package.json +4 -4
- package/src/exm-drawer.d.ts +2 -2
- package/src/exm-drawer.js +8 -8
- package/src/exm-form-drawer-base.d.ts +1 -1
- package/src/exm-form-drawer-base.js +12 -12
- package/src/exm-form-drawer.d.ts +3 -3
- package/src/exm-form-drawer.js +6 -6
package/README.md
CHANGED
|
@@ -126,6 +126,6 @@ event from **exm-form-drawer**. Please read https://github.com/ExmgElements/exm-
|
|
|
126
126
|
|
|
127
127
|
## Additional references
|
|
128
128
|
|
|
129
|
-
- [Additional Documentation](https://exmg.github.io/exmachina-web-components/
|
|
129
|
+
- [Additional Documentation](https://exmg.github.io/exmachina-web-components/ExmFormDrawer.html)
|
|
130
130
|
|
|
131
131
|
- [Demo](https://exmg.github.io/exmachina-web-components/demo/?el=exm-form-drawer)
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { ExmDrawer } from './src/exm-drawer.js';
|
|
2
|
+
export { ExmFormDrawer } from './src/exm-form-drawer.js';
|
|
3
|
+
export { ExmFormDrawerBase } from './src/exm-form-drawer-base.js';
|
|
4
4
|
export { style as drawerStyles } from './src/styles/exm-drawer-styles-css.js';
|
|
5
5
|
export { style as formDrawerStyles } from './src/styles/exm-form-drawer-styles-css.js';
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { ExmDrawer } from './src/exm-drawer.js';
|
|
2
|
+
export { ExmFormDrawer } from './src/exm-form-drawer.js';
|
|
3
|
+
export { ExmFormDrawerBase } from './src/exm-form-drawer-base.js';
|
|
4
4
|
export { style as drawerStyles } from './src/styles/exm-drawer-styles-css.js';
|
|
5
5
|
export { style as formDrawerStyles } from './src/styles/exm-form-drawer-styles-css.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-form-drawer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@exmg/exm-button": "^1.0.
|
|
34
|
-
"@exmg/exm-form": "^1.0.
|
|
33
|
+
"@exmg/exm-button": "^1.0.1",
|
|
34
|
+
"@exmg/exm-form": "^1.0.1",
|
|
35
35
|
"@material/typography": "^14.0.0",
|
|
36
36
|
"@polymer/neon-animation": "^3.0.1",
|
|
37
37
|
"@polymer/paper-dialog": "^3.0.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "8e971cbad07fa6fab5a95aefd915937b752d2204"
|
|
51
51
|
}
|
package/src/exm-drawer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
import '@polymer/neon-animation/animations/slide-from-right-animation.js';
|
|
3
3
|
import '@polymer/neon-animation/animations/slide-right-animation.js';
|
|
4
4
|
import '@polymer/paper-dialog/paper-dialog.js';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ExmDrawer extends LitElement {
|
|
6
6
|
/**
|
|
7
7
|
* The opened state of the drawer
|
|
8
8
|
* @type {Boolean}
|
|
@@ -25,6 +25,6 @@ export declare class ExmgDrawer extends LitElement {
|
|
|
25
25
|
}
|
|
26
26
|
declare global {
|
|
27
27
|
interface HTMLElementTagNameMap {
|
|
28
|
-
'exm-drawer':
|
|
28
|
+
'exm-drawer': ExmDrawer;
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/exm-drawer.js
CHANGED
|
@@ -6,7 +6,7 @@ import '@polymer/neon-animation/animations/slide-from-right-animation.js';
|
|
|
6
6
|
import '@polymer/neon-animation/animations/slide-right-animation.js';
|
|
7
7
|
import '@polymer/paper-dialog/paper-dialog.js';
|
|
8
8
|
import { style } from './styles/exm-drawer-styles-css.js';
|
|
9
|
-
let
|
|
9
|
+
let ExmDrawer = class ExmDrawer extends LitElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
/**
|
|
@@ -54,18 +54,18 @@ let ExmgDrawer = class ExmgDrawer extends LitElement {
|
|
|
54
54
|
`;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
ExmDrawer.styles = [style];
|
|
58
58
|
__decorate([
|
|
59
59
|
property({ type: Boolean })
|
|
60
|
-
],
|
|
60
|
+
], ExmDrawer.prototype, "opened", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
property({ type: Boolean, attribute: 'no-cancel-on-outside-click' })
|
|
63
|
-
],
|
|
63
|
+
], ExmDrawer.prototype, "noCancelOnOutsideClick", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
property({ type: String, attribute: 'scroll-action' })
|
|
66
|
-
],
|
|
67
|
-
|
|
66
|
+
], ExmDrawer.prototype, "scrollAction", void 0);
|
|
67
|
+
ExmDrawer = __decorate([
|
|
68
68
|
customElement('exm-drawer')
|
|
69
|
-
],
|
|
70
|
-
export {
|
|
69
|
+
], ExmDrawer);
|
|
70
|
+
export { ExmDrawer };
|
|
71
71
|
//# sourceMappingURL=exm-drawer.js.map
|
|
@@ -2,7 +2,7 @@ import './exm-drawer.js';
|
|
|
2
2
|
import '@exmg/exm-button/exm-filled-button.js';
|
|
3
3
|
import '@material/web/button/text-button.js';
|
|
4
4
|
import { ExmgElement } from '@exmg/lit-base';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ExmFormDrawerBase extends ExmgElement {
|
|
6
6
|
/**
|
|
7
7
|
* Opened state of the form-drawer
|
|
8
8
|
* @type {Boolean}
|
|
@@ -7,7 +7,7 @@ import '@exmg/exm-button/exm-filled-button.js';
|
|
|
7
7
|
import '@material/web/button/text-button.js';
|
|
8
8
|
import { ExmgElement } from '@exmg/lit-base';
|
|
9
9
|
import { serializeForm } from '@exmg/exm-form';
|
|
10
|
-
export class
|
|
10
|
+
export class ExmFormDrawerBase extends ExmgElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
/**
|
|
@@ -189,35 +189,35 @@ export class ExmgFormDrawerBase extends ExmgElement {
|
|
|
189
189
|
}
|
|
190
190
|
__decorate([
|
|
191
191
|
property({ type: Boolean })
|
|
192
|
-
],
|
|
192
|
+
], ExmFormDrawerBase.prototype, "opened", void 0);
|
|
193
193
|
__decorate([
|
|
194
194
|
property({ type: String, attribute: 'submit-btn-title' })
|
|
195
|
-
],
|
|
195
|
+
], ExmFormDrawerBase.prototype, "submitBtnTitle", void 0);
|
|
196
196
|
__decorate([
|
|
197
197
|
property({ type: Boolean, attribute: 'submit-btn-hidden' })
|
|
198
|
-
],
|
|
198
|
+
], ExmFormDrawerBase.prototype, "submitBtnHidden", void 0);
|
|
199
199
|
__decorate([
|
|
200
200
|
property({ type: String, attribute: 'cancel-btn-title' })
|
|
201
|
-
],
|
|
201
|
+
], ExmFormDrawerBase.prototype, "cancelBtnTitle", void 0);
|
|
202
202
|
__decorate([
|
|
203
203
|
property({ type: Boolean, attribute: 'keep-opened-on-submit-success' })
|
|
204
|
-
],
|
|
204
|
+
], ExmFormDrawerBase.prototype, "keepOpenedOnSubmitSuccess", void 0);
|
|
205
205
|
__decorate([
|
|
206
206
|
property({ type: Boolean, attribute: 'no-cancel-on-outside-click' })
|
|
207
|
-
],
|
|
207
|
+
], ExmFormDrawerBase.prototype, "noCancelOnOutsideClick", void 0);
|
|
208
208
|
__decorate([
|
|
209
209
|
property({ type: Boolean, attribute: 'disable-sticky-header' })
|
|
210
|
-
],
|
|
210
|
+
], ExmFormDrawerBase.prototype, "disableStickyHeader", void 0);
|
|
211
211
|
__decorate([
|
|
212
212
|
property({ type: Boolean })
|
|
213
|
-
],
|
|
213
|
+
], ExmFormDrawerBase.prototype, "submitting", void 0);
|
|
214
214
|
__decorate([
|
|
215
215
|
state()
|
|
216
|
-
],
|
|
216
|
+
], ExmFormDrawerBase.prototype, "formValid", void 0);
|
|
217
217
|
__decorate([
|
|
218
218
|
property({ type: String, attribute: 'scroll-action' })
|
|
219
|
-
],
|
|
219
|
+
], ExmFormDrawerBase.prototype, "scrollAction", void 0);
|
|
220
220
|
__decorate([
|
|
221
221
|
property({ type: String })
|
|
222
|
-
],
|
|
222
|
+
], ExmFormDrawerBase.prototype, "errorMessage", void 0);
|
|
223
223
|
//# sourceMappingURL=exm-form-drawer-base.js.map
|
package/src/exm-form-drawer.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { ExmFormDrawerBase } from './exm-form-drawer-base.js';
|
|
2
|
+
export declare class ExmFormDrawer extends ExmFormDrawerBase {
|
|
3
3
|
static styles: import("lit").CSSResult[];
|
|
4
4
|
getForm(): HTMLFormElement | null;
|
|
5
5
|
}
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
8
|
-
'exm-form-drawer':
|
|
8
|
+
'exm-form-drawer': ExmFormDrawer;
|
|
9
9
|
}
|
|
10
10
|
}
|
package/src/exm-form-drawer.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { style } from './styles/exm-form-drawer-styles-css.js';
|
|
4
|
-
import {
|
|
4
|
+
import { ExmFormDrawerBase } from './exm-form-drawer-base.js';
|
|
5
5
|
import { exmgFormStyles } from '@exmg/exm-form';
|
|
6
|
-
let
|
|
6
|
+
let ExmFormDrawer = class ExmFormDrawer extends ExmFormDrawerBase {
|
|
7
7
|
getForm() {
|
|
8
8
|
return this.querySelector('form');
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
ExmFormDrawer.styles = [style, exmgFormStyles];
|
|
12
|
+
ExmFormDrawer = __decorate([
|
|
13
13
|
customElement('exm-form-drawer')
|
|
14
|
-
],
|
|
15
|
-
export {
|
|
14
|
+
], ExmFormDrawer);
|
|
15
|
+
export { ExmFormDrawer };
|
|
16
16
|
//# sourceMappingURL=exm-form-drawer.js.map
|