cty-mui-core 1.0.3 → 1.0.4
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/components/alert.js +4 -4
- package/components/circle.js +2 -2
- package/components/cty-camera-photo.js +3 -3
- package/components/cty-cascader.js +6 -8
- package/components/cty-count-down.js +1 -1
- package/components/cty-empty.js +3 -2
- package/components/cty-floating-panel.js +4 -5
- package/components/cty-pdf-viewer.js +4 -4
- package/components/cty-segment-slides.js +7 -3
- package/components/cty-share-sheet.js +1 -1
- package/components/cty-stepper.js +1 -1
- package/components/cty-video.js +5 -5
- package/dist/cjs/cty-alert_2.cjs.entry.js +6 -6
- package/dist/cjs/cty-camera-photo.cjs.entry.js +3 -3
- package/dist/cjs/cty-cascader.cjs.entry.js +6 -8
- package/dist/cjs/cty-count-down.cjs.entry.js +1 -1
- package/dist/cjs/cty-empty.cjs.entry.js +3 -2
- package/dist/cjs/cty-floating-panel.cjs.entry.js +4 -5
- package/dist/cjs/cty-mui.cjs.js +1 -1
- package/dist/cjs/cty-pdf-viewer.cjs.entry.js +3 -3
- package/dist/cjs/cty-segment-slides.cjs.entry.js +5 -2
- package/dist/cjs/cty-share-sheet.cjs.entry.js +1 -1
- package/dist/cjs/cty-stepper.cjs.entry.js +1 -1
- package/dist/cjs/cty-video.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/alert/alert.js +7 -8
- package/dist/collection/components/camera-photo/camera-photo.css +14 -12
- package/dist/collection/components/camera-photo/camera-photo.js +2 -2
- package/dist/collection/components/cascader/cascader.css +8 -2
- package/dist/collection/components/cascader/cascader.js +6 -8
- package/dist/collection/components/circle/circle.js +2 -2
- package/dist/collection/components/count-down/count-down.css +0 -1
- package/dist/collection/components/empty/empty.js +6 -6
- package/dist/collection/components/floating-panel/floating-panel.js +4 -5
- package/dist/collection/components/pdf-viewer/pdf-viewer.js +7 -7
- package/dist/collection/components/segment-slides/segment-slides.css +8 -1
- package/dist/collection/components/segment-slides/segment-slides.js +21 -1
- package/dist/collection/components/share-sheet/share-sheet.css +1 -0
- package/dist/collection/components/stepper/stepper.css +2 -0
- package/dist/collection/components/video/video.css +10 -0
- package/dist/collection/components/video/video.js +16 -7
- package/dist/cty-mui/cty-mui.esm.js +1 -1
- package/dist/cty-mui/{p-95bdc967.entry.js → p-0518caca.entry.js} +1 -1
- package/dist/cty-mui/p-0b60e66b.entry.js +1 -0
- package/dist/cty-mui/p-16c44e92.system.js +1 -1
- package/dist/cty-mui/p-2825ae05.system.entry.js +1 -0
- package/dist/cty-mui/{p-d668d366.system.entry.js → p-2a93bb99.system.entry.js} +1 -1
- package/dist/cty-mui/p-31a40f14.entry.js +1 -0
- package/dist/cty-mui/{p-0c919dbb.system.entry.js → p-411955a6.system.entry.js} +1 -1
- package/dist/cty-mui/{p-f03360cc.entry.js → p-4f7edefb.entry.js} +1 -1
- package/dist/cty-mui/p-51dc32d0.entry.js +1 -0
- package/dist/cty-mui/{p-a22d3c82.entry.js → p-528063e0.entry.js} +1 -1
- package/dist/cty-mui/p-5daeea4a.entry.js +1 -0
- package/dist/cty-mui/p-61e3bec8.system.entry.js +1 -0
- package/dist/cty-mui/p-74972e33.entry.js +1 -0
- package/dist/cty-mui/p-8493e26e.entry.js +1 -0
- package/dist/cty-mui/p-849c8101.system.entry.js +1 -0
- package/dist/cty-mui/p-b4528483.system.entry.js +1 -0
- package/dist/cty-mui/p-b46e6c9b.system.entry.js +1 -0
- package/dist/cty-mui/{p-801ae6a1.entry.js → p-c9ac5105.entry.js} +1 -1
- package/dist/cty-mui/{p-7243376e.system.entry.js → p-e1a7dbb0.system.entry.js} +1 -1
- package/dist/cty-mui/p-e59df1a9.system.entry.js +1 -0
- package/dist/cty-mui/p-f36a5045.entry.js +1 -0
- package/dist/cty-mui/{p-e193becf.system.entry.js → p-f3f8786c.system.entry.js} +1 -1
- package/dist/cty-mui/p-fcd881d0.system.entry.js +1 -0
- package/dist/docs.json +59 -20
- package/dist/esm/cty-alert_2.entry.js +6 -6
- package/dist/esm/cty-camera-photo.entry.js +3 -3
- package/dist/esm/cty-cascader.entry.js +6 -8
- package/dist/esm/cty-count-down.entry.js +1 -1
- package/dist/esm/cty-empty.entry.js +3 -2
- package/dist/esm/cty-floating-panel.entry.js +4 -5
- package/dist/esm/cty-mui.js +1 -1
- package/dist/esm/cty-pdf-viewer.entry.js +3 -3
- package/dist/esm/cty-segment-slides.entry.js +5 -2
- package/dist/esm/cty-share-sheet.entry.js +1 -1
- package/dist/esm/cty-stepper.entry.js +1 -1
- package/dist/esm/cty-video.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/cty-alert_2.entry.js +1 -1
- package/dist/esm-es5/cty-camera-photo.entry.js +1 -1
- package/dist/esm-es5/cty-cascader.entry.js +1 -1
- package/dist/esm-es5/cty-count-down.entry.js +1 -1
- package/dist/esm-es5/cty-empty.entry.js +1 -1
- package/dist/esm-es5/cty-floating-panel.entry.js +1 -1
- package/dist/esm-es5/cty-mui.js +1 -1
- package/dist/esm-es5/cty-pdf-viewer.entry.js +1 -1
- package/dist/esm-es5/cty-segment-slides.entry.js +1 -1
- package/dist/esm-es5/cty-share-sheet.entry.js +1 -1
- package/dist/esm-es5/cty-stepper.entry.js +1 -1
- package/dist/esm-es5/cty-video.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/cascader/cascader.d.ts +1 -1
- package/dist/types/components/empty/empty.d.ts +1 -1
- package/dist/types/components/pdf-viewer/pdf-viewer.d.ts +1 -1
- package/dist/types/components/segment-slides/segment-slides.d.ts +1 -0
- package/dist/types/components/video/video.d.ts +2 -2
- package/dist/types/components.d.ts +8 -7
- package/package.json +1 -1
- package/dist/cty-mui/p-0a822d5b.entry.js +0 -1
- package/dist/cty-mui/p-2b5f0844.entry.js +0 -1
- package/dist/cty-mui/p-2b78d8fb.system.entry.js +0 -1
- package/dist/cty-mui/p-5ad99250.entry.js +0 -1
- package/dist/cty-mui/p-5eb7c473.entry.js +0 -1
- package/dist/cty-mui/p-7248742d.system.entry.js +0 -1
- package/dist/cty-mui/p-7acbd10b.entry.js +0 -1
- package/dist/cty-mui/p-9d4fb41a.system.entry.js +0 -1
- package/dist/cty-mui/p-a3acc549.entry.js +0 -1
- package/dist/cty-mui/p-aeee52dd.entry.js +0 -1
- package/dist/cty-mui/p-af4966f1.system.entry.js +0 -1
- package/dist/cty-mui/p-b56c0374.system.entry.js +0 -1
- package/dist/cty-mui/p-c33f2553.system.entry.js +0 -1
- package/dist/cty-mui/p-d1bb97d7.system.entry.js +0 -1
package/components/alert.js
CHANGED
|
@@ -33,7 +33,7 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
|
|
|
33
33
|
this.img = '';
|
|
34
34
|
this.closeable = true;
|
|
35
35
|
this.content = '';
|
|
36
|
-
this.buttons =
|
|
36
|
+
this.buttons = undefined;
|
|
37
37
|
this.root = 'default';
|
|
38
38
|
this.animated = false;
|
|
39
39
|
this.cssClass = undefined;
|
|
@@ -48,7 +48,7 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
buttonsChanged() {
|
|
51
|
-
const buttons = this.buttons;
|
|
51
|
+
const buttons = this.buttons || config.get('alertButtons', []);
|
|
52
52
|
this._buttonList = buttons === null || buttons === void 0 ? void 0 : buttons.map((p) => {
|
|
53
53
|
if (typeof p === 'string') {
|
|
54
54
|
const item = {};
|
|
@@ -94,14 +94,14 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
|
|
|
94
94
|
return eventMethod(this.el, 'ctyWillDismiss');
|
|
95
95
|
}
|
|
96
96
|
async _buttonClick(item, index) {
|
|
97
|
-
item.handler && await item.handler(this.buttons[index]);
|
|
97
|
+
item.handler && await item.handler((this.buttons || config.get('alertButtons', []))[index]);
|
|
98
98
|
this.ctyTap.emit({ item, index });
|
|
99
99
|
if (item.action && item.action.toLowerCase() === 'cancel') {
|
|
100
100
|
this.dismiss();
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: '959ed76f6084891a99fb90008df48b4f39bf44fc', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '428839b5edca9837bb10c21632ba580119a51ac3', animated: false, backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("slot", { key: '37d9df8286b23d234d85c1b33b91db2128d58492', name: "alert" }), h("div", { key: '39e50b5b2f81e95b10ac392c31ee02342a92d684', class: "cty-alert", onClick: (e) => e.stopPropagation() }, this.img && h("img", { key: 'c9c21149b8419d37019e1312a8abe7654960514d', src: this.img, class: "cty-alert__img" }), this.closeable && h("slot", { key: '0ee3f870e8dbb6bb153620241b8e19ca0947dde3', name: "close" }, h("button", { key: '49a935a9de515e16977ad310ba1ee583ad470aa5', class: "cty-alert__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { key: '1756645fc07d22bd42e7a6273ea887277c8ffcfe', name: "cty-close2" }))), h("slot", { key: '79f092f60b55247ff4caa919fb57df81dd1e7214', name: "header" }), h("div", { key: 'fd4a14e9a412043b3ceb6ad29793f0d3d1d4b2fe', class: "cty-alert__header flex-align-center", part: "header" }, h("slot", { key: 'c364da9e26183ab9cc5bf8836c1394ffa528d56e', name: "title-start" }), h("h3", { key: '18477afe5c3cc4d0a929d5cc2401ebf862ae233a', class: "cty-alert__title" }, this.title), h("slot", { key: '85ef231b12ddd0c878feaa5d664a3949e75b90d0', name: "title-end" })), h("slot", { key: '523ee1cb831024ccd7816a21dfc8085f4cb23fae', name: "content" }), this.content && h("div", { key: '2427057ffc166446c7bf14ac2d9e62bb3da4c674', part: "content", class: "cty-alert__content", innerHTML: sanitizeDOMString(this.content) }), h("slot", { key: '7c5f6b8a30732983d1745f92f029cddb3cf10041', name: "buttons" }), !!this._buttonList.length && h("div", { key: '781d0cab69ca15fc591f599622bb22cbb6f1c38b', class: "cty-alert__buttons flex", part: "buttons" }, this._buttonList.map((ele, idx) => h("button", { part: "button button" + idx, onClick: () => this._buttonClick(ele, idx), class: { 'cty-alert__button cty-button-native': true } }, ele.text))), h("slot", { key: '681f5313cf4b4313926578fe88d0ddd5a7551e20', name: "bottom" })))));
|
|
105
105
|
}
|
|
106
106
|
get el() { return this; }
|
|
107
107
|
static get watchers() { return {
|
package/components/circle.js
CHANGED
|
@@ -35,11 +35,11 @@ const Circle = /*@__PURE__*/ proxyCustomElement(class Circle extends HTMLElement
|
|
|
35
35
|
this.updateSVGAttr();
|
|
36
36
|
}
|
|
37
37
|
updateSVGAttr() {
|
|
38
|
-
var _a, _b, _c, _d
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
39
|
(_a = this.svgEl) === null || _a === void 0 ? void 0 : _a.setAttribute('viewBox', `0 0 ${+this.width + this.rad * 2} ${+this.width + this.rad * 2}`);
|
|
40
40
|
(_b = this.layerEl) === null || _b === void 0 ? void 0 : _b.setAttribute('d', this._getPath());
|
|
41
41
|
(_c = this.hoverEl) === null || _c === void 0 ? void 0 : _c.setAttribute('d', this._getPath());
|
|
42
|
-
Array.from((
|
|
42
|
+
Array.from(((_d = this.svgEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('stop')) || []).forEach((stopEL, index) => {
|
|
43
43
|
stopEL.setAttribute('key', index.toString());
|
|
44
44
|
stopEL.setAttribute('offset', this.colors[index].offset);
|
|
45
45
|
stopEL.setAttribute('stop-color', this.colors[index].color);
|
|
@@ -207,7 +207,7 @@ class CTYImagePicker {
|
|
|
207
207
|
}
|
|
208
208
|
const imagePicker = new CTYImagePicker();
|
|
209
209
|
|
|
210
|
-
const cameraPhotoCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-overlay{--cty-overlay-background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{
|
|
210
|
+
const cameraPhotoCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-overlay{--cty-overlay-background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{background:var(--cty-camera-photo-crop-background);width:var(--cty-camera-photo-crop-width);height:var(--cty-camera-photo-crop-height);--cty-crop-image-clip-width:var(--cty-camera-photo-crop-clip-width);--cty-crop-image-clip-height:var(--cty-camera-photo-crop-clip-height);--cty-crop-image-clip-background:var(--cty-camera-photo-crop-clip-background);--cty-crop-image-clip-border:var(--cty-camera-photo-crop-clip-border);--cty-crop-image-buttons-padding:var(--cty-camera-photo-crop-buttons-padding);--cty-crop-image-button-padding:var(--cty-camera-photo-crop-button-padding);--cty-crop-image-button-color:var(--cty-camera-photo-crop-button-color);--cty-crop-image-button-active-color:var(--cty-camera-photo-crop-button-active-color);--cty-crop-image-button-size:var(--cty-camera-photo-crop-button-size);--cty-crop-image-button-line-height:var(--cty-camera-photo-crop-button-line-height);--cty-crop-image-button-weight:var(--cty-camera-photo-crop-overlay-background)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height)}";
|
|
211
211
|
const CtyCameraPhotoStyle0 = cameraPhotoCss;
|
|
212
212
|
|
|
213
213
|
const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends HTMLElement {
|
|
@@ -377,7 +377,7 @@ const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends H
|
|
|
377
377
|
return;
|
|
378
378
|
})
|
|
379
379
|
.catch(err => {
|
|
380
|
-
return err
|
|
380
|
+
return err === undefined ? null : err;
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
_doCropCancel() {
|
|
@@ -394,7 +394,7 @@ const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends H
|
|
|
394
394
|
this.ctyTap.emit({ index, imageList });
|
|
395
395
|
}
|
|
396
396
|
render() {
|
|
397
|
-
return (h(Host, { key: '
|
|
397
|
+
return (h(Host, { key: '1209dc8c96e0f6d610938094ee9043aa945e0a7e', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'cty-pos-cover': this.overlay }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-action-sheet", { key: 'ae17be413e6275ee15b90e4a6f841a49f783900a', animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, closeable: this.closeable, closeIcon: this.closeIcon, cancelText: this.cancelText, options: this.options, onCtyDismiss: () => this.dismiss(), onCtyTap: e => this._buttonClick(e) }), this.showCropImage && (h("cty-overlay", { key: '052ccb88ecae00fd87d3c2794a944c8f93b36843', animated: false, backdropDismiss: false }, h("cty-crop-image", { key: '0b4de285fb815ed8a49aae0bd07b70c8dc4969a3', url: this.clipImage, cancelText: this.clipCancelText, confirmText: this.clipCconfirmText, imageWidth: this.clipImageWidth, imageBackground: this.clipImageBg, maxScale: this.clipMaxScale, minScale: this.clipMinScale, suffix: this.clipImageSuffix, quality: this.clipImageQuality, onCtyCancel: () => this._doCropCancel(), onCtyConfirm: (e) => this._doCropConfirm(e) }))), this.showPermissionPurpose && h("cty-permission-purpose", { key: '60a99a0480aba31c86454b821f9cba8d4b9ea24d', description: this.permissionDescription })));
|
|
398
398
|
}
|
|
399
399
|
get el() { return this; }
|
|
400
400
|
static get watchers() { return {
|
|
@@ -13506,7 +13506,7 @@ const CTYCityData = [
|
|
|
13506
13506
|
},
|
|
13507
13507
|
];
|
|
13508
13508
|
|
|
13509
|
-
const cascaderCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-cascader-background:#FFF;--cty-cascader-overlay-background:rgba(0, 0, 0, 0.3);--cty-cascader-header-height:44px;--cty-cascader-header-button-size:
|
|
13509
|
+
const cascaderCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-cascader-background:#FFF;--cty-cascader-overlay-background:rgba(0, 0, 0, 0.3);--cty-cascader-header-height:44px;--cty-cascader-header-button-size:var(--cty-font-size-medium);--cty-cascader-header-padding:0px 15px;--cty-cascader-header-border-bottom:1px solid var(--cty-border-color-light);--cty-cascader-title-size:var(--cty-font-size-medium);--cty-cascader-title-color:var(--cty-text-color-dark);--cty-cascader-title-weight:500;--cty-cascader-cancel-color:var(--cty-color-medium);--cty-cascader-confirm-color:var(--cty-color-primary);--cty-cascader-option-text-color:var(--cty-text-color-dark);--cty-cascader-option-text-font-size:var(--cty-font-size-medium);--cty-cascader-picked-border-color:var(--cty-border-color);--cty-cascader-mask-background-image:linear-gradient(180deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.4)), linear-gradient(0deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.4))}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-background:var(--cty-cascader-overlay-background, rgba(0, 0, 0, 0.3))}.cty-cascader-container{position:fixed;bottom:0;left:0;right:0;background:var(--cty-cascader-background);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cascader{width:100%;background:var(--cty-cascader-background)}.cty-cascader-header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:var(--cty-cascader-header-height, 44px);border-bottom:var(--cty-cascader-header-border-bottom);padding:var(--cty-cascader-header-padding)}.cty-cascader-header button{font-size:var(--cty-cascader-header-button-size)}.cty-cascader-header button.cancel{color:var(--cty-cascader-cancel-color)}.cty-cascader-header button.confirm{color:var(--cty-cascader-confirm-color)}.cty-cascader-header .cty-cascader-title{color:var(--cty-cascader-title-color);font-size:var(--cty-cascader-title-size);font-weight:var(--cty-cascader-title-weight)}.cty-cascader-columns{position:relative;display:-ms-flexbox;display:flex;overflow:hidden}.cty-cascader-column{-ms-flex:1;flex:1;position:relative;overflow:hidden}.cty-cascader-scroller{position:absolute;left:0;right:0;top:0;-webkit-transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1);transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.cty-cascader-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 4px;cursor:pointer}.cty-cascader-option .cty-cascader-text{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cty-cascader-option-text-color);font-size:var(--cty-cascader-option-text-font-size)}.cty-cascader-picked{position:absolute;left:0;right:0;pointer-events:none;border-top:1px solid var(--cty-cascader-picked-border-color);border-bottom:1px solid var(--cty-cascader-picked-border-color)}.cty-cascader-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-image:var(--cty-cascader-mask-background-image);background-repeat:no-repeat;background-position:top, bottom;pointer-events:none}";
|
|
13510
13510
|
const CtyCascaderStyle0 = cascaderCss;
|
|
13511
13511
|
|
|
13512
13512
|
const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLElement {
|
|
@@ -13516,7 +13516,7 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
|
|
|
13516
13516
|
this.__attachShadow();
|
|
13517
13517
|
this.ctyDismiss = createEvent(this, "ctyDismiss", 7);
|
|
13518
13518
|
this.ctyChange = createEvent(this, "ctyChange", 7);
|
|
13519
|
-
this.
|
|
13519
|
+
this.ctyConfirm = createEvent(this, "ctyConfirm", 7);
|
|
13520
13520
|
this.didPresent = createEvent(this, "ctyDidPresent", 7);
|
|
13521
13521
|
this.willPresent = createEvent(this, "ctyWillPresent", 7);
|
|
13522
13522
|
this.willDismiss = createEvent(this, "ctyWillDismiss", 7);
|
|
@@ -13662,7 +13662,6 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
|
|
|
13662
13662
|
return scrollColumns;
|
|
13663
13663
|
}
|
|
13664
13664
|
createChildren(scrollColumns, children, syncModelValue = true, depth = 1) {
|
|
13665
|
-
var _a;
|
|
13666
13665
|
if (children.length && (this.columnsCount == null || depth <= this.columnsCount)) {
|
|
13667
13666
|
const scrollColumn = {
|
|
13668
13667
|
id: this.sid++,
|
|
@@ -13689,12 +13688,11 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
|
|
|
13689
13688
|
return;
|
|
13690
13689
|
if (this.type == 'city' && depth === 2)
|
|
13691
13690
|
return;
|
|
13692
|
-
this.createChildren(scrollColumns,
|
|
13691
|
+
this.createChildren(scrollColumns, scrollColumn.column[scrollColumn.index][this.childrenKey] || [], syncModelValue, depth + 1);
|
|
13693
13692
|
}
|
|
13694
13693
|
}
|
|
13695
13694
|
getValue(option) {
|
|
13696
|
-
|
|
13697
|
-
return (_a = option[this.valueKey]) !== null && _a !== void 0 ? _a : option[this.textKey];
|
|
13695
|
+
return option[this.valueKey] === undefined ? option[this.textKey] : option[this.valueKey];
|
|
13698
13696
|
}
|
|
13699
13697
|
scrollTo(scrollColumn, duration = 0) {
|
|
13700
13698
|
this.updateTranslate(scrollColumn);
|
|
@@ -13875,10 +13873,10 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
|
|
|
13875
13873
|
this.stopScroll();
|
|
13876
13874
|
const { values, indexes, options } = this.getPicked();
|
|
13877
13875
|
this.setPrevIndexes(indexes);
|
|
13878
|
-
this.
|
|
13876
|
+
this.ctyConfirm.emit({ values, indexes, options });
|
|
13879
13877
|
}
|
|
13880
13878
|
render() {
|
|
13881
|
-
return (h(Host, { key: '
|
|
13879
|
+
return (h(Host, { key: '869db9422cc098889201961e90e60b4d42824e3a', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '5b1aa4c4861e99c24617519ef4939babf3792431', animated: false, backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: 'd72a70775caff77cc1bba7618266f5793192e31f', class: "cty-cascader-container", ref: (el) => (this.cascaderContainerEl = el) }, h("div", { key: 'c9027509a2acafc55d3da658e766cb727c15fa1b', class: "cty-cascader", onClick: (e) => e.stopPropagation() }, h("slot", { key: 'fd2e14a35bb4c3f8449b507552b2d7ed01ceefa4', name: 'header' }), h("div", { key: '4077d4d91d568cf281cff4c602a1a8d9bb22aeb7', class: "cty-cascader-header" }, h("button", { key: 'c9dd2d9725c9b7e9f45b31a8e50b25e6ab7a6972', onClick: () => this.dismiss(), class: "cancel cty-button-native" }, this.cancelText), h("div", { key: '89aa1f6fc298b9412a8b1686e0d3c667c1ae0540', class: "cty-cascader-title" }, this.title), h("button", { key: '3e01947c12d3df815617f66af3e8ad16490c56f8', onClick: () => this.confirm(), class: "confirm cty-button-native" }, this.confirmText)), h("div", { key: '0da2d2e76249696a84851a14c90c56dd6ceb65be', class: "cty-cascader-columns", style: { height: this.columnHeight + 'px' } }, this.scrollColumns.map(c => h("div", { class: "cty-cascader-column", onTouchStart: (e) => this.handleTouchstart(e, c), onTouchMove: (e) => this.handleTouchmove(e, c), onTouchEnd: () => this.handleTouchend(c), onMouseDown: (e) => this.handleTouchstart(e, c), onMouseMove: (e) => this.handleTouchmove(e, c), onMouseUp: () => this.handleTouchend(c) }, h("div", { class: "cty-cascader-scroller", style: { transform: 'translateY(' + c.translate + 'px)', 'transition-duration': c.duration + 'ms', 'transition-property': c.duration ? 'transform' : 'none' }, onTransitionEnd: () => this.handleTransitionend(c) }, c.column.map((option, i) => h("div", { class: 'cty-cascader-option ' + (option.className || ''), style: { height: this.optionHeight + 'px' }, onClick: () => this.handleClick(c, i) }, h("div", { class: 'cty-cascader-text ' + (option.textClassName || '') }, option[this.textKey])))))), h("div", { key: '5b4ca9f1f41204151a28400347d5d9797b819cf0', class: "cty-cascader-picked", style: { top: this.center + 'px', height: this.optionHeight + 'px' } }), h("div", { key: 'f421cc2641b717b0c32a9598616c4a3ad99eb7c9', class: "cty-cascader-mask", style: { 'background-size': '100% ' + (this.columnHeight - this.optionHeight) / 2 + 'px' } })))))));
|
|
13882
13880
|
}
|
|
13883
13881
|
get el() { return this; }
|
|
13884
13882
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { p as pad } from './format2.js';
|
|
3
3
|
|
|
4
|
-
const countDownCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-size:var(--cty-font-size-base);--cty-count-down-color:inherit;--cty-count-down-size:auto;--cty-count-down-
|
|
4
|
+
const countDownCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-size:var(--cty-font-size-base);--cty-count-down-color:inherit;--cty-count-down-size:auto;--cty-count-down-item-background:transparent;--cty-count-down-item-border-radius:0;--cty-count-down-unit-offset:0 5px;--cty-count-down-unit-color:inherit}.cty-count-down__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.cty-count-down__label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--cty-count-down-size);height:var(--cty-count-down-size);background:var(--cty-count-down-item-background);border-radius:var(--cty-count-down-item-border-radius);color:var(--cty-count-down-color)}.cty-count-down__unit{margin:var(--cty-count-down-unit-offset);color:var(--cty-count-down-unit-color)}";
|
|
5
5
|
const CtyCountDownStyle0 = countDownCss;
|
|
6
6
|
|
|
7
7
|
const CountDown = /*@__PURE__*/ proxyCustomElement(class CountDown extends HTMLElement {
|
package/components/cty-empty.js
CHANGED
|
@@ -9,11 +9,12 @@ const Empty = /*@__PURE__*/ proxyCustomElement(class Empty extends HTMLElement {
|
|
|
9
9
|
super();
|
|
10
10
|
this.__registerHost();
|
|
11
11
|
this.__attachShadow();
|
|
12
|
-
this.image =
|
|
12
|
+
this.image = undefined;
|
|
13
13
|
this.description = '暂无数据';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
|
|
16
|
+
const image = this.image === undefined ? (config.get('resUrlPrefix', '') + 'assets/cty_res/svg/cty-no-data.svg') : this.image;
|
|
17
|
+
return (h(Host, { key: '14bbdc70a7d0e287e77a0c4321b96bf46635d878', class: "cty-empty" }, h("slot", { key: '864950af0b1d30dce444f49e5df03add7020d54b', name: "top" }), image && h("img", { key: '082034fca812adc35d68154aa769aad0e07f10aa', class: "cty-empty__image", src: image }), h("slot", { key: '6a619735266e63e42927fcfb0f9dec4953c4bce4', name: "image" }), this.description && h("p", { key: 'f2195d2fa6429e44e89aee628e826455c98c0758', class: "cty-empty__description" }, this.description), h("slot", { key: 'd1645f49d8a8db0f50dff741b2f6c52b0c755125', name: "description" })));
|
|
17
18
|
}
|
|
18
19
|
static get assetsDirs() { return ["assets"]; }
|
|
19
20
|
get el() { return this; }
|
|
@@ -27,8 +27,7 @@ const FloatingPanel = /*@__PURE__*/ proxyCustomElement(class FloatingPanel exten
|
|
|
27
27
|
this.icon = remove;
|
|
28
28
|
}
|
|
29
29
|
get boundary() {
|
|
30
|
-
|
|
31
|
-
return { min: (_a = this.anchors[0]) !== null && _a !== void 0 ? _a : 100, max: (_b = this.anchors[this.anchors.length - 1]) !== null && _b !== void 0 ? _b : window.innerHeight * 0.6 };
|
|
30
|
+
return { min: this.anchors[0] === undefined ? 100 : this.anchors[0], max: this.anchors.length > 0 ? this.anchors[this.anchors.length - 1] : window.innerHeight * 0.6 };
|
|
32
31
|
}
|
|
33
32
|
componentWillLoad() {
|
|
34
33
|
this.height = this.anchors[0];
|
|
@@ -86,15 +85,15 @@ const FloatingPanel = /*@__PURE__*/ proxyCustomElement(class FloatingPanel exten
|
|
|
86
85
|
return moveY;
|
|
87
86
|
}
|
|
88
87
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'cd0e0f12f3e6404274824135fc230d3ec91c6e77', class: "cty-floating-panel flex-column", onTouchStart: (e) => this.dragStart(e), onTouchMove: (e) => this.dragMove(e), onTouchEnd: () => this.dragEnd(), onMouseDown: (e) => this.dragStart(e), onMouseMove: (e) => this.dragMove(e), onMouseUp: () => this.dragEnd() }, h("div", { key: '08e4d9867db94622233d870602f3035505d5490f', class: "cty-floating-panel__header flex-center", onTouchStart: () => {
|
|
90
89
|
this.setContentTouched(false);
|
|
91
90
|
}, onMouseDown: () => {
|
|
92
91
|
this.setContentTouched(false);
|
|
93
|
-
} }, h("slot", { key: '
|
|
92
|
+
} }, h("slot", { key: '247ddc8e904402f8edbf9e514cdb79a4a040004a', name: "icon-start" }), this.icon && h("cty-icon", { key: 'ea74e9c8559fd1b359471702a609623cda6a9921', class: "cty-floating-panel__header-bar", name: this.icon }), h("slot", { key: '3523f70dcf1310f97f3f60c35e1fd1e58c1750a3', name: "icon-end" })), h("div", { key: 'eefe9a49cb435e5771850e933e0b264e0916d14d', class: "cty-floating-panel__content", onTouchStart: () => {
|
|
94
93
|
this.setContentTouched(true);
|
|
95
94
|
}, onMouseDown: () => {
|
|
96
95
|
this.setContentTouched(true);
|
|
97
|
-
} }, h("slot", { key: '
|
|
96
|
+
} }, h("slot", { key: 'ac22f7696655715da74731ce84fe2ce4993f2472' }))));
|
|
98
97
|
}
|
|
99
98
|
get el() { return this; }
|
|
100
99
|
static get style() { return CtyFloatingPanelStyle0; }
|
|
@@ -12,12 +12,12 @@ const PdfViewer = /*@__PURE__*/ proxyCustomElement(class PdfViewer extends HTMLE
|
|
|
12
12
|
this.ctyInit = createEvent(this, "ctyInit", 7);
|
|
13
13
|
this.ctyEnd = createEvent(this, "ctyEnd", 7);
|
|
14
14
|
this.url = '';
|
|
15
|
-
this.viewerUrl =
|
|
15
|
+
this.viewerUrl = '';
|
|
16
16
|
}
|
|
17
17
|
componentDidLoad() {
|
|
18
18
|
const iframe = document.createElement('iframe');
|
|
19
19
|
iframe.className = 'cty-pdf-viewer__iframe';
|
|
20
|
-
iframe.src = this.viewerUrl + '?file=' + encodeURIComponent(this.url);
|
|
20
|
+
iframe.src = (this.viewerUrl || config.get('pdfViewerUrl')) + '?file=' + encodeURIComponent(this.url);
|
|
21
21
|
this.el.appendChild(iframe);
|
|
22
22
|
this._messageFn = (ev) => {
|
|
23
23
|
this.ctyEnd.emit(ev);
|
|
@@ -31,13 +31,13 @@ const PdfViewer = /*@__PURE__*/ proxyCustomElement(class PdfViewer extends HTMLE
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'a52023a9e049cab96f6b988825bb8795d9031325', class: "cty-pdf-viewer" }, h("slot", { key: '788f5764056c111d99e4a6282860f06cd28f64a9' })));
|
|
35
35
|
}
|
|
36
36
|
get el() { return this; }
|
|
37
37
|
static get style() { return CtyPdfViewerStyle0; }
|
|
38
38
|
}, [1, "cty-pdf-viewer", {
|
|
39
39
|
"url": [1],
|
|
40
|
-
"viewerUrl": [
|
|
40
|
+
"viewerUrl": [1, "viewer-url"]
|
|
41
41
|
}]);
|
|
42
42
|
function defineCustomElement$1() {
|
|
43
43
|
if (typeof customElements === "undefined") {
|
|
@@ -6,7 +6,7 @@ import { d as defineCustomElement$4 } from './ripple-effect.js';
|
|
|
6
6
|
import { d as defineCustomElement$3 } from './segment.js';
|
|
7
7
|
import { d as defineCustomElement$2 } from './segment-button.js';
|
|
8
8
|
|
|
9
|
-
const segmentSlidesCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}:host{--cty-segment-slides-position:initial;--cty-segment-slides-top:0;--cty-segment-slides-padding:0px;--cty-segment-slides-box-shadow:0px 2px 15px 0 #f2f2f2;--cty-segment-slides-background:var(--cty-color-white);--cty-segment-slides-overflow:initial;--cty-segment-slides-display:grid;--cty-segment-slides-justify-content:center;--cty-segment-slides-grid-auto-columns:minmax(auto, 360px);--cty-segment-slides-color:rgba(34,34,34,.7);--cty-segment-slides-checked-color:var(--cty-color-primary);--cty-segment-slides-font-size:var(--cty-font-size-base);--cty-segment-slides-checked-font-size:var(--cty-font-size-base);--cty-segment-slides-font-weight:normal;--cty-segment-slides-letter-spacing:0.06em;--cty-segment-slides-checked-font-weight:normal;--cty-segment-slides-height:42px;--cty-segment-slides-line-height:1;--cty-segment-slides-button-flex:initial;--cty-segment-slides-button-max-width:none;--cty-segment-slides-button-min-width:0;--cty-segment-slides-button-background-checked:none;--cty-segment-slides-button-background:transparent;--cty-segment-slides-button-margin:0;--cty-segment-slides-button-border-radius:0;--cty-segment-slides-label-margin:0;--cty-segment-slides-icon-size:var(--cty-font-size-extra-large);--cty-segment-slides-indicator-width:15px;--cty-segment-slides-indicator-height:2px;--cty-segment-slides-indicator-bottom:8px;--cty-segment-slides-indicator-color:var(--cty-color-primary);--cty-segment-slides-
|
|
9
|
+
const segmentSlidesCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}:host{--cty-segment-slides-position:initial;--cty-segment-slides-top:0;--cty-segment-slides-padding:0px;--cty-segment-slides-box-shadow:0px 2px 15px 0 #f2f2f2;--cty-segment-slides-background:var(--cty-color-white);--cty-segment-slides-overflow:initial;--cty-segment-slides-display:grid;--cty-segment-slides-justify-content:center;--cty-segment-slides-grid-auto-columns:minmax(auto, 360px);--cty-segment-slides-color:rgba(34,34,34,.7);--cty-segment-slides-checked-color:var(--cty-color-primary);--cty-segment-slides-font-size:var(--cty-font-size-base);--cty-segment-slides-checked-font-size:var(--cty-font-size-base);--cty-segment-slides-font-weight:normal;--cty-segment-slides-letter-spacing:0.06em;--cty-segment-slides-checked-font-weight:normal;--cty-segment-slides-height:42px;--cty-segment-slides-line-height:1;--cty-segment-slides-button-flex:initial;--cty-segment-slides-button-direction:column;--cty-segment-slides-button-max-width:none;--cty-segment-slides-button-min-width:0;--cty-segment-slides-button-background-checked:none;--cty-segment-slides-button-background:transparent;--cty-segment-slides-button-margin:0;--cty-segment-slides-button-border-radius:0;--cty-segment-slides-label-margin:0;--cty-segment-slides-icon-size:var(--cty-font-size-extra-large);--cty-segment-slides-indicator-width:15px;--cty-segment-slides-indicator-height:2px;--cty-segment-slides-indicator-bottom:8px;--cty-segment-slides-indicator-color:var(--cty-color-primary);--cty-segment-slides-offset-bottom:0px;--cty-segment-slides-swiper-overflow:initial;--cty-segment-slides-swiper-height:calc(100% - var(--cty-segment-slides-height) - var(--cty-segment-slides-offset-bottom));--cty-segment-slides-swiper-background:transparent;--cty-segment-slides-swiper-border-radius:0;--cty-segment-slides-swiper-slide-overflow-x:initial;--cty-segment-slides-swiper-slide-overflow-y:initial;display:block;width:100%;height:100%}.cty-segment-slides__segment{overflow:var(--cty-segment-slides-overflow);display:var(--cty-segment-slides-display);-ms-flex-pack:var(--cty-segment-slides-justify-content);justify-content:var(--cty-segment-slides-justify-content);position:var(--cty-segment-slides-position);top:var(--cty-segment-slides-top);z-index:5;--background:var(--cty-segment-slides-background);padding:var(--cty-segment-slides-padding);margin-bottom:var(--cty-segment-slides-offset-bottom);-webkit-box-shadow:var(--cty-segment-slides-box-shadow);box-shadow:var(--cty-segment-slides-box-shadow);border-radius:0;grid-auto-columns:var(--cty-segment-slides-grid-auto-columns)}.cty-segment-slides__segment::-webkit-scrollbar{display:none}.cty-segment-slides__segment-button{-ms-flex:var(--cty-segment-slides-button-flex);flex:var(--cty-segment-slides-button-flex);height:var(--cty-segment-slides-height);min-height:0;min-width:var(--cty-segment-slides-button-min-width);max-width:var(--cty-segment-slides-button-max-width);--background:var(--cty-segment-slides-button-background);--background-checked:var(--cty-segment-slides-button-background-checked);--background-hover:transparent;--background-focused:transparent;--ripple-color:transparent;--padding-start:0;--padding-end:0;margin:var(--cty-segment-slides-button-margin);border-radius:var(--cty-segment-slides-button-border-radius);--color-checked:var(--cty-segment-slides-checked-color);--color:var(--cty-segment-slides-color);font-size:var(--cty-segment-slides-font-size);font-weight:var(--cty-segment-slides-font-weight);letter-spacing:var(--cty-segment-slides-letter-spacing);--indicator-color:transparent;--indicator-box-shadow:none;--border-width:0}.cty-segment-slides__segment-label{margin:var(--cty-segment-slides-label-margin);line-height:var(--cty-segment-slides-line-height)}.cty-segment-slides__segment-icon{font-size:var(--cty-segment-slides-icon-size)}.cty-segment-slides__swiper-container{overflow:var(--cty-segment-slides-swiper-overflow);height:var(--cty-segment-slides-swiper-height);background:var(--cty-segment-slides-swiper-background);border-radius:var(--cty-segment-slides-swiper-border-radius)}.cty-segment-slides__swiper-slide{overflow-x:var(--cty-segment-slides-swiper-slide-overflow-x);overflow-y:var(--cty-segment-slides-swiper-slide-overflow-y)}.segment-button-checked{position:relative;font-size:var(--cty-segment-slides-checked-font-size);font-weight:var(--cty-segment-slides-checked-font-weight)}.segment-button-checked::after{position:absolute;left:50%;bottom:var(--cty-segment-slides-indicator-bottom);width:var(--cty-segment-slides-indicator-width);height:var(--cty-segment-slides-indicator-height);background:var(--cty-segment-slides-indicator-color);border-radius:calc(var(--cty-segment-slides-indicator-height) / 2);-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all 0.5s;transition:all 0.5s;content:\"\"}";
|
|
10
10
|
const CtySegmentSlidesStyle0 = segmentSlidesCss;
|
|
11
11
|
|
|
12
12
|
const SegmentSlides = /*@__PURE__*/ proxyCustomElement(class SegmentSlides extends HTMLElement {
|
|
@@ -64,8 +64,11 @@ const SegmentSlides = /*@__PURE__*/ proxyCustomElement(class SegmentSlides exten
|
|
|
64
64
|
async getActiveIndex() {
|
|
65
65
|
return this.slidesEl.swiper.activeIndex;
|
|
66
66
|
}
|
|
67
|
+
async getSwiper() {
|
|
68
|
+
return this.slidesEl.swiper;
|
|
69
|
+
}
|
|
67
70
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '16927f1e597cd7c791819abfdc1cee5371fa95d2', class: "cty-segment-slides" }, h("ion-segment", { key: '38370c189331d637be35dda4d7f8dda5bf852f88', part: "segment", class: "cty-segment-slides__segment", value: this._slideValue, onIonChange: (e) => this.segmentChanged(e), mode: "md", style: { 'top': this._top } }, h("slot", { key: '080ad88564062ab199b46df589b2106136515b15', name: 'segments' }), this._segments.map((item, idx) => h("ion-segment-button", { part: "segment-button", value: idx, layout: this.layout, class: "cty-segment-slides__segment-button" }, item[this._segmentProps['label']] && h("span", { class: "cty-segment-slides__segment-label" }, item[this._segmentProps['label']]), item[this._segmentProps['icon']] && h("cty-icon", { name: item[this._segmentProps['icon']], class: "cty-segment-slides__segment-icon" }), h("slot", { name: 'segment-button' + idx })))), h("swiper-container", { key: 'eb3459ac2d911d1793f78efd11d6ac72977f7899', part: "container", class: "cty-segment-slides__swiper-container", ref: (el) => this.slidesEl = el, observer: this.observer, observerParents: this.observerParents, resistanceRatio: '0', autoHeight: this.autoHeight, onSwiperslidechangetransitionstart: () => this.slideChange() }, this._segments.map((_, idx) => h("swiper-slide", { part: "slide", class: "cty-segment-slides__swiper-slide" }, h("slot", { name: 'content' + idx }))))));
|
|
69
72
|
}
|
|
70
73
|
get el() { return this; }
|
|
71
74
|
static get watchers() { return {
|
|
@@ -86,7 +89,8 @@ const SegmentSlides = /*@__PURE__*/ proxyCustomElement(class SegmentSlides exten
|
|
|
86
89
|
"_top": [32],
|
|
87
90
|
"_segmentProps": [32],
|
|
88
91
|
"doSlideTo": [64],
|
|
89
|
-
"getActiveIndex": [64]
|
|
92
|
+
"getActiveIndex": [64],
|
|
93
|
+
"getSwiper": [64]
|
|
90
94
|
}, undefined, {
|
|
91
95
|
"segments": ["segmentsChanged"],
|
|
92
96
|
"top": ["topChanged"]
|
|
@@ -252,7 +252,7 @@ class CTYShare {
|
|
|
252
252
|
}
|
|
253
253
|
const share = new CTYShare();
|
|
254
254
|
|
|
255
|
-
const shareSheetCss = ".flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}ion-button{--background-activated:transparent;--background-focused:transparent;--background-hover:transparent;--box-shadow:none}ion-grid{padding:0}ion-row{padding:0}ion-col{padding:0}ion-item{--padding-bottom:0;--padding-end:0;--padding-start:0;--padding-top:0;--inner-padding-top:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-bottom:0;--inner-border-width:0;--border-width:0;--min-height:0;--background:none;overflow:initial}ion-toast{--width:84%;--height:36px;--color:var(--cty-color-white);--background:rgba(0, 0, 0, 0.7);--border-radius:100px;line-height:1.2;font-size:var(--cty-font-size-base);text-align:center}.plt-hybrid .safe-area-bottom-border{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid var(--cty-color-white)}.plt-hybrid .safe-area-bottom-border-color{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid currentColor}.plt-hybrid .safe-area-bottom-padding{padding-bottom:var(--ion-safe-area-bottom, 0)}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-share-sheet-overlay-position:fixed;--cty-share-sheet-overlay-z-index:10;--cty-share-sheet-overlay-background:var(--cty-overlay-color);--cty-share-sheet-overlay-width:100vw;--cty-share-sheet-overlay-height:100vh;--cty-share-sheet-background:var(--cty-color-white);--cty-share-sheet-border-radius:10px 10px 0 0;--cty-share-sheet-guide-width:50vw;--cty-share-sheet-guide-top:10px;--cty-share-sheet-guide-right:0;--cty-share-sheet-header-padding:12px 15px 4px;--cty-share-sheet-title-offset:8px 0 0;--cty-share-sheet-title-size:var(--cty-font-size-base);--cty-share-sheet-title-color:var(--cty-text-color-primary);--cty-share-sheet-title-line-height:1px;--cty-share-sheet-title-line-background-color:var(--cty-border-color-extra-light);--cty-share-sheet-title-line-offset:20px;--cty-share-sheet-title-line-scale:1;--cty-share-sheet-description-offset-top:8px;--cty-share-sheet-description-size:var(--cty-font-size-extra-small);--cty-share-sheet-description-color:var(--cty-text-color-secondary);--cty-share-sheet-description-text-align:center;--cty-share-sheet-description-line-height:1;--cty-share-sheet-options-overflow-x:auto;--cty-share-sheet-options-wrap:nowrap;--cty-share-sheet-option-num:4;--cty-share-sheet-options-padding:16px 0 0;--cty-share-sheet-option-offset-bottom:16px;--cty-share-sheet-option-icon-width:40px;--cty-share-sheet-option-title-offset:8px 0 0;--cty-share-sheet-option-title-padding:0;--cty-share-sheet-option-title-size:var(--cty-font-size-extra-small);--cty-share-sheet-option-title-color:var(--cty-text-color-primary);--cty-share-sheet-option-description-padding:0;--cty-share-sheet-option-description-size:var(--cty-font-size-extra-small);--cty-share-sheet-option-description-color:var(--cty-text-color-secondary);--cty-share-sheet-cancel-height:48px;--cty-share-sheet-cancel-background:var(--cty-color-white);--cty-share-sheet-cancel-border-color:var(--cty-border-color-extra-light);--cty-share-sheet-cancel-border-width:8px;--cty-share-sheet-cancel-size:var(--cty-font-size-medium);--cty-share-sheet-cancel-color:var(--cty-text-color-primary)}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-position:var(--cty-share-sheet-overlay-position);--cty-overlay-z-index:var(--cty-share-sheet-overlay-z-index);--cty-overlay-background:var(--cty-share-sheet-overlay-background);--cty-overlay-width:var(--cty-share-sheet-overlay-width);--cty-overlay-height:var(--cty-share-sheet-overlay-height)}.cty-share-guide{position:absolute;right:var(--cty-share-sheet-guide-right);top:var(--cty-share-sheet-guide-top);width:var(--cty-share-sheet-guide-width)}.cty-share-guide img{display:block}.cty-share-sheet{width:100%;background:var(--cty-share-sheet-background);border-radius:var(--cty-share-sheet-border-radius)}.cty-share-sheet__header{padding:var(--cty-share-sheet-header-padding)}cty-divider{--cty-divider-width:var(--cty-share-sheet-title-line-height);--cty-divider-content-offset:var(--cty-share-sheet-title-line-offset);--cty-divider-scale:var(--cty-share-sheet-title-line-scale);margin:var(--cty-share-sheet-title-offset);color:var(--cty-share-sheet-title-color);font-size:var(--cty-share-sheet-title-size);border-color:var(--cty-share-sheet-title-line-background-color)}.cty-share-sheet__description{margin-top:var(--cty-share-sheet-description-offset-top);font-size:var(--cty-share-sheet-description-size);color:var(--cty-share-sheet-description-color);text-align:var(--cty-share-sheet-description-text-align);line-height:var(--cty-share-sheet-description-line-height)}.cty-share-sheet__options{overflow-x:var(--cty-share-sheet-options-overflow-x);-ms-flex-wrap:var(--cty-share-sheet-options-wrap);flex-wrap:var(--cty-share-sheet-options-wrap);width:100%;padding:var(--cty-share-sheet-options-padding)}.cty-share-sheet__options::-webkit-scrollbar{width:0;height:0}.cty-share-sheet__option{max-width:calc(100% / var(--cty-share-sheet-option-num));-ms-flex:0 0 calc(100% / var(--cty-share-sheet-option-num));flex:0 0 calc(100% / var(--cty-share-sheet-option-num));-ms-flex-direction:column;flex-direction:column;margin-bottom:var(--cty-share-sheet-option-offset-bottom)}.cty-share-sheet__img{display:block;width:var(--cty-share-sheet-option-icon-width)}.cty-share-sheet__icon{display:block;width:auto;font-size:var(--cty-share-sheet-option-icon-width)}.cty-share-sheet__option-title{margin:var(--cty-share-sheet-option-title-offset);padding:var(--cty-share-sheet-option-title-padding);font-size:var(--cty-share-sheet-option-title-size);color:var(--cty-share-sheet-option-title-color);white-space:nowrap}.cty-share-sheet__option-description{padding:var(--cty-share-sheet-option-description-padding);font-size:var(--cty-share-sheet-option-description-size);color:var(--cty-share-sheet-option-description-color)}.cty-share-sheet__cancel{width:100%;background:var(--cty-share-sheet-cancel-background-color);border:0;border-top:var(--cty-share-sheet-cancel-border-width) solid var(--cty-share-sheet-cancel-border-color);line-height:var(--cty-share-sheet-cancel-height);font-size:var(--cty-share-sheet-cancel-size);color:var(--cty-share-sheet-cancel-color)}";
|
|
255
|
+
const shareSheetCss = ".flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}ion-button{--background-activated:transparent;--background-focused:transparent;--background-hover:transparent;--box-shadow:none}ion-grid{padding:0}ion-row{padding:0}ion-col{padding:0}ion-item{--padding-bottom:0;--padding-end:0;--padding-start:0;--padding-top:0;--inner-padding-top:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-bottom:0;--inner-border-width:0;--border-width:0;--min-height:0;--background:none;overflow:initial}ion-toast{--width:84%;--height:36px;--color:var(--cty-color-white);--background:rgba(0, 0, 0, 0.7);--border-radius:100px;line-height:1.2;font-size:var(--cty-font-size-base);text-align:center}.plt-hybrid .safe-area-bottom-border{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid var(--cty-color-white)}.plt-hybrid .safe-area-bottom-border-color{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid currentColor}.plt-hybrid .safe-area-bottom-padding{padding-bottom:var(--ion-safe-area-bottom, 0)}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-share-sheet-overlay-position:fixed;--cty-share-sheet-overlay-z-index:10;--cty-share-sheet-overlay-background:var(--cty-overlay-color);--cty-share-sheet-overlay-width:100vw;--cty-share-sheet-overlay-height:100vh;--cty-share-sheet-background:var(--cty-color-white);--cty-share-sheet-border-radius:10px 10px 0 0;--cty-share-sheet-guide-width:50vw;--cty-share-sheet-guide-top:10px;--cty-share-sheet-guide-right:0;--cty-share-sheet-header-padding:12px 15px 4px;--cty-share-sheet-title-offset:8px 0 0;--cty-share-sheet-title-size:var(--cty-font-size-base);--cty-share-sheet-title-color:var(--cty-text-color-primary);--cty-share-sheet-title-line-height:1px;--cty-share-sheet-title-line-background-color:var(--cty-border-color-extra-light);--cty-share-sheet-title-line-offset:20px;--cty-share-sheet-title-line-scale:1;--cty-share-sheet-description-offset-top:8px;--cty-share-sheet-description-size:var(--cty-font-size-extra-small);--cty-share-sheet-description-color:var(--cty-text-color-secondary);--cty-share-sheet-description-text-align:center;--cty-share-sheet-description-line-height:1;--cty-share-sheet-options-overflow-x:auto;--cty-share-sheet-options-wrap:nowrap;--cty-share-sheet-option-num:4;--cty-share-sheet-options-padding:16px 0 0;--cty-share-sheet-option-offset-bottom:16px;--cty-share-sheet-option-icon-width:40px;--cty-share-sheet-option-title-offset:8px 0 0;--cty-share-sheet-option-title-padding:0;--cty-share-sheet-option-title-size:var(--cty-font-size-extra-small);--cty-share-sheet-option-title-color:var(--cty-text-color-primary);--cty-share-sheet-option-description-padding:0;--cty-share-sheet-option-description-size:var(--cty-font-size-extra-small);--cty-share-sheet-option-description-color:var(--cty-text-color-secondary);--cty-share-sheet-cancel-height:48px;--cty-share-sheet-cancel-background:var(--cty-color-white);--cty-share-sheet-cancel-border-color:var(--cty-border-color-extra-light);--cty-share-sheet-cancel-border-width:8px;--cty-share-sheet-cancel-size:var(--cty-font-size-medium);--cty-share-sheet-cancel-color:var(--cty-text-color-primary)}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-position:var(--cty-share-sheet-overlay-position);--cty-overlay-z-index:var(--cty-share-sheet-overlay-z-index);--cty-overlay-background:var(--cty-share-sheet-overlay-background);--cty-overlay-width:var(--cty-share-sheet-overlay-width);--cty-overlay-height:var(--cty-share-sheet-overlay-height)}.cty-share-guide{position:absolute;right:var(--cty-share-sheet-guide-right);top:var(--cty-share-sheet-guide-top);width:var(--cty-share-sheet-guide-width)}.cty-share-guide img{display:block;width:100%}.cty-share-sheet{width:100%;background:var(--cty-share-sheet-background);border-radius:var(--cty-share-sheet-border-radius)}.cty-share-sheet__header{padding:var(--cty-share-sheet-header-padding)}cty-divider{--cty-divider-width:var(--cty-share-sheet-title-line-height);--cty-divider-content-offset:var(--cty-share-sheet-title-line-offset);--cty-divider-scale:var(--cty-share-sheet-title-line-scale);margin:var(--cty-share-sheet-title-offset);color:var(--cty-share-sheet-title-color);font-size:var(--cty-share-sheet-title-size);border-color:var(--cty-share-sheet-title-line-background-color)}.cty-share-sheet__description{margin-top:var(--cty-share-sheet-description-offset-top);font-size:var(--cty-share-sheet-description-size);color:var(--cty-share-sheet-description-color);text-align:var(--cty-share-sheet-description-text-align);line-height:var(--cty-share-sheet-description-line-height)}.cty-share-sheet__options{overflow-x:var(--cty-share-sheet-options-overflow-x);-ms-flex-wrap:var(--cty-share-sheet-options-wrap);flex-wrap:var(--cty-share-sheet-options-wrap);width:100%;padding:var(--cty-share-sheet-options-padding)}.cty-share-sheet__options::-webkit-scrollbar{width:0;height:0}.cty-share-sheet__option{max-width:calc(100% / var(--cty-share-sheet-option-num));-ms-flex:0 0 calc(100% / var(--cty-share-sheet-option-num));flex:0 0 calc(100% / var(--cty-share-sheet-option-num));-ms-flex-direction:column;flex-direction:column;margin-bottom:var(--cty-share-sheet-option-offset-bottom)}.cty-share-sheet__img{display:block;width:var(--cty-share-sheet-option-icon-width)}.cty-share-sheet__icon{display:block;width:auto;font-size:var(--cty-share-sheet-option-icon-width)}.cty-share-sheet__option-title{margin:var(--cty-share-sheet-option-title-offset);padding:var(--cty-share-sheet-option-title-padding);font-size:var(--cty-share-sheet-option-title-size);color:var(--cty-share-sheet-option-title-color);white-space:nowrap}.cty-share-sheet__option-description{padding:var(--cty-share-sheet-option-description-padding);font-size:var(--cty-share-sheet-option-description-size);color:var(--cty-share-sheet-option-description-color)}.cty-share-sheet__cancel{width:100%;background:var(--cty-share-sheet-cancel-background-color);border:0;border-top:var(--cty-share-sheet-cancel-border-width) solid var(--cty-share-sheet-cancel-border-color);line-height:var(--cty-share-sheet-cancel-height);font-size:var(--cty-share-sheet-cancel-size);color:var(--cty-share-sheet-cancel-color)}";
|
|
256
256
|
const CtyShareSheetStyle0 = shareSheetCss;
|
|
257
257
|
|
|
258
258
|
const ShareSheet = /*@__PURE__*/ proxyCustomElement(class ShareSheet extends HTMLElement {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as clamp } from './format2.js';
|
|
3
3
|
|
|
4
|
-
const stepperCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-stepper-input-width:32px;--cty-stepper-input-height:28px;--cty-stepper-input-offset:0 2px;--cty-stepper-input-background:var(--cty-color-light);--cty-stepper-input-font-size:var(--cty-font-size-base);--cty-stepper-input-color:var(--cty-text-color-primary);--cty-stepper-input-disabled-background:var(--cty-color-light);--cty-stepper-input-disabled-color:var(--cty-text-color-primary);--cty-stepper-input-disabled-opacity:0.6;--cty-stepper-button-width:28px;--cty-stepper-button-height:28px;--cty-stepper-button-padding:0;--cty-stepper-button-offset:0 2px;--cty-stepper-button-color:var(--cty-text-color-primary);--cty-stepper-button-background:var(--cty-color-light);--cty-stepper-button-font-size:var(--cty-font-size-extra-large);--cty-stepper-minus-border-radius:4px 0 0 4px;--cty-stepper-plus-border-radius:0 4px 4px 0;--cty-stepper-button-disabled-color:#c8c9cc;--cty-stepper-button-disabled-background:var(--cty-color-light);--cty-stepper-button-disabled-opacity:.6;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.cty-input-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:var(--cty-stepper-input-width);height:var(--cty-stepper-input-height);margin:var(--cty-stepper-input-offset)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.cty-stepper_input{width:100%;height:100%;background:transparent;border:0;outline:none;text-align:center;vertical-align:middle;background:var(--cty-stepper-input-background);color:var(--cty-stepper-input-color);font-size:var(--cty-stepper-input-font-size)}.cty-stepper_input[disabled]{color:var(--cty-stepper-input-disabled-color);background:var(--cty-stepper-input-disabled-background);opacity:var(--cty-stepper-input-disabled-opacity);cursor:not-allowed}.cty-button-native{width:var(--cty-stepper-button-width);height:var(--cty-stepper-button-height);padding:var(--cty-stepper-button-padding);margin:var(--cty-stepper-button-offset);background:var(--cty-stepper-button-background);color:var(--cty-stepper-button-color);font-size:var(--cty-stepper-button-font-size)}.cty-button-native[disabled]{color:var(--cty-stepper-button-disabled-color);background:var(--cty-stepper-button-disabled-background);opacity:var(--cty-stepper-button-disabled-opacity);cursor:not-allowed}.cty-stepper_minus{--border-radius:var(--cty-stepper-minus-border-radius)}.cty-stepper_plus{--border-radius:var(--cty-stepper-plus-border-radius)}";
|
|
4
|
+
const stepperCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-stepper-input-width:32px;--cty-stepper-input-height:28px;--cty-stepper-input-offset:0 2px;--cty-stepper-input-padding:0;--cty-stepper-input-background:var(--cty-color-light);--cty-stepper-input-font-size:var(--cty-font-size-base);--cty-stepper-input-color:var(--cty-text-color-primary);--cty-stepper-input-disabled-background:var(--cty-color-light);--cty-stepper-input-disabled-color:var(--cty-text-color-primary);--cty-stepper-input-disabled-opacity:0.6;--cty-stepper-button-width:28px;--cty-stepper-button-height:28px;--cty-stepper-button-padding:0;--cty-stepper-button-offset:0 2px;--cty-stepper-button-color:var(--cty-text-color-primary);--cty-stepper-button-background:var(--cty-color-light);--cty-stepper-button-font-size:var(--cty-font-size-extra-large);--cty-stepper-minus-border-radius:4px 0 0 4px;--cty-stepper-plus-border-radius:0 4px 4px 0;--cty-stepper-button-disabled-color:#c8c9cc;--cty-stepper-button-disabled-background:var(--cty-color-light);--cty-stepper-button-disabled-opacity:.6;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.cty-input-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:var(--cty-stepper-input-width);height:var(--cty-stepper-input-height);margin:var(--cty-stepper-input-offset)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.cty-stepper_input{width:100%;height:100%;background:transparent;border:0;outline:none;text-align:center;vertical-align:middle;background:var(--cty-stepper-input-background);padding:var(--cty-stepper-input-padding);color:var(--cty-stepper-input-color);font-size:var(--cty-stepper-input-font-size)}.cty-stepper_input[disabled]{color:var(--cty-stepper-input-disabled-color);background:var(--cty-stepper-input-disabled-background);opacity:var(--cty-stepper-input-disabled-opacity);cursor:not-allowed}.cty-button-native{width:var(--cty-stepper-button-width);height:var(--cty-stepper-button-height);padding:var(--cty-stepper-button-padding);margin:var(--cty-stepper-button-offset);background:var(--cty-stepper-button-background);color:var(--cty-stepper-button-color);font-size:var(--cty-stepper-button-font-size)}.cty-button-native[disabled]{color:var(--cty-stepper-button-disabled-color);background:var(--cty-stepper-button-disabled-background);opacity:var(--cty-stepper-button-disabled-opacity);cursor:not-allowed}.cty-stepper_minus{--border-radius:var(--cty-stepper-minus-border-radius)}.cty-stepper_plus{--border-radius:var(--cty-stepper-plus-border-radius)}";
|
|
5
5
|
const CtyStepperStyle0 = stepperCss;
|
|
6
6
|
|
|
7
7
|
const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends HTMLElement {
|