@webquark/browser 1.1.0-dev.12 → 1.1.0-dev.13
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/cjs/{action.props-DmLaQuU2.js → action.props-B6vl_1p5.js} +1 -1
- package/dist/cjs/{field-CEZ9NsWK.js → field-B5nxD8Kc.js} +1 -1
- package/dist/cjs/{index-CMAcJ6t1.js → index-BD6Jjssb.js} +4 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +2 -2
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q-banner.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +3 -3
- package/dist/cjs/q-card.cjs.entry.js +1 -1
- package/dist/cjs/q-carousel.cjs.entry.js +119 -17
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-control-group.cjs.entry.js +64 -0
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +4 -4
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-divider.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +218 -21
- package/dist/cjs/q-form.cjs.entry.js +14 -4
- package/dist/cjs/q-grid.cjs.entry.js +1 -1
- package/dist/cjs/q-icon.cjs.entry.js +1 -1
- package/dist/cjs/q-image-comparison.cjs.entry.js +1 -1
- package/dist/cjs/q-inline.cjs.entry.js +1 -1
- package/dist/cjs/q-input_2.cjs.entry.js +6 -6
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +2 -2
- package/dist/cjs/q-media.cjs.entry.js +1 -1
- package/dist/cjs/q-navbar.cjs.entry.js +1 -1
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +1 -1
- package/dist/cjs/q-quantity-selector.cjs.entry.js +6 -6
- package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/q-reel.cjs.entry.js +1 -1
- package/dist/cjs/q-scrollable.cjs.entry.js +1 -1
- package/dist/cjs/q-section.cjs.entry.js +1 -1
- package/dist/cjs/q-sidepanel.cjs.entry.js +1 -1
- package/dist/cjs/q-slider.cjs.entry.js +2 -2
- package/dist/cjs/q-stack.cjs.entry.js +1 -1
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +3 -3
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +1 -1
- package/dist/cjs/q-textarea.cjs.entry.js +4 -4
- package/dist/cjs/q-thumbnail.cjs.entry.js +1 -1
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +6 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/actions/button/button.css +22 -0
- package/dist/collection/components/content/carousel/carousel.css +7 -0
- package/dist/collection/components/content/carousel/carousel.js +256 -10
- package/dist/collection/components/content/carousel/internals/autoplay.js +31 -6
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +122 -0
- package/dist/collection/components/data-display/accordion/accordion.js +1 -1
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
- package/dist/collection/components/inputs/dropdown/dropdown.css +115 -0
- package/dist/collection/components/inputs/dropdown/dropdown.js +274 -23
- package/dist/collection/components/inputs/dropdown/test/fit-options.cmp.test.js +120 -0
- package/dist/collection/components/inputs/dropdown/test/multiple.cmp.test.js +124 -0
- package/dist/collection/components/inputs/form/form.js +2 -2
- package/dist/collection/components/inputs/form/internals/field-state.js +6 -1
- package/dist/collection/components/inputs/form/internals/values.js +5 -0
- package/dist/collection/components/inputs/input/input.css +22 -0
- package/dist/collection/components/inputs/input/input.js +3 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +22 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
- package/dist/collection/components/inputs/slider/slider.js +1 -1
- package/dist/collection/components/inputs/textarea/textarea.js +2 -2
- package/dist/collection/components/inputs/toggle/toggle.css +22 -0
- package/dist/collection/components/inputs/toggle/toggle.js +3 -3
- package/dist/collection/components/layout/control-group/control-group.css +108 -0
- package/dist/collection/components/layout/control-group/control-group.js +142 -0
- package/dist/collection/components/layout/control-group/test/control-group.cmp.test.js +163 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-4mHh96ug.js → p-BGHNFaaC.js} +1 -1
- package/dist/components/{p-BbY1XC6_.js → p-BZXIeEKC.js} +1 -1
- package/dist/components/{p-DbI_F3z0.js → p-Bc2_QcLn.js} +1 -1
- package/dist/components/{p-BKly3Y6e.js → p-Bp6Xr92S.js} +1 -1
- package/dist/components/{p-CSucjZb7.js → p-BwPMm43W.js} +1 -1
- package/dist/components/p-CpkX9YAW.js +1 -0
- package/dist/components/{p-CLErjC1f.js → p-D2nxHd1b.js} +1 -1
- package/dist/components/{p-DQhiqYeq.js → p-DkanItP3.js} +1 -1
- package/dist/components/p-IwIJb0Mc.js +1 -0
- package/dist/components/{p-0feRVg70.js → p-kfrqZyfJ.js} +1 -1
- package/dist/components/{p-CYG3Oakz.js → p-x3C-wjU9.js} +1 -1
- package/dist/components/q-accordion.js +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-control-group.d.ts +11 -0
- package/dist/components/q-control-group.js +1 -0
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-divider.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.js +1 -1
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-image-comparison.js +1 -1
- package/dist/components/q-inline.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.js +1 -1
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.js +1 -1
- package/dist/components/q-sidepanel.js +1 -1
- package/dist/components/q-slider.js +1 -1
- package/dist/components/q-stack.js +1 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +2 -2
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-DhnvhbLl.js → action.props-Di_LpF5H.js} +1 -1
- package/dist/esm/{field-u-k7C7Rf.js → field-C4Iilew6.js} +1 -1
- package/dist/esm/{index-DaJmsCb7.js → index-DoGM9gsC.js} +4 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +2 -2
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +1 -1
- package/dist/esm/q-banner.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +3 -3
- package/dist/esm/q-card.entry.js +1 -1
- package/dist/esm/q-carousel.entry.js +119 -17
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-control-group.entry.js +62 -0
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-divider.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +218 -21
- package/dist/esm/q-form.entry.js +14 -4
- package/dist/esm/q-grid.entry.js +1 -1
- package/dist/esm/q-icon.entry.js +1 -1
- package/dist/esm/q-image-comparison.entry.js +1 -1
- package/dist/esm/q-inline.entry.js +1 -1
- package/dist/esm/q-input_2.entry.js +6 -6
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +2 -2
- package/dist/esm/q-media.entry.js +1 -1
- package/dist/esm/q-navbar.entry.js +1 -1
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +1 -1
- package/dist/esm/q-quantity-selector.entry.js +6 -6
- package/dist/esm/q-radio-group.entry.js +4 -4
- package/dist/esm/q-reel.entry.js +1 -1
- package/dist/esm/q-scrollable.entry.js +1 -1
- package/dist/esm/q-section.entry.js +1 -1
- package/dist/esm/q-sidepanel.entry.js +1 -1
- package/dist/esm/q-slider.entry.js +2 -2
- package/dist/esm/q-stack.entry.js +1 -1
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +3 -3
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +1 -1
- package/dist/esm/q-textarea.entry.js +4 -4
- package/dist/esm/q-thumbnail.entry.js +1 -1
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +6 -6
- package/dist/esm/q-toolbar.entry.js +1 -1
- package/dist/esm/webquark.js +3 -3
- package/dist/types/components/content/carousel/carousel.d.ts +23 -2
- package/dist/types/components/content/carousel/carousel.types.d.ts +6 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +5 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +29 -2
- package/dist/types/components/inputs/dropdown/test/fit-options.cmp.test.d.ts +3 -0
- package/dist/types/components/inputs/dropdown/test/multiple.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +1 -1
- package/dist/types/components/layout/control-group/control-group.d.ts +20 -0
- package/dist/types/components/layout/control-group/test/control-group.cmp.test.d.ts +7 -0
- package/dist/types/components.d.ts +148 -9
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/form-field-adapter.d.ts +3 -3
- package/dist/webquark/{p-b8f4994a.entry.js → p-0182e114.entry.js} +1 -1
- package/dist/webquark/{p-2c195546.entry.js → p-048103e0.entry.js} +1 -1
- package/dist/webquark/{p-3430b43c.entry.js → p-0a2c52de.entry.js} +1 -1
- package/dist/webquark/{p-b577b258.entry.js → p-0baf478a.entry.js} +1 -1
- package/dist/webquark/{p-5d6fb0d1.entry.js → p-15bad9ef.entry.js} +1 -1
- package/dist/webquark/{p-253add6d.entry.js → p-17b9713f.entry.js} +1 -1
- package/dist/webquark/{p-253fb28b.entry.js → p-222405b8.entry.js} +1 -1
- package/dist/webquark/{p-7a47e0c3.entry.js → p-2eaa3a9f.entry.js} +1 -1
- package/dist/webquark/{p-e7384b6e.entry.js → p-3daafc56.entry.js} +1 -1
- package/dist/webquark/{p-45e0d213.entry.js → p-44bbe12f.entry.js} +1 -1
- package/dist/webquark/{p-dee50f0a.entry.js → p-4609c362.entry.js} +1 -1
- package/dist/webquark/{p-aca37b06.entry.js → p-5b584d3c.entry.js} +1 -1
- package/dist/webquark/p-65fe9cac.entry.js +1 -0
- package/dist/webquark/{p-e930a769.entry.js → p-846dc838.entry.js} +1 -1
- package/dist/webquark/{p-d2c4696f.entry.js → p-84b350a3.entry.js} +1 -1
- package/dist/webquark/p-85131314.entry.js +1 -0
- package/dist/webquark/{p-58aaa98b.entry.js → p-852e88ae.entry.js} +1 -1
- package/dist/webquark/{p-596737cc.entry.js → p-86c05afd.entry.js} +1 -1
- package/dist/webquark/p-8c5b2706.entry.js +1 -0
- package/dist/webquark/p-923527f0.entry.js +1 -0
- package/dist/webquark/{p-33234157.entry.js → p-9a76cd71.entry.js} +1 -1
- package/dist/webquark/{p-BuctNczf.js → p-DDUED8LT.js} +1 -1
- package/dist/webquark/{p-Bk4FnOfb.js → p-Dnz3WmdX.js} +1 -1
- package/dist/webquark/{p-DaJmsCb7.js → p-DoGM9gsC.js} +1 -1
- package/dist/webquark/p-a0d97367.entry.js +1 -0
- package/dist/webquark/{p-3af50215.entry.js → p-a16bd8d5.entry.js} +2 -2
- package/dist/webquark/{p-fa15a69b.entry.js → p-a2334abe.entry.js} +1 -1
- package/dist/webquark/{p-5cccb6bc.entry.js → p-a2ff1b64.entry.js} +1 -1
- package/dist/webquark/{p-a199de7d.entry.js → p-a314bc21.entry.js} +1 -1
- package/dist/webquark/{p-848e040a.entry.js → p-a3e1096d.entry.js} +1 -1
- package/dist/webquark/{p-3726655f.entry.js → p-a66550da.entry.js} +1 -1
- package/dist/webquark/{p-b75ec829.entry.js → p-aa342e81.entry.js} +1 -1
- package/dist/webquark/{p-b702f60a.entry.js → p-b1c771fb.entry.js} +1 -1
- package/dist/webquark/p-b21ad707.entry.js +1 -0
- package/dist/webquark/{p-99ed0b0d.entry.js → p-b45ca926.entry.js} +1 -1
- package/dist/webquark/{p-29897ae6.entry.js → p-b8fdef4f.entry.js} +1 -1
- package/dist/webquark/{p-78c56cd3.entry.js → p-d4788321.entry.js} +1 -1
- package/dist/webquark/{p-01a59ac3.entry.js → p-d86bd51d.entry.js} +1 -1
- package/dist/webquark/{p-b82aaf4c.entry.js → p-dbcf7592.entry.js} +1 -1
- package/dist/webquark/p-e0943d41.entry.js +1 -0
- package/dist/webquark/{p-dcea3702.entry.js → p-e2721e77.entry.js} +1 -1
- package/dist/webquark/{p-ddeb2d4c.entry.js → p-e723a7ae.entry.js} +1 -1
- package/dist/webquark/{p-c2edfa2c.entry.js → p-eb800d1e.entry.js} +1 -1
- package/dist/webquark/{p-fbd1cbbe.entry.js → p-f4d23ffe.entry.js} +1 -1
- package/dist/webquark/{p-156d2fcf.entry.js → p-f51e1098.entry.js} +1 -1
- package/dist/webquark/{p-44eda084.entry.js → p-fe14f038.entry.js} +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-cSh-5xis.js +0 -1
- package/dist/webquark/p-2e26f158.entry.js +0 -1
- package/dist/webquark/p-473a1810.entry.js +0 -1
- package/dist/webquark/p-881ecd5b.entry.js +0 -1
- package/dist/webquark/p-8a0733a1.entry.js +0 -1
- package/dist/webquark/p-f20ed85a.entry.js +0 -1
- package/dist/webquark/p-f95aeb8d.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BD6Jjssb.js');
|
|
4
4
|
var dom = require('./dom-BYrqRYna.js');
|
|
5
5
|
|
|
6
6
|
/** Own only temporary accessibility attributes; restore authored values on release. */
|
|
@@ -67,13 +67,17 @@ class CarouselAutoplay {
|
|
|
67
67
|
};
|
|
68
68
|
requested = false;
|
|
69
69
|
timer;
|
|
70
|
+
completed = false;
|
|
70
71
|
constructor(advance, changed) {
|
|
71
72
|
this.advance = advance;
|
|
72
73
|
this.changed = changed;
|
|
73
74
|
}
|
|
74
75
|
configure(config) {
|
|
75
76
|
const interval = Number.isFinite(config.interval) && config.interval > 0 ? config.interval : 5000;
|
|
76
|
-
const
|
|
77
|
+
const visitChanged = config.visitKey !== this.config.visitKey;
|
|
78
|
+
const timingChanged = interval !== this.config.interval || config.timing !== this.config.timing || visitChanged;
|
|
79
|
+
if (visitChanged)
|
|
80
|
+
this.completed = false;
|
|
77
81
|
if (!config.enabled)
|
|
78
82
|
this.requested = false;
|
|
79
83
|
else if (!this.config.enabled)
|
|
@@ -99,22 +103,43 @@ class CarouselAutoplay {
|
|
|
99
103
|
this.config = { ...this.config, suspended: true };
|
|
100
104
|
this.sync();
|
|
101
105
|
}
|
|
106
|
+
complete(visitKey) {
|
|
107
|
+
if (this.config.timing !== 'completion' || visitKey !== this.config.visitKey)
|
|
108
|
+
return;
|
|
109
|
+
this.completed = true;
|
|
110
|
+
this.sync();
|
|
111
|
+
}
|
|
102
112
|
sync() {
|
|
103
113
|
const playing = this.requested && this.config.enabled && this.config.navigable && !this.config.suspended;
|
|
104
|
-
|
|
114
|
+
const advancing = playing && !this.config.advanceSuspended;
|
|
115
|
+
this.changed(playing, this.requested);
|
|
116
|
+
if (!advancing || this.config.timing === 'pending') {
|
|
105
117
|
this.clearTimer();
|
|
106
|
-
|
|
107
|
-
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (this.config.timing === 'completion') {
|
|
121
|
+
this.clearTimer();
|
|
122
|
+
if (this.completed) {
|
|
123
|
+
this.completed = false;
|
|
124
|
+
if (!this.advance())
|
|
125
|
+
this.pause();
|
|
126
|
+
}
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (this.timer === undefined) {
|
|
130
|
+
this.timer = setTimeout(() => {
|
|
131
|
+
this.timer = undefined;
|
|
108
132
|
if (!this.advance())
|
|
109
133
|
this.pause();
|
|
134
|
+
else
|
|
135
|
+
this.sync();
|
|
110
136
|
}, this.config.interval);
|
|
111
137
|
}
|
|
112
|
-
this.changed(playing, this.requested);
|
|
113
138
|
}
|
|
114
139
|
clearTimer() {
|
|
115
140
|
if (this.timer === undefined)
|
|
116
141
|
return;
|
|
117
|
-
|
|
142
|
+
clearTimeout(this.timer);
|
|
118
143
|
this.timer = undefined;
|
|
119
144
|
}
|
|
120
145
|
}
|
|
@@ -179,13 +204,14 @@ function getClosestCarouselIndex(options) {
|
|
|
179
204
|
return closestIndex;
|
|
180
205
|
}
|
|
181
206
|
|
|
182
|
-
const carouselCss = () => `:host{display:block;width:100%;box-sizing:border-box;position:relative}::slotted(:not([slot='controls-extra'])){box-sizing:border-box;flex:var(--q-carousel-item-flex, 0 0 auto);width:var(--q-carousel-item-width, auto);scroll-snap-align:var(--q-carousel-snap-align, none)}.carousel-wrapper{position:relative;width:100%;box-sizing:border-box;display:flex;flex-direction:column}:host([layout='slideshow']){--q-carousel-padding:0;--q-carousel-gap:0}.carousel-viewport{display:flex;order:1;flex-direction:row;overflow-x:auto;width:100%;gap:var(--q-carousel-gap, 16px);padding:var(--q-carousel-padding, 48px 40px);box-sizing:border-box;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;outline:none}.carousel-viewport.viewport-focusable:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.carousel-viewport::-webkit-scrollbar{display:none}.carousel-viewport{-ms-overflow-style:none;scrollbar-width:none}.snap-start{scroll-snap-type:x mandatory}.snap-center{scroll-snap-type:x mandatory}.snap-end{scroll-snap-type:x mandatory}.carousel-arrow{display:contents}.arrow-btn{position:absolute;top:50%;transform:translateY(-50%);width:var(--q-carousel-arrow-size, 40px);height:var(--q-carousel-arrow-size, 40px);border-radius:50%;background:var(--q-carousel-arrow-bg, var(--q-bg-surface-3, #4b5563));border:var(--q-carousel-arrow-border, var(--q-border, 1px solid var(--q-border-color, #374151)));color:var(--q-carousel-arrow-color, var(--q-fg-base, #f9fafb));display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;outline:none;box-shadow:0 8px 16px rgba(0, 0, 0, 0.3);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0,0,0,0.3));opacity:0;user-select:none;-webkit-user-select:none;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.arrow-left{left:8px}.arrow-right{right:8px}.carousel-wrapper:hover .arrow-btn,.carousel-wrapper:focus-within .arrow-btn{opacity:1}.arrow-btn:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1;z-index:12}.arrow-btn:hover{background:var(--q-color-primary, #60a5fa);border-color:var(--q-color-primary, #60a5fa);color:var(--q-bg-base, #111827);transform:translateY(-50%) scale(1.08)}.arrow-btn:active{transform:translateY(-50%) scale(0.95)}.arrow-btn[aria-disabled="true"]{opacity:0.25 !important;pointer-events:none;cursor:not-allowed;transform:translateY(-50%) scale(0.9)}.arrow-btn svg{width:20px;height:20px}.carousel-controls{display:flex;order:2;max-width:100%;flex-direction:column;align-items:center;gap:var(--q-carousel-controls-gap, 0px)}.carousel-controls[hidden]{display:none}.carousel-indicators{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--q-carousel-indicator-gap, 8px);margin-top:var(--q-carousel-indicator-margin-top, 16px);width:100%}.indicator-dot{flex-shrink:0;padding:0;width:var(--q-carousel-indicator-size, 6px);height:var(--q-carousel-indicator-size, 6px);border-radius:var(--q-carousel-indicator-size, 6px);background:var(--q-fg-muted, #9ca3af);border:none;cursor:pointer;outline:none;opacity:0.5;user-select:none;-webkit-user-select:none;transition:width var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.indicator-dot:hover{opacity:0.8}.indicator-dot:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1}.indicator-dot.is-active{background:var(--q-color-primary, #60a5fa);opacity:1;width:calc(var(--q-carousel-indicator-size, 6px) * 2.5)}.carousel-viewport.is-stacked{display:grid;overflow:hidden;gap:0;scroll-snap-type:none;touch-action:pan-y pinch-zoom;isolation:isolate}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])),:host([transition='instant']) ::slotted(:not([slot='controls-extra'])){grid-area:1 / 1;width:100%;min-width:0;opacity:0;pointer-events:none;z-index:0}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:opacity var(--q-carousel-transition-duration, 500ms) ease-in-out}:host([transition='crossfade']) ::slotted([data-q-carousel-active='true']),:host([transition='instant']) ::slotted([data-q-carousel-active='true']){opacity:1;pointer-events:auto;z-index:1}@media (prefers-reduced-motion: reduce){.carousel-viewport{scroll-behavior:auto}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:none}}.rotation-btn{min-width:44px;min-height:44px;max-width:100%;box-sizing:border-box;padding:var(--q-padding-sm, 8px) var(--q-padding-md, 12px);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:inherit;cursor:pointer}.rotation-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}@media (hover: none), (pointer: coarse){.arrow-btn{opacity:1}}`;
|
|
207
|
+
const carouselCss = () => `:host{display:block;width:100%;box-sizing:border-box;position:relative}::slotted(:not([slot='controls-extra'])){box-sizing:border-box;flex:var(--q-carousel-item-flex, 0 0 auto);width:var(--q-carousel-item-width, auto);scroll-snap-align:var(--q-carousel-snap-align, none)}.carousel-wrapper{position:relative;width:100%;box-sizing:border-box;display:flex;flex-direction:column}:host([layout='slideshow']){--q-carousel-padding:0;--q-carousel-gap:0}.carousel-viewport{display:flex;order:1;flex-direction:row;overflow-x:auto;width:100%;gap:var(--q-carousel-gap, 16px);padding:var(--q-carousel-padding, 48px 40px);box-sizing:border-box;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;outline:none}.carousel-viewport.viewport-focusable:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.carousel-viewport::-webkit-scrollbar{display:none}.carousel-viewport{-ms-overflow-style:none;scrollbar-width:none}.snap-start{scroll-snap-type:x mandatory}.snap-center{scroll-snap-type:x mandatory}.snap-end{scroll-snap-type:x mandatory}.carousel-arrow{display:contents}.arrow-btn{position:absolute;top:50%;transform:translateY(-50%);width:var(--q-carousel-arrow-size, 40px);height:var(--q-carousel-arrow-size, 40px);border-radius:50%;background:var(--q-carousel-arrow-bg, var(--q-bg-surface-3, #4b5563));border:var(--q-carousel-arrow-border, var(--q-border, 1px solid var(--q-border-color, #374151)));color:var(--q-carousel-arrow-color, var(--q-fg-base, #f9fafb));display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;outline:none;box-shadow:0 8px 16px rgba(0, 0, 0, 0.3);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0,0,0,0.3));opacity:0;user-select:none;-webkit-user-select:none;transition:opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), transform var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.arrow-left{left:8px}.arrow-right{right:8px}.carousel-wrapper:hover .arrow-btn,.carousel-wrapper:focus-within .arrow-btn{opacity:1}.arrow-btn:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1;z-index:12}.arrow-btn:hover{background:var(--q-color-primary, #60a5fa);border-color:var(--q-color-primary, #60a5fa);color:var(--q-bg-base, #111827);transform:translateY(-50%) scale(1.08)}.arrow-btn:active{transform:translateY(-50%) scale(0.95)}.arrow-btn[aria-disabled="true"]{opacity:0.25 !important;pointer-events:none;cursor:not-allowed;transform:translateY(-50%) scale(0.9)}.arrow-btn svg{width:20px;height:20px}.carousel-controls{display:flex;order:2;max-width:100%;flex-direction:column;align-items:center;gap:var(--q-carousel-controls-gap, 0px)}.carousel-controls[hidden]{display:none}.carousel-indicators{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--q-carousel-indicator-gap, 8px);margin-top:var(--q-carousel-indicator-margin-top, 16px);width:100%}.indicator-dot{flex-shrink:0;padding:0;width:var(--q-carousel-indicator-size, 6px);height:var(--q-carousel-indicator-size, 6px);border-radius:var(--q-carousel-indicator-size, 6px);background:var(--q-fg-muted, #9ca3af);border:none;cursor:pointer;outline:none;opacity:0.5;user-select:none;-webkit-user-select:none;transition:width var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1)), opacity var(--q-transition-normal, 250ms cubic-bezier(0.4, 0, 0.2, 1))}.indicator-dot:hover{opacity:0.8}.indicator-dot:focus-visible{outline:none;box-shadow:0 0 0 2px var(--q-bg-base, #111827), 0 0 0 4px var(--q-color-primary, #60a5fa);opacity:1}.indicator-dot.is-active{background:var(--q-color-primary, #60a5fa);opacity:1;width:calc(var(--q-carousel-indicator-size, 6px) * 2.5)}.carousel-viewport.is-stacked{display:grid;overflow:hidden;gap:0;scroll-snap-type:none;touch-action:pan-y pinch-zoom;isolation:isolate}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])),:host([transition='instant']) ::slotted(:not([slot='controls-extra'])){grid-area:1 / 1;width:100%;min-width:0;opacity:0;pointer-events:none;z-index:0}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:opacity var(--q-carousel-transition-duration, 500ms) ease-in-out}:host([transition='crossfade']) ::slotted([data-q-carousel-active='true']),:host([transition='instant']) ::slotted([data-q-carousel-active='true']){opacity:1;pointer-events:auto;z-index:1}@media (prefers-reduced-motion: reduce){.carousel-viewport{scroll-behavior:auto}:host([transition='crossfade']) ::slotted(:not([slot='controls-extra'])){transition:none}}.rotation-btn{min-width:44px;min-height:44px;max-width:100%;box-sizing:border-box;padding:var(--q-padding-sm, 8px) var(--q-padding-md, 12px);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:inherit;cursor:pointer}.rotation-btn:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}@media (hover: none), (pointer: coarse){.arrow-btn{opacity:1}}.rotation-btn.is-overlay{position:absolute;inset-block-end:var(--q-padding-md, 1rem);inset-inline-end:var(--q-padding-md, 1rem);z-index:3}`;
|
|
183
208
|
|
|
184
209
|
const QCarousel = class {
|
|
185
210
|
constructor(hostRef) {
|
|
186
211
|
index.registerInstance(this, hostRef);
|
|
187
212
|
this.qSlideChange = index.createEvent(this, "qSlideChange");
|
|
188
213
|
this.qAutoplayChange = index.createEvent(this, "qAutoplayChange");
|
|
214
|
+
this.qPlaybackChange = index.createEvent(this, "qPlaybackChange");
|
|
189
215
|
}
|
|
190
216
|
// ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
|
|
191
217
|
/** Slideshow provides full-width slides with no default viewport inset or gap. */
|
|
@@ -193,6 +219,8 @@ const QCarousel = class {
|
|
|
193
219
|
snapAlignment = 'start';
|
|
194
220
|
/** `auto` preserves each slotted item's natural width. */
|
|
195
221
|
itemWidth = 'auto';
|
|
222
|
+
/** Overlay keeps playback separate from the indicators/extra-controls panel. */
|
|
223
|
+
rotationPlacement = 'controls';
|
|
196
224
|
/** Omitted controls are enabled for navigable slideshows and disabled for strips. */
|
|
197
225
|
showArrows;
|
|
198
226
|
/** Shows clickable slide indicator dots when the carousel can scroll. */
|
|
@@ -203,12 +231,18 @@ const QCarousel = class {
|
|
|
203
231
|
transition = 'slide';
|
|
204
232
|
/** Crossfade duration in milliseconds; native sliding keeps browser-controlled timing. */
|
|
205
233
|
transitionDuration = 500;
|
|
206
|
-
/** Enables rotation
|
|
234
|
+
/** Enables rotation with the configured interaction behavior. */
|
|
207
235
|
autoplay = false;
|
|
236
|
+
/** Continuous rotation ignores hover and interaction; explicit pause remains available. */
|
|
237
|
+
autoplayBehavior = 'pauseOnInteraction';
|
|
208
238
|
/** Finite positive interval in milliseconds; invalid values use 5000. */
|
|
209
239
|
autoplayInterval = 5000;
|
|
210
240
|
/** Temporarily suspends requested playback without changing the button action. */
|
|
211
241
|
autoplaySuspended = false;
|
|
242
|
+
/** Finish-videos delegates each active visit's timing to setSlidePlayback(). */
|
|
243
|
+
slideTiming = 'fixedInterval';
|
|
244
|
+
/** Holds advancement for loading without pausing the active media. */
|
|
245
|
+
autoplayAdvanceSuspended = false;
|
|
212
246
|
/** Accessible name forwarded to the slide viewport. */
|
|
213
247
|
ariaLabel = 'Carousel content';
|
|
214
248
|
hasExtraControls = false;
|
|
@@ -222,6 +256,8 @@ const QCarousel = class {
|
|
|
222
256
|
qSlideChange;
|
|
223
257
|
/** Actual running state, including temporary suspension. */
|
|
224
258
|
qAutoplayChange;
|
|
259
|
+
/** Playback intent and eligibility, independent of an image-readiness advance hold. */
|
|
260
|
+
qPlaybackChange;
|
|
225
261
|
get el() { return index.getElement(this); }
|
|
226
262
|
slideState = new CarouselSlideState();
|
|
227
263
|
touchStart;
|
|
@@ -234,6 +270,10 @@ const QCarousel = class {
|
|
|
234
270
|
get navigable() {
|
|
235
271
|
return this.isScrollable && this.maxIndex > 0;
|
|
236
272
|
}
|
|
273
|
+
get rotationVisible() {
|
|
274
|
+
return this.autoplay && (this.navigable ||
|
|
275
|
+
(this.slideTiming === 'finishVideos' && this.slidePlayback?.mode === 'completion'));
|
|
276
|
+
}
|
|
237
277
|
get arrowsVisible() {
|
|
238
278
|
return this.navigable && (this.showArrows ?? this.layout === 'slideshow');
|
|
239
279
|
}
|
|
@@ -262,12 +302,16 @@ const QCarousel = class {
|
|
|
262
302
|
programmaticScrollToken = 0;
|
|
263
303
|
connected = false;
|
|
264
304
|
hovered = false;
|
|
305
|
+
selectedElement;
|
|
306
|
+
selectionGeneration = 0;
|
|
307
|
+
slidePlayback;
|
|
308
|
+
playbackState = '';
|
|
265
309
|
reducedMotion = false;
|
|
266
310
|
motionPreference;
|
|
267
311
|
rotationButton;
|
|
268
312
|
rotationPointerAction;
|
|
269
313
|
autoplayController = new CarouselAutoplay(() => {
|
|
270
|
-
if (!this.repeat && this.activeIndex >= this.maxIndex)
|
|
314
|
+
if (!this.navigable || (!this.repeat && this.activeIndex >= this.maxIndex))
|
|
271
315
|
return false;
|
|
272
316
|
this.scrollToIndex(this.activeIndex + 1);
|
|
273
317
|
return true;
|
|
@@ -277,6 +321,11 @@ const QCarousel = class {
|
|
|
277
321
|
this.autoplayPlaying = playing;
|
|
278
322
|
if (changed)
|
|
279
323
|
this.qAutoplayChange.emit({ playing });
|
|
324
|
+
const state = `${playing}:${requested}`;
|
|
325
|
+
if (state !== this.playbackState) {
|
|
326
|
+
this.playbackState = state;
|
|
327
|
+
this.qPlaybackChange.emit({ playing, requested });
|
|
328
|
+
}
|
|
280
329
|
});
|
|
281
330
|
// ========================= [3] LIFECYCLE & WATCHERS ==========================
|
|
282
331
|
layoutChanged() {
|
|
@@ -351,12 +400,34 @@ const QCarousel = class {
|
|
|
351
400
|
this.calculateLimits();
|
|
352
401
|
if (this.autoplay && this.navigable && !this.repeat && this.activeIndex >= this.maxIndex)
|
|
353
402
|
this.scrollToIndex(0);
|
|
403
|
+
if (this.slideTiming === 'finishVideos' && !this.navigable && this.slidePlayback?.ended) {
|
|
404
|
+
this.slidePlayback = undefined;
|
|
405
|
+
this.selectionGeneration += 1;
|
|
406
|
+
this.syncAutoplay();
|
|
407
|
+
this.qSlideChange.emit({ index: this.activeIndex, element: this.cachedChildren[this.activeIndex] });
|
|
408
|
+
}
|
|
354
409
|
this.autoplayController.play();
|
|
355
410
|
}
|
|
356
411
|
/** Stops rotation until play() or the playback control explicitly restarts it. */
|
|
357
412
|
async pause() {
|
|
358
413
|
this.autoplayController.pause();
|
|
359
414
|
}
|
|
415
|
+
/** Registers timing for the current slide and responsive-media visit only. */
|
|
416
|
+
async setSlidePlayback(element, key, mode) {
|
|
417
|
+
if (this.slideTiming !== 'finishVideos' || element !== this.cachedChildren[this.activeIndex])
|
|
418
|
+
return;
|
|
419
|
+
if (this.slidePlayback?.key === key && this.slidePlayback.mode === mode)
|
|
420
|
+
return;
|
|
421
|
+
this.slidePlayback = { element, key, mode, ended: false };
|
|
422
|
+
this.syncAutoplay();
|
|
423
|
+
}
|
|
424
|
+
/** Completes the registered visit; stale or duplicate media events are ignored. */
|
|
425
|
+
async completeSlide(key) {
|
|
426
|
+
if (this.slideTiming !== 'finishVideos' || this.slidePlayback?.key !== key || this.slidePlayback.ended)
|
|
427
|
+
return;
|
|
428
|
+
this.slidePlayback.ended = true;
|
|
429
|
+
this.autoplayController.complete(key);
|
|
430
|
+
}
|
|
360
431
|
/** Recalculates slide offsets, scroll bounds, and navigation states. */
|
|
361
432
|
async updateLimits() {
|
|
362
433
|
this.calculateLimits();
|
|
@@ -365,8 +436,16 @@ const QCarousel = class {
|
|
|
365
436
|
syncAutoplay = () => {
|
|
366
437
|
this.autoplayController.configure({
|
|
367
438
|
enabled: this.autoplay,
|
|
368
|
-
navigable: this.navigable,
|
|
369
|
-
|
|
439
|
+
navigable: this.navigable || this.rotationVisible,
|
|
440
|
+
timing: this.slideTiming === 'finishVideos' ? (this.slidePlayback?.mode ?? 'pending') : 'interval',
|
|
441
|
+
visitKey: this.slideTiming === 'finishVideos'
|
|
442
|
+
? (this.slidePlayback?.key ?? `pending:${this.selectionGeneration}`)
|
|
443
|
+
: undefined,
|
|
444
|
+
advanceSuspended: this.autoplayAdvanceSuspended,
|
|
445
|
+
suspended: !this.connected ||
|
|
446
|
+
(this.autoplayBehavior !== 'continuous' && this.hovered) ||
|
|
447
|
+
document.hidden ||
|
|
448
|
+
this.autoplaySuspended,
|
|
370
449
|
reducedMotion: this.reducedMotion,
|
|
371
450
|
interval: this.autoplayInterval,
|
|
372
451
|
});
|
|
@@ -384,9 +463,13 @@ const QCarousel = class {
|
|
|
384
463
|
}
|
|
385
464
|
handleInteraction = (event) => {
|
|
386
465
|
if (!this.isRotationEvent(event))
|
|
466
|
+
this.pauseOnInteraction();
|
|
467
|
+
};
|
|
468
|
+
pauseOnInteraction = () => {
|
|
469
|
+
if (this.autoplayBehavior !== 'continuous')
|
|
387
470
|
this.autoplayController.pause();
|
|
388
471
|
};
|
|
389
|
-
handleFocus = () => this.
|
|
472
|
+
handleFocus = () => this.pauseOnInteraction();
|
|
390
473
|
handleRotationClick = () => {
|
|
391
474
|
const play = this.rotationPointerAction ?? !this.autoplayRequested;
|
|
392
475
|
this.rotationPointerAction = undefined;
|
|
@@ -396,6 +479,13 @@ const QCarousel = class {
|
|
|
396
479
|
this.autoplayController.pause();
|
|
397
480
|
};
|
|
398
481
|
updateSlideState() {
|
|
482
|
+
const selected = this.cachedChildren[this.activeIndex];
|
|
483
|
+
if (selected !== this.selectedElement) {
|
|
484
|
+
this.selectedElement = selected;
|
|
485
|
+
this.selectionGeneration += 1;
|
|
486
|
+
this.slidePlayback = undefined;
|
|
487
|
+
this.syncAutoplay();
|
|
488
|
+
}
|
|
399
489
|
if (this.managesSlides)
|
|
400
490
|
this.slideState.update(this.cachedChildren, this.activeIndex, () => this.recoverSlideFocus());
|
|
401
491
|
else
|
|
@@ -623,7 +713,7 @@ const QCarousel = class {
|
|
|
623
713
|
handleIndicatorKeyDown = (e) => {
|
|
624
714
|
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
625
715
|
e.preventDefault();
|
|
626
|
-
this.
|
|
716
|
+
this.pauseOnInteraction();
|
|
627
717
|
const dots = Array.from(this.el.shadowRoot?.querySelectorAll('.indicator-dot') || []);
|
|
628
718
|
if (dots.length === 0)
|
|
629
719
|
return;
|
|
@@ -652,7 +742,7 @@ const QCarousel = class {
|
|
|
652
742
|
return;
|
|
653
743
|
event.preventDefault();
|
|
654
744
|
event.stopPropagation();
|
|
655
|
-
this.
|
|
745
|
+
this.pauseOnInteraction();
|
|
656
746
|
this.scrollToIndex(this.activeIndex + (event.key === 'ArrowRight' ? 1 : -1));
|
|
657
747
|
if (!this.viewportFocusable)
|
|
658
748
|
this.recoverSlideFocus();
|
|
@@ -679,15 +769,18 @@ const QCarousel = class {
|
|
|
679
769
|
this.hasExtraControls = slot.assignedElements().length > 0;
|
|
680
770
|
};
|
|
681
771
|
// ===================== [6] RENDER (Visual Template Only) =====================
|
|
772
|
+
renderRotationButton() {
|
|
773
|
+
return (index.h("button", { class: { 'rotation-btn': true, 'is-overlay': this.rotationPlacement === 'overlay' }, "aria-label": this.autoplayRequested ? 'Pause slideshow' : 'Play slideshow', part: "rotation-button", type: "button", onPointerDown: () => { this.rotationPointerAction = !this.autoplayRequested; }, onPointerCancel: () => { this.rotationPointerAction = undefined; }, onClick: this.handleRotationClick, ref: element => { this.rotationButton = element ?? undefined; } }, this.rotationPlacement === 'overlay' ? (this.autoplayRequested ? 'Ⅱ' : '▶') : (this.autoplayRequested ? 'Pause slideshow' : 'Play slideshow')));
|
|
774
|
+
}
|
|
682
775
|
render() {
|
|
683
776
|
const isFirst = this.repeat ? (!this.isScrollable || this.maxIndex <= 0) : (this.isAtStart || !this.isScrollable);
|
|
684
777
|
const isLast = this.repeat ? (!this.isScrollable || this.maxIndex <= 0) : (this.isAtEnd || !this.isScrollable);
|
|
685
|
-
return (index.h("div", { key: '
|
|
778
|
+
return (index.h("div", { key: 'ec56b70c1cdd706724c7da0102c812241833d706', class: "carousel-wrapper", onMouseEnter: () => this.handleHover(true), onMouseLeave: () => this.handleHover(false), onFocusin: this.handleFocus, onPointerDown: this.handleInteraction, onClick: this.handleInteraction }, this.rotationVisible && this.rotationPlacement === 'overlay' && this.renderRotationButton(), index.h("div", { key: 'd65322602f24ac502efc2a041f69f73c96775dc7', class: "carousel-controls", part: "controls", hidden: !this.indicatorsVisible && !(this.rotationVisible && this.rotationPlacement === 'controls') && !this.hasExtraControls }, this.rotationVisible && this.rotationPlacement === 'controls' && this.renderRotationButton(), this.indicatorsVisible && (index.h("div", { key: '30d2a569f136e337b91f1b107c790e03d684d785', class: "carousel-indicators", role: "group", "aria-label": "Carousel slide controls", onKeyDown: this.handleIndicatorKeyDown }, Array.from({ length: this.maxIndex + 1 }).map((_, idx) => (index.h("button", { class: { 'indicator-dot': true, 'is-active': idx === this.activeIndex }, part: "indicator", "aria-current": idx === this.activeIndex ? 'true' : undefined, onClick: () => this.scrollToIndex(idx), "aria-label": `Go to slide ${idx + 1}`, type: "button", tabindex: idx === this.activeIndex ? 0 : -1 }))))), index.h("slot", { key: '4e6d51345f247c3b53feac5b5e039eb5f6cb3008', name: "controls-extra", onSlotchange: this.handleExtraControlsChange })), index.h("div", { key: '21ad5d75d1e40e890c29d0449ae4b0e88965ff74', class: "carousel-arrow" }, this.arrowsVisible && (index.h("button", { key: 'a78e06f67637520b1be6e6292403ec9f2056f1a6', class: { 'arrow-btn': true, 'arrow-left': true }, part: "previous-button", "aria-disabled": isFirst ? 'true' : 'false', onClick: isFirst ? undefined : this.slidePrev, "aria-label": "Previous slide", type: "button" }, index.h("svg", { key: '79e0cb376b578cfb8aa34b8682d447869f8a739e', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("polyline", { key: '52c0c5c6c66c548e9c2e0cfc580116ed37e86002', points: "15 18 9 12 15 6" }))))), index.h("div", { key: '6f90c4cea424455495bad337134e586c6229d622', class: {
|
|
686
779
|
'carousel-viewport': true,
|
|
687
780
|
'is-stacked': this.stacked,
|
|
688
781
|
'viewport-focusable': this.viewportFocusable,
|
|
689
782
|
[`snap-${this.snapAlignment}`]: this.snapAlignment !== 'none'
|
|
690
|
-
}, role: "group", "aria-roledescription": "carousel", part: "viewport", tabindex: this.viewportFocusable ? 0 : -1, "aria-label": this.ariaLabel, "aria-live": this.managesSlides ? (this.autoplayPlaying ? 'off' : 'polite') : undefined, "aria-atomic": this.managesSlides ? 'false' : undefined, style: { '--q-carousel-transition-duration': `${Number.isFinite(this.transitionDuration) ? Math.max(0, this.transitionDuration) : 500}ms` }, onKeyDown: this.handleKeyDown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, onScroll: this.handleScroll, ref: this.setScrollContainerRef }, index.h("slot", { key: '
|
|
783
|
+
}, role: "group", "aria-roledescription": "carousel", part: "viewport", tabindex: this.viewportFocusable ? 0 : -1, "aria-label": this.ariaLabel, "aria-live": this.managesSlides ? (this.autoplayPlaying ? 'off' : 'polite') : undefined, "aria-atomic": this.managesSlides ? 'false' : undefined, style: { '--q-carousel-transition-duration': `${Number.isFinite(this.transitionDuration) ? Math.max(0, this.transitionDuration) : 500}ms` }, onKeyDown: this.handleKeyDown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, onScroll: this.handleScroll, ref: this.setScrollContainerRef }, index.h("slot", { key: '9c81f28218a752289de7f20f63e03d932ca24e33', onSlotchange: this.handleSlotChange })), index.h("div", { key: '9b760f5cf4d3c5e69f3704649458be1648394491', class: "carousel-arrow" }, this.arrowsVisible && (index.h("button", { key: '9233404c505c711a37f16dfb4032f4edd8949128', class: { 'arrow-btn': true, 'arrow-right': true }, part: "next-button", "aria-disabled": isLast ? 'true' : 'false', onClick: isLast ? undefined : this.slideNext, "aria-label": "Next slide", type: "button" }, index.h("svg", { key: 'bd5e9b26823d3596a2792d9cbe9a07e50fe08960', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "aria-hidden": "true" }, index.h("polyline", { key: 'cee4ae860783927a2c4e493dd3d26dce8e9f1bea', points: "9 18 15 12 9 6" })))))));
|
|
691
784
|
}
|
|
692
785
|
static get watchers() { return {
|
|
693
786
|
"layout": [{
|
|
@@ -702,12 +795,21 @@ const QCarousel = class {
|
|
|
702
795
|
"autoplay": [{
|
|
703
796
|
"autoplayChanged": 0
|
|
704
797
|
}],
|
|
798
|
+
"autoplayBehavior": [{
|
|
799
|
+
"autoplayChanged": 0
|
|
800
|
+
}],
|
|
705
801
|
"autoplayInterval": [{
|
|
706
802
|
"autoplayChanged": 0
|
|
707
803
|
}],
|
|
708
804
|
"autoplaySuspended": [{
|
|
709
805
|
"autoplayChanged": 0
|
|
710
806
|
}],
|
|
807
|
+
"autoplayAdvanceSuspended": [{
|
|
808
|
+
"autoplayChanged": 0
|
|
809
|
+
}],
|
|
810
|
+
"slideTiming": [{
|
|
811
|
+
"autoplayChanged": 0
|
|
812
|
+
}],
|
|
711
813
|
"transition": [{
|
|
712
814
|
"transitionChanged": 0
|
|
713
815
|
}]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var action_props = require('./action.props-
|
|
3
|
+
var index = require('./index-BD6Jjssb.js');
|
|
4
|
+
var action_props = require('./action.props-B6vl_1p5.js');
|
|
5
5
|
|
|
6
6
|
const chipCss = () => `:host{display:inline-flex;max-width:100%;box-sizing:border-box}:host([hidden]){display:none}.chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;border:var(--q-chip-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-chip-radius, 999px);box-sizing:border-box;color:var(--q-chip-fg, var(--q-fg-muted, #9ca3af));background:var(--q-chip-bg, var(--q-bg-surface-2, #374151));font-family:var(--q-font-family, inherit);font-weight:var(--q-chip-font-weight, var(--q-font-weight-bold, 600));line-height:1.2;text-decoration:none;white-space:nowrap;outline:none;user-select:none;-webkit-user-select:none;transition:background var(--q-transition-fast, 150ms ease), border-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease), transform var(--q-transition-fast, 150ms ease)}.chip.is-interactive{cursor:pointer}.chip.is-disabled{cursor:not-allowed;opacity:var(--q-chip-disabled-opacity, 0.55);pointer-events:none}.chip.is-removable{padding-inline-end:var(--q-chip-removable-padding-end, 4px)}.chip:focus-visible,.remove-button:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:var(--q-chip-focus-offset, 2px)}.chip.is-interactive:hover:not(.is-disabled){border-color:var(--q-chip-hover-border-color, var(--q-color-primary, #60a5fa));color:var(--q-chip-hover-fg, var(--q-fg-base, #f9fafb));background:rgba(249, 250, 251, 0.08);background:var(--q-chip-hover-bg, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, var(--q-chip-bg, transparent)))}.chip.is-interactive:active:not(.is-disabled){transform:var(--q-chip-active-transform, scale(0.97))}.size-sm{min-height:var(--q-chip-height-sm, 24px);gap:var(--q-chip-gap-sm, 5px);padding:var(--q-chip-padding-sm, 4px 9px);font-size:var(--q-chip-font-size-sm, var(--q-font-size-sm, 0.7rem))}.size-md{min-height:var(--q-chip-height-md, 30px);gap:var(--q-chip-gap-md, 7px);padding:var(--q-chip-padding-md, 6px 11px);font-size:var(--q-chip-font-size-md, var(--q-font-size-base, 0.9rem))}.size-lg{min-height:var(--q-chip-height-lg, 36px);gap:var(--q-chip-gap-lg, 9px);padding:var(--q-chip-padding-lg, 8px 14px);font-size:var(--q-chip-font-size-lg, var(--q-font-size-lg, 1rem))}.chip-label{min-width:0;overflow:hidden;text-overflow:ellipsis}::slotted([slot='icon-left']),::slotted([slot='icon-right']),::slotted(q-icon){flex:none}.variant-neutral{--q-chip-bg:var(--q-bg-surface-2, #374151);--q-chip-fg:var(--q-fg-base, #f9fafb)}.variant-filter{--q-chip-bg:var(--q-bg-surface-1, #1f2937);--q-chip-fg:var(--q-fg-muted, #9ca3af)}.variant-primary{--q-chip-bg:rgba(96, 165, 250, 0.16);--q-chip-bg:color-mix(in srgb, var(--q-color-primary, #60a5fa) 16%, transparent);--q-chip-fg:var(--q-color-primary, #60a5fa);border-color:color-mix(in srgb, var(--q-color-primary, #60a5fa) 34%, transparent)}.variant-success{--q-chip-bg:rgba(52, 211, 153, 0.14);--q-chip-bg:color-mix(in srgb, var(--q-color-success, #34d399) 14%, transparent);--q-chip-fg:var(--q-color-success, #34d399);border-color:color-mix(in srgb, var(--q-color-success, #34d399) 32%, transparent)}.variant-warning{--q-chip-bg:rgba(251, 191, 36, 0.16);--q-chip-bg:color-mix(in srgb, var(--q-color-warning, #fbbf24) 16%, transparent);--q-chip-fg:var(--q-color-warning, #fbbf24);border-color:color-mix(in srgb, var(--q-color-warning, #fbbf24) 34%, transparent)}.variant-danger{--q-chip-bg:rgba(248, 113, 113, 0.14);--q-chip-bg:color-mix(in srgb, var(--q-color-danger, #f87171) 14%, transparent);--q-chip-fg:var(--q-color-danger, #f87171);border-color:color-mix(in srgb, var(--q-color-danger, #f87171) 32%, transparent)}.chip.is-selected{border-color:var(--q-chip-selected-border-color, var(--q-color-primary, #60a5fa));color:var(--q-chip-selected-fg, var(--q-color-primary, #60a5fa));background:rgba(96, 165, 250, 0.16);background:var(--q-chip-selected-bg, color-mix(in srgb, var(--q-color-primary, #60a5fa) 16%, transparent))}.variant-primary.is-selected{color:var(--q-chip-primary-selected-fg, var(--q-bg-base, #111827));background:var(--q-color-primary, #60a5fa);border-color:var(--q-color-primary, #60a5fa)}.variant-success.is-selected{border-color:var(--q-chip-success-selected-border-color, var(--q-color-success, #34d399));color:var(--q-chip-success-selected-fg, var(--q-color-success, #34d399));background:rgba(52, 211, 153, 0.16);background:var(--q-chip-success-selected-bg, color-mix(in srgb, var(--q-color-success, #34d399) 16%, transparent))}.variant-warning.is-selected{border-color:var(--q-chip-warning-selected-border-color, var(--q-color-warning, #fbbf24));color:var(--q-chip-warning-selected-fg, var(--q-color-warning, #fbbf24));background:rgba(251, 191, 36, 0.18);background:var(--q-chip-warning-selected-bg, color-mix(in srgb, var(--q-color-warning, #fbbf24) 18%, transparent))}.variant-danger.is-selected{border-color:var(--q-chip-danger-selected-border-color, var(--q-color-danger, #f87171));color:var(--q-chip-danger-selected-fg, var(--q-color-danger, #f87171));background:rgba(248, 113, 113, 0.16);background:var(--q-chip-danger-selected-bg, color-mix(in srgb, var(--q-color-danger, #f87171) 16%, transparent))}.remove-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--q-chip-remove-size, 18px);height:var(--q-chip-remove-size, 18px);margin-inline-end:var(--q-chip-remove-offset, -2px);padding:0;border:0;border-radius:999px;color:currentColor;background:transparent;cursor:pointer;opacity:var(--q-chip-remove-opacity, 0.75);transition:background var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease)}.remove-button:hover{opacity:1;background:rgba(249, 250, 251, 0.1);background:var(--q-chip-remove-hover-bg, color-mix(in srgb, currentColor 12%, transparent))}.remove-button:active{transform:scale(0.94)}.remove-icon{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}.size-sm .remove-button{--q-chip-remove-size:16px}.size-lg .remove-button{--q-chip-remove-size:20px}`;
|
|
7
7
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BD6Jjssb.js');
|
|
4
|
+
var tokens = require('./tokens-Cd7g-VMz.js');
|
|
5
|
+
|
|
6
|
+
const controlGroupCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, calc(var(--_q-context-size-sm, 0) * var(--q-control-height-sm, 1.75rem) + var(--_q-context-size-md, 1) * var(--q-control-height-md, 2.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-height-lg, 2.75rem)));--_q-control-font:var(--q-context-control-font, calc(var(--_q-context-size-sm, 0) * var(--q-control-font-sm, 0.75rem) + var(--_q-context-size-md, 1) * var(--q-control-font-md, 0.875rem) + var(--_q-context-size-lg, 0) * var(--q-control-font-lg, 1rem)));--_q-control-line:var(--q-context-control-line, calc(var(--_q-context-size-sm, 0) * var(--q-control-line-sm, 1rem) + var(--_q-context-size-md, 1) * var(--q-control-line-md, 1.25rem) + var(--_q-context-size-lg, 0) * var(--q-control-line-lg, 1.5rem)));--_q-control-padding:var(--q-context-control-padding, calc(var(--_q-context-size-sm, 0) * var(--q-control-padding-sm, 0.5rem) + var(--_q-context-size-md, 1) * var(--q-control-padding-md, 0.75rem) + var(--_q-context-size-lg, 0) * var(--q-control-padding-lg, 1rem)));--_q-control-icon:var(--q-context-control-icon, calc(var(--_q-context-size-sm, 0) * var(--q-control-icon-sm, 0.875rem) + var(--_q-context-size-md, 1) * var(--q-control-icon-md, 1rem) + var(--_q-context-size-lg, 0) * var(--q-control-icon-lg, 1.25rem)));--_q-control-radius:var(--q-context-control-radius, calc(var(--_q-context-size-sm, 0) * var(--q-control-radius-sm, 0.34375rem) + var(--_q-context-size-md, 1) * var(--q-control-radius-md, 0.4375rem) + var(--_q-context-size-lg, 0) * var(--q-control-radius-lg, 0.53125rem)))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{display:block;min-width:0}[part='group']{display:flex;align-items:start;isolation:isolate}::slotted([hidden]){display:none !important}::slotted([data-q-control-group]){min-width:0;--_q-group-start-start:0px;--_q-group-start-end:0px;--_q-group-end-start:0px;--_q-group-end-end:0px}::slotted([data-q-control-group='first']),::slotted([data-q-control-group='only']){--_q-group-start-start:var(--q-control-group-radius, var(--_q-control-radius));--_q-group-end-start:var(--q-control-group-radius, var(--_q-control-radius))}::slotted([data-q-control-group='last']),::slotted([data-q-control-group='only']){--_q-group-start-end:var(--q-control-group-radius, var(--_q-control-radius));--_q-group-end-end:var(--q-control-group-radius, var(--_q-control-radius))}::slotted([data-q-control-group='middle']),::slotted([data-q-control-group='last']){margin-inline-start:-1px}::slotted(q-input:not([width])),::slotted(q-dropdown:not([width])),::slotted(q-dropdown[width="fit-options"]){flex:0 1 auto}::slotted(q-input[width]:not([width="full"])),::slotted(q-dropdown[width]:not([width="full"]):not([width="fit-options"])),::slotted(q-toggle),::slotted(q-button),::slotted(q-quantity-selector){flex:0 0 auto}::slotted(:focus-within){position:relative;z-index:1}:host([orientation='vertical']) [part='group']{flex-direction:column;align-items:stretch}:host([orientation='vertical']) ::slotted([data-q-control-group]){--_q-group-start-start:0px;--_q-group-start-end:0px;--_q-group-end-start:0px;--_q-group-end-end:0px;margin-inline-start:0}:host([orientation='vertical']) ::slotted([data-q-control-group='first']),:host([orientation='vertical']) ::slotted([data-q-control-group='only']){--_q-group-start-start:var(--q-control-group-radius, var(--_q-control-radius));--_q-group-start-end:var(--q-control-group-radius, var(--_q-control-radius))}:host([orientation='vertical']) ::slotted([data-q-control-group='last']),:host([orientation='vertical']) ::slotted([data-q-control-group='only']){--_q-group-end-start:var(--q-control-group-radius, var(--_q-control-radius));--_q-group-end-end:var(--q-control-group-radius, var(--_q-control-radius))}:host([orientation='vertical']) ::slotted([data-q-control-group='middle']),:host([orientation='vertical']) ::slotted([data-q-control-group='last']){margin-block-start:-1px}`;
|
|
7
|
+
|
|
8
|
+
const supportedControls = new Set(['Q-INPUT', 'Q-DROPDOWN', 'Q-TOGGLE', 'Q-QUANTITY-SELECTOR', 'Q-BUTTON']);
|
|
9
|
+
const marker = 'data-q-control-group';
|
|
10
|
+
const ownership = new WeakMap();
|
|
11
|
+
const QControlGroup = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
}
|
|
15
|
+
get el() { return index.getElement(this); }
|
|
16
|
+
size = 'inherit';
|
|
17
|
+
orientation = 'horizontal';
|
|
18
|
+
/** Name of the group; each child still needs its own accessible name. */
|
|
19
|
+
ariaLabel = null;
|
|
20
|
+
observer;
|
|
21
|
+
managedChildren = new Set();
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
this.observer = new MutationObserver(() => this.updateChildren());
|
|
24
|
+
this.observer.observe(this.el, { childList: true, subtree: true, attributes: true, attributeFilter: ['hidden', 'slot'] });
|
|
25
|
+
this.updateChildren();
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
this.observer?.disconnect();
|
|
29
|
+
for (const child of this.managedChildren)
|
|
30
|
+
this.restoreChild(child);
|
|
31
|
+
}
|
|
32
|
+
restoreChild(child) {
|
|
33
|
+
const previous = ownership.get(child);
|
|
34
|
+
if (previous?.owner === this.el) {
|
|
35
|
+
if (previous.original === null)
|
|
36
|
+
child.removeAttribute(marker);
|
|
37
|
+
else
|
|
38
|
+
child.setAttribute(marker, previous.original);
|
|
39
|
+
ownership.delete(child);
|
|
40
|
+
}
|
|
41
|
+
this.managedChildren.delete(child);
|
|
42
|
+
}
|
|
43
|
+
updateChildren = () => {
|
|
44
|
+
const controls = Array.from(this.el.children).filter((child) => child instanceof HTMLElement && supportedControls.has(child.tagName) && !child.hidden && !child.slot);
|
|
45
|
+
for (const child of this.managedChildren) {
|
|
46
|
+
if (!controls.includes(child))
|
|
47
|
+
this.restoreChild(child);
|
|
48
|
+
}
|
|
49
|
+
controls.forEach((child, index) => {
|
|
50
|
+
if (!this.managedChildren.has(child)) {
|
|
51
|
+
const previous = ownership.get(child);
|
|
52
|
+
ownership.set(child, { owner: this.el, original: previous ? previous.original : child.getAttribute(marker) });
|
|
53
|
+
this.managedChildren.add(child);
|
|
54
|
+
}
|
|
55
|
+
child.setAttribute(marker, controls.length === 1 ? 'only' : index === 0 ? 'first' : index === controls.length - 1 ? 'last' : 'middle');
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
render() {
|
|
59
|
+
return (index.h(index.Host, { key: '3a3eafef4761711a81b71645caa3407e00bc016f', style: tokens.controlScope(this.size) }, index.h("div", { key: '70c4fb37543a2a67921d4a8d8eecb4372b871fbf', part: "group", role: "group", "aria-label": this.ariaLabel || undefined }, index.h("slot", { key: '145ad01a8d6991b3137f642abe514051660c96e8', onSlotchange: this.updateChildren }))));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
QControlGroup.style = controlGroupCss();
|
|
63
|
+
|
|
64
|
+
exports.q_control_group = QControlGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BD6Jjssb.js');
|
|
4
4
|
|
|
5
5
|
const conversationBubbleCss = () => `:host{display:block;min-width:0;box-sizing:border-box;color:var(--q-conversation-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.conversation{display:flex;align-items:flex-end;gap:var(--q-conversation-gap, 10px);width:100%;min-width:0;box-sizing:border-box}.avatar{display:none;flex:0 0 auto}.has-avatar .avatar{display:block}.content{display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-start;min-width:0;max-width:var(--q-conversation-max-width, min(76ch, 82%))}.header{margin:0 0 var(--q-conversation-header-gap, 4px);padding-inline:var(--q-conversation-header-inset, 4px)}.sender{color:var(--q-conversation-sender-fg, var(--q-fg-muted, #9ca3af));font-size:var(--q-conversation-meta-size, var(--q-font-size-sm, 0.7rem));font-weight:var(--q-font-weight-bold, 600);line-height:1.3}.bubble{min-width:0;padding:var(--q-conversation-padding, 11px 13px);border:var(--q-conversation-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-conversation-radius, var(--q-radius-lg, 11px));background:var(--q-conversation-incoming-bg, var(--q-bg-surface-2, #19243b));box-shadow:var(--q-conversation-shadow, var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2)))}.body{min-width:0;overflow-wrap:anywhere;font-size:var(--q-conversation-font-size, var(--q-font-size-base, 0.9rem));line-height:var(--q-conversation-line-height, 1.55);white-space:pre-wrap}.footer{display:none;align-items:center;justify-content:space-between;gap:var(--q-conversation-footer-gap, 10px);margin-top:var(--q-conversation-footer-margin, 6px);color:var(--q-conversation-meta-fg, var(--q-fg-muted, #9ca3af));font-size:var(--q-conversation-meta-size, var(--q-font-size-sm, 0.7rem));line-height:1.3}.footer.has-content{display:flex}.message-meta,.actions.has-content{display:inline-flex;align-items:center;gap:var(--q-conversation-meta-gap, 6px)}.meta,.actions{display:none}.meta.has-content,.actions.has-content{display:inline-flex}.variant-outgoing{flex-direction:row-reverse}.variant-outgoing .content{align-items:flex-end;margin-inline-start:auto}.variant-outgoing .bubble{color:var(--q-conversation-outgoing-fg, #ffffff);border-color:var(--q-conversation-outgoing-border, transparent);background:var(--q-conversation-outgoing-bg, var(--q-color-primary, #60a5fa))}.variant-outgoing .footer{color:var(--q-conversation-outgoing-meta-fg, rgba(255, 255, 255, 0.76))}.variant-system{justify-content:center}.variant-system .avatar,.variant-system .header{display:none}.variant-system .content{align-items:center;max-width:var(--q-conversation-system-max-width, min(80ch, 94%))}.variant-system .bubble{color:var(--q-conversation-system-fg, var(--q-fg-muted, #9ca3af));border-color:var(--q-conversation-system-border, transparent);background:var(--q-conversation-system-bg, transparent);box-shadow:none;text-align:center}.is-compact .bubble{padding:var(--q-conversation-compact-padding, 7px 10px)}.is-compact .header{margin-bottom:2px}@media (max-width: 600px){.content{max-width:var(--q-conversation-mobile-max-width, 88%)}.has-avatar .content{max-width:var(--q-conversation-mobile-avatar-max-width, calc(100% - 42px))}}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BD6Jjssb.js');
|
|
4
4
|
var utils = require('./utils-DGQOjEwT.js');
|
|
5
5
|
var dataTableCell = require('./data-table-cell-8uUCk2Qz.js');
|
|
6
6
|
var chevronUp = require('./chevron-up-D4t2OSHA.js');
|
|
@@ -583,14 +583,14 @@ const QDataTable = class {
|
|
|
583
583
|
sortColumn: this.sortColumn,
|
|
584
584
|
sortDirection: this.sortDirection,
|
|
585
585
|
});
|
|
586
|
-
return (index.h("div", { key: '
|
|
586
|
+
return (index.h("div", { key: '9c73c6d30d081e5519af9ae93a465eac2181fcde', class: "table-container", role: "grid", "aria-label": this.ariaLabel?.trim() || this.toolbarTitle?.trim() || 'Data table' }, renderDataTableToolbar({
|
|
587
587
|
showToolbar: this.showToolbar,
|
|
588
588
|
toolbarTitle: this.toolbarTitle,
|
|
589
589
|
showSearch: this.showSearch,
|
|
590
590
|
searchPlaceholder: this.searchPlaceholder,
|
|
591
591
|
searchValue: this.searchValue,
|
|
592
592
|
onSearchInput: this.handleSearchInput,
|
|
593
|
-
}), index.h("div", { key: '
|
|
593
|
+
}), index.h("div", { key: '4b1b1059c2bfd59aefb048188563f3effc8dbf72', class: "table-scroll-area" }, index.h("table", { key: '790c6909a3ecfd66cd452e5314d1f5a2cd2b70ae', class: "table-el", style: this.twoLineRows ? { '--q-table-action-count': String(model.rowActions.length) } : undefined }, renderDataTableHead({
|
|
594
594
|
model,
|
|
595
595
|
onSelectAllChange: event => this.handleSelectAllChange(event),
|
|
596
596
|
onSortToggle: column => this.handleSortToggle(column),
|
|
@@ -603,7 +603,7 @@ const QDataTable = class {
|
|
|
603
603
|
onRowCheckboxChange: (item, index, event) => this.handleRowCheckboxChange(item, index, event),
|
|
604
604
|
onRowAction: (item, index, action, event) => this.handleRowAction(item, index, action, event),
|
|
605
605
|
renderCell: (item, column) => this.renderCell(item, column),
|
|
606
|
-
}))), index.h("slot", { key: '
|
|
606
|
+
}))), index.h("slot", { key: '570258218b4c63d2d48b29d58135e89ffee70add', name: "footer" })));
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
609
|
QDataTable.style = dataTableCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BD6Jjssb.js');
|
|
4
4
|
var tokens = require('./tokens-Cd7g-VMz.js');
|
|
5
5
|
|
|
6
6
|
const dividerCss = () => `:host{--_q-divider-inset:var(--q-divider-inset, var(--q-space-sm, .5rem));--_q-divider-usable:max(0px, calc(100% - var(--_q-divider-inset) - var(--_q-divider-inset)));--_q-divider-thickness:var(--q-divider-thickness, 1px);position:relative;display:block;box-sizing:border-box;min-width:0;min-height:0;height:var(--_q-divider-thickness);align-self:stretch;flex:0 0 auto;margin-block:var(--_q-divider-spacing, 0px)}[part='line']{position:absolute;box-sizing:border-box;top:50%;left:50%;transform:translate(-50%, -50%);width:clamp(0px, var(--_q-divider-length, 100%), var(--_q-divider-usable));height:0;border:0 solid var(--q-divider-color, var(--q-border-color, #374151));border-top-width:var(--_q-divider-thickness)}:host([orientation='vertical']){width:var(--_q-divider-thickness);height:auto;margin-block:0;margin-inline:var(--_q-divider-spacing, 0px)}:host([orientation='vertical']) [part='line']{width:0;height:clamp(0px, var(--_q-divider-length, 100%), var(--_q-divider-usable));border-top-width:0;border-left-width:var(--_q-divider-thickness)}@media (forced-colors: active){[part='line']{border-color:CanvasText}}`;
|