@exmg/exm-form-drawer 1.0.14 → 1.0.16-alpha.12

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.
@@ -1,8 +1,8 @@
1
- import './exm-drawer.js';
1
+ import '@exmg/exm-drawer/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
- declare const ExmFormDrawerBase_base: import("@exmg/exm-form").Constructor<import("@exmg/exm-form/src/exm-form-validate-mixin.js").FormValidateMixinInterface> & typeof ExmgElement;
5
+ declare const ExmFormDrawerBase_base: import("@exmg/exm-form").Constructor<import("@exmg/exm-form/dist/exm-form-validate-mixin.js").FormValidateMixinInterface> & typeof ExmgElement;
6
6
  export declare class ExmFormDrawerBase extends ExmFormDrawerBase_base {
7
7
  /**
8
8
  * Opened state of the form-drawer
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
- import './exm-drawer.js';
5
+ import '@exmg/exm-drawer/exm-drawer.js';
6
6
  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';
@@ -140,7 +140,7 @@ export class ExmFormDrawerBase extends ExmFormValidateMixin(ExmgElement) {
140
140
  ?no-cancel-on-outside-click="${this.noCancelOnOutsideClick}"
141
141
  @exm-drawer-opened-changed=${this.handleDrawerOpenedChanged}
142
142
  scroll-action=${ifDefined(this.scrollAction)}
143
- style="max-width: ${this.style.maxWidth || '547px'}"
143
+ maxWidth="${this.style.maxWidth || '547px'}"
144
144
  >
145
145
  <div class="header">
146
146
  <slot name="title" class="title">${this.title}</slot>
@@ -0,0 +1,3 @@
1
+ export { ExmFormDrawer } from './exm-form-drawer.js';
2
+ export { ExmFormDrawerBase } from './exm-form-drawer-base.js';
3
+ export { style as formDrawerStyles } from './styles/exm-form-drawer-styles-css.js';
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { ExmFormDrawer } from './exm-form-drawer.js';
2
+ export { ExmFormDrawerBase } from './exm-form-drawer-base.js';
3
+ export { style as formDrawerStyles } from './styles/exm-form-drawer-styles-css.js';
4
+ //# sourceMappingURL=index.js.map
@@ -36,12 +36,13 @@ export const style = css `
36
36
  :host(:not([disable-sticky-header])) .header {
37
37
  position: sticky;
38
38
  top: 0;
39
+ color: var(--exm-drawer-color, var(--md-sys-color-on-surface-variant, black));
39
40
  background-color: var(--exm-drawer-bg-color, var(--md-sys-color-surface-variant, white));
40
41
  z-index: 2;
41
42
  }
42
43
 
43
44
  form {
44
- margin: 0 !important;
45
+ margin: 1rem 0 !important;
45
46
  padding: 0.5rem 1rem;
46
47
  box-sizing: border-box;
47
48
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@exmg/exm-form-drawer",
3
- "version": "1.0.14",
3
+ "version": "1.0.16-alpha.12+33e1367",
4
4
  "type": "module",
5
- "main": "index.js",
6
- "module": "index.js",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
7
  "exports": {
8
- ".": "./index.js",
9
- "./exm-form-drawer.js": "./src/exm-form-drawer.js",
10
- "./exm-drawer.js": "./src/exm-drawer.js"
8
+ ".": "./dist/index.js",
9
+ "./exm-form-drawer.js": "./dist/exm-form-drawer.js",
10
+ "./exm-drawer.js": "./dist/exm-drawer.js"
11
11
  },
12
12
  "description": "Form side drawer element",
13
13
  "contributors": [
@@ -25,27 +25,23 @@
25
25
  ],
26
26
  "repository": {
27
27
  "type": "git",
28
- "url": "git@github.com:exmg/exm-web-components.git",
28
+ "url": "git@bitbucket.org:exmachina/exm-web-components.git",
29
29
  "directory": "packages/exm-form-drawer"
30
30
  },
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@exmg/exm-button": "^1.0.4",
34
- "@exmg/exm-form": "^1.0.9",
33
+ "@exmg/exm-drawer": "^1.0.2-alpha.12+33e1367",
34
+ "@exmg/exm-form": "^1.0.11-alpha.12+33e1367",
35
35
  "@material/typography": "^14.0.0",
36
- "@polymer/neon-animation": "^3.0.1",
37
- "@polymer/paper-dialog": "^3.0.1",
38
36
  "lit": "^3.0.0",
39
37
  "tslib": "^2.6.2"
40
38
  },
41
39
  "devDependencies": {
42
40
  "@exmg/lit-cli": "1.1.13"
43
41
  },
44
- "scripts": {
45
- "build:styles": "exmg-lit-cli sass -f \"./**/*.scss\""
46
- },
42
+ "scripts": {},
47
43
  "publishConfig": {
48
44
  "access": "public"
49
45
  },
50
- "gitHead": "e7086831faea0bdfe8628b0de9b7ddcc45174558"
46
+ "gitHead": "33e1367329dfae6f98f21c981edb7ada370fc0d5"
51
47
  }
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
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
- export { style as drawerStyles } from './src/styles/exm-drawer-styles-css.js';
5
- export { style as formDrawerStyles } from './src/styles/exm-form-drawer-styles-css.js';
package/index.js DELETED
@@ -1,6 +0,0 @@
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
- export { style as drawerStyles } from './src/styles/exm-drawer-styles-css.js';
5
- export { style as formDrawerStyles } from './src/styles/exm-form-drawer-styles-css.js';
6
- //# sourceMappingURL=index.js.map
@@ -1,30 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import '@polymer/neon-animation/animations/slide-from-right-animation.js';
3
- import '@polymer/neon-animation/animations/slide-right-animation.js';
4
- import '@polymer/paper-dialog/paper-dialog.js';
5
- export declare class ExmDrawer extends LitElement {
6
- /**
7
- * The opened state of the drawer
8
- * @type {Boolean}
9
- */
10
- opened: boolean;
11
- /**
12
- * Prevent cancel on outside click or not
13
- * @type {Boolean}
14
- */
15
- noCancelOnOutsideClick: boolean;
16
- /**
17
- * Scroll action of the drawer
18
- * @type {'lock' | 'refit' | 'cancel' | undefined}
19
- */
20
- scrollAction?: 'lock' | 'refit' | 'cancel' | undefined;
21
- handleOpenedChanged(e: CustomEvent): void;
22
- openDialog(): void;
23
- static styles: import("lit").CSSResult[];
24
- render(): import("lit-html").TemplateResult<1>;
25
- }
26
- declare global {
27
- interface HTMLElementTagNameMap {
28
- 'exm-drawer': ExmDrawer;
29
- }
30
- }
package/src/exm-drawer.js DELETED
@@ -1,71 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement, html } from 'lit';
3
- import { customElement, property } from 'lit/decorators.js';
4
- import '@polymer/neon-animation/animations/slide-from-right-animation.js';
5
- import '@polymer/neon-animation/animations/slide-right-animation.js';
6
- import '@polymer/paper-dialog/paper-dialog.js';
7
- import { style } from './styles/exm-drawer-styles-css.js';
8
- import { ifDefined } from 'lit/directives/if-defined.js';
9
- let ExmDrawer = class ExmDrawer extends LitElement {
10
- constructor() {
11
- super(...arguments);
12
- /**
13
- * The opened state of the drawer
14
- * @type {Boolean}
15
- */
16
- this.opened = false;
17
- /**
18
- * Prevent cancel on outside click or not
19
- * @type {Boolean}
20
- */
21
- this.noCancelOnOutsideClick = false;
22
- }
23
- handleOpenedChanged(e) {
24
- this.opened = e.detail.value;
25
- this.dispatchEvent(new CustomEvent('exm-drawer-opened-changed', {
26
- bubbles: true,
27
- composed: true,
28
- detail: {
29
- value: e.detail.value,
30
- },
31
- }));
32
- }
33
- openDialog() {
34
- this.opened = true;
35
- }
36
- render() {
37
- return html `
38
- <style>
39
- paper-dialog {
40
- max-width: var(--exm-drawer-max-width, ${this.style.maxWidth || '547px'});
41
- }
42
- </style>
43
- <paper-dialog
44
- scroll-action=${ifDefined(this.scrollAction)}
45
- ?opened="${this.opened}"
46
- ?no-cancel-on-outside-click="${this.noCancelOnOutsideClick}"
47
- @opened-changed="${this.handleOpenedChanged}"
48
- entry-animation="slide-from-right-animation"
49
- exit-animation="slide-right-animation"
50
- with-backdrop
51
- >
52
- <slot></slot>
53
- </paper-dialog>
54
- `;
55
- }
56
- };
57
- ExmDrawer.styles = [style];
58
- __decorate([
59
- property({ type: Boolean })
60
- ], ExmDrawer.prototype, "opened", void 0);
61
- __decorate([
62
- property({ type: Boolean, attribute: 'no-cancel-on-outside-click' })
63
- ], ExmDrawer.prototype, "noCancelOnOutsideClick", void 0);
64
- __decorate([
65
- property({ type: String, attribute: 'scroll-action' })
66
- ], ExmDrawer.prototype, "scrollAction", void 0);
67
- ExmDrawer = __decorate([
68
- customElement('exm-drawer')
69
- ], ExmDrawer);
70
- export { ExmDrawer };
71
- //# sourceMappingURL=exm-drawer.js.map
@@ -1 +0,0 @@
1
- export declare const style: import("lit").CSSResult;
@@ -1,17 +0,0 @@
1
- import { css } from 'lit';
2
- export const style = css `
3
- paper-dialog {
4
- margin: 0;
5
- padding: 0;
6
- position: fixed;
7
- top: 0;
8
- right: 0;
9
- bottom: 0;
10
- width: 100%;
11
- box-shadow: none;
12
- overflow: scroll;
13
- color: var(--exm-drawer-color, var(--md-sys-color-on-surface, black));
14
- background-color: var(--exm-drawer-bg-color, var(--md-sys-color-surface-variant, white));
15
- }
16
- `;
17
- //# sourceMappingURL=exm-drawer-styles-css.js.map
File without changes
File without changes