@rxdi/ui-kit 0.7.128 → 0.7.129

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,14 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.style = void 0;
7
4
  const lit_html_1 = require("@rxdi/lit-html");
8
5
  const styles_1 = require("../styles");
9
6
  const transitions_1 = require("../styles/transitions");
10
- const minus_svg_1 = __importDefault(require("../images/minus.svg"));
11
- const plus_svg_1 = __importDefault(require("../images/plus.svg"));
12
7
  exports.style = (0, lit_html_1.css) `
13
8
  ${styles_1.MAIN_CSS}
14
9
  ${transitions_1.TRANSITIONS}
@@ -30,20 +25,6 @@ exports.style = (0, lit_html_1.css) `
30
25
  margin-top: 20px;
31
26
  margin-bottom: 20px;
32
27
  }
33
- .title::before {
34
- content: '';
35
- width: 1.4em;
36
- height: 1.4em;
37
- margin-left: 10px;
38
- float: right;
39
- color: black;
40
- background-image: url(${(0, lit_html_1.unsafeCSS)(plus_svg_1.default)});
41
- background-repeat: no-repeat;
42
- background-position: 50% 50%;
43
- }
44
- .title.collapsed::before {
45
- background-image: url(${(0, lit_html_1.unsafeCSS)(minus_svg_1.default)});
46
- }
47
28
  .content {
48
29
  color: #666;
49
30
  font-size: 15px;
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/accordion/style.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAgD;AAChD,sCAAqC;AACrC,uDAAoD;AAEpD,oEAAwC;AACxC,kEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,cAAG,EAAA;IACpB,iBAAQ;IACR,yBAAW;;;;;;;;;;;;;;;;;;;;;;;;;;4BA0Ba,IAAA,oBAAS,EAAC,kBAAI,CAAC;;;;;4BAKf,IAAA,oBAAS,EAAC,mBAAK,CAAC;;;;;;CAM3C,CAAC"}
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/accordion/style.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AACrC,sCAAqC;AACrC,uDAAoD;AAEvC,QAAA,KAAK,GAAG,IAAA,cAAG,EAAA;IACpB,iBAAQ;IACR,yBAAW;;;;;;;;;;;;;;;;;;;;;;;CAuBd,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from '@rxdi/lit-html';
2
- export declare const FaqArrow: import("lit-html").TemplateResult<2>;
2
+ export declare const FaqArrow: import("@rxdi/lit-html").TemplateResult<2>;
3
3
  /**
4
4
  * @customElement rx-accordion-item
5
5
  *
@@ -25,11 +25,7 @@ export declare const Compose: <S, D = [], K extends LitElement = LitElement>(opt
25
25
  firstUpdated(): void;
26
26
  };
27
27
  styles: import("@rxdi/lit-html").CSSResult[];
28
- subscriptions: Map<any, any>;
29
- collectGarbage(): void;
30
- mapToSubscriptions(): void;
31
28
  is(): string;
32
- setElement: (document: import("@rxdi/lit-html").RXDIElement) => K_1;
33
29
  } & K_1;
34
30
  export declare const Monad: <S, D = unknown, K extends LitElement = LitElement>([options, deps, state, render,]: [Options, D, StateToRender<S, D, K>, RenderResult<S, D, K>]) => <K_1 extends new (...args: any[]) => {}>(Base: K_1) => {
35
31
  new (...args: any[]): {
@@ -42,11 +38,7 @@ export declare const Monad: <S, D = unknown, K extends LitElement = LitElement>(
42
38
  firstUpdated(): void;
43
39
  };
44
40
  styles: import("@rxdi/lit-html").CSSResult[];
45
- subscriptions: Map<any, any>;
46
- collectGarbage(): void;
47
- mapToSubscriptions(): void;
48
41
  is(): string;
49
- setElement: (document: import("@rxdi/lit-html").RXDIElement) => K_1;
50
42
  } & K_1;
51
43
  export declare const Settings: (o: Options) => Options;
52
44
  export declare const Providers: <S, D, K>(o: D) => D;
@@ -8,7 +8,7 @@ export declare class DropdownComponent extends LitElement {
8
8
  palette: PalettesUnion;
9
9
  marginLeft: string;
10
10
  menuItems: any[];
11
- defaultTemplate: import("lit-html").TemplateResult<1>;
11
+ defaultTemplate: import("@rxdi/lit-html").TemplateResult<1>;
12
12
  private entered;
13
13
  private clickEvent;
14
14
  OnInit(): void;
@@ -3,5 +3,5 @@ import { LitElement, TemplateResult } from '@rxdi/lit-html';
3
3
  * @customElement rx-render
4
4
  */
5
5
  export declare class RenderComponent extends LitElement {
6
- state: <T>(state: T, setState?: (res: T) => void, shadowRoot?: ShadowRoot) => TemplateResult;
6
+ state: <T>(state: T, setState?: (res: T) => void, shadowRoot?: ShadowRoot) => TemplateResult<1 | 2>;
7
7
  }
@@ -23,9 +23,7 @@ __decorate([
23
23
  RenderComponent = __decorate([
24
24
  (0, lit_html_1.Component)({
25
25
  selector: 'rx-render',
26
- template: () => (0, lit_html_1.html) `
27
- <slot></slot>
28
- `
26
+ template: () => (0, lit_html_1.html) ` <slot></slot> `,
29
27
  })
30
28
  ], RenderComponent);
31
29
  exports.RenderComponent = RenderComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"render.component.js","sourceRoot":"","sources":["../../src/graph/render.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAMwB;AAExB;;GAEG;AAOH,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAU;CAM9C,CAAA;AAL6B;IAA3B,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAIP;AALT,eAAe;IAN3B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,eAAI,EAAA;;GAEnB;KACF,CAAC;GACW,eAAe,CAM3B;AANY,0CAAe"}
1
+ {"version":3,"file":"render.component.js","sourceRoot":"","sources":["../../src/graph/render.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAMwB;AAExB;;GAEG;AAKH,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAU;CAM9C,CAAA;AAL6B;IAA3B,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAIA;AALhB,eAAe;IAJ3B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,eAAI,EAAA,iBAAiB;KACtC,CAAC;GACW,eAAe,CAM3B;AANY,0CAAe"}
@@ -1,15 +1,10 @@
1
- import { LitElement } from '@rxdi/lit-html';
1
+ import { LitElement, TemplateResult } from '@rxdi/lit-html';
2
2
  /**
3
3
  * @customElement rx-image
4
4
  */
5
5
  export declare class RxImageComponent extends LitElement {
6
- image: string;
6
+ image: string | TemplateResult<1> | TemplateResult<2>;
7
7
  width: string;
8
8
  height: string;
9
- private element;
10
- private onLoadSubscription;
11
- private onErrorSubscription;
12
- OnUpdateFirst(): void;
13
- createSubscription(type: 'error' | 'load'): import("rxjs").Observable<boolean>;
14
- OnDestroy(): void;
9
+ dispatch(type: 'error' | 'load'): (detail: Event) => void;
15
10
  }
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RxImageComponent = void 0;
13
13
  const lit_html_1 = require("@rxdi/lit-html");
14
- const rxjs_1 = require("rxjs");
15
- const operators_1 = require("rxjs/operators");
16
14
  /**
17
15
  * @customElement rx-image
18
16
  */
@@ -22,21 +20,17 @@ let RxImageComponent = class RxImageComponent extends lit_html_1.LitElement {
22
20
  this.width = '80px';
23
21
  this.height = '80px';
24
22
  }
25
- OnUpdateFirst() {
26
- this.onLoadSubscription = this.createSubscription('load').subscribe();
27
- this.onErrorSubscription = this.createSubscription('error').subscribe();
28
- }
29
- createSubscription(type) {
30
- return (0, rxjs_1.fromEvent)(this.element, type).pipe((0, operators_1.map)(detail => this.dispatchEvent(new CustomEvent(type === 'error' ? 'onError' : 'onLoad', { detail }))));
31
- }
32
- OnDestroy() {
33
- this.onErrorSubscription.unsubscribe();
34
- this.onLoadSubscription.unsubscribe();
23
+ dispatch(type) {
24
+ return (detail) => {
25
+ this.dispatchEvent(new CustomEvent(type === 'error' ? 'onError' : 'onLoad', {
26
+ detail,
27
+ }));
28
+ };
35
29
  }
36
30
  };
37
31
  __decorate([
38
- (0, lit_html_1.property)({ type: String }),
39
- __metadata("design:type", String)
32
+ (0, lit_html_1.property)(),
33
+ __metadata("design:type", Object)
40
34
  ], RxImageComponent.prototype, "image", void 0);
41
35
  __decorate([
42
36
  (0, lit_html_1.property)({ type: String }),
@@ -46,14 +40,11 @@ __decorate([
46
40
  (0, lit_html_1.property)({ type: String }),
47
41
  __metadata("design:type", Object)
48
42
  ], RxImageComponent.prototype, "height", void 0);
49
- __decorate([
50
- (0, lit_html_1.query)('img'),
51
- __metadata("design:type", HTMLImageElement)
52
- ], RxImageComponent.prototype, "element", void 0);
53
43
  RxImageComponent = __decorate([
54
44
  (0, lit_html_1.Component)({
55
45
  selector: 'rx-image',
56
46
  template() {
47
+ var _a;
57
48
  return (0, lit_html_1.html) `
58
49
  <style>
59
50
  :host {
@@ -68,7 +59,14 @@ RxImageComponent = __decorate([
68
59
  height: 1px;
69
60
  }
70
61
  </style>
71
- <img src=${this.image} />
62
+ ${((_a = this.image) === null || _a === void 0 ? void 0 : _a['_$litType$'])
63
+ ? (0, lit_html_1.html) `<img />${this.image}`
64
+ : (0, lit_html_1.html) `<img
65
+ @load=${this.dispatch('load')}
66
+ @error=${this.dispatch('error')}
67
+ src=${this.image}
68
+ />`}
69
+
72
70
  <span
73
71
  style=${(0, lit_html_1.styleMap)({
74
72
  display: 'block',
@@ -76,11 +74,11 @@ RxImageComponent = __decorate([
76
74
  height: '100%',
77
75
  'background-image': `url(${this.image})`,
78
76
  'background-repeat': 'no-repeat',
79
- 'background-size': 'contain'
77
+ 'background-size': 'contain',
80
78
  })}
81
79
  ></span>
82
80
  `;
83
- }
81
+ },
84
82
  })
85
83
  ], RxImageComponent);
86
84
  exports.RxImageComponent = RxImageComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"image.component.js","sourceRoot":"","sources":["../../src/image/image.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAOwB;AACxB,+BAA+C;AAC/C,8CAAqC;AAErC;;GAEG;AAgCH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,qBAAU;IAAhD;;QAKS,UAAK,GAAG,MAAM,CAAC;QAGf,WAAM,GAAG,MAAM,CAAC;IA8BzB,CAAC;IAtBC,aAAa;QACX,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,CAAC;QACtE,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1E,CAAC;IAED,kBAAkB,CAAC,IAAsB;QACvC,OAAO,IAAA,gBAAS,EAAmB,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,IAAI,CACzD,IAAA,eAAG,EAAC,MAAM,CAAC,EAAE,CACX,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CACb,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EACvC,EAAE,MAAM,EAAE,CACX,CACF,CACF,CACF,CAAC;IACJ,CAAC;IAED,SAAS;QACP,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,CAAC;QACvC,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AApCC;IADC,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACN;AAGrB;IADC,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACL;AAGtB;IADC,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACJ;AAGvB;IADC,IAAA,gBAAK,EAAC,KAAK,CAAC;8BACI,gBAAgB;iDAAC;AAXvB,gBAAgB;IA/B5B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,UAAU;QACpB,QAAQ;YACN,OAAO,IAAA,eAAI,EAAA;;;;mBAII,IAAI,CAAC,KAAK;oBACT,IAAI,CAAC,MAAM;;;;;;;;;iBASd,IAAI,CAAC,KAAK;;gBAEX,IAAA,mBAAQ,EAAC;gBACf,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,kBAAkB,EAAE,OAAO,IAAI,CAAC,KAAK,GAAG;gBACxC,mBAAmB,EAAE,WAAW;gBAChC,iBAAiB,EAAE,SAAS;aAC7B,CAAC;;KAEL,CAAC;QACJ,CAAC;KACF,CAAC;GACW,gBAAgB,CAsC5B;AAtCY,4CAAgB"}
1
+ {"version":3,"file":"image.component.js","sourceRoot":"","sources":["../../src/image/image.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAOwB;AAExB;;GAEG;AAuCH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,qBAAU;IAAhD;;QAKS,UAAK,GAAG,MAAM,CAAC;QAGf,WAAM,GAAG,MAAM,CAAC;IAWzB,CAAC;IATC,QAAQ,CAAC,IAAsB;QAC7B,OAAO,CAAC,MAAa,EAAE,EAAE;YACvB,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAQ,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;gBAC9D,MAAM;aACP,CAAC,CACH,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CACF,CAAA;AAjBC;IADC,IAAA,mBAAQ,GAAE;;+CACkD;AAG7D;IADC,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACL;AAGtB;IADC,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACJ;AARZ,gBAAgB;IAtC5B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,UAAU;QACpB,QAAQ;;YACN,OAAO,IAAA,eAAI,EAAA;;;;mBAII,IAAI,CAAC,KAAK;oBACT,IAAI,CAAC,MAAM;;;;;;;;;QASvB,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAG,YAAY,CAAC;gBAC1B,CAAC,CAAC,IAAA,eAAI,EAAA,UAAU,IAAI,CAAC,KAAK,EAAE;gBAC5B,CAAC,CAAC,IAAA,eAAI,EAAA;oBACM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;qBACpB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;kBACzB,IAAI,CAAC,KAAK;aACf;;;gBAGG,IAAA,mBAAQ,EAAC;gBACf,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,kBAAkB,EAAE,OAAO,IAAI,CAAC,KAAK,GAAG;gBACxC,mBAAmB,EAAE,WAAW;gBAChC,iBAAiB,EAAE,SAAS;aAC7B,CAAC;;KAEL,CAAC;QACJ,CAAC;KACF,CAAC;GACW,gBAAgB,CAmB5B;AAnBY,4CAAgB"}
@@ -0,0 +1 @@
1
+ export declare const CircleSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CircleSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.CircleSVG = (0, lit_html_1.svg) `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
6
+ <circle fill="none" stroke="#e5e5e5" stroke-width="2" cx="10" cy="10" r="7" />
7
+ </svg>
8
+ `;
9
+ //# sourceMappingURL=circle.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle.svg.js","sourceRoot":"","sources":["../../src/images/circle.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,SAAS,GAAG,IAAA,cAAG,EAAA;;;CAG3B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const CloseSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloseSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.CloseSVG = (0, lit_html_1.svg) `
6
+ <svg width="14" height="14" viewBox="0 0 14 14">
7
+ <line fill="none" stroke="#666" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"></line>
8
+ <line fill="none" stroke="#666" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"></line>
9
+ </svg>
10
+ `;
11
+ //# sourceMappingURL=close.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close.svg.js","sourceRoot":"","sources":["../../src/images/close.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,QAAQ,GAAG,IAAA,cAAG,EAAA;;;;;CAK1B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const GlyphSVG: (width?: string, height?: string) => import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlyphSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ const GlyphSVG = (width = '256px', height = '256px') => (0, lit_html_1.svg) `
6
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" height=${height} width=${width}
7
+ viewBox="0 0 581.176 581.176" style="enable-background:new 0 0 581.176 581.176;" xml:space="preserve">
8
+ <g>
9
+ <path d="M581.176,290.588C581.176,130.087,451.09,0,290.588,0S0,130.087,0,290.588s130.087,290.588,290.588,290.588
10
+ c67.901,0,130.208-23.465,179.68-62.476L254.265,302.696h326.306C580.716,298.652,581.176,294.681,581.176,290.588z
11
+ M447.99,217.941c-26.758,0-48.431-21.697-48.431-48.431s21.673-48.431,48.431-48.431c26.758,0,48.431,21.697,48.431,48.431
12
+ S474.749,217.941,447.99,217.941z"/>
13
+ </g>
14
+ </svg>
15
+ `;
16
+ exports.GlyphSVG = GlyphSVG;
17
+ //# sourceMappingURL=glyph.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glyph.svg.js","sourceRoot":"","sources":["../../src/images/glyph.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAE9B,MAAM,QAAQ,GAAG,CACtB,QAAgB,OAAO,EACvB,SAAiB,OAAO,EACxB,EAAE,CAAC,IAAA,cAAG,EAAA;sIAC8H,MAAM,UAAU,KAAK;;;;;;;;;CAS1J,CAAC;AAbW,QAAA,QAAQ,YAanB"}
@@ -0,0 +1 @@
1
+ export declare const MinusSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MinusSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.MinusSVG = (0, lit_html_1.svg) `
6
+ <svg width="13" height="13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
7
+ <rect fill="#666" width="13" height="1" x="0" y="6" />
8
+ </svg>
9
+ `;
10
+ //# sourceMappingURL=minus.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minus.svg.js","sourceRoot":"","sources":["../../src/images/minus.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,QAAQ,GAAG,IAAA,cAAG,EAAA;;;;CAI1B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const PlusSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlusSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.PlusSVG = (0, lit_html_1.svg) `
6
+ <svg width="13" height="13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
7
+ <rect fill="#666" width="13" height="1" x="0" y="6" />
8
+ <rect fill="#666" width="1" height="13" x="6" y="0" />
9
+ </svg>
10
+ `;
11
+ //# sourceMappingURL=plus.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plus.svg.js","sourceRoot":"","sources":["../../src/images/plus.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,OAAO,GAAG,IAAA,cAAG,EAAA;;;;;CAKzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/ui-kit",
3
- "version": "0.7.128",
3
+ "version": "0.7.129",
4
4
  "description": "UI Components for building graphql-server website",
5
5
  "bolt": {
6
6
  "workspaces": [
@@ -14,6 +14,7 @@
14
14
  "build-all": "npm run build && rm -rf ./docs && cp -r ./dist/* ./src && bolt ws exec -- npm run build && cp -r ./docs/index.html ./docs/404.html",
15
15
  "patch": "rm -rf dist && tsc && cp -r ./dist/* . && npm version patch && npm publish --update-readme --access public && npm run clean && bolt",
16
16
  "clean": "git clean -dxf",
17
+ "clean-build": "rm -rf package-lock.json node_modules/ .cache/ build/",
17
18
  "build": "rm -rf dist && tsc && cp -r ./dist/* ."
18
19
  },
19
20
  "repository": {
@@ -29,10 +30,9 @@
29
30
  "author": "Kristiyan Tachev",
30
31
  "license": "MIT",
31
32
  "devDependencies": {
32
- "@rxdi/firelink": "^0.7.52",
33
- "@rxdi/forms": "^0.7.92",
34
- "@rxdi/lit-html": "^0.7.119",
35
- "@rxdi/router": "^0.7.92",
33
+ "@rxdi/forms": "^0.7.133",
34
+ "@rxdi/lit-html": "^0.7.133",
35
+ "@rxdi/router": "^0.7.133",
36
36
  "@types/animejs": "^3.1.0",
37
37
  "@types/js-yaml": "^3.12.1",
38
38
  "@types/marked": "^0.7.0",
@@ -41,7 +41,7 @@
41
41
  "cssnano": "^4.1.10",
42
42
  "graphql": "^14.5.8",
43
43
  "husky": "^3.0.9",
44
- "typescript": "^3.5.3"
44
+ "typescript": "^3.9.3"
45
45
  },
46
46
  "browserslist": [
47
47
  "last 1 chrome versions"
@@ -50,8 +50,8 @@
50
50
  "module": "./index.js",
51
51
  "typings": "./index.d.ts",
52
52
  "dependencies": {
53
- "@rxdi/core": "^0.7.92",
54
- "@rxdi/graphql-client": "^0.7.92",
53
+ "@rxdi/core": "^0.7.133",
54
+ "@rxdi/graphql-client": "^0.7.133",
55
55
  "animejs": "^3.1.0",
56
56
  "graphql-tag": "^2.10.1",
57
57
  "infinite-carousel-wc": "^0.5.3",
@@ -1 +1 @@
1
- export declare const Spinner: (width: number, height: number) => import("lit-html").TemplateResult<2>;
1
+ export declare const Spinner: (width: number, height: number) => import("@rxdi/lit-html").TemplateResult<2>;
@@ -1,23 +1,20 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.IMAGES = void 0;
7
4
  const lit_html_1 = require("@rxdi/lit-html");
8
- const minus_svg_1 = __importDefault(require("../images/minus.svg"));
9
- const plus_svg_1 = __importDefault(require("../images/plus.svg"));
5
+ const plus_svg_1 = require("../../images/plus.svg");
6
+ const minus_svg_1 = require("../../images/minus.svg");
10
7
  exports.IMAGES = (0, lit_html_1.css) `
11
8
  .plus {
12
9
  width: 30px;
13
10
  height: 30px;
14
- background-image: url(${(0, lit_html_1.unsafeCSS)(plus_svg_1.default)});
11
+ background-image: url('data:image/svg+xml;utf8,${(0, lit_html_1.unsafeCSS)(plus_svg_1.PlusSVG)}');
15
12
  background-repeat: no-repeat;
16
13
  }
17
14
  .minus {
18
15
  width: 30px;
19
16
  height: 30px;
20
- background-image: url(${(0, lit_html_1.unsafeCSS)(minus_svg_1.default)});
17
+ background-image: url('data:image/svg+xml;utf8,${(0, lit_html_1.unsafeCSS)(minus_svg_1.MinusSVG)}');
21
18
  background-repeat: no-repeat;
22
19
  }
23
20
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/styles/chunks/images.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAgD;AAChD,oEAAwC;AACxC,kEAAsC;AAEzB,QAAA,MAAM,GAAG,IAAA,cAAG,EAAA;;;;4BAIG,IAAA,oBAAS,EAAC,kBAAI,CAAC;;;;;;4BAMf,IAAA,oBAAS,EAAC,mBAAK,CAAC;;;CAG3C,CAAC"}
1
+ {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/styles/chunks/images.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,oDAAgD;AAChD,sDAAkD;AAErC,QAAA,MAAM,GAAG,IAAA,cAAG,EAAA;;;;qDAI4B,IAAA,oBAAS,EAAC,kBAAO,CAAC;;;;;;qDAMlB,IAAA,oBAAS,EAAC,oBAAQ,CAAC;;;CAGvE,CAAC"}
package/typings.d.ts CHANGED
@@ -8,9 +8,7 @@ declare module '*.css' {
8
8
  export default value;
9
9
  }
10
10
 
11
- declare module '*.html' {
12
-
13
- }
11
+ declare module '*.html' {}
14
12
  declare module '*.json' {
15
13
  const value: any;
16
14
  export default value;
@@ -31,18 +29,16 @@ declare module '*.jpg' {
31
29
  export default value;
32
30
  }
33
31
 
34
- declare module '*.svg' {
35
- const value: string;
36
- export default value;
37
- }
38
-
32
+ // declare module '*.svg' {
33
+ // const value: string;
34
+ // export default value;
35
+ // }
39
36
 
40
37
  declare module '*.graphql' {
41
38
  const value: string;
42
39
  export default value;
43
40
  }
44
41
 
45
-
46
42
  declare module '@rxdi/ui-kit/images/glyph.svg' {
47
43
  const value: string;
48
44
  export default value;