vviinn-widgets 0.9.13 → 0.9.14
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/{app-globals-5906aa4a.js → app-globals-f9a2af0b.js} +1 -1
- package/dist/cjs/cropper-handler_28.cjs.entry.js +7 -5
- package/dist/cjs/{imageSearch.store-208f6141.js → imageSearch.store-3ab9e4db.js} +1 -1
- package/dist/cjs/{index-1a1dd8b6.js → index-69377de1.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{products.worker-f2b33e52.js → products.worker-6a789bc0.js} +2 -2
- package/dist/cjs/{vpr-slider-06b608ee.js → vpr-slider-56bf6a5b.js} +2 -2
- package/dist/cjs/vpr-slider.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vpr-widget.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-widgets.cjs.js +2 -2
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +1 -1
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +4 -2
- package/dist/esm/{app-globals-424a1fd4.js → app-globals-df77db5b.js} +1 -1
- package/dist/esm/cropper-handler_28.entry.js +7 -5
- package/dist/esm/{imageSearch.store-7a626035.js → imageSearch.store-e916edff.js} +1 -1
- package/dist/esm/{index-724bc3c6.js → index-532f9415.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{products.worker-1a671586.js → products.worker-e4da004b.js} +2 -2
- package/dist/esm/{vpr-slider-5e9a6671.js → vpr-slider-a6b5984f.js} +2 -2
- package/dist/esm/vpr-slider.entry.js +2 -2
- package/dist/esm/vviinn-vpr-widget.entry.js +2 -2
- package/dist/esm/vviinn-widgets.js +2 -2
- package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +1 -0
- package/dist/vviinn-widgets/{p-4f8c58c3.js → p-002164e3.js} +1 -1
- package/dist/vviinn-widgets/{p-7f6dcb0d.js → p-2380b571.js} +1 -1
- package/dist/vviinn-widgets/p-61a93884.entry.js +1 -0
- package/dist/vviinn-widgets/{p-c6501a30.entry.js → p-69951aff.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-b7180882.js → p-7c508755.js} +1 -1
- package/dist/vviinn-widgets/{p-fa7e42ff.js → p-8c7bc74f.js} +1 -1
- package/dist/vviinn-widgets/{p-2f1f071a.js → p-bfc7bf61.js} +1 -1
- package/dist/vviinn-widgets/p-c988147f.entry.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-4f8c58c3.js → p-002164e3.js} +1 -1
- package/www/build/{p-7f6dcb0d.js → p-2380b571.js} +1 -1
- package/www/build/{p-9a7af9f5.js → p-60356a92.js} +3 -3
- package/www/build/p-61a93884.entry.js +1 -0
- package/www/build/{p-c6501a30.entry.js → p-69951aff.entry.js} +1 -1
- package/www/build/{p-b7180882.js → p-7c508755.js} +1 -1
- package/www/build/{p-fa7e42ff.js → p-8c7bc74f.js} +1 -1
- package/www/build/{p-2f1f071a.js → p-bfc7bf61.js} +1 -1
- package/www/build/p-c988147f.entry.js +1 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/vviinn-widgets/p-355e521c.entry.js +0 -1
- package/dist/vviinn-widgets/p-f6a7f71d.entry.js +0 -1
- package/www/build/p-355e521c.entry.js +0 -1
- package/www/build/p-f6a7f71d.entry.js +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const imageSearch_store = require('./imageSearch.store-
|
|
5
|
+
const index = require('./index-69377de1.js');
|
|
6
|
+
const imageSearch_store = require('./imageSearch.store-3ab9e4db.js');
|
|
7
7
|
|
|
8
8
|
const cropperHandlerCss = ":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";
|
|
9
9
|
|
|
@@ -576,7 +576,7 @@ let VviinnImageSelector = class {
|
|
|
576
576
|
return imageSearch_store.imageSearchState.loading || imageSearch_store.imageSearchState.objectDetectionInProgress;
|
|
577
577
|
}
|
|
578
578
|
render() {
|
|
579
|
-
return (index.h(index.Host, { exportparts: "button" }, index.h("vviinn-preloader", null), this.isLoading() ? null : (index.h("label", { htmlFor: "fileInput", part: "button" }, index.h("slot", { name: "upload-button-text" }, "Upload image"))), index.h("input", { id: "fileInput", class: "visually-hidden", type: "file", accept: "image/*", onChange: (event) => this.handleInputChange(event) })));
|
|
579
|
+
return (index.h(index.Host, { exportparts: "button" }, this.isLoading() ? index.h("vviinn-preloader", null) : null, this.isLoading() ? null : (index.h("label", { htmlFor: "fileInput", part: "button" }, index.h("slot", { name: "upload-button-text" }, "Upload image"))), index.h("input", { id: "fileInput", class: "visually-hidden", type: "file", accept: "image/*", onChange: (event) => this.handleInputChange(event) })));
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
VviinnImageSelector.style = vviinnImageSelectorCss;
|
|
@@ -785,10 +785,12 @@ let VviinnPreloader = class {
|
|
|
785
785
|
constructor(hostRef) {
|
|
786
786
|
index.registerInstance(this, hostRef);
|
|
787
787
|
}
|
|
788
|
+
isActive() {
|
|
789
|
+
return (imageSearch_store.imageSearchState.loading || imageSearch_store.imageSearchState.objectDetectionInProgress);
|
|
790
|
+
}
|
|
788
791
|
render() {
|
|
789
792
|
return (index.h(index.Host, { class: {
|
|
790
|
-
active:
|
|
791
|
-
imageSearch_store.imageSearchState.objectDetectionInProgress,
|
|
793
|
+
active: this.isActive(),
|
|
792
794
|
} }));
|
|
793
795
|
}
|
|
794
796
|
};
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'vviinn-widgets';
|
|
24
|
-
const Env = /* vviinn-widgets */ {"packageVersion":"0.9.
|
|
24
|
+
const Env = /* vviinn-widgets */ {"packageVersion":"0.9.14","packageName":"vviinn-widgets","environment":"production"};
|
|
25
25
|
|
|
26
26
|
let scopeId;
|
|
27
27
|
let contentRef;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const appGlobals = require('./app-globals-
|
|
5
|
+
const index = require('./index-69377de1.js');
|
|
6
|
+
const appGlobals = require('./app-globals-f9a2af0b.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const vprSlider_entry = require('./vpr-slider-
|
|
4
|
-
require('./index-
|
|
3
|
+
const vprSlider_entry = require('./vpr-slider-56bf6a5b.js');
|
|
4
|
+
require('./index-69377de1.js');
|
|
5
5
|
|
|
6
6
|
const workerName = 'products.worker';
|
|
7
7
|
const workerMsgId = 'stencil.products.worker';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-69377de1.js');
|
|
4
4
|
|
|
5
5
|
const isInstanceOf = (value, className) => {
|
|
6
6
|
const C = globalThis[className];
|
|
@@ -104,7 +104,7 @@ const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (
|
|
|
104
104
|
})
|
|
105
105
|
);
|
|
106
106
|
|
|
107
|
-
const workerPromise = Promise.resolve().then(function () { return require('./products.worker-
|
|
107
|
+
const workerPromise = Promise.resolve().then(function () { return require('./products.worker-6a789bc0.js'); }).then(m => m.worker);
|
|
108
108
|
const rebuildProducts = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.products.worker', 'rebuildProducts');
|
|
109
109
|
const rewrapProducts = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.products.worker', 'rewrapProducts');
|
|
110
110
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const vprSlider_entry = require('./vpr-slider-
|
|
6
|
-
require('./index-
|
|
5
|
+
const vprSlider_entry = require('./vpr-slider-56bf6a5b.js');
|
|
6
|
+
require('./index-69377de1.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const imageSearch_store = require('./imageSearch.store-
|
|
5
|
+
const index = require('./index-69377de1.js');
|
|
6
|
+
const imageSearch_store = require('./imageSearch.store-3ab9e4db.js');
|
|
7
7
|
|
|
8
8
|
const createBearerString = (x) => `Bearer ${x}`;
|
|
9
9
|
const createAuthedHeader = (x) => new Headers({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const appGlobals = require('./app-globals-
|
|
3
|
+
const index = require('./index-69377de1.js');
|
|
4
|
+
const appGlobals = require('./app-globals-f9a2af0b.js');
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -36,7 +36,7 @@ export class VviinnImageSelector {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
return (h(Host, { exportparts: "button" },
|
|
39
|
-
h("vviinn-preloader", null),
|
|
39
|
+
this.isLoading() ? h("vviinn-preloader", null) : null,
|
|
40
40
|
this.isLoading() ? null : (h("label", { htmlFor: "fileInput", part: "button" },
|
|
41
41
|
h("slot", { name: "upload-button-text" }, "Upload image"))),
|
|
42
42
|
h("input", { id: "fileInput", class: "visually-hidden", type: "file", accept: "image/*", onChange: (event) => this.handleInputChange(event) })));
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Component, Host, h } from "@stencil/core";
|
|
2
2
|
import { imageSearchState } from "../../store/imageSearch.store";
|
|
3
3
|
export class VviinnPreloader {
|
|
4
|
+
isActive() {
|
|
5
|
+
return (imageSearchState.loading || imageSearchState.objectDetectionInProgress);
|
|
6
|
+
}
|
|
4
7
|
render() {
|
|
5
8
|
return (h(Host, { class: {
|
|
6
|
-
active:
|
|
7
|
-
imageSearchState.objectDetectionInProgress,
|
|
9
|
+
active: this.isActive(),
|
|
8
10
|
} }));
|
|
9
11
|
}
|
|
10
12
|
static get is() { return "vviinn-preloader"; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
2
|
-
import { g as getCursorValue, p as pipe, O as Option, s as sequenceToOption, i as imageSearchState, a as pointDiffSemigroup, _ as _function, t as transform, m as move, f as fromMouseEvent, b as makeRectangularSearchRequest, c as fromAlt, d as foldValueObject, e as scaleWithSized, h as center, j as detectedObjectEq, u as uploadFile, T as TaskEither, k as isSome, n as none, E as Either, l as fromOption, o as chain, q as fromEither, r as chainTaskK, v as mapLeft, w as map, x as chain$1, y as fromImage, S as Semigroup, z as state, A as createCommonjsModule, B as internal, F as Functor, C as Apply, D as Chain, G as commonjsGlobal, H as Ord$1, I as Eq$1, J as state$1 } from './imageSearch.store-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-532f9415.js';
|
|
2
|
+
import { g as getCursorValue, p as pipe, O as Option, s as sequenceToOption, i as imageSearchState, a as pointDiffSemigroup, _ as _function, t as transform, m as move, f as fromMouseEvent, b as makeRectangularSearchRequest, c as fromAlt, d as foldValueObject, e as scaleWithSized, h as center, j as detectedObjectEq, u as uploadFile, T as TaskEither, k as isSome, n as none, E as Either, l as fromOption, o as chain, q as fromEither, r as chainTaskK, v as mapLeft, w as map, x as chain$1, y as fromImage, S as Semigroup, z as state, A as createCommonjsModule, B as internal, F as Functor, C as Apply, D as Chain, G as commonjsGlobal, H as Ord$1, I as Eq$1, J as state$1 } from './imageSearch.store-e916edff.js';
|
|
3
3
|
|
|
4
4
|
const cropperHandlerCss = ":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";
|
|
5
5
|
|
|
@@ -572,7 +572,7 @@ let VviinnImageSelector = class {
|
|
|
572
572
|
return imageSearchState.loading || imageSearchState.objectDetectionInProgress;
|
|
573
573
|
}
|
|
574
574
|
render() {
|
|
575
|
-
return (h(Host, { exportparts: "button" }, h("vviinn-preloader", null), this.isLoading() ? null : (h("label", { htmlFor: "fileInput", part: "button" }, h("slot", { name: "upload-button-text" }, "Upload image"))), h("input", { id: "fileInput", class: "visually-hidden", type: "file", accept: "image/*", onChange: (event) => this.handleInputChange(event) })));
|
|
575
|
+
return (h(Host, { exportparts: "button" }, this.isLoading() ? h("vviinn-preloader", null) : null, this.isLoading() ? null : (h("label", { htmlFor: "fileInput", part: "button" }, h("slot", { name: "upload-button-text" }, "Upload image"))), h("input", { id: "fileInput", class: "visually-hidden", type: "file", accept: "image/*", onChange: (event) => this.handleInputChange(event) })));
|
|
576
576
|
}
|
|
577
577
|
};
|
|
578
578
|
VviinnImageSelector.style = vviinnImageSelectorCss;
|
|
@@ -781,10 +781,12 @@ let VviinnPreloader = class {
|
|
|
781
781
|
constructor(hostRef) {
|
|
782
782
|
registerInstance(this, hostRef);
|
|
783
783
|
}
|
|
784
|
+
isActive() {
|
|
785
|
+
return (imageSearchState.loading || imageSearchState.objectDetectionInProgress);
|
|
786
|
+
}
|
|
784
787
|
render() {
|
|
785
788
|
return (h(Host, { class: {
|
|
786
|
-
active:
|
|
787
|
-
imageSearchState.objectDetectionInProgress,
|
|
789
|
+
active: this.isActive(),
|
|
788
790
|
} }));
|
|
789
791
|
}
|
|
790
792
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'vviinn-widgets';
|
|
2
|
-
const Env = /* vviinn-widgets */ {"packageVersion":"0.9.
|
|
2
|
+
const Env = /* vviinn-widgets */ {"packageVersion":"0.9.14","packageName":"vviinn-widgets","environment":"production"};
|
|
3
3
|
|
|
4
4
|
let scopeId;
|
|
5
5
|
let contentRef;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
import { g as globalScripts } from './app-globals-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-532f9415.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-df77db5b.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createWorker } from './vpr-slider-
|
|
2
|
-
import './index-
|
|
1
|
+
import { c as createWorker } from './vpr-slider-a6b5984f.js';
|
|
2
|
+
import './index-532f9415.js';
|
|
3
3
|
|
|
4
4
|
const workerName = 'products.worker';
|
|
5
5
|
const workerMsgId = 'stencil.products.worker';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as consoleError, r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { d as consoleError, r as registerInstance, h, H as Host, g as getElement } from './index-532f9415.js';
|
|
2
2
|
|
|
3
3
|
const isInstanceOf = (value, className) => {
|
|
4
4
|
const C = globalThis[className];
|
|
@@ -102,7 +102,7 @@ const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (
|
|
|
102
102
|
})
|
|
103
103
|
);
|
|
104
104
|
|
|
105
|
-
const workerPromise = import('./products.worker-
|
|
105
|
+
const workerPromise = import('./products.worker-e4da004b.js').then(m => m.worker);
|
|
106
106
|
const rebuildProducts = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.products.worker', 'rebuildProducts');
|
|
107
107
|
const rewrapProducts = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.products.worker', 'rewrapProducts');
|
|
108
108
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { V as vpr_slider } from './vpr-slider-
|
|
2
|
-
import './index-
|
|
1
|
+
export { V as vpr_slider } from './vpr-slider-a6b5984f.js';
|
|
2
|
+
import './index-532f9415.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { _ as _function, p as pipe, K as chainW, L as makeRequest, q as fromEither, M as getApiPath, N as createInitGetRequest, P as sequenceT, Q as Apply, J as state, O as Option, T as TaskEither, E as Either, i as imageSearchState } from './imageSearch.store-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-532f9415.js';
|
|
2
|
+
import { _ as _function, p as pipe, K as chainW, L as makeRequest, q as fromEither, M as getApiPath, N as createInitGetRequest, P as sequenceT, Q as Apply, J as state, O as Option, T as TaskEither, E as Either, i as imageSearchState } from './imageSearch.store-e916edff.js';
|
|
3
3
|
|
|
4
4
|
const createBearerString = (x) => `Bearer ${x}`;
|
|
5
5
|
const createAuthedHeader = (x) => new Headers({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
import { g as globalScripts } from './app-globals-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-532f9415.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-df77db5b.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|