bromcom-ui 2.4.26 → 2.4.29
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/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-28bd8139.js → p-10f5108c.js} +1 -1
- package/dist/bromcom-ui/{p-764a2845.entry.js → p-1e6b17cb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1b60e59a.entry.js → p-54f40711.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7ca590dc.js → p-742620f7.js} +1 -1
- package/dist/bromcom-ui/p-8d7542fa.js +1 -0
- package/dist/bromcom-ui/{p-68593b1d.entry.js → p-bdeb22f2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f5064757.entry.js → p-f5509c20.entry.js} +1 -1
- package/dist/cjs/bcm-button_17.cjs.entry.js +26 -18
- package/dist/cjs/bcm-icon-2_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag-2.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{json-parse-decarator-511babca.js → json-parse-decarator-e170da59.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{snq.es5-9956c3ba.js → snq.es5-50d69683.js} +1 -1
- package/dist/cjs/{stepper-states-7dd686cb.js → stepper-states-8036b03a.js} +1 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +20 -20
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +7 -7
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +50 -1
- package/dist/collection/components/molecules/popover/popover-box.css +21 -21
- package/dist/collection/components/molecules/popover/popover-box.js +5 -5
- package/dist/collection/components/molecules/tooltip/tooltip-box.css +16 -16
- package/dist/collection/components/molecules/tooltip/tooltip-box.js +3 -3
- package/dist/esm/bcm-button_17.entry.js +26 -18
- package/dist/esm/bcm-icon-2_2.entry.js +2 -2
- package/dist/esm/bcm-stepper.entry.js +3 -3
- package/dist/esm/bcm-tag-2.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/{json-parse-decarator-cbf773af.js → json-parse-decarator-218216a2.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{snq.es5-af1d3151.js → snq.es5-af9d3468.js} +1 -1
- package/dist/esm/{stepper-states-66002977.js → stepper-states-e1a5694d.js} +1 -1
- package/dist/types/components/molecules/popconfirm/popconfirm.d.ts +4 -0
- package/dist/types/components.d.ts +4 -2
- package/package.json +1 -1
- package/dist/bromcom-ui/p-b3229733.js +0 -1
|
@@ -18532,7 +18532,7 @@
|
|
|
18532
18532
|
/* left-start & right-start */
|
|
18533
18533
|
/* left-end & right-end */
|
|
18534
18534
|
}
|
|
18535
|
-
.bcm-popconfirm-box .box {
|
|
18535
|
+
.bcm-popconfirm-box .bcm-pop-box {
|
|
18536
18536
|
position: absolute;
|
|
18537
18537
|
box-sizing: border-box;
|
|
18538
18538
|
background-color: #FFFFFF;
|
|
@@ -18545,19 +18545,19 @@
|
|
|
18545
18545
|
filter: drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));
|
|
18546
18546
|
padding: 8px 16px;
|
|
18547
18547
|
}
|
|
18548
|
-
.bcm-popconfirm-box .box .content {
|
|
18548
|
+
.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content {
|
|
18549
18549
|
display: flex;
|
|
18550
18550
|
}
|
|
18551
|
-
.bcm-popconfirm-box .box .content .icon {
|
|
18551
|
+
.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content .icon {
|
|
18552
18552
|
margin-right: 8px;
|
|
18553
18553
|
margin-top: 4px;
|
|
18554
18554
|
}
|
|
18555
|
-
.bcm-popconfirm-box .box .buttons {
|
|
18555
|
+
.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons {
|
|
18556
18556
|
display: flex;
|
|
18557
18557
|
justify-content: flex-end;
|
|
18558
18558
|
margin-top: 8px;
|
|
18559
18559
|
}
|
|
18560
|
-
.bcm-popconfirm-box .box .buttons bcm-button:first-child {
|
|
18560
|
+
.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons bcm-button:first-child {
|
|
18561
18561
|
margin-right: 8px;
|
|
18562
18562
|
}
|
|
18563
18563
|
.bcm-popconfirm-box::after {
|
|
@@ -18568,19 +18568,19 @@
|
|
|
18568
18568
|
z-index: 10700;
|
|
18569
18569
|
pointer-events: none;
|
|
18570
18570
|
}
|
|
18571
|
-
.bcm-popconfirm-box.open {
|
|
18571
|
+
.bcm-popconfirm-box.bcm-pop-open {
|
|
18572
18572
|
display: block;
|
|
18573
18573
|
z-index: 10700;
|
|
18574
18574
|
}
|
|
18575
|
-
.bcm-popconfirm-box.open .box {
|
|
18575
|
+
.bcm-popconfirm-box.bcm-pop-open .bcm-pop-box {
|
|
18576
18576
|
z-index: 10700;
|
|
18577
18577
|
overflow: unset;
|
|
18578
18578
|
visibility: unset;
|
|
18579
18579
|
}
|
|
18580
|
-
.bcm-popconfirm-box.open .box, .bcm-popconfirm-box.open::after {
|
|
18580
|
+
.bcm-popconfirm-box.bcm-pop-open .bcm-pop-box, .bcm-popconfirm-box.bcm-pop-open::after {
|
|
18581
18581
|
display: block;
|
|
18582
18582
|
}
|
|
18583
|
-
.bcm-popconfirm-box.top .box {
|
|
18583
|
+
.bcm-popconfirm-box.top .bcm-pop-box {
|
|
18584
18584
|
bottom: 100%;
|
|
18585
18585
|
margin-bottom: 16px;
|
|
18586
18586
|
}
|
|
@@ -18589,7 +18589,7 @@
|
|
|
18589
18589
|
margin-bottom: 4px;
|
|
18590
18590
|
border-color: #FFFFFF transparent transparent transparent;
|
|
18591
18591
|
}
|
|
18592
|
-
.bcm-popconfirm-box.bottom .box {
|
|
18592
|
+
.bcm-popconfirm-box.bottom .bcm-pop-box {
|
|
18593
18593
|
top: 100%;
|
|
18594
18594
|
margin-top: 16px;
|
|
18595
18595
|
}
|
|
@@ -18598,7 +18598,7 @@
|
|
|
18598
18598
|
margin-top: 4px;
|
|
18599
18599
|
border-color: transparent transparent #FFFFFF transparent;
|
|
18600
18600
|
}
|
|
18601
|
-
.bcm-popconfirm-box.left .box {
|
|
18601
|
+
.bcm-popconfirm-box.left .bcm-pop-box {
|
|
18602
18602
|
right: 100%;
|
|
18603
18603
|
margin-right: 16px;
|
|
18604
18604
|
}
|
|
@@ -18607,7 +18607,7 @@
|
|
|
18607
18607
|
margin-right: 4px;
|
|
18608
18608
|
border-color: transparent transparent transparent #FFFFFF;
|
|
18609
18609
|
}
|
|
18610
|
-
.bcm-popconfirm-box.right .box {
|
|
18610
|
+
.bcm-popconfirm-box.right .bcm-pop-box {
|
|
18611
18611
|
left: 100%;
|
|
18612
18612
|
margin-left: 16px;
|
|
18613
18613
|
}
|
|
@@ -18616,7 +18616,7 @@
|
|
|
18616
18616
|
margin-left: 4px;
|
|
18617
18617
|
border-color: transparent #FFFFFF transparent transparent;
|
|
18618
18618
|
}
|
|
18619
|
-
.bcm-popconfirm-box.top.center .box, .bcm-popconfirm-box.bottom.center .box {
|
|
18619
|
+
.bcm-popconfirm-box.top.center .bcm-pop-box, .bcm-popconfirm-box.bottom.center .bcm-pop-box {
|
|
18620
18620
|
left: 50%;
|
|
18621
18621
|
transform: translateX(-50%);
|
|
18622
18622
|
}
|
|
@@ -18624,19 +18624,19 @@
|
|
|
18624
18624
|
left: 50%;
|
|
18625
18625
|
transform: translateX(-50%);
|
|
18626
18626
|
}
|
|
18627
|
-
.bcm-popconfirm-box.top.start .box, .bcm-popconfirm-box.bottom.start .box {
|
|
18627
|
+
.bcm-popconfirm-box.top.start .bcm-pop-box, .bcm-popconfirm-box.bottom.start .bcm-pop-box {
|
|
18628
18628
|
left: 0;
|
|
18629
18629
|
}
|
|
18630
18630
|
.bcm-popconfirm-box.top.start::after, .bcm-popconfirm-box.bottom.start::after {
|
|
18631
18631
|
left: 16px;
|
|
18632
18632
|
}
|
|
18633
|
-
.bcm-popconfirm-box.top.end .box, .bcm-popconfirm-box.bottom.end .box {
|
|
18633
|
+
.bcm-popconfirm-box.top.end .bcm-pop-box, .bcm-popconfirm-box.bottom.end .bcm-pop-box {
|
|
18634
18634
|
right: 0;
|
|
18635
18635
|
}
|
|
18636
18636
|
.bcm-popconfirm-box.top.end::after, .bcm-popconfirm-box.bottom.end::after {
|
|
18637
18637
|
right: 16px;
|
|
18638
18638
|
}
|
|
18639
|
-
.bcm-popconfirm-box.left.center .box, .bcm-popconfirm-box.right.center .box {
|
|
18639
|
+
.bcm-popconfirm-box.left.center .bcm-pop-box, .bcm-popconfirm-box.right.center .bcm-pop-box {
|
|
18640
18640
|
top: 50%;
|
|
18641
18641
|
transform: translateY(-50%);
|
|
18642
18642
|
}
|
|
@@ -18644,13 +18644,13 @@
|
|
|
18644
18644
|
top: 50%;
|
|
18645
18645
|
transform: translateY(-50%);
|
|
18646
18646
|
}
|
|
18647
|
-
.bcm-popconfirm-box.left.start .box, .bcm-popconfirm-box.right.start .box {
|
|
18647
|
+
.bcm-popconfirm-box.left.start .bcm-pop-box, .bcm-popconfirm-box.right.start .bcm-pop-box {
|
|
18648
18648
|
top: 0;
|
|
18649
18649
|
}
|
|
18650
18650
|
.bcm-popconfirm-box.left.start::after, .bcm-popconfirm-box.right.start::after {
|
|
18651
18651
|
top: 12px;
|
|
18652
18652
|
}
|
|
18653
|
-
.bcm-popconfirm-box.left.end .box, .bcm-popconfirm-box.right.end .box {
|
|
18653
|
+
.bcm-popconfirm-box.left.end .bcm-pop-box, .bcm-popconfirm-box.right.end .bcm-pop-box {
|
|
18654
18654
|
bottom: 0;
|
|
18655
18655
|
}
|
|
18656
18656
|
.bcm-popconfirm-box.left.end::after, .bcm-popconfirm-box.right.end::after {
|
|
@@ -18668,9 +18668,9 @@
|
|
|
18668
18668
|
.bcm-popconfirm-box.right {
|
|
18669
18669
|
transform: translateX(-1px);
|
|
18670
18670
|
}
|
|
18671
|
-
.bcm-popconfirm-box.top.open, .bcm-popconfirm-box.bottom.open {
|
|
18671
|
+
.bcm-popconfirm-box.top.bcm-pop-open, .bcm-popconfirm-box.bottom.bcm-pop-open {
|
|
18672
18672
|
transform: translateY(0);
|
|
18673
18673
|
}
|
|
18674
|
-
.bcm-popconfirm-box.left.open, .bcm-popconfirm-box.right.open {
|
|
18674
|
+
.bcm-popconfirm-box.left.bcm-pop-open, .bcm-popconfirm-box.right.bcm-pop-open {
|
|
18675
18675
|
transform: translateX(0);
|
|
18676
18676
|
}
|
|
@@ -37,7 +37,7 @@ export class BcmPopconfirmBox {
|
|
|
37
37
|
calculateLocation() {
|
|
38
38
|
if (this.open) {
|
|
39
39
|
var placement = this.placement;
|
|
40
|
-
const box = this.el.querySelector('.box');
|
|
40
|
+
const box = this.el.querySelector('.bcm-pop-box');
|
|
41
41
|
const targetElement = document.getElementById(this._target_id).children[0];
|
|
42
42
|
if (box && targetElement) {
|
|
43
43
|
getPlacement(box, targetElement, placement, (place) => placement = place);
|
|
@@ -66,16 +66,16 @@ export class BcmPopconfirmBox {
|
|
|
66
66
|
render() {
|
|
67
67
|
const { message, cancelText, okeyText, open, placement_string, status } = this;
|
|
68
68
|
const statusies = statuses[status];
|
|
69
|
-
const boxClasses = cs('box');
|
|
69
|
+
const boxClasses = cs('bcm-pop-box');
|
|
70
70
|
const hostClasses = cs('bcm-popconfirm-box', placement_string, {
|
|
71
|
-
open
|
|
71
|
+
'bcm-pop-open': open,
|
|
72
72
|
});
|
|
73
73
|
return (h(Host, { class: hostClasses },
|
|
74
74
|
h("div", { class: boxClasses },
|
|
75
|
-
h("div", { class: "content" },
|
|
75
|
+
h("div", { class: "bcm-pop-content" },
|
|
76
76
|
h("bcm-icon", { class: "icon", icon: statusies[0], type: "fill", color: statusies[1] }),
|
|
77
77
|
h("bcm-text", { scale: "size-2", innerHTML: message })),
|
|
78
|
-
h("div", { class: "buttons" },
|
|
78
|
+
h("div", { class: "bcm-pop-buttons" },
|
|
79
79
|
h("bcm-button", { size: "small", onClick: () => this.handleCancel(), outline: true }, cancelText),
|
|
80
80
|
h("bcm-button", { size: "small", onClick: () => this.handleConfirm() }, okeyText)))));
|
|
81
81
|
}
|
|
@@ -269,7 +269,7 @@ export class BcmPopconfirmBox {
|
|
|
269
269
|
}; }
|
|
270
270
|
static get events() { return [{
|
|
271
271
|
"method": "onConfirm",
|
|
272
|
-
"name": "bcm-confirm",
|
|
272
|
+
"name": "bcm-popconfirm-confirm",
|
|
273
273
|
"bubbles": true,
|
|
274
274
|
"cancelable": true,
|
|
275
275
|
"composed": true,
|
|
@@ -284,7 +284,7 @@ export class BcmPopconfirmBox {
|
|
|
284
284
|
}
|
|
285
285
|
}, {
|
|
286
286
|
"method": "onCancel",
|
|
287
|
-
"name": "bcm-cancel",
|
|
287
|
+
"name": "bcm-popconfirm-cancel",
|
|
288
288
|
"bubbles": true,
|
|
289
289
|
"cancelable": true,
|
|
290
290
|
"composed": true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, h, Host, Method, Prop, Event, Element } from '@stencil/core';
|
|
1
|
+
import { Component, h, Host, Method, Prop, Event, Element, Listen } from '@stencil/core';
|
|
2
2
|
import cs from 'classnames';
|
|
3
3
|
import { Generate } from '../../../helper/generate';
|
|
4
4
|
import Bcm from '../../../models/bcm';
|
|
@@ -66,6 +66,12 @@ export class BcmPopconfirm {
|
|
|
66
66
|
default: break;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
onBcmConfirm(e) {
|
|
70
|
+
e.detail == this._id && (this.onConfirm.emit(this._id));
|
|
71
|
+
}
|
|
72
|
+
onBcmCancel(e) {
|
|
73
|
+
e.detail == this._id && (this.onCancel.emit(this._id));
|
|
74
|
+
}
|
|
69
75
|
render() {
|
|
70
76
|
const popconfirmClasses = cs('bcm-popconfirm');
|
|
71
77
|
return (h(Host, { class: popconfirmClasses, onclick: () => this.listenTrigger('click'), tabindex: 0 },
|
|
@@ -281,6 +287,36 @@ export class BcmPopconfirm {
|
|
|
281
287
|
"resolved": "any",
|
|
282
288
|
"references": {}
|
|
283
289
|
}
|
|
290
|
+
}, {
|
|
291
|
+
"method": "onConfirm",
|
|
292
|
+
"name": "bcm-confirm",
|
|
293
|
+
"bubbles": true,
|
|
294
|
+
"cancelable": true,
|
|
295
|
+
"composed": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": ""
|
|
299
|
+
},
|
|
300
|
+
"complexType": {
|
|
301
|
+
"original": "any",
|
|
302
|
+
"resolved": "any",
|
|
303
|
+
"references": {}
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
"method": "onCancel",
|
|
307
|
+
"name": "bcm-cancel",
|
|
308
|
+
"bubbles": true,
|
|
309
|
+
"cancelable": true,
|
|
310
|
+
"composed": true,
|
|
311
|
+
"docs": {
|
|
312
|
+
"tags": [],
|
|
313
|
+
"text": ""
|
|
314
|
+
},
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "any",
|
|
317
|
+
"resolved": "any",
|
|
318
|
+
"references": {}
|
|
319
|
+
}
|
|
284
320
|
}]; }
|
|
285
321
|
static get methods() { return {
|
|
286
322
|
"show": {
|
|
@@ -317,4 +353,17 @@ export class BcmPopconfirm {
|
|
|
317
353
|
}
|
|
318
354
|
}; }
|
|
319
355
|
static get elementRef() { return "el"; }
|
|
356
|
+
static get listeners() { return [{
|
|
357
|
+
"name": "bcm-popconfirm-confirm",
|
|
358
|
+
"method": "onBcmConfirm",
|
|
359
|
+
"target": "document",
|
|
360
|
+
"capture": false,
|
|
361
|
+
"passive": false
|
|
362
|
+
}, {
|
|
363
|
+
"name": "bcm-popconfirm-cancel",
|
|
364
|
+
"method": "onBcmCancel",
|
|
365
|
+
"target": "document",
|
|
366
|
+
"capture": false,
|
|
367
|
+
"passive": false
|
|
368
|
+
}]; }
|
|
320
369
|
}
|
|
@@ -18532,7 +18532,7 @@
|
|
|
18532
18532
|
/* left-start & right-start */
|
|
18533
18533
|
/* left-end & right-end */
|
|
18534
18534
|
}
|
|
18535
|
-
.bcm-popover-box .box {
|
|
18535
|
+
.bcm-popover-box .bcm-pop-box {
|
|
18536
18536
|
position: absolute;
|
|
18537
18537
|
box-sizing: border-box;
|
|
18538
18538
|
background-color: #FFFFFF;
|
|
@@ -18549,21 +18549,21 @@
|
|
|
18549
18549
|
z-index: -99999;
|
|
18550
18550
|
filter: drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));
|
|
18551
18551
|
}
|
|
18552
|
-
.bcm-popover-box .box.open {
|
|
18552
|
+
.bcm-popover-box .bcm-pop-box.bcm-pop-open {
|
|
18553
18553
|
overflow: unset;
|
|
18554
18554
|
visibility: visible;
|
|
18555
18555
|
height: unset;
|
|
18556
18556
|
}
|
|
18557
|
-
.bcm-popover-box .box .heading,
|
|
18558
|
-
.bcm-popover-box .box .content {
|
|
18557
|
+
.bcm-popover-box .bcm-pop-box .bcm-pop-heading,
|
|
18558
|
+
.bcm-popover-box .bcm-pop-box .bcm-pop-content {
|
|
18559
18559
|
display: block;
|
|
18560
18560
|
}
|
|
18561
|
-
.bcm-popover-box .box .heading {
|
|
18561
|
+
.bcm-popover-box .bcm-pop-box .bcm-pop-heading {
|
|
18562
18562
|
padding: 4px 16px;
|
|
18563
18563
|
border-bottom: 1px solid #D9D9D9;
|
|
18564
18564
|
color: var(--bcm-color-grey-9);
|
|
18565
18565
|
}
|
|
18566
|
-
.bcm-popover-box .box .content {
|
|
18566
|
+
.bcm-popover-box .bcm-pop-box .bcm-pop-content {
|
|
18567
18567
|
padding: 8px 16px;
|
|
18568
18568
|
color: var(--bcm-color-grey-8);
|
|
18569
18569
|
}
|
|
@@ -18575,19 +18575,19 @@
|
|
|
18575
18575
|
z-index: 10700;
|
|
18576
18576
|
pointer-events: none;
|
|
18577
18577
|
}
|
|
18578
|
-
.bcm-popover-box.open {
|
|
18578
|
+
.bcm-popover-box.bcm-pop-open {
|
|
18579
18579
|
display: block;
|
|
18580
18580
|
z-index: 10700;
|
|
18581
18581
|
}
|
|
18582
|
-
.bcm-popover-box.open .box {
|
|
18582
|
+
.bcm-popover-box.bcm-pop-open .bcm-pop-box {
|
|
18583
18583
|
z-index: 10700;
|
|
18584
18584
|
overflow: unset;
|
|
18585
18585
|
visibility: unset;
|
|
18586
18586
|
}
|
|
18587
|
-
.bcm-popover-box.open .box, .bcm-popover-box.open::after {
|
|
18587
|
+
.bcm-popover-box.bcm-pop-open .bcm-pop-box, .bcm-popover-box.bcm-pop-open::after {
|
|
18588
18588
|
display: block;
|
|
18589
18589
|
}
|
|
18590
|
-
.bcm-popover-box.top .box {
|
|
18590
|
+
.bcm-popover-box.top .bcm-pop-box {
|
|
18591
18591
|
bottom: 100%;
|
|
18592
18592
|
margin-bottom: 16px;
|
|
18593
18593
|
}
|
|
@@ -18596,7 +18596,7 @@
|
|
|
18596
18596
|
margin-bottom: 4px;
|
|
18597
18597
|
border-color: #FFFFFF transparent transparent transparent;
|
|
18598
18598
|
}
|
|
18599
|
-
.bcm-popover-box.bottom .box {
|
|
18599
|
+
.bcm-popover-box.bottom .bcm-pop-box {
|
|
18600
18600
|
top: 100%;
|
|
18601
18601
|
margin-top: 16px;
|
|
18602
18602
|
}
|
|
@@ -18605,7 +18605,7 @@
|
|
|
18605
18605
|
margin-top: 4px;
|
|
18606
18606
|
border-color: transparent transparent #FFFFFF transparent;
|
|
18607
18607
|
}
|
|
18608
|
-
.bcm-popover-box.left .box {
|
|
18608
|
+
.bcm-popover-box.left .bcm-pop-box {
|
|
18609
18609
|
right: 100%;
|
|
18610
18610
|
margin-right: 16px;
|
|
18611
18611
|
}
|
|
@@ -18614,7 +18614,7 @@
|
|
|
18614
18614
|
margin-right: 4px;
|
|
18615
18615
|
border-color: transparent transparent transparent #FFFFFF;
|
|
18616
18616
|
}
|
|
18617
|
-
.bcm-popover-box.right .box {
|
|
18617
|
+
.bcm-popover-box.right .bcm-pop-box {
|
|
18618
18618
|
left: 100%;
|
|
18619
18619
|
margin-left: 16px;
|
|
18620
18620
|
}
|
|
@@ -18623,7 +18623,7 @@
|
|
|
18623
18623
|
margin-left: 4px;
|
|
18624
18624
|
border-color: transparent #FFFFFF transparent transparent;
|
|
18625
18625
|
}
|
|
18626
|
-
.bcm-popover-box.top.center .box, .bcm-popover-box.bottom.center .box {
|
|
18626
|
+
.bcm-popover-box.top.center .bcm-pop-box, .bcm-popover-box.bottom.center .bcm-pop-box {
|
|
18627
18627
|
left: 50%;
|
|
18628
18628
|
transform: translateX(-50%);
|
|
18629
18629
|
}
|
|
@@ -18631,19 +18631,19 @@
|
|
|
18631
18631
|
left: 50%;
|
|
18632
18632
|
transform: translateX(-50%);
|
|
18633
18633
|
}
|
|
18634
|
-
.bcm-popover-box.top.start .box, .bcm-popover-box.bottom.start .box {
|
|
18634
|
+
.bcm-popover-box.top.start .bcm-pop-box, .bcm-popover-box.bottom.start .bcm-pop-box {
|
|
18635
18635
|
left: 0;
|
|
18636
18636
|
}
|
|
18637
18637
|
.bcm-popover-box.top.start::after, .bcm-popover-box.bottom.start::after {
|
|
18638
18638
|
left: 16px;
|
|
18639
18639
|
}
|
|
18640
|
-
.bcm-popover-box.top.end .box, .bcm-popover-box.bottom.end .box {
|
|
18640
|
+
.bcm-popover-box.top.end .bcm-pop-box, .bcm-popover-box.bottom.end .bcm-pop-box {
|
|
18641
18641
|
right: 0;
|
|
18642
18642
|
}
|
|
18643
18643
|
.bcm-popover-box.top.end::after, .bcm-popover-box.bottom.end::after {
|
|
18644
18644
|
right: 16px;
|
|
18645
18645
|
}
|
|
18646
|
-
.bcm-popover-box.left.center .box, .bcm-popover-box.right.center .box {
|
|
18646
|
+
.bcm-popover-box.left.center .bcm-pop-box, .bcm-popover-box.right.center .bcm-pop-box {
|
|
18647
18647
|
top: 50%;
|
|
18648
18648
|
transform: translateY(-50%);
|
|
18649
18649
|
}
|
|
@@ -18651,13 +18651,13 @@
|
|
|
18651
18651
|
top: 50%;
|
|
18652
18652
|
transform: translateY(-50%);
|
|
18653
18653
|
}
|
|
18654
|
-
.bcm-popover-box.left.start .box, .bcm-popover-box.right.start .box {
|
|
18654
|
+
.bcm-popover-box.left.start .bcm-pop-box, .bcm-popover-box.right.start .bcm-pop-box {
|
|
18655
18655
|
top: 0;
|
|
18656
18656
|
}
|
|
18657
18657
|
.bcm-popover-box.left.start::after, .bcm-popover-box.right.start::after {
|
|
18658
18658
|
top: 12px;
|
|
18659
18659
|
}
|
|
18660
|
-
.bcm-popover-box.left.end .box, .bcm-popover-box.right.end .box {
|
|
18660
|
+
.bcm-popover-box.left.end .bcm-pop-box, .bcm-popover-box.right.end .bcm-pop-box {
|
|
18661
18661
|
bottom: 0;
|
|
18662
18662
|
}
|
|
18663
18663
|
.bcm-popover-box.left.end::after, .bcm-popover-box.right.end::after {
|
|
@@ -18675,9 +18675,9 @@
|
|
|
18675
18675
|
.bcm-popover-box.right {
|
|
18676
18676
|
transform: translateX(-1px);
|
|
18677
18677
|
}
|
|
18678
|
-
.bcm-popover-box.top.open, .bcm-popover-box.bottom.open {
|
|
18678
|
+
.bcm-popover-box.top.bcm-pop-open, .bcm-popover-box.bottom.bcm-pop-open {
|
|
18679
18679
|
transform: translateY(0);
|
|
18680
18680
|
}
|
|
18681
|
-
.bcm-popover-box.left.open, .bcm-popover-box.right.open {
|
|
18681
|
+
.bcm-popover-box.left.bcm-pop-open, .bcm-popover-box.right.bcm-pop-open {
|
|
18682
18682
|
transform: translateX(0);
|
|
18683
18683
|
}
|
|
@@ -28,7 +28,7 @@ export class BcmPopoverBox {
|
|
|
28
28
|
calculateLocation() {
|
|
29
29
|
if (this.open) {
|
|
30
30
|
var placement = this.placement;
|
|
31
|
-
const box = this.el.querySelector('.box');
|
|
31
|
+
const box = this.el.querySelector('.bcm-pop-box');
|
|
32
32
|
const targetElement = document.getElementById(this._target_id).children[0];
|
|
33
33
|
if (box && targetElement) {
|
|
34
34
|
getPlacement(box, targetElement, placement, (place) => placement = place);
|
|
@@ -49,13 +49,13 @@ export class BcmPopoverBox {
|
|
|
49
49
|
render() {
|
|
50
50
|
const { message, _title, open, placement_string } = this;
|
|
51
51
|
const classes = cs('bcm-popover-box', placement_string, {
|
|
52
|
-
open
|
|
52
|
+
'bcm-pop-open': open,
|
|
53
53
|
});
|
|
54
|
-
const boxClasses = cs('box');
|
|
54
|
+
const boxClasses = cs('bcm-pop-box');
|
|
55
55
|
return (h(Host, { class: classes },
|
|
56
56
|
h("div", { class: boxClasses },
|
|
57
|
-
_title && h("span", { class: "heading size-2 weight-medium", innerHTML: _title }),
|
|
58
|
-
h("span", { class: "content size-2", innerHTML: message }))));
|
|
57
|
+
_title && h("span", { class: "bcm-pop-heading size-2 weight-medium", innerHTML: _title }),
|
|
58
|
+
h("span", { class: "bcm-pop-content size-2", innerHTML: message }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "bcm-popover-box"; }
|
|
61
61
|
static get originalStyleUrls() { return {
|
|
@@ -18534,7 +18534,7 @@
|
|
|
18534
18534
|
/* left-start & right-start */
|
|
18535
18535
|
/* left-end & right-end */
|
|
18536
18536
|
}
|
|
18537
|
-
.bcm-tooltip-box .box {
|
|
18537
|
+
.bcm-tooltip-box .bcm-pop-box {
|
|
18538
18538
|
position: absolute;
|
|
18539
18539
|
box-sizing: border-box;
|
|
18540
18540
|
background-color: var(--background-color);
|
|
@@ -18555,19 +18555,19 @@
|
|
|
18555
18555
|
z-index: 10700;
|
|
18556
18556
|
pointer-events: none;
|
|
18557
18557
|
}
|
|
18558
|
-
.bcm-tooltip-box.open {
|
|
18558
|
+
.bcm-tooltip-box.bcm-pop-open {
|
|
18559
18559
|
display: block;
|
|
18560
18560
|
z-index: 10700;
|
|
18561
18561
|
}
|
|
18562
|
-
.bcm-tooltip-box.open .box {
|
|
18562
|
+
.bcm-tooltip-box.bcm-pop-open .bcm-pop-box {
|
|
18563
18563
|
z-index: 10700;
|
|
18564
18564
|
overflow: unset;
|
|
18565
18565
|
visibility: unset;
|
|
18566
18566
|
}
|
|
18567
|
-
.bcm-tooltip-box.open .box, .bcm-tooltip-box.open::after {
|
|
18567
|
+
.bcm-tooltip-box.bcm-pop-open .bcm-pop-box, .bcm-tooltip-box.bcm-pop-open::after {
|
|
18568
18568
|
display: block;
|
|
18569
18569
|
}
|
|
18570
|
-
.bcm-tooltip-box.top .box {
|
|
18570
|
+
.bcm-tooltip-box.top .bcm-pop-box {
|
|
18571
18571
|
bottom: 100%;
|
|
18572
18572
|
margin-bottom: 8px;
|
|
18573
18573
|
}
|
|
@@ -18576,7 +18576,7 @@
|
|
|
18576
18576
|
margin-bottom: -4px;
|
|
18577
18577
|
border-color: var(--background-color) transparent transparent transparent;
|
|
18578
18578
|
}
|
|
18579
|
-
.bcm-tooltip-box.bottom .box {
|
|
18579
|
+
.bcm-tooltip-box.bottom .bcm-pop-box {
|
|
18580
18580
|
top: 100%;
|
|
18581
18581
|
margin-top: 8px;
|
|
18582
18582
|
}
|
|
@@ -18585,7 +18585,7 @@
|
|
|
18585
18585
|
margin-top: -4px;
|
|
18586
18586
|
border-color: transparent transparent var(--background-color) transparent;
|
|
18587
18587
|
}
|
|
18588
|
-
.bcm-tooltip-box.left .box {
|
|
18588
|
+
.bcm-tooltip-box.left .bcm-pop-box {
|
|
18589
18589
|
right: 100%;
|
|
18590
18590
|
margin-right: 8px;
|
|
18591
18591
|
}
|
|
@@ -18594,7 +18594,7 @@
|
|
|
18594
18594
|
margin-right: -4px;
|
|
18595
18595
|
border-color: transparent transparent transparent var(--background-color);
|
|
18596
18596
|
}
|
|
18597
|
-
.bcm-tooltip-box.right .box {
|
|
18597
|
+
.bcm-tooltip-box.right .bcm-pop-box {
|
|
18598
18598
|
left: 100%;
|
|
18599
18599
|
margin-left: 8px;
|
|
18600
18600
|
}
|
|
@@ -18603,7 +18603,7 @@
|
|
|
18603
18603
|
margin-left: -4px;
|
|
18604
18604
|
border-color: transparent var(--background-color) transparent transparent;
|
|
18605
18605
|
}
|
|
18606
|
-
.bcm-tooltip-box.top.center .box, .bcm-tooltip-box.bottom.center .box {
|
|
18606
|
+
.bcm-tooltip-box.top.center .bcm-pop-box, .bcm-tooltip-box.bottom.center .bcm-pop-box {
|
|
18607
18607
|
left: 50%;
|
|
18608
18608
|
transform: translateX(-50%);
|
|
18609
18609
|
}
|
|
@@ -18611,19 +18611,19 @@
|
|
|
18611
18611
|
left: 50%;
|
|
18612
18612
|
transform: translateX(-50%);
|
|
18613
18613
|
}
|
|
18614
|
-
.bcm-tooltip-box.top.start .box, .bcm-tooltip-box.bottom.start .box {
|
|
18614
|
+
.bcm-tooltip-box.top.start .bcm-pop-box, .bcm-tooltip-box.bottom.start .bcm-pop-box {
|
|
18615
18615
|
left: 0;
|
|
18616
18616
|
}
|
|
18617
18617
|
.bcm-tooltip-box.top.start::after, .bcm-tooltip-box.bottom.start::after {
|
|
18618
18618
|
left: 8px;
|
|
18619
18619
|
}
|
|
18620
|
-
.bcm-tooltip-box.top.end .box, .bcm-tooltip-box.bottom.end .box {
|
|
18620
|
+
.bcm-tooltip-box.top.end .bcm-pop-box, .bcm-tooltip-box.bottom.end .bcm-pop-box {
|
|
18621
18621
|
right: 0;
|
|
18622
18622
|
}
|
|
18623
18623
|
.bcm-tooltip-box.top.end::after, .bcm-tooltip-box.bottom.end::after {
|
|
18624
18624
|
right: 8px;
|
|
18625
18625
|
}
|
|
18626
|
-
.bcm-tooltip-box.left.center .box, .bcm-tooltip-box.right.center .box {
|
|
18626
|
+
.bcm-tooltip-box.left.center .bcm-pop-box, .bcm-tooltip-box.right.center .bcm-pop-box {
|
|
18627
18627
|
top: 50%;
|
|
18628
18628
|
transform: translateY(-50%);
|
|
18629
18629
|
}
|
|
@@ -18631,13 +18631,13 @@
|
|
|
18631
18631
|
top: 50%;
|
|
18632
18632
|
transform: translateY(-50%);
|
|
18633
18633
|
}
|
|
18634
|
-
.bcm-tooltip-box.left.start .box, .bcm-tooltip-box.right.start .box {
|
|
18634
|
+
.bcm-tooltip-box.left.start .bcm-pop-box, .bcm-tooltip-box.right.start .bcm-pop-box {
|
|
18635
18635
|
top: 0;
|
|
18636
18636
|
}
|
|
18637
18637
|
.bcm-tooltip-box.left.start::after, .bcm-tooltip-box.right.start::after {
|
|
18638
18638
|
top: 4px;
|
|
18639
18639
|
}
|
|
18640
|
-
.bcm-tooltip-box.left.end .box, .bcm-tooltip-box.right.end .box {
|
|
18640
|
+
.bcm-tooltip-box.left.end .bcm-pop-box, .bcm-tooltip-box.right.end .bcm-pop-box {
|
|
18641
18641
|
bottom: 0;
|
|
18642
18642
|
}
|
|
18643
18643
|
.bcm-tooltip-box.left.end::after, .bcm-tooltip-box.right.end::after {
|
|
@@ -18655,10 +18655,10 @@
|
|
|
18655
18655
|
.bcm-tooltip-box.right {
|
|
18656
18656
|
transform: translateX(-1px);
|
|
18657
18657
|
}
|
|
18658
|
-
.bcm-tooltip-box.top.open, .bcm-tooltip-box.bottom.open {
|
|
18658
|
+
.bcm-tooltip-box.top.bcm-pop-open, .bcm-tooltip-box.bottom.bcm-pop-open {
|
|
18659
18659
|
transform: translateY(0);
|
|
18660
18660
|
}
|
|
18661
|
-
.bcm-tooltip-box.left.open, .bcm-tooltip-box.right.open {
|
|
18661
|
+
.bcm-tooltip-box.left.bcm-pop-open, .bcm-tooltip-box.right.bcm-pop-open {
|
|
18662
18662
|
transform: translateX(0);
|
|
18663
18663
|
}
|
|
18664
18664
|
.bcm-tooltip-box a {
|
|
@@ -31,7 +31,7 @@ export class BcmTooltipBox {
|
|
|
31
31
|
calculateLocation() {
|
|
32
32
|
if (this.open) {
|
|
33
33
|
var placement = this.placement;
|
|
34
|
-
const box = this.el.querySelector('.box');
|
|
34
|
+
const box = this.el.querySelector('.bcm-pop-box');
|
|
35
35
|
const targetElement = document.getElementById(this._target_id).children[0];
|
|
36
36
|
if (box && targetElement) {
|
|
37
37
|
getPlacement(box, targetElement, placement, (place) => placement = place);
|
|
@@ -52,9 +52,9 @@ export class BcmTooltipBox {
|
|
|
52
52
|
render() {
|
|
53
53
|
const { open, message, placement_string } = this;
|
|
54
54
|
const bcmTooltipHost = cs('bcm-tooltip-box', placement_string, {
|
|
55
|
-
open
|
|
55
|
+
'bcm-pop-open': open,
|
|
56
56
|
});
|
|
57
|
-
const boxClasses = cs('box');
|
|
57
|
+
const boxClasses = cs('bcm-pop-box');
|
|
58
58
|
return (h(Host, { class: bcmTooltipHost, style: { '--background-color': ColorHelper.convertColorToHex(this.color), '--font-color': ColorHelper.reverseColor(this.color) } },
|
|
59
59
|
h("div", { class: boxClasses },
|
|
60
60
|
h("span", { innerHTML: message }))));
|