@innovastudio/contentbuilder 1.0.80 → 1.0.81

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.
Files changed (60) hide show
  1. package/package.json +1 -1
  2. package/public/contentbuilder/contentbuilder.css +80 -0
  3. package/public/contentbuilder/contentbuilder.esm.js +24 -2
  4. package/public/contentbuilder/contentbuilder.min.js +8 -8
  5. package/public/contentbuilder/themes/colored-blue.css +38 -0
  6. package/public/contentbuilder/themes/colored-blue2.css +38 -0
  7. package/public/contentbuilder/themes/colored-blue3.css +38 -0
  8. package/public/contentbuilder/themes/colored-blue4.css +38 -0
  9. package/public/contentbuilder/themes/colored-blue5.css +38 -0
  10. package/public/contentbuilder/themes/colored-blue6.css +38 -0
  11. package/public/contentbuilder/themes/colored-blue7.css +38 -0
  12. package/public/contentbuilder/themes/colored-blue8.css +38 -0
  13. package/public/contentbuilder/themes/colored-dark.css +38 -0
  14. package/public/contentbuilder/themes/colored-darkblue.css +38 -0
  15. package/public/contentbuilder/themes/colored-gray.css +38 -0
  16. package/public/contentbuilder/themes/colored-green.css +38 -0
  17. package/public/contentbuilder/themes/colored-green2.css +38 -0
  18. package/public/contentbuilder/themes/colored-green3.css +38 -0
  19. package/public/contentbuilder/themes/colored-green4.css +38 -0
  20. package/public/contentbuilder/themes/colored-green5.css +38 -0
  21. package/public/contentbuilder/themes/colored-magenta.css +38 -0
  22. package/public/contentbuilder/themes/colored-orange.css +38 -0
  23. package/public/contentbuilder/themes/colored-orange2.css +38 -0
  24. package/public/contentbuilder/themes/colored-orange3.css +38 -0
  25. package/public/contentbuilder/themes/colored-pink.css +38 -0
  26. package/public/contentbuilder/themes/colored-pink2.css +38 -0
  27. package/public/contentbuilder/themes/colored-pink3.css +38 -0
  28. package/public/contentbuilder/themes/colored-pink4.css +38 -0
  29. package/public/contentbuilder/themes/colored-purple.css +38 -0
  30. package/public/contentbuilder/themes/colored-purple2.css +38 -0
  31. package/public/contentbuilder/themes/colored-red.css +38 -0
  32. package/public/contentbuilder/themes/colored-red2.css +38 -0
  33. package/public/contentbuilder/themes/colored-red3.css +38 -0
  34. package/public/contentbuilder/themes/colored-red4.css +38 -0
  35. package/public/contentbuilder/themes/colored-red5.css +38 -0
  36. package/public/contentbuilder/themes/colored-yellow.css +38 -0
  37. package/public/contentbuilder/themes/colored-yellow2.css +38 -0
  38. package/public/contentbuilder/themes/dark-blue.css +38 -0
  39. package/public/contentbuilder/themes/dark-blue2.css +38 -0
  40. package/public/contentbuilder/themes/dark-blue3.css +38 -0
  41. package/public/contentbuilder/themes/dark-gray.css +38 -0
  42. package/public/contentbuilder/themes/dark-pink.css +38 -0
  43. package/public/contentbuilder/themes/dark-purple.css +38 -0
  44. package/public/contentbuilder/themes/dark-red.css +38 -0
  45. package/public/contentbuilder/themes/dark.css +38 -0
  46. package/public/contentbuilder/themes/light-blue.css +38 -0
  47. package/public/contentbuilder/themes/light-blue2.css +38 -0
  48. package/public/contentbuilder/themes/light-blue3.css +38 -0
  49. package/public/contentbuilder/themes/light-cyan.css +38 -0
  50. package/public/contentbuilder/themes/light-gray.css +38 -0
  51. package/public/contentbuilder/themes/light-gray2.css +38 -0
  52. package/public/contentbuilder/themes/light-gray3.css +38 -0
  53. package/public/contentbuilder/themes/light-green.css +38 -0
  54. package/public/contentbuilder/themes/light-pink.css +38 -0
  55. package/public/contentbuilder/themes/light-pink2.css +38 -0
  56. package/public/contentbuilder/themes/light-purple.css +38 -0
  57. package/public/contentbuilder/themes/light-purple2.css +38 -0
  58. package/public/contentbuilder/themes/light-red.css +38 -0
  59. package/public/contentbuilder/themes/light-yellow.css +38 -0
  60. package/public/contentbuilder/themes/light-yellow2.css +38 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "",
5
5
  "main": "public/contentbuilder/contentbuilder.esm.js",
6
6
  "files": [
@@ -195,6 +195,7 @@ button:focus {
195
195
  font-size: 13px;
196
196
  letter-spacing: 1px;
197
197
  font-weight: 300px;
198
+ /* general use */
198
199
  /*
199
200
  .rte-align-options,
200
201
  .rte-formatting-options,
@@ -543,6 +544,40 @@ button:focus {
543
544
  .is-ui .is-elementrte-tool > div:not(.is-draggable) {
544
545
  padding: 8px 10px 8px 10px;
545
546
  }
547
+ #_cbhtml .is-general-options,
548
+ .is-ui .is-general-options {
549
+ color: #000;
550
+ background: #fff;
551
+ }
552
+ #_cbhtml .is-general-options button,
553
+ #_cbhtml .is-general-options div[role=button],
554
+ .is-ui .is-general-options button,
555
+ .is-ui .is-general-options div[role=button] {
556
+ background-color: transparent;
557
+ color: #121212;
558
+ width: 45px;
559
+ height: 40px;
560
+ margin: 0;
561
+ box-shadow: none;
562
+ }
563
+ #_cbhtml .is-general-options button.on,
564
+ #_cbhtml .is-general-options div[role=button].on,
565
+ .is-ui .is-general-options button.on,
566
+ .is-ui .is-general-options div[role=button].on {
567
+ background: whitesmoke;
568
+ }
569
+ #_cbhtml .is-general-options button:hover,
570
+ #_cbhtml .is-general-options div[role=button]:hover,
571
+ .is-ui .is-general-options button:hover,
572
+ .is-ui .is-general-options div[role=button]:hover {
573
+ background: whitesmoke !important;
574
+ }
575
+ #_cbhtml .is-general-options button svg,
576
+ #_cbhtml .is-general-options div[role=button] svg,
577
+ .is-ui .is-general-options button svg,
578
+ .is-ui .is-general-options div[role=button] svg {
579
+ fill: #000;
580
+ }
546
581
  #_cbhtml .is-rte-tool,
547
582
  #_cbhtml .is-elementrte-tool,
548
583
  #_cbhtml .is-rte-pop.rte-more-options,
@@ -557,6 +592,51 @@ button:focus {
557
592
  background: #fff;
558
593
  box-shadow: rgba(0, 0, 0, 0.05) 0px 5px 9px 0px;
559
594
  }
595
+ #_cbhtml .is-rte-tool div[role=button],
596
+ #_cbhtml .is-elementrte-tool div[role=button],
597
+ #_cbhtml .is-rte-pop.rte-more-options div[role=button],
598
+ #_cbhtml .is-rte-pop.elementrte-more-options div[role=button],
599
+ .is-ui .is-rte-tool div[role=button],
600
+ .is-ui .is-elementrte-tool div[role=button],
601
+ .is-ui .is-rte-pop.rte-more-options div[role=button],
602
+ .is-ui .is-rte-pop.elementrte-more-options div[role=button] {
603
+ background-color: transparent;
604
+ color: #121212;
605
+ width: 45px;
606
+ height: 40px;
607
+ margin: 0;
608
+ box-shadow: none;
609
+ }
610
+ #_cbhtml .is-rte-tool div[role=button].on,
611
+ #_cbhtml .is-elementrte-tool div[role=button].on,
612
+ #_cbhtml .is-rte-pop.rte-more-options div[role=button].on,
613
+ #_cbhtml .is-rte-pop.elementrte-more-options div[role=button].on,
614
+ .is-ui .is-rte-tool div[role=button].on,
615
+ .is-ui .is-elementrte-tool div[role=button].on,
616
+ .is-ui .is-rte-pop.rte-more-options div[role=button].on,
617
+ .is-ui .is-rte-pop.elementrte-more-options div[role=button].on {
618
+ background: whitesmoke;
619
+ }
620
+ #_cbhtml .is-rte-tool div[role=button]:hover,
621
+ #_cbhtml .is-elementrte-tool div[role=button]:hover,
622
+ #_cbhtml .is-rte-pop.rte-more-options div[role=button]:hover,
623
+ #_cbhtml .is-rte-pop.elementrte-more-options div[role=button]:hover,
624
+ .is-ui .is-rte-tool div[role=button]:hover,
625
+ .is-ui .is-elementrte-tool div[role=button]:hover,
626
+ .is-ui .is-rte-pop.rte-more-options div[role=button]:hover,
627
+ .is-ui .is-rte-pop.elementrte-more-options div[role=button]:hover {
628
+ background: whitesmoke;
629
+ }
630
+ #_cbhtml .is-rte-tool div[role=button] svg,
631
+ #_cbhtml .is-elementrte-tool div[role=button] svg,
632
+ #_cbhtml .is-rte-pop.rte-more-options div[role=button] svg,
633
+ #_cbhtml .is-rte-pop.elementrte-more-options div[role=button] svg,
634
+ .is-ui .is-rte-tool div[role=button] svg,
635
+ .is-ui .is-elementrte-tool div[role=button] svg,
636
+ .is-ui .is-rte-pop.rte-more-options div[role=button] svg,
637
+ .is-ui .is-rte-pop.elementrte-more-options div[role=button] svg {
638
+ fill: #000;
639
+ }
560
640
  #_cbhtml .is-rte-tool button,
561
641
  #_cbhtml .is-elementrte-tool button,
562
642
  #_cbhtml .is-rte-pop.rte-more-options button,
@@ -253,14 +253,26 @@ class Util {
253
253
  }
254
254
  }
255
255
 
256
- confirm(message, callback) {
256
+ confirm(message, callback, yesno, yestext) {
257
257
  const dom = this.dom;
258
- let html = `<div class="is-modal is-confirm">
258
+ let html = '';
259
+ html = `<div class="is-modal is-confirm">
259
260
  <div class="is-modal-content" style="padding-bottom:20px;">
260
261
  <p>${message}</p>
261
262
  <button title="${this.out('Delete')}" class="input-ok classic">${this.out('Delete')}</button>
262
263
  </div>
263
264
  </div>`;
265
+
266
+ if (yesno) {
267
+ html = `<div class="is-modal is-confirm">
268
+ <div class="is-modal-content" style="padding-bottom:20px;">
269
+ <p>${message}</p>
270
+ <button title="${this.out('Cancel')}" class="input-cancel classic-secondary">${this.out('Cancel')}</button>
271
+ <button title="${yestext}" class="input-ok classic-primary">${yestext}</button>
272
+ </div>
273
+ </div>`;
274
+ }
275
+
264
276
  const builderStuff = this.builder.builderStuff;
265
277
  let confirmmodal = builderStuff.querySelector('.is-confirm');
266
278
 
@@ -283,6 +295,16 @@ class Util {
283
295
 
284
296
  callback(true);
285
297
  });
298
+ let buttoncancel = confirmmodal.querySelector('.is-confirm .input-cancel');
299
+ dom.addEventListener(buttoncancel, 'click', e => {
300
+ this.hideModal(confirmmodal);
301
+ confirmmodal.parentNode.removeChild(confirmmodal); //remove modal
302
+ //do task
303
+
304
+ callback(false);
305
+ e.preventDefault();
306
+ e.stopImmediatePropagation();
307
+ });
286
308
  }
287
309
  /*
288
310
  Note: