@innovastudio/contentbuilder 1.3.84 → 1.3.86
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/package.json +1 -1
- package/public/contentbuilder/contentbuilder.css +5 -5
- package/public/contentbuilder/contentbuilder.esm.js +172 -39
- package/public/contentbuilder/contentbuilder.min.js +6 -6
- package/public/contentbuilder/themes/colored-blue.css +1 -1
- package/public/contentbuilder/themes/colored-blue2.css +1 -1
- package/public/contentbuilder/themes/colored-blue3.css +1 -1
- package/public/contentbuilder/themes/colored-blue4.css +1 -1
- package/public/contentbuilder/themes/colored-blue5.css +1 -1
- package/public/contentbuilder/themes/colored-blue6.css +1 -1
- package/public/contentbuilder/themes/colored-blue7.css +1 -1
- package/public/contentbuilder/themes/colored-blue8.css +1 -1
- package/public/contentbuilder/themes/colored-dark.css +10 -6
- package/public/contentbuilder/themes/colored-darkblue.css +1 -1
- package/public/contentbuilder/themes/colored-gray.css +1 -1
- package/public/contentbuilder/themes/colored-green.css +1 -1
- package/public/contentbuilder/themes/colored-green2.css +1 -1
- package/public/contentbuilder/themes/colored-green3.css +1 -1
- package/public/contentbuilder/themes/colored-green4.css +1 -1
- package/public/contentbuilder/themes/colored-green5.css +1 -1
- package/public/contentbuilder/themes/colored-magenta.css +1 -1
- package/public/contentbuilder/themes/colored-orange.css +1 -1
- package/public/contentbuilder/themes/colored-orange2.css +1 -1
- package/public/contentbuilder/themes/colored-orange3.css +1 -1
- package/public/contentbuilder/themes/colored-pink.css +1 -1
- package/public/contentbuilder/themes/colored-pink2.css +1 -1
- package/public/contentbuilder/themes/colored-pink3.css +1 -1
- package/public/contentbuilder/themes/colored-pink4.css +1 -1
- package/public/contentbuilder/themes/colored-purple.css +1 -1
- package/public/contentbuilder/themes/colored-purple2.css +1 -1
- package/public/contentbuilder/themes/colored-red.css +1 -1
- package/public/contentbuilder/themes/colored-red2.css +1 -1
- package/public/contentbuilder/themes/colored-red3.css +1 -1
- package/public/contentbuilder/themes/colored-red4.css +1 -1
- package/public/contentbuilder/themes/colored-red5.css +1 -1
- package/public/contentbuilder/themes/colored-yellow.css +1 -1
- package/public/contentbuilder/themes/colored-yellow2.css +1 -1
- package/public/contentbuilder/themes/dark-blue.css +1 -1
- package/public/contentbuilder/themes/dark-blue2.css +1 -1
- package/public/contentbuilder/themes/dark-blue3.css +1 -1
- package/public/contentbuilder/themes/dark-gray.css +1 -1
- package/public/contentbuilder/themes/dark-pink.css +1 -1
- package/public/contentbuilder/themes/dark-purple.css +1 -1
- package/public/contentbuilder/themes/dark-red.css +1 -1
- package/public/contentbuilder/themes/dark.css +1 -1
- package/public/contentbuilder/themes/light-blue.css +1 -1
- package/public/contentbuilder/themes/light-blue2.css +1 -1
- package/public/contentbuilder/themes/light-blue3.css +1 -1
- package/public/contentbuilder/themes/light-cyan.css +1 -1
- package/public/contentbuilder/themes/light-gray.css +1 -1
- package/public/contentbuilder/themes/light-gray2.css +1 -1
- package/public/contentbuilder/themes/light-gray3.css +1 -1
- package/public/contentbuilder/themes/light-green.css +1 -1
- package/public/contentbuilder/themes/light-pink.css +1 -1
- package/public/contentbuilder/themes/light-pink2.css +1 -1
- package/public/contentbuilder/themes/light-purple.css +1 -1
- package/public/contentbuilder/themes/light-purple2.css +1 -1
- package/public/contentbuilder/themes/light-red.css +1 -1
- package/public/contentbuilder/themes/light-yellow.css +1 -1
- package/public/contentbuilder/themes/light-yellow2.css +1 -1
- package/readme.txt +1 -1
package/package.json
CHANGED
@@ -3311,7 +3311,7 @@ button:focus-visible {
|
|
3311
3311
|
color: #4a4a4a;
|
3312
3312
|
border-radius: 5px;
|
3313
3313
|
border: none;
|
3314
|
-
background-color: #
|
3314
|
+
background-color: #f6f6f6;
|
3315
3315
|
width: auto;
|
3316
3316
|
display: inline-block;
|
3317
3317
|
background-image: none;
|
@@ -3344,9 +3344,9 @@ button:focus-visible {
|
|
3344
3344
|
color: #121212;
|
3345
3345
|
display: inline-block;
|
3346
3346
|
border: none;
|
3347
|
-
border-bottom:
|
3347
|
+
border-bottom: none;
|
3348
3348
|
border-radius: 1px;
|
3349
|
-
background-color: #
|
3349
|
+
background-color: #f6f6f6;
|
3350
3350
|
}
|
3351
3351
|
#_cbhtml input[type=text]:focus,
|
3352
3352
|
.is-ui input[type=text]:focus {
|
@@ -3775,7 +3775,7 @@ button:focus-visible {
|
|
3775
3775
|
box-sizing: border-box;
|
3776
3776
|
padding: 0 0 0 20px;
|
3777
3777
|
color: #000;
|
3778
|
-
background: #
|
3778
|
+
background: #f6f6f6;
|
3779
3779
|
box-shadow: none;
|
3780
3780
|
line-height: 40px !important;
|
3781
3781
|
font-size: 14px;
|
@@ -3831,7 +3831,7 @@ button:focus-visible {
|
|
3831
3831
|
box-sizing: border-box;
|
3832
3832
|
padding: 0 0 0 15px;
|
3833
3833
|
color: #000;
|
3834
|
-
background: #
|
3834
|
+
background: #f6f6f6;
|
3835
3835
|
box-shadow: none;
|
3836
3836
|
font-size: 14px;
|
3837
3837
|
cursor: pointer;
|
@@ -7212,6 +7212,167 @@ class Util {
|
|
7212
7212
|
return html;
|
7213
7213
|
}
|
7214
7214
|
|
7215
|
+
getPageTemplate(framework) {
|
7216
|
+
let pageTemplate = '';
|
7217
|
+
|
7218
|
+
if (framework === '') {
|
7219
|
+
pageTemplate = `
|
7220
|
+
<!DOCTYPE html>
|
7221
|
+
<html lang="en">
|
7222
|
+
<head>
|
7223
|
+
<meta charset="utf-8">
|
7224
|
+
<title>Page</title>
|
7225
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7226
|
+
<meta name="description" content="">
|
7227
|
+
<link rel="shortcut icon" href="#" />
|
7228
|
+
|
7229
|
+
<link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet" type="text/css" />
|
7230
|
+
|
7231
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet" type="text/css" />
|
7232
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet" type="text/css" />
|
7233
|
+
<script src="[%PATH%]/assets/scripts/glide/glide.js" type="text/javascript"></script>
|
7234
|
+
|
7235
|
+
<style>
|
7236
|
+
.container {
|
7237
|
+
margin: 150px auto 0;
|
7238
|
+
max-width: 800px;
|
7239
|
+
width: 100%;
|
7240
|
+
padding: 0 20px;
|
7241
|
+
box-sizing: border-box;
|
7242
|
+
}
|
7243
|
+
</style>
|
7244
|
+
</head>
|
7245
|
+
<body>
|
7246
|
+
|
7247
|
+
<div class="container">
|
7248
|
+
[%CONTENT%]
|
7249
|
+
</div>
|
7250
|
+
|
7251
|
+
</body>
|
7252
|
+
</html>
|
7253
|
+
`;
|
7254
|
+
} else if (framework === 'tailwind') {
|
7255
|
+
pageTemplate = `
|
7256
|
+
<!DOCTYPE html>
|
7257
|
+
<html lang="en">
|
7258
|
+
<head>
|
7259
|
+
<meta charset="utf-8">
|
7260
|
+
<title>Page</title>
|
7261
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7262
|
+
<meta name="description" content="">
|
7263
|
+
<link rel="shortcut icon" href="#" />
|
7264
|
+
|
7265
|
+
<link href="[%PATH%]/assets/minimalist-blocks/content-tailwind.css" rel="stylesheet" type="text/css" />
|
7266
|
+
|
7267
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet" type="text/css" />
|
7268
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet" type="text/css" />
|
7269
|
+
<script src="[%PATH%]/assets/scripts/glide/glide.js" type="text/javascript"></script>
|
7270
|
+
|
7271
|
+
<link rel="stylesheet" href="[%PATH%]/assets/frameworks/tailwindcss/styles.css">
|
7272
|
+
<!-- To build your own, please see: https://tailwindcss.com/docs/installation -->
|
7273
|
+
|
7274
|
+
<style>
|
7275
|
+
.container {
|
7276
|
+
margin: 150px auto 0;
|
7277
|
+
max-width: 800px;
|
7278
|
+
width: 100%;
|
7279
|
+
padding: 0 20px;
|
7280
|
+
box-sizing: border-box;
|
7281
|
+
}
|
7282
|
+
</style>
|
7283
|
+
</head>
|
7284
|
+
<body>
|
7285
|
+
|
7286
|
+
<div class="container">
|
7287
|
+
[%CONTENT%]
|
7288
|
+
</div>
|
7289
|
+
|
7290
|
+
</body>
|
7291
|
+
</html>
|
7292
|
+
`;
|
7293
|
+
} else if (framework === 'bootstrap') {
|
7294
|
+
pageTemplate = `
|
7295
|
+
<!DOCTYPE html>
|
7296
|
+
<html lang="en">
|
7297
|
+
<head>
|
7298
|
+
<meta charset="utf-8">
|
7299
|
+
<title>Page</title>
|
7300
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7301
|
+
<meta name="description" content="">
|
7302
|
+
<link rel="shortcut icon" href="#" />
|
7303
|
+
|
7304
|
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
7305
|
+
|
7306
|
+
<link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet" type="text/css" />
|
7307
|
+
|
7308
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet" type="text/css" />
|
7309
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet" type="text/css" />
|
7310
|
+
<script src="[%PATH%]/assets/scripts/glide/glide.js" type="text/javascript"></script>
|
7311
|
+
|
7312
|
+
<style>
|
7313
|
+
.container {margin: 140px auto; max-width: 800px; width:100%; padding:0 35px; box-sizing: border-box;}
|
7314
|
+
/* Bootstrap css adjustment to enable column drag to resize */
|
7315
|
+
.row > *,
|
7316
|
+
.column {
|
7317
|
+
max-width: unset !important;
|
7318
|
+
}
|
7319
|
+
</style>
|
7320
|
+
</head>
|
7321
|
+
<body>
|
7322
|
+
|
7323
|
+
<div class="container">
|
7324
|
+
[%CONTENT%]
|
7325
|
+
</div>
|
7326
|
+
|
7327
|
+
</body>
|
7328
|
+
</html>
|
7329
|
+
`;
|
7330
|
+
} else if (framework === 'foundation') {
|
7331
|
+
pageTemplate = `
|
7332
|
+
<!DOCTYPE html>
|
7333
|
+
<html lang="en">
|
7334
|
+
<head>
|
7335
|
+
<meta charset="utf-8">
|
7336
|
+
<title>Page</title>
|
7337
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7338
|
+
<meta name="description" content="">
|
7339
|
+
<link rel="shortcut icon" href="#" />
|
7340
|
+
|
7341
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation.min.css">
|
7342
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation-float.min.css">
|
7343
|
+
|
7344
|
+
<link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet" type="text/css" />
|
7345
|
+
|
7346
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet" type="text/css" />
|
7347
|
+
<link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet" type="text/css" />
|
7348
|
+
<script src="[%PATH%]/assets/scripts/glide/glide.js" type="text/javascript"></script>
|
7349
|
+
|
7350
|
+
<style>
|
7351
|
+
.container {
|
7352
|
+
margin: 150px auto 0;
|
7353
|
+
max-width: 800px;
|
7354
|
+
width: 100%;
|
7355
|
+
padding: 0 20px;
|
7356
|
+
box-sizing: border-box;
|
7357
|
+
}
|
7358
|
+
</style>
|
7359
|
+
</head>
|
7360
|
+
<body>
|
7361
|
+
|
7362
|
+
<div class="container">
|
7363
|
+
[%CONTENT%]
|
7364
|
+
</div>
|
7365
|
+
|
7366
|
+
</body>
|
7367
|
+
</html>
|
7368
|
+
`;
|
7369
|
+
} else {
|
7370
|
+
pageTemplate = '[%CONTENT%]';
|
7371
|
+
}
|
7372
|
+
|
7373
|
+
return pageTemplate;
|
7374
|
+
}
|
7375
|
+
|
7215
7376
|
}
|
7216
7377
|
class Dom {
|
7217
7378
|
constructor(builder) {
|
@@ -52558,7 +52719,7 @@ class Hyperlink {
|
|
52558
52719
|
<input id="inpCreateLinkText" class="input-text" type="text" style="width:100%;"/>
|
52559
52720
|
|
52560
52721
|
<label for="inpCreateLinkTitle" style="margin-top:14px;display:block">${util.out('Title')}:</label>
|
52561
|
-
<input id="inpCreateLinkTitle" class="input-title" type="text" style="width:100%;
|
52722
|
+
<input id="inpCreateLinkTitle" class="input-title" type="text" style="width:100%;"/>
|
52562
52723
|
|
52563
52724
|
<div style="text-align:right;margin-top:14px;">
|
52564
52725
|
<button title="${util.out('Cancel')}" class="input-cancel classic-secondary">${util.out('Cancel')}</button>
|
@@ -55426,7 +55587,6 @@ class RowTool {
|
|
55426
55587
|
const dom = this.builder.dom;
|
55427
55588
|
this.dom = dom;
|
55428
55589
|
this.grid = new Grid(builder);
|
55429
|
-
const htmlutil = new HtmlUtil(builder);
|
55430
55590
|
let rowMore = builderStuff.querySelector('.rowmore');
|
55431
55591
|
let htmlbutton = '';
|
55432
55592
|
if (builder.opts.rowHtmlEditor) htmlbutton = `<button type="button" title="${util.out('HTML')}" class="row-html">
|
@@ -55475,6 +55635,7 @@ class RowTool {
|
|
55475
55635
|
}
|
55476
55636
|
|
55477
55637
|
if (!row) return;
|
55638
|
+
const htmlutil = new HtmlUtil(builder);
|
55478
55639
|
htmlutil.view('row');
|
55479
55640
|
});
|
55480
55641
|
}
|
@@ -75467,39 +75628,6 @@ class ContentBuilder {
|
|
75467
75628
|
</div>
|
75468
75629
|
</div>
|
75469
75630
|
`,
|
75470
|
-
pageTemplate: `<!DOCTYPE html>
|
75471
|
-
<html lang="en">
|
75472
|
-
<head>
|
75473
|
-
<meta charset="utf-8">
|
75474
|
-
<title>Page</title>
|
75475
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
75476
|
-
<meta name="description" content="">
|
75477
|
-
<link rel="shortcut icon" href="#" />
|
75478
|
-
|
75479
|
-
<link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet" type="text/css" />
|
75480
|
-
|
75481
|
-
<link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet" type="text/css" />
|
75482
|
-
<link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet" type="text/css" />
|
75483
|
-
<script src="[%PATH%]/assets/scripts/glide/glide.js" type="text/javascript"></script>
|
75484
|
-
|
75485
|
-
<style>
|
75486
|
-
.container {
|
75487
|
-
margin: 150px auto 0;
|
75488
|
-
max-width: 800px;
|
75489
|
-
width: 100%;
|
75490
|
-
padding: 0 20px;
|
75491
|
-
box-sizing: border-box;
|
75492
|
-
}
|
75493
|
-
</style>
|
75494
|
-
</head>
|
75495
|
-
<body>
|
75496
|
-
|
75497
|
-
<div class="container">
|
75498
|
-
[%CONTENT%]
|
75499
|
-
</div>
|
75500
|
-
|
75501
|
-
</body>
|
75502
|
-
</html>`,
|
75503
75631
|
|
75504
75632
|
/*
|
75505
75633
|
onZoomStart: () => {
|
@@ -76015,6 +76143,11 @@ class ContentBuilder {
|
|
76015
76143
|
const util = new Util(this); // General utilities
|
76016
76144
|
|
76017
76145
|
this.util = util;
|
76146
|
+
|
76147
|
+
if (!this.pageTemplate) {
|
76148
|
+
this.pageTemplate = util.getPageTemplate(this.framework);
|
76149
|
+
}
|
76150
|
+
|
76018
76151
|
const responsive = new Responsive(this); // General utilities
|
76019
76152
|
|
76020
76153
|
this.responsive = responsive; // Content stuff
|
@@ -76082,6 +76215,7 @@ class ContentBuilder {
|
|
76082
76215
|
|
76083
76216
|
this.colTool = new ColumnTool(this); // Render Column Tool
|
76084
76217
|
|
76218
|
+
this._rowTool = new RowTool(this);
|
76085
76219
|
this.mediaPicker = new MediaPicker(this); // Extend the onChange function
|
76086
76220
|
|
76087
76221
|
var oldget = this.opts.onChange;
|
@@ -76604,8 +76738,8 @@ class ContentBuilder {
|
|
76604
76738
|
// Render Row tool
|
76605
76739
|
|
76606
76740
|
|
76607
|
-
this.
|
76608
|
-
|
76741
|
+
this._rowTool.render(row); // Render Row Add tool
|
76742
|
+
|
76609
76743
|
|
76610
76744
|
const rowaddtool = new RowAddTool(this);
|
76611
76745
|
rowaddtool.render(row); // Apply behavior on each column
|
@@ -78219,8 +78353,7 @@ class ContentBuilder {
|
|
78219
78353
|
|
78220
78354
|
this.element.click(col, e);
|
78221
78355
|
this.colTool.click(col);
|
78222
|
-
this.elmTool.click(col, e);
|
78223
|
-
|
78356
|
+
this.elmTool.click(col, e);
|
78224
78357
|
this.rte.click(col, e); // Grid Editor Status
|
78225
78358
|
// On/off lock button
|
78226
78359
|
|