@hulkapps/app-manager-vue 2.0.8 → 2.1.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/dist/app-manager-vue.esm.js +1475 -883
- package/dist/app-manager-vue.min.js +4 -4
- package/dist/app-manager-vue.ssr.js +1441 -885
- package/dist/hulkapps-app-manager.css +1 -1
- package/dist/hulkapps-app-manager.min.css +1 -1
- package/package.json +1 -1
- package/src/components/Plans/AppManagerGroupPlan.vue +116 -49
- package/src/components/Plans/AppManagerSliderPlan.vue +219 -51
- package/src/components/Plans/PlanBanners.vue +9 -0
- package/src/components/Plans/YearlyPlanPromotion.vue +9 -0
- package/src/components/polaris-vue/src/components/PSkeletonBodyText/PSkeletonBodyText.vue +27 -0
- package/src/components/polaris-vue/src/components/PSkeletonDisplayText/PSkeletonDisplayText.vue +38 -0
- package/src/components/polaris-vue/src/components/PSkeletonPage/PSkeletonPage.vue +149 -0
package/package.json
CHANGED
|
@@ -1,8 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<PSkeletonPage title="Skeleton Page"
|
|
3
|
+
:fullWidth="false"
|
|
4
|
+
primaryAction
|
|
5
|
+
:secondaryActions="2"
|
|
6
|
+
:breadcrumbs="false"
|
|
7
|
+
v-if="!plans.length">
|
|
8
|
+
<PLayout>
|
|
9
|
+
<PLayoutSection oneThird="">
|
|
10
|
+
<PCard sectioned="">
|
|
11
|
+
<PTextContainer>
|
|
12
|
+
<PSkeletonDisplayText size="small" />
|
|
13
|
+
<PSkeletonBodyText />
|
|
14
|
+
</PTextContainer>
|
|
15
|
+
</PCard>
|
|
16
|
+
</PLayoutSection>
|
|
17
|
+
<PLayoutSection oneThird="">
|
|
18
|
+
<PCard sectioned="">
|
|
19
|
+
<PTextContainer>
|
|
20
|
+
<PSkeletonDisplayText size="small" />
|
|
21
|
+
<PSkeletonBodyText />
|
|
22
|
+
</PTextContainer>
|
|
23
|
+
</PCard>
|
|
24
|
+
</PLayoutSection>
|
|
25
|
+
<PLayoutSection oneThird="">
|
|
26
|
+
<PCard sectioned="">
|
|
27
|
+
<PTextContainer>
|
|
28
|
+
<PSkeletonDisplayText size="small" />
|
|
29
|
+
<PSkeletonBodyText />
|
|
30
|
+
</PTextContainer>
|
|
31
|
+
</PCard>
|
|
32
|
+
</PLayoutSection>
|
|
33
|
+
</PLayout>
|
|
34
|
+
<PLayout style="margin-top: 20px">
|
|
35
|
+
<PLayoutSection>
|
|
36
|
+
<PCard sectioned=""><PSkeletonBodyText /></PCard>
|
|
37
|
+
<PCard sectioned=""><PSkeletonBodyText /></PCard>
|
|
38
|
+
<PCard sectioned=""><PSkeletonBodyText /></PCard>
|
|
39
|
+
<PCard sectioned=""><PSkeletonBodyText /></PCard>
|
|
40
|
+
</PLayoutSection>
|
|
41
|
+
</PLayout>
|
|
42
|
+
</PSkeletonPage>
|
|
2
43
|
<PPage
|
|
3
44
|
class="app-manager-plan-page custom-title"
|
|
4
45
|
title="Choose plan"
|
|
5
46
|
:subtitle = "subtitleContent"
|
|
47
|
+
v-else
|
|
6
48
|
>
|
|
7
49
|
|
|
8
50
|
<PStack slot="primaryAction">
|
|
@@ -86,8 +128,8 @@
|
|
|
86
128
|
<PDataTableCol :colspan="selectedPlan === 'monthly' ? monthlyPlan.length + 1 : yearlyPlan.length + 1" class="app-manager-group-cell">{{ (groupKey) }}</PDataTableCol>
|
|
87
129
|
</PDataTableRow>
|
|
88
130
|
<PDataTableRow v-for="(feature, rIndex) in featureGroup" :key="`row-${rIndex + groupKey}`">
|
|
89
|
-
<PDataTableCol>{{ (feature.name) }}</PDataTableCol>
|
|
90
|
-
<PDataTableCol v-for="(plan, cIndex) in selectedPlan === 'monthly' ? monthlyPlan : yearlyPlan" :key="`cell-${cIndex}-row-${rIndex}`" :style="activePlanStyle(plan)">
|
|
131
|
+
<PDataTableCol :class="`feature__type__${feature.value_type} feature__class`">{{ (feature.name) }}</PDataTableCol>
|
|
132
|
+
<PDataTableCol :class="`feature__type__${feature.value_type}`" v-for="(plan, cIndex) in selectedPlan === 'monthly' ? monthlyPlan : yearlyPlan" :key="`cell-${cIndex}-row-${rIndex}`" :style="activePlanStyle(plan)">
|
|
91
133
|
<template v-if="plan.features">
|
|
92
134
|
<template v-if="feature.value_type === 'boolean'">
|
|
93
135
|
<PIcon v-if="plan.features[feature.uuid]" color="success"
|
|
@@ -163,11 +205,16 @@
|
|
|
163
205
|
import {PDataTableCol} from "../polaris-vue/src/components/PDataTable/components/PDataTableCol";
|
|
164
206
|
import {PDataTableRow} from "../polaris-vue/src/components/PDataTable/components/PDataTableRow";
|
|
165
207
|
import {PIcon} from "../polaris-vue/src/components/PIcon";
|
|
208
|
+
import {PCard} from "../polaris-vue/src/components/PCard"
|
|
209
|
+
import {PCardSection} from "../polaris-vue/src/components/PCard/components/PCardSection"
|
|
210
|
+
import {PSkeletonPage} from "../polaris-vue/src/components/PSkeletonPage"
|
|
211
|
+
import {PSkeletonDisplayText} from "../polaris-vue/src/components/PSkeletonDisplayText"
|
|
212
|
+
import {PSkeletonBodyText} from "../polaris-vue/src/components/PSkeletonBodyText"
|
|
166
213
|
import {PTextStyle} from "../polaris-vue/src/components/PTextStyle";
|
|
167
214
|
|
|
168
215
|
export default {
|
|
169
216
|
name: "AppManagerGroupPlan",
|
|
170
|
-
components: { YearlyPlanPromotion, PlanBanners, PPage, PStack, PStackItem, PButton, PButtonGroup, PHeading, PLayout, PLayoutSection, PTextContainer, PDataTable, PDataTableCol, PDataTableRow, PIcon, PTextStyle },
|
|
217
|
+
components: { YearlyPlanPromotion, PlanBanners, PPage, PStack, PStackItem, PButton, PButtonGroup, PHeading, PLayout, PLayoutSection, PTextContainer, PDataTable, PDataTableCol, PDataTableRow, PIcon, PTextStyle, PCard, PCardSection, PSkeletonPage, PSkeletonBodyText, PSkeletonDisplayText },
|
|
171
218
|
props: ['shop_domain'],
|
|
172
219
|
data() {
|
|
173
220
|
return {
|
|
@@ -276,10 +323,10 @@
|
|
|
276
323
|
} else return feature.value
|
|
277
324
|
}
|
|
278
325
|
else if(feature?.value_type === 'array') {
|
|
279
|
-
return JSON.parse(feature.value).join('
|
|
326
|
+
return JSON.parse(feature.value).join(' ')
|
|
280
327
|
}
|
|
281
328
|
else if(feature?.value_type === 'string') {
|
|
282
|
-
return feature.value
|
|
329
|
+
return feature.value.replace('"', '').replace('"', '')
|
|
283
330
|
}
|
|
284
331
|
},
|
|
285
332
|
calculateDiscountedPrice(plan) {
|
|
@@ -345,6 +392,7 @@
|
|
|
345
392
|
console.error(error)
|
|
346
393
|
});
|
|
347
394
|
this.features = featuresData.data.features;
|
|
395
|
+
this.features = this.features.filter((item) => item.hidden_feature !== true)
|
|
348
396
|
this.features = this.features.sort((featureA, featureB) => parseInt(featureA.display_order) - parseInt(featureB.display_order))
|
|
349
397
|
this.features = this.features.sort((featureA, featureB) => parseInt(featureA.group_order) - parseInt(featureB.group_order))
|
|
350
398
|
this.featuresByGroup = this.groupBy(this.features, 'group')
|
|
@@ -371,167 +419,167 @@
|
|
|
371
419
|
|
|
372
420
|
@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
|
|
373
421
|
|
|
374
|
-
.app-manager-plan-page .plan-table td:last-child>*[data-v-7d902277],
|
|
375
|
-
.app-manager-plan-page .plan-table td:last-child>*[data-v-5a078dbb] {
|
|
422
|
+
.app-manager .app-manager-plan-page .plan-table td:last-child>*[data-v-7d902277],
|
|
423
|
+
.app-manager .app-manager-plan-page .plan-table td:last-child>*[data-v-5a078dbb] {
|
|
376
424
|
float:none;
|
|
377
425
|
}
|
|
378
|
-
.app-manager-plan-page .active {
|
|
426
|
+
.app-manager .app-manager-plan-page .active {
|
|
379
427
|
background: #f0f8f5;
|
|
380
428
|
}
|
|
381
|
-
.app-manager-plan-page .plan-table td:last-child>*[data-v-0d1b0d63] {
|
|
429
|
+
.app-manager .app-manager-plan-page .plan-table td:last-child>*[data-v-0d1b0d63] {
|
|
382
430
|
float:none;
|
|
383
431
|
}
|
|
384
|
-
.app-manager-plan-page .plan-table td {
|
|
432
|
+
.app-manager .app-manager-plan-page .plan-table td {
|
|
385
433
|
border: 0.01px solid #ececee !important;
|
|
386
434
|
border-collapse: collapse !important;
|
|
387
435
|
}
|
|
388
|
-
.app-manager-plan-page .plan-table .Polaris-DataTable__ScrollContainer{
|
|
436
|
+
.app-manager .app-manager-plan-page .plan-table .Polaris-DataTable__ScrollContainer{
|
|
389
437
|
border-radius:12px;
|
|
390
438
|
overflow: visible;
|
|
391
439
|
}
|
|
392
|
-
.app-manager-plan-page .plan-table table {
|
|
440
|
+
.app-manager .app-manager-plan-page .plan-table table {
|
|
393
441
|
border-collapse: collapse !important;
|
|
394
442
|
}
|
|
395
|
-
.app-manager-plan-page .custom-plan table {
|
|
443
|
+
.app-manager .app-manager-plan-page .custom-plan table {
|
|
396
444
|
border-collapse: collapse !important;
|
|
397
445
|
}
|
|
398
|
-
.app-manager-plan-page .custom-plan table thead .first-column {
|
|
446
|
+
.app-manager .app-manager-plan-page .custom-plan table thead .first-column {
|
|
399
447
|
border-radius: 12px 0 0 0;
|
|
400
448
|
border-top: 0px !important;
|
|
401
449
|
border-left: 0px !important;
|
|
402
450
|
}
|
|
403
|
-
.app-manager-plan-page .custom-plan table thead .plan-heading.last-column {
|
|
451
|
+
.app-manager .app-manager-plan-page .custom-plan table thead .plan-heading.last-column {
|
|
404
452
|
text-align: left !important;
|
|
405
453
|
border-radius: 0 12px 0 0;
|
|
406
454
|
border-top: 0px !important;
|
|
407
455
|
}
|
|
408
|
-
.app-manager-plan-page .custom-plan table thead .plan-heading {
|
|
456
|
+
.app-manager .app-manager-plan-page .custom-plan table thead .plan-heading {
|
|
409
457
|
background-color: rgb(255, 255, 255);
|
|
410
458
|
box-shadow: rgb(23 24 24 / 5%) 1px 0px 8px, rgb(0 0 0 / 15%) 0px 0px 2px;
|
|
411
459
|
}
|
|
412
|
-
.app-manager-plan-page .custom-plan table tbody tr:first-child {
|
|
460
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:first-child {
|
|
413
461
|
background-color: #fff;
|
|
414
462
|
box-shadow: 0 0 5px rgb(23 24 24 / 5%), 0 1px 2px rgb(0 0 0 / 15%);
|
|
415
463
|
border-radius: 12px 0 0 0;
|
|
416
464
|
overflow: hidden;
|
|
417
465
|
}
|
|
418
|
-
.app-manager-plan-page .custom-plan table tbody tr:not(:first-child :last-child ) {
|
|
466
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:first-child :last-child ) {
|
|
419
467
|
background-color: #fff;
|
|
420
468
|
overflow: hidden;
|
|
421
469
|
}
|
|
422
|
-
.app-manager-plan-page .custom-plan table tbody tr:not(:first-child :last-child) {
|
|
470
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:first-child :last-child) {
|
|
423
471
|
background-color: #fff;
|
|
424
472
|
box-shadow: 0 0 5px rgb(23 24 24 / 5%), 0 1px 2px rgb(0 0 0 / 15%);
|
|
425
473
|
overflow: hidden;
|
|
426
474
|
}
|
|
427
|
-
.app-manager-plan-page .custom-plan table tbody tr:not( :nth-last-child(2) ) {
|
|
475
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:not( :nth-last-child(2) ) {
|
|
428
476
|
background-color: #fff;
|
|
429
477
|
overflow: hidden;
|
|
430
478
|
}
|
|
431
|
-
.app-manager-plan-page .custom-plan table tbody tr:not( :nth-last-child(2) ) {
|
|
479
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:not( :nth-last-child(2) ) {
|
|
432
480
|
border-bottom: 0;
|
|
433
481
|
}
|
|
434
|
-
.app-manager-plan-page .custom-plan table tbody tr:last-child {
|
|
482
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child {
|
|
435
483
|
border-bottom: 0;
|
|
436
484
|
background-color: transparent !important;
|
|
437
485
|
box-shadow: none !important;
|
|
438
486
|
}
|
|
439
|
-
.app-manager-plan-page .custom-plan table tbody tr:not(:last-child) {
|
|
487
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:last-child) {
|
|
440
488
|
pointer-events: none;
|
|
441
489
|
}
|
|
442
|
-
.app-manager-plan-page .custom-plan table thead tr td{
|
|
490
|
+
.app-manager .app-manager-plan-page .custom-plan table thead tr td{
|
|
443
491
|
pointer-events: none;
|
|
444
492
|
}
|
|
445
|
-
.app-manager-plan-page .custom-plan table tbody tr:first-child td:first-child {
|
|
493
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:first-child td:first-child {
|
|
446
494
|
overflow: hidden;
|
|
447
495
|
border-radius: 12px 0 0 0;
|
|
448
496
|
}
|
|
449
|
-
.app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) {
|
|
497
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) {
|
|
450
498
|
overflow: hidden;
|
|
451
499
|
border-bottom-right-radius: 12px;
|
|
452
500
|
border-bottom-left-radius: 12px;
|
|
453
501
|
}
|
|
454
|
-
.app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) td:first-child {
|
|
502
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) td:first-child {
|
|
455
503
|
overflow: hidden;
|
|
456
504
|
border-bottom: 0px !important;
|
|
457
505
|
border-radius: 0 0 0 12px;
|
|
458
506
|
}
|
|
459
|
-
.app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) td:last-child {
|
|
507
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) td:last-child {
|
|
460
508
|
overflow: hidden;
|
|
461
509
|
border-radius: 0 0 12px;
|
|
462
510
|
}
|
|
463
|
-
.app-manager-plan-page .custom-plan table tbody tr td:first-child {
|
|
511
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr td:first-child {
|
|
464
512
|
border-left: 0px !important;
|
|
465
513
|
border-top: 0px !important;
|
|
466
514
|
padding-left: 20px;
|
|
467
515
|
}
|
|
468
|
-
.app-manager-plan-page .custom-plan table tbody tr td:last-child {
|
|
516
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr td:last-child {
|
|
469
517
|
border-right: 0px !important;
|
|
470
518
|
border-bottom: 0px !important;
|
|
471
519
|
text-align: center !important;
|
|
472
520
|
}
|
|
473
|
-
.app-manager-plan-page .custom-plan table thead tr td:last-child {
|
|
521
|
+
.app-manager .app-manager-plan-page .custom-plan table thead tr td:last-child {
|
|
474
522
|
border-right: 0px !important;
|
|
475
523
|
border-bottom: 0px !important;
|
|
476
524
|
text-align: center !important;
|
|
477
525
|
}
|
|
478
|
-
.app-manager-plan-page .custom-plan table tbody td:not(:first-child) {
|
|
526
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody td:not(:first-child) {
|
|
479
527
|
text-align: center !important;
|
|
480
528
|
}
|
|
481
|
-
.app-manager-plan-page .custom-plan table tbody tr:last-child td:last-child {
|
|
529
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td:last-child {
|
|
482
530
|
background: transparent;
|
|
483
531
|
border-radius: 0 0 12px 0;
|
|
484
532
|
}
|
|
485
|
-
.app-manager-plan-page .custom-plan table tbody tr:last-child td {
|
|
533
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td {
|
|
486
534
|
border: 0 !important;
|
|
487
535
|
background: transparent;
|
|
488
536
|
}
|
|
489
|
-
.app-manager-plan-page .custom-plan table tbody tr:last-child td:hover {
|
|
537
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td:hover {
|
|
490
538
|
border: 0 !important;
|
|
491
539
|
background: transparent;
|
|
492
540
|
}
|
|
493
|
-
.app-manager-plan-page .custom-plan tbody tr:last-child td.Polaris-DataTable__Cell--verticalAlignTop{
|
|
541
|
+
.app-manager .app-manager-plan-page .custom-plan tbody tr:last-child td.Polaris-DataTable__Cell--verticalAlignTop{
|
|
494
542
|
background: transparent !important;
|
|
495
543
|
}
|
|
496
|
-
.app-manager-plan-page .custom-plan table tbody tr:last-child {
|
|
544
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child {
|
|
497
545
|
background: transparent;
|
|
498
546
|
opacity:1.0;
|
|
499
547
|
}
|
|
500
|
-
.app-manager-plan-page .custom-plan table tbody tr:last-child td:first-child{
|
|
548
|
+
.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td:first-child{
|
|
501
549
|
visibility: hidden;
|
|
502
550
|
}
|
|
503
|
-
.app-manager-plan-page .plan-heading {
|
|
551
|
+
.app-manager .app-manager-plan-page .plan-heading {
|
|
504
552
|
padding-top: 30px;
|
|
505
553
|
}
|
|
506
|
-
.app-manager-plan-page .custom-plan .Polaris-Layout__Section{
|
|
554
|
+
.app-manager .app-manager-plan-page .custom-plan .Polaris-Layout__Section{
|
|
507
555
|
max-width: calc(100% - 2rem) !important;
|
|
508
556
|
}
|
|
509
|
-
.app-manager-plan-page .later-link {
|
|
557
|
+
.app-manager .app-manager-plan-page .later-link {
|
|
510
558
|
text-align: center;
|
|
511
559
|
clear: both;
|
|
512
560
|
padding-top: 15px;
|
|
513
561
|
}
|
|
514
|
-
.app-manager-plan-page .plan-badge ul {
|
|
562
|
+
.app-manager .app-manager-plan-page .plan-badge ul {
|
|
515
563
|
text-align: center;
|
|
516
564
|
padding-top: 2rem;
|
|
517
565
|
border-top: 0.1rem solid #e1e3e5;
|
|
518
566
|
}
|
|
519
|
-
.app-manager-plan-page .plan-badge ul li {
|
|
567
|
+
.app-manager .app-manager-plan-page .plan-badge ul li {
|
|
520
568
|
list-style: none;
|
|
521
569
|
display: inline-block;
|
|
522
570
|
padding-right: 25px;
|
|
523
571
|
}
|
|
524
|
-
.app-manager-plan-page .plan-badge ul li img {
|
|
572
|
+
.app-manager .app-manager-plan-page .plan-badge ul li img {
|
|
525
573
|
max-width: 133px;
|
|
526
574
|
}
|
|
527
|
-
.app-manager-plan-page .btn-group .Polaris-ButtonGroup__Item{
|
|
575
|
+
.app-manager .app-manager-plan-page .btn-group .Polaris-ButtonGroup__Item{
|
|
528
576
|
margin-left: 0px !important;
|
|
529
577
|
z-index: unset !important;
|
|
530
578
|
}
|
|
531
|
-
.app-manager-plan-page.custom-title .Polaris-HorizontalDivider{
|
|
579
|
+
.app-manager .app-manager-plan-page.custom-title .Polaris-HorizontalDivider{
|
|
532
580
|
background-color: #e2e3e4;
|
|
533
581
|
}
|
|
534
|
-
/*.app-manager-plan-page .annual_heading{
|
|
582
|
+
/*.app-manager .app-manager-plan-page .annual_heading{
|
|
535
583
|
margin-top: 2px !important;
|
|
536
584
|
color: #E2C138;
|
|
537
585
|
border: 2px dotted #E2C138;
|
|
@@ -540,12 +588,31 @@
|
|
|
540
588
|
font-weight: normal !important;
|
|
541
589
|
font-family: 'Satisfy', cursive;
|
|
542
590
|
}*/
|
|
543
|
-
.app-manager-plan-page .Polaris-Page__Content hr{
|
|
591
|
+
.app-manager .app-manager-plan-page .Polaris-Page__Content hr{
|
|
544
592
|
border: 1px solid #e2e3e4;
|
|
545
593
|
}
|
|
546
594
|
|
|
547
|
-
.app-manager-plan-page .app-manager-group-row {
|
|
595
|
+
.app-manager .app-manager-plan-page .app-manager-group-row {
|
|
548
596
|
background: transparent !important;
|
|
549
597
|
padding: 16px 16px 16px 20px !important;
|
|
550
598
|
}
|
|
599
|
+
|
|
600
|
+
.app-manager .app-manager-plan-page .feature__type__array {
|
|
601
|
+
vertical-align: middle !important;
|
|
602
|
+
word-spacing: 999px;
|
|
603
|
+
white-space: pre-line !important;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.app-manager .app-manager-plan-page .Polaris-DataTable__Table {
|
|
607
|
+
table-layout: fixed !important;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.app-manager .app-manager-plan-page td {
|
|
611
|
+
vertical-align: middle !important;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.app-manager .app-manager-plan-page td.feature__class {
|
|
615
|
+
word-wrap:break-word !important;
|
|
616
|
+
white-space: normal !important;
|
|
617
|
+
}
|
|
551
618
|
</style>
|