@webquark/core 1.1.0-dev.2 → 1.1.0-dev.3
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/{Leaflet.GoogleMutant-BCs2oiE0.js → Leaflet.GoogleMutant-i4bYl6qy.js} +1 -2
- package/dist/cjs/{action.props-hpMla743.js → action.props-CkEZpMY6.js} +1 -1
- package/dist/cjs/{chevron-up-B76247zT.js → chevron-up-Dysp_9UJ.js} +2 -2
- package/dist/cjs/{index-Vzfd3Ljg.js → index-B7ex88C2.js} +61 -20
- package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +1031 -0
- package/dist/{esm/leaflet-src-BeeM-7Ku.js → cjs/leaflet-src-mrRg-Srs.js} +38 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +2 -2
- package/dist/cjs/q-card.cjs.entry.js +1 -1
- package/dist/cjs/q-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +2 -2
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q-form.cjs.entry.js +1 -1
- package/dist/cjs/q-icon.cjs.entry.js +1 -1
- package/dist/cjs/q-input_2.cjs.entry.js +2 -2
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +184 -122
- package/dist/cjs/q-navbar.cjs.entry.js +1 -1
- package/dist/cjs/q-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q-panel.cjs.entry.js +1 -1
- package/dist/cjs/q-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/q-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q-reel.cjs.entry.js +1 -1
- package/dist/cjs/q-scrollable.cjs.entry.js +1 -1
- package/dist/cjs/q-sidepanel.cjs.entry.js +18 -15
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +1 -1
- package/dist/cjs/q-step-diagram.cjs.entry.js +1 -1
- package/dist/cjs/q-syntax-box.cjs.entry.js +4 -4
- package/dist/cjs/q-tabs.cjs.entry.js +1 -1
- package/dist/cjs/q-textarea.cjs.entry.js +1 -1
- 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 +1 -1
- 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 -1
- package/dist/collection/components/inputs/input/input.css +13 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +5 -2
- package/dist/collection/components/layout/sidepanel/sidepanel.css +23 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BnmIFx4N.js → p-7oXL29Gu.js} +1 -1
- package/dist/components/{p-DAl7U6Ms.js → p-BygmcFxM.js} +1 -1
- package/dist/components/{p-B6NJEaqd.js → p-C8fq-feq.js} +1 -1
- package/dist/components/p-CFuqfXuv.js +9 -0
- package/dist/components/{p-Dnud2v8F.js → p-CQofbR9q.js} +1 -1
- package/dist/components/p-CVtof65h.js +1 -0
- package/dist/components/{p-DcsB8P_Y.js → p-Czf3kP0S.js} +1 -1
- package/dist/components/p-DYMWBqU1.js +5 -0
- package/dist/components/{p-DH-PVHhr.js → p-DuX-9GOi.js} +1 -1
- package/dist/components/{p-B6g9Pj3f.js → p-I81wUKud.js} +1 -1
- package/dist/components/{p-CDktnDug.js → p-g9vOVxQ4.js} +2 -2
- package/dist/components/{p-C7yQ3tON.js → p-vv3X99Ji.js} +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.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-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-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-icon.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-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-sidepanel.js +5 -5
- 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 +4 -4
- 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/{Leaflet.GoogleMutant-BlvymWLE.js → Leaflet.GoogleMutant-MpxOb4Jm.js} +1 -2
- package/dist/esm/{action.props-BJWXy1Ec.js → action.props-CJoxGHR7.js} +1 -1
- package/dist/esm/{chevron-up-CDktnDug.js → chevron-up-g9vOVxQ4.js} +2 -2
- package/dist/esm/{index-DweBlExe.js → index-VFWyFa-_.js} +61 -20
- package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +1026 -0
- package/dist/{cjs/leaflet-src-B0ls4IKq.js → esm/leaflet-src-DYMWBqU1.js} +33 -8
- package/dist/esm/loader.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-button_2.entry.js +2 -2
- package/dist/esm/q-card.entry.js +1 -1
- package/dist/esm/q-carousel.entry.js +1 -1
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +2 -2
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +1 -1
- package/dist/esm/q-form.entry.js +1 -1
- package/dist/esm/q-icon.entry.js +1 -1
- package/dist/esm/q-input_2.entry.js +2 -2
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +184 -122
- package/dist/esm/q-navbar.entry.js +1 -1
- package/dist/esm/q-pagination.entry.js +1 -1
- package/dist/esm/q-panel.entry.js +1 -1
- package/dist/esm/q-quantity-selector.entry.js +1 -1
- package/dist/esm/q-radio-group.entry.js +1 -1
- package/dist/esm/q-reel.entry.js +1 -1
- package/dist/esm/q-scrollable.entry.js +1 -1
- package/dist/esm/q-sidepanel.entry.js +18 -15
- package/dist/esm/q-step-diagram-item.entry.js +1 -1
- package/dist/esm/q-step-diagram.entry.js +1 -1
- package/dist/esm/q-syntax-box.entry.js +4 -4
- package/dist/esm/q-tabs.entry.js +1 -1
- package/dist/esm/q-textarea.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/q-toolbar.entry.js +1 -1
- package/dist/esm/webquark.js +3 -3
- package/dist/loader/index.d.ts +1 -1
- package/dist/playground/build/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
- package/dist/playground/build/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
- package/dist/{webquark/p-35c9fa4d.entry.js → playground/build/p-0e3dbe01.entry.js} +1 -1
- package/dist/{webquark/p-d22a876a.entry.js → playground/build/p-13329777.entry.js} +1 -1
- package/dist/playground/build/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
- package/dist/{webquark/p-c64be717.entry.js → playground/build/p-2e2b3ca9.entry.js} +1 -1
- package/dist/playground/build/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
- package/dist/{webquark/p-94eba9a9.entry.js → playground/build/p-38b92be6.entry.js} +1 -1
- package/dist/playground/build/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
- package/dist/playground/build/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
- package/dist/{webquark/p-7c9d705e.entry.js → playground/build/p-50ca27f7.entry.js} +1 -1
- package/dist/playground/build/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
- package/dist/{webquark/p-4b38c28f.entry.js → playground/build/p-611ef3e0.entry.js} +1 -1
- package/dist/playground/build/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
- package/dist/{webquark/p-bc7d7cbf.entry.js → playground/build/p-6c0bc4b9.entry.js} +3 -3
- package/dist/playground/build/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
- package/dist/playground/build/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
- package/dist/playground/build/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
- package/dist/playground/build/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
- package/dist/playground/build/p-8ada8fc6.entry.js +1 -0
- package/dist/{webquark/p-721d2479.entry.js → playground/build/p-8d0aa5a7.entry.js} +1 -1
- package/dist/{webquark/p-c4016e61.entry.js → playground/build/p-8ec7d250.entry.js} +1 -1
- package/dist/{webquark/p-256d199a.entry.js → playground/build/p-9978ae38.entry.js} +1 -1
- package/dist/playground/build/p-CFuqfXuv.js +9 -0
- package/dist/playground/build/p-DYMWBqU1.js +5 -0
- package/dist/playground/build/p-DoS2fiWw.js +1 -0
- package/dist/playground/build/p-DuX-9GOi.js +1 -0
- package/dist/playground/build/p-VFWyFa-_.js +3 -0
- package/dist/playground/build/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
- package/dist/playground/build/p-b99541cd.entry.js +1 -0
- package/dist/playground/build/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
- package/dist/{webquark/p-a2a3135f.entry.js → playground/build/p-d837603c.entry.js} +1 -1
- package/dist/playground/build/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
- package/dist/playground/build/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
- package/dist/{webquark/p-3e4d2d19.entry.js → playground/build/p-e272dd45.entry.js} +1 -1
- package/dist/playground/build/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
- package/dist/playground/build/p-e974c1f8.entry.js +13 -0
- package/dist/{webquark/p-CDktnDug.js → playground/build/p-g9vOVxQ4.js} +2 -2
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/dist/webquark/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
- package/dist/webquark/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
- package/dist/{playground/build/p-35c9fa4d.entry.js → webquark/p-0e3dbe01.entry.js} +1 -1
- package/dist/{playground/build/p-d22a876a.entry.js → webquark/p-13329777.entry.js} +1 -1
- package/dist/webquark/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
- package/dist/{playground/build/p-c64be717.entry.js → webquark/p-2e2b3ca9.entry.js} +1 -1
- package/dist/webquark/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
- package/dist/{playground/build/p-94eba9a9.entry.js → webquark/p-38b92be6.entry.js} +1 -1
- package/dist/webquark/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
- package/dist/webquark/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
- package/dist/{playground/build/p-7c9d705e.entry.js → webquark/p-50ca27f7.entry.js} +1 -1
- package/dist/webquark/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
- package/dist/{playground/build/p-4b38c28f.entry.js → webquark/p-611ef3e0.entry.js} +1 -1
- package/dist/webquark/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
- package/dist/{playground/build/p-bc7d7cbf.entry.js → webquark/p-6c0bc4b9.entry.js} +3 -3
- package/dist/webquark/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
- package/dist/webquark/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
- package/dist/webquark/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
- package/dist/webquark/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
- package/dist/webquark/p-8ada8fc6.entry.js +1 -0
- package/dist/{playground/build/p-721d2479.entry.js → webquark/p-8d0aa5a7.entry.js} +1 -1
- package/dist/{playground/build/p-c4016e61.entry.js → webquark/p-8ec7d250.entry.js} +1 -1
- package/dist/{playground/build/p-256d199a.entry.js → webquark/p-9978ae38.entry.js} +1 -1
- package/dist/webquark/p-CFuqfXuv.js +9 -0
- package/dist/webquark/p-DYMWBqU1.js +5 -0
- package/dist/webquark/p-DoS2fiWw.js +1 -0
- package/dist/webquark/p-DuX-9GOi.js +1 -0
- package/dist/webquark/p-VFWyFa-_.js +3 -0
- package/dist/webquark/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
- package/dist/webquark/p-b99541cd.entry.js +1 -0
- package/dist/webquark/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
- package/dist/{playground/build/p-a2a3135f.entry.js → webquark/p-d837603c.entry.js} +1 -1
- package/dist/webquark/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
- package/dist/webquark/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
- package/dist/{playground/build/p-3e4d2d19.entry.js → webquark/p-e272dd45.entry.js} +1 -1
- package/dist/webquark/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
- package/dist/webquark/p-e974c1f8.entry.js +13 -0
- package/dist/{playground/build/p-CDktnDug.js → webquark/p-g9vOVxQ4.js} +2 -2
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/leaflet-maplibre-gl-RCEffFEM.js +0 -434
- package/dist/cjs/leaflet-src-BX4jwTf5.js +0 -33
- package/dist/components/p-2bWqVyTo.js +0 -1
- package/dist/components/p-BEBDDqVT.js +0 -1
- package/dist/components/p-BeeM-7Ku.js +0 -5
- package/dist/components/p-QHgICI4w.js +0 -1
- package/dist/esm/leaflet-maplibre-gl-Cgb-1z8Q.js +0 -432
- package/dist/esm/leaflet-src-BR13bdVA.js +0 -30
- package/dist/playground/build/p-2bWqVyTo.js +0 -1
- package/dist/playground/build/p-7c4e6512.entry.js +0 -1
- package/dist/playground/build/p-BEBDDqVT.js +0 -1
- package/dist/playground/build/p-BeeM-7Ku.js +0 -5
- package/dist/playground/build/p-DNFGt02p.js +0 -1
- package/dist/playground/build/p-DweBlExe.js +0 -2
- package/dist/playground/build/p-Dxs6LLBG.js +0 -1
- package/dist/playground/build/p-a7b90eef.entry.js +0 -13
- package/dist/playground/build/p-e298fb31.entry.js +0 -1
- package/dist/webquark/p-2bWqVyTo.js +0 -1
- package/dist/webquark/p-7c4e6512.entry.js +0 -1
- package/dist/webquark/p-BEBDDqVT.js +0 -1
- package/dist/webquark/p-BeeM-7Ku.js +0 -5
- package/dist/webquark/p-DNFGt02p.js +0 -1
- package/dist/webquark/p-DweBlExe.js +0 -2
- package/dist/webquark/p-Dxs6LLBG.js +0 -1
- package/dist/webquark/p-a7b90eef.entry.js +0 -13
- package/dist/webquark/p-e298fb31.entry.js +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { r as requireLeafletSrc } from './leaflet-src-BeeM-7Ku.js';
|
|
2
|
-
|
|
3
|
-
function _mergeNamespaces(n, m) {
|
|
4
|
-
m.forEach(function (e) {
|
|
5
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
-
if (k !== 'default' && !(k in n)) {
|
|
7
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return e[k]; }
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return Object.freeze(n);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function getDefaultExportFromCjs (x) {
|
|
19
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
var leafletSrcExports = requireLeafletSrc();
|
|
23
|
-
var leafletSrc = /*@__PURE__*/getDefaultExportFromCjs(leafletSrcExports);
|
|
24
|
-
|
|
25
|
-
var leafletSrc$1 = /*#__PURE__*/_mergeNamespaces({
|
|
26
|
-
__proto__: null,
|
|
27
|
-
default: leafletSrc
|
|
28
|
-
}, [leafletSrcExports]);
|
|
29
|
-
|
|
30
|
-
export { leafletSrcExports as a, leafletSrc$1 as l };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t}from"./p-BeeM-7Ku.js";function e(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r=t(),u=e({__proto__:null,default:n(r)},[r]);export{r as a,u as l}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as e,h as s}from"./p-DweBlExe.js";import{s as i}from"./p-Bj2RJb2E.js";import{c as t}from"./p-ByfrUWx1.js";function a(r){return r.assignedNodes({flatten:!0}).length>0}const o=class{constructor(s){r(this,s),this.qChange=e(this,"qChange"),this.qInput=e(this,"qInput"),this.qBlur=e(this,"qBlur"),this.qFocus=e(this,"qFocus"),this.qClick=e(this,"qClick"),s.$hostElement$["s-ei"]?this.internals=s.$hostElement$["s-ei"]:(this.internals=s.$hostElement$.attachInternals(),s.$hostElement$["s-ei"]=this.internals)}value="";placeholder="";label;ariaLabel=null;size="md";clearable=!1;disabled=!1;required=!1;error;errorMessage;name;type="text";min;max;step=1;internals;hasPrefix=!1;hasSuffix=!1;passwordVisible=!1;qChange;qInput;qBlur;qFocus;qClick;inputEl;initialValue="";watchValue(r){this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(r)}componentWillLoad(){this.initialValue=this.value||"",this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(this.value)}componentDidRender(){this.syncValidity()}formResetCallback(){this.value=this.initialValue,this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(this.value)}async focusElement(){this.inputEl?.focus()}async clearValue(){this.handleClear()}async checkValidity(){return this.syncValidity(),"function"==typeof this.internals.checkValidity?this.internals.checkValidity():this.inputEl?.checkValidity?.()??!0}async reportValidity(){return this.syncValidity(),"function"==typeof this.internals.reportValidity?this.internals.reportValidity():this.inputEl?.reportValidity?.()??!0}handlePrefixSlotChange=r=>{this.hasPrefix=a(r.target)};handleSuffixSlotChange=r=>{this.hasSuffix=a(r.target)};syncValidity(){this.inputEl&&this.internals&&i({internals:this.internals,control:this.inputEl,disabled:this.disabled,customError:this.error||this.errorMessage})}handleInput=r=>{this.value=r.target.value,this.qInput.emit(this.value)};handleChange=r=>{this.value=r.target.value,this.qChange.emit(this.value)};resolveNumericBase(){let r=parseFloat(this.value);return isNaN(r)&&(r=null!=this.min&&this.min>0?this.min:null!=this.max&&this.max<0?this.max:0),r}clampNumericValue(r){let e=r;return null!=this.min&&(e=Math.max(this.min,e)),null!=this.max&&(e=Math.min(this.max,e)),e}stepValue(r){if(this.disabled)return;const e=null!=this.step?this.step:1,s=this.clampNumericValue(this.resolveNumericBase()+e*r);this.value=String(s),this.inputEl&&(this.inputEl.value=this.value),this.qInput.emit(this.value),this.qChange.emit(this.value)}handleIncrement=()=>{this.stepValue(1)};handleDecrement=()=>{this.stepValue(-1)};handleBlur=r=>{if("number"===this.type&&null!=this.value&&""!==this.value){const r=parseFloat(this.value);if(!isNaN(r)){let e=r;null!=this.min&&(e=Math.max(this.min,e)),null!=this.max&&(e=Math.min(this.max,e)),e!==r&&(this.value=String(e),this.inputEl&&(this.inputEl.value=this.value),this.qInput.emit(this.value),this.qChange.emit(this.value))}}this.qBlur.emit(r)};handleFocus=r=>{this.qFocus.emit(r)};handleClick=r=>{this.disabled||this.qClick.emit(r)};handleClear=()=>{this.value="",this.qInput.emit(this.value),this.qChange.emit(this.value),this.inputEl&&this.inputEl.focus()};handlePasswordToggle=r=>{if(r.preventDefault(),r.stopPropagation(),this.disabled||"password"!==this.type)return;const e=this.inputEl?.selectionStart??null,s=this.inputEl?.selectionEnd??null;this.passwordVisible=!this.passwordVisible,requestAnimationFrame((()=>{this.inputEl&&(this.inputEl.focus(),null!==e&&null!==s&&this.inputEl.setSelectionRange(e,s))}))};handleKeyDown=r=>{"number"!==this.type||this.disabled||("ArrowUp"===r.key?(r.preventDefault(),this.handleIncrement()):"ArrowDown"===r.key&&(r.preventDefault(),this.handleDecrement()))};render(){const r=!(!this.error&&!this.errorMessage),e=this.error||this.errorMessage,i=this.clearable&&!this.disabled&&this.value.length>0,t="password"===this.type&&!this.disabled,a=t&&this.passwordVisible?"text":this.type,o=this.hasSuffix||i||t,n=parseFloat(this.value),l="number"===this.type&&!isNaN(n),p=l&&null!=this.min&&n<=this.min,c=l&&null!=this.max&&n>=this.max,h=this.ariaLabel?.trim()||void 0;return s("div",{key:"08aa1cfd2e3f3c32bbc109dd0ced6d4f9ccbd5d2",class:{"input-wrapper":!0,"is-disabled":this.disabled,"has-error":r,[`size-${this.size}`]:!0}},this.label&&s("label",{key:"d6b6cd29067f2d5bcd872c4e0173c6df87cc41ae",class:"input-label",htmlFor:"q-field",part:"label"},this.label),s("div",{key:"06d4836978707b81d40dbbcbc2ca7a0547ea1031",class:"input-control",part:"control"},s("span",{key:"24b6d8d13280d030312a79f17b703aa259b00641",class:"prefix-container",style:{display:this.hasPrefix?"flex":"none"},part:"prefix"},s("slot",{key:"a82f32bc02cd210dcc10de561dd58baa25c6fd98",name:"prefix",onSlotchange:this.handlePrefixSlotChange})),s("input",{key:this.type,ref:r=>this.inputEl=r,id:"q-field",class:{"input-box":!0,"has-prefix-padding":this.hasPrefix,"has-suffix-padding":o},type:a,name:this.name,value:this.value,placeholder:this.placeholder,disabled:this.disabled,required:this.required,min:this.min,max:this.max,step:this.step,onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.handleClick,onKeyDown:this.handleKeyDown,role:"number"===this.type?"spinbutton":void 0,"aria-valuenow":l?String(n):void 0,"aria-valuemin":"number"===this.type&&null!=this.min?String(this.min):void 0,"aria-valuemax":"number"===this.type&&null!=this.max?String(this.max):void 0,"aria-invalid":r?"true":"false","aria-describedby":r?"q-field-error":void 0,"aria-label":h}),"number"===this.type&&!this.disabled&&s("div",{key:"08151e8325b52cb1363090527e58e282f75c2ba5",class:"input-spinners",part:"spinners"},s("button",{key:"6210ff28366658b6de497f0ab94343859dfdcb43",class:"spinner-btn spinner-up",type:"button",onClick:this.handleIncrement,disabled:c,"aria-label":"Increase value"},s("svg",{key:"a138085cebfd388f28796127e54eaf40009b546a",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{key:"ca8d2fc490c22b35cb87714e8091a9fb14d85357",d:"M18 15l-6-6-6 6"}))),s("button",{key:"acfd745899edc9124bdcbefcc42ee87480583982",class:"spinner-btn spinner-down",type:"button",onClick:this.handleDecrement,disabled:p,"aria-label":"Decrease value"},s("svg",{key:"da2417827c7b14538ad7437f0ce084174f46d00e",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{key:"9a16d88f27c724581cc7d9f30aa27c2766b72429",d:"M6 9l6 6 6-6"})))),s("span",{key:"3393389368a778907b4a0de49ff5d6813912ee57",class:"suffix-container",style:{display:o?"flex":"none"},part:"suffix"},i&&s("button",{key:"c3eedebb165feb59fb7cf1d2956e55df57e9ea4b",class:"clear-btn",type:"button",onClick:this.handleClear,"aria-label":"Clear input"},s("svg",{key:"76351a3446784a5dc62060bea64b359aa1830da2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},s("path",{key:"cb8c0fad30b1214b6689571e9905c07db158e092",d:"M18 6L6 18M6 6l12 12"}))),t&&s("button",{key:"0cbfd055abf302836fbfc7d4be8143d5e935022f",class:"password-toggle-btn",type:"button",onClick:this.handlePasswordToggle,"aria-label":this.passwordVisible?"Hide password":"Show password","aria-pressed":this.passwordVisible?"true":"false"},this.passwordVisible?s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{d:"M3 3l18 18"}),s("path",{d:"M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58"}),s("path",{d:"M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19"}),s("path",{d:"M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61"})):s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),s("circle",{cx:"12",cy:"12",r:"3"}))),s("span",{key:"b1ca65ea1a0d63f5d521c5b7ae822d790f9e4cf7",style:{display:!i&&this.hasSuffix?"block":"none"}},s("slot",{key:"5374bbe5306e458245fbeffdcfeb487366b1ddb7",name:"suffix",onSlotchange:this.handleSuffixSlotChange})))),r&&s("span",{key:"3598e2888edc92705b862fb7197470378bbcfd2e",id:"q-field-error",class:"error-msg",part:"error-msg"},e))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{watchValue:0}]}}};o.style=':host{display:block;width:100%;box-sizing:border-box}.input-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.input-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px;transition:color var(--q-transition-fast, 150ms ease)}.input-control{display:flex;align-items:stretch;position:relative;width:100%;background:var(--q-input-bg, var(--q-bg-surface-2, #374151));border:var(--q-input-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-input-radius, var(--q-radius-md, 8px));box-sizing:border-box;overflow:hidden;transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.input-box{width:100%;background:transparent;border:none;padding:var(--q-input-padding, 10px 14px);line-height:1.2;align-self:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-fg-base, #f9fafb);outline:none;box-sizing:border-box}.prefix-container,.suffix-container{display:flex;align-items:center;padding:0 12px;color:var(--q-fg-muted, #9ca3af);flex-shrink:0}.prefix-container{padding-right:0}.suffix-container{padding-left:0}.input-control:focus-within{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.input-wrapper:focus-within .input-label{color:var(--q-color-primary, #60a5fa)}.has-error .input-control{border-color:var(--q-color-danger, #ef4444) !important;box-shadow:none}.has-error.input-wrapper:focus-within .input-label,.has-error .input-label{color:var(--q-color-danger, #ef4444) !important}.error-msg{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-color-danger, #ef4444);margin-top:6px}.clear-btn,.password-toggle-btn{background:transparent;border:none;cursor:pointer;padding:4px;padding-left:0;display:flex;align-items:center;justify-content:center;color:var(--q-fg-muted, #9ca3af);border-radius:50%;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.clear-btn:hover,.password-toggle-btn:hover{background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));color:var(--q-fg-base, #f9fafb)}.clear-btn svg,.password-toggle-btn svg{width:14px;height:14px}.is-disabled{opacity:0.6}.is-disabled .input-control{cursor:not-allowed;pointer-events:none}input.input-box[type="color"]{height:40px;padding:6px;cursor:pointer;background:transparent}input.input-box[type="color"]::-webkit-color-swatch-wrapper{padding:0}input.input-box[type="color"]::-webkit-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}input.input-box[type="color"]::-moz-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}.input-wrapper.size-sm .input-control{min-height:32px;height:32px}.input-wrapper.size-sm .input-label{font-size:var(--q-font-size-sm, 0.7rem)}.input-wrapper.size-sm .input-box{padding:4px 8px;font-size:var(--q-font-size-sm, 0.75rem)}.input-wrapper.size-sm .prefix-container,.input-wrapper.size-sm .suffix-container{padding:0 8px}.input-wrapper.size-sm .clear-btn svg,.input-wrapper.size-sm .password-toggle-btn svg{width:12px;height:12px}.input-wrapper.size-sm input.input-box[type="color"]{height:32px;padding:4px}.input-wrapper.size-md .input-label{font-size:var(--q-font-size-sm, 0.7rem)}.input-wrapper.size-md .input-box{padding:10px 14px;font-size:var(--q-font-size-base, 0.9rem)}.input-wrapper.size-md .prefix-container,.input-wrapper.size-md .suffix-container{padding:0 12px}.input-wrapper.size-md .clear-btn svg,.input-wrapper.size-md .password-toggle-btn svg{width:14px;height:14px}.input-wrapper.size-lg .input-label{font-size:var(--q-font-size-base, 0.9rem)}.input-wrapper.size-lg .input-box{padding:14px 18px;font-size:var(--q-font-size-lg, 1.1rem)}.input-wrapper.size-lg .prefix-container,.input-wrapper.size-lg .suffix-container{padding:0 14px}.input-wrapper.size-lg .clear-btn svg,.input-wrapper.size-lg .password-toggle-btn svg{width:16px;height:16px}.input-spinners{display:flex;flex-direction:column;border-left:1px solid var(--q-border-color, #4b5563);width:24px;margin-left:auto;box-sizing:border-box}.spinner-btn{flex:1;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);cursor:pointer;padding:0;margin:0;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.spinner-btn:hover:not(:disabled){background:rgba(249, 250, 251, 0.08);color:var(--q-fg-base, #f9fafb)}.spinner-btn:disabled{opacity:0.3;cursor:not-allowed}.spinner-up{border-bottom:1px solid var(--q-border-color, #4b5563)}.spinner-btn svg{width:10px;height:10px}';const n=2*Math.PI*52,l=new Set(["sm","md","lg"]),p=class{constructor(e){r(this,e)}value=0;label;indeterminate=!1;ariaValueText=null;variant="linear";size="md";tone="primary";ariaLabel=null;render(){const r=Number.isFinite(this.value)?this.value:0,e=Math.min(Math.max(r,0),100);return"circular"==("circular"===this.variant?"circular":"linear")?this.renderCircular(e):this.renderLinear(e)}renderLinear(r){return s("div",{class:"progress-linear",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||`${r}%`),part:"container track"},s("span",{class:{"progress-linear__fill":!0,"is-indeterminate":this.indeterminate},style:this.indeterminate?void 0:{width:`${r}%`},part:"fill"}))}renderCircular(r){const e=void 0!==this.label?this.label:`${r}%`,i=t(e,"var(--q-progress-font-size, var(--_q-progress-font-size))",5),a=this.indeterminate?.75*n:n-r/100*n;return s("div",{class:"progress-circular",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||e),part:"container"},s("svg",{class:"progress-circular__svg",viewBox:"0 0 120 120"},s("g",{class:"progress-circular__rings"},s("circle",{class:"progress-circular__track",cx:60,cy:60,r:52,part:"track"}),s("circle",{class:"progress-circular__fill",cx:60,cy:60,r:52,"stroke-dasharray":n,"stroke-dashoffset":a,part:"fill"})),!this.indeterminate&&s("text",{class:"progress-circular__label",x:"50%",y:"50%",style:i,part:"label"},e)))}progressAttributes(r,e){return{role:"progressbar","aria-label":this.ariaLabel?.trim()||"Progress","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.indeterminate?void 0:r,"aria-valuetext":this.indeterminate?void 0:e}}customSizeStyle(){if("string"==typeof this.size&&l.has(this.size))return;const r="number"==typeof this.size?this.size:Number(this.size);return Number.isFinite(r)?{"--_q-progress-custom-size":`${Math.max(0,r)}px`}:void 0}};p.style=":host{display:block;width:100%;min-width:0;box-sizing:border-box;--_q-progress-linear-height:var(--q-progress-linear-height-md, 6px);--_q-progress-circular-size:var(--q-progress-circular-size-md, 120px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-md, 8px );--_q-progress-font-size:var( --q-progress-circular-font-size-md, var(--q-font-size-lg, 1rem) );--_q-progress-track-color:var(--q-bg-surface-3, #22304d);--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([hidden]){display:none}:host([variant='circular']){display:inline-block;width:auto;--_q-progress-track-color:var(--q-border-color, #374151)}:host([size='sm']){--_q-progress-linear-height:var(--q-progress-linear-height-sm, 4px);--_q-progress-circular-size:var(--q-progress-circular-size-sm, 64px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-sm, 6px );--_q-progress-font-size:var( --q-progress-circular-font-size-sm, var(--q-font-size-sm, 0.7rem) )}:host([size='lg']){--_q-progress-linear-height:var(--q-progress-linear-height-lg, 8px);--_q-progress-circular-size:var(--q-progress-circular-size-lg, 180px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-lg, 10px );--_q-progress-font-size:var( --q-progress-circular-font-size-lg, calc(var(--q-font-size-lg, 1rem) * 1.5) )}:host([tone='neutral']){--_q-progress-tone-color:var(--q-fg-muted, #9ca3af)}:host([tone='primary']){--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([tone='success']){--_q-progress-tone-color:var(--q-color-success, #34d399)}:host([tone='warning']){--_q-progress-tone-color:var(--q-color-warning, #fbbf24)}:host([tone='danger']){--_q-progress-tone-color:var(--q-color-danger, #f87171)}.progress-linear{position:relative;width:100%;height:var( --q-progress-linear-height, var( --q-progress-bar-height, var(--_q-progress-custom-size, var(--_q-progress-linear-height)) ) );overflow:hidden;border-radius:var( --q-progress-linear-radius, var(--q-progress-bar-radius, 999px) );background:var( --q-progress-track-color, var(--q-progress-bar-track-color, var(--_q-progress-track-color)) )}.progress-linear__fill{display:block;height:100%;border-radius:inherit;background:var( --q-progress-fill-color, var(--q-progress-bar-fill-color, var(--_q-progress-tone-color)) );transition:width var( --q-progress-transition, var(--q-progress-bar-transition, var(--q-transition-normal, 250ms ease)) )}.progress-linear__fill.is-indeterminate{width:42%;animation:q-progress-linear-indeterminate var( --q-progress-indeterminate-duration, var(--q-progress-bar-indeterminate-duration, 1.4s) ) ease-in-out infinite}.progress-circular{width:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) );height:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) )}.progress-circular__svg{display:block;width:100%;height:100%}.progress-circular__rings{transform:rotate(-90deg);transform-origin:center}.progress-circular__track,.progress-circular__fill{fill:none;stroke-width:var( --q-progress-circular-stroke-width, var(--q-progress-stroke-width, var(--_q-progress-stroke-width)) )}.progress-circular__track{stroke:var(--q-progress-track-color, var(--_q-progress-track-color))}.progress-circular__fill{stroke:var( --q-progress-fill-color, var(--_q-progress-tone-color) );stroke-linecap:var(--q-progress-circular-linecap, round);transition:stroke-dashoffset var(--q-progress-transition, var(--q-transition-normal, 250ms ease))}.progress-circular__label{fill:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit);font-size:var( --q-progress-circular-font-size, var(--q-progress-font-size, var(--_q-progress-font-size)) );font-weight:var( --q-progress-circular-font-weight, var(--q-progress-font-weight, var(--q-font-weight-bold, 600)) );text-anchor:middle;dominant-baseline:central}:host([variant='circular'][indeterminate]) .progress-circular__rings{animation:q-progress-circular-indeterminate var(--q-progress-indeterminate-duration, 1.4s) linear infinite}@keyframes q-progress-linear-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(255%)}}@keyframes q-progress-circular-indeterminate{0%{transform:rotate(-90deg)}100%{transform:rotate(270deg)}}@media (prefers-reduced-motion: reduce){.progress-linear__fill,.progress-circular__fill{transition:none}.progress-linear__fill.is-indeterminate,:host([variant='circular'][indeterminate]) .progress-circular__rings{animation-duration:2.8s}}";export{o as q_input,p as q_progress}
|