@ppg_pl/pallete 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/pallete/app-globals-0f993ce5.js +3 -0
- package/dist/pallete/css-shim-60f618b9.js +4 -0
- package/dist/pallete/dom-4eeb3fee.js +73 -0
- package/dist/pallete/index-1ac7471e.js +3059 -0
- package/dist/pallete/index.esm.js +1 -0
- package/dist/pallete/my-backdrop.entry.js +15 -0
- package/dist/pallete/my-colorbox.entry.js +40 -0
- package/dist/{components/my-colorinfo2.js → pallete/my-colorinfo.entry.js} +7 -35
- package/dist/{components/my-component.js → pallete/my-component.entry.js} +10 -72
- package/dist/pallete/my-loader.entry.js +15 -0
- package/dist/{components/my-modal2.js → pallete/my-modal.entry.js} +84 -76
- package/dist/pallete/my-search.entry.js +36 -0
- package/dist/pallete/my-slider.entry.js +11333 -0
- package/dist/pallete/pallete.css +3 -1
- package/dist/pallete/pallete.esm.js +129 -1
- package/dist/pallete/shadow-css-02866686.js +387 -0
- package/package.json +1 -1
- package/www/build/app-globals-0f993ce5.js +3 -0
- package/www/build/css-shim-60f618b9.js +4 -0
- package/www/build/dom-4eeb3fee.js +73 -0
- package/www/build/gtmUtils-dcdac4ce.js +5 -0
- package/www/build/index-1ac7471e.js +3059 -0
- package/www/build/index.esm.js +1 -0
- package/www/build/my-backdrop.entry.js +15 -0
- package/www/build/my-colorbox.entry.js +40 -0
- package/www/build/my-colorinfo.entry.js +36 -0
- package/www/build/my-component.entry.js +154 -0
- package/www/build/my-loader.entry.js +15 -0
- package/www/build/my-modal.entry.js +2459 -0
- package/www/build/my-search.entry.js +36 -0
- package/www/build/my-slider.entry.js +11333 -0
- package/www/build/pallete.css +3 -1
- package/www/build/pallete.esm.js +129 -1
- package/www/build/shadow-css-02866686.js +387 -0
- package/www/index.html +40 -2
- package/dist/cjs/index-029079e0.js +0 -1365
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/my-backdrop_8.cjs.entry.js +0 -8109
- package/dist/cjs/pallete.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -19
- package/dist/collection/components/api/index.js +0 -19
- package/dist/collection/components/api/services.js +0 -81
- package/dist/collection/components/my-backdrop/my-backdrop.css +0 -21
- package/dist/collection/components/my-backdrop/my-backdrop.js +0 -13
- package/dist/collection/components/my-colorbox/my-colorbox.css +0 -60
- package/dist/collection/components/my-colorbox/my-colorbox.js +0 -145
- package/dist/collection/components/my-colorinfo/my-colorinfo.js +0 -197
- package/dist/collection/components/my-component/my-component.css +0 -6
- package/dist/collection/components/my-component/my-component.js +0 -107
- package/dist/collection/components/my-loader/my-loader.css +0 -85
- package/dist/collection/components/my-loader/my-loader.js +0 -18
- package/dist/collection/components/my-modal/assets/arrow_down.png +0 -0
- package/dist/collection/components/my-modal/assets/close.png +0 -0
- package/dist/collection/components/my-modal/my-modal.css +0 -323
- package/dist/collection/components/my-modal/my-modal.js +0 -430
- package/dist/collection/components/my-search/assets/search.svg +0 -15
- package/dist/collection/components/my-search/my-search.css +0 -43
- package/dist/collection/components/my-search/my-search.js +0 -113
- package/dist/collection/components/my-slider/index.js +0 -145
- package/dist/collection/components/my-slider/my-slider.css +0 -96
- package/dist/collection/gtmUtils.js +0 -3
- package/dist/collection/index.js +0 -1
- package/dist/collection/types.js +0 -1
- package/dist/components/index.js +0 -9
- package/dist/components/index2.js +0 -5458
- package/dist/components/my-backdrop.js +0 -6
- package/dist/components/my-backdrop2.js +0 -29
- package/dist/components/my-colorbox.js +0 -6
- package/dist/components/my-colorbox2.js +0 -61
- package/dist/components/my-colorinfo.js +0 -6
- package/dist/components/my-loader.js +0 -6
- package/dist/components/my-loader2.js +0 -29
- package/dist/components/my-modal.js +0 -6
- package/dist/components/my-search.js +0 -6
- package/dist/components/my-search2.js +0 -55
- package/dist/components/my-slider.js +0 -6
- package/dist/esm/index-faf4241e.js +0 -1337
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/my-backdrop_8.entry.js +0 -8098
- package/dist/esm/pallete.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/pallete/p-562ae52f.js +0 -2
- package/dist/pallete/p-e260bfb9.entry.js +0 -1
- package/www/build/p-562ae52f.js +0 -2
- package/www/build/p-b6a676fa.css +0 -11
- package/www/build/p-e260bfb9.entry.js +0 -1
- package/www/build/p-ef55983a.js +0 -129
- /package/dist/{components/gtmUtils.js → pallete/gtmUtils-dcdac4ce.js} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { r as registerInstance, e as createEvent, h, f as getAssetPath } from './index-1ac7471e.js';
|
|
2
|
+
|
|
3
|
+
const mySearchCss = ".pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{margin-bottom:12px;font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:-20px;top:0;width:50px;height:calc(100% - 12px);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
|
|
4
|
+
|
|
5
|
+
const MySearch = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.searchColors = createEvent(this, "searchColors", 7);
|
|
9
|
+
this.searchIcon = 'search.svg';
|
|
10
|
+
this.searchText = null;
|
|
11
|
+
this.fetchColorsByName = (text) => {
|
|
12
|
+
this.searchColors.emit(text);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
onInputChangeValue(event) {
|
|
16
|
+
const value = event.target.value;
|
|
17
|
+
this.searchColors.emit(value);
|
|
18
|
+
this.searchText = value;
|
|
19
|
+
}
|
|
20
|
+
fetchColorsByNameHandle(newValue) {
|
|
21
|
+
this.fetchColorsByName(newValue);
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return (h("div", { class: 'search' }, h("input", { placeholder: this.isMobile ? 'Wyszukaj kolor' : 'Wyszukaj kolor po nazwie bądź numerze', value: this.searchText || '', type: "text", onInput: this.onInputChangeValue.bind(this) }), h("button", { onClick: () => {
|
|
25
|
+
this.searchText && this.fetchColorsByName(this.searchText);
|
|
26
|
+
this.searchText = '';
|
|
27
|
+
} }, h("img", { src: getAssetPath(`./assets/${this.searchIcon}`), alt: "arrow_down" }))));
|
|
28
|
+
}
|
|
29
|
+
static get assetsDirs() { return ["assets"]; }
|
|
30
|
+
static get watchers() { return {
|
|
31
|
+
"searchText": ["fetchColorsByNameHandle"]
|
|
32
|
+
}; }
|
|
33
|
+
};
|
|
34
|
+
MySearch.style = mySearchCss;
|
|
35
|
+
|
|
36
|
+
export { MySearch as my_search };
|