@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.
Files changed (98) hide show
  1. package/README.md +11 -0
  2. package/dist/pallete/app-globals-0f993ce5.js +3 -0
  3. package/dist/pallete/css-shim-60f618b9.js +4 -0
  4. package/dist/pallete/dom-4eeb3fee.js +73 -0
  5. package/dist/pallete/index-1ac7471e.js +3059 -0
  6. package/dist/pallete/index.esm.js +1 -0
  7. package/dist/pallete/my-backdrop.entry.js +15 -0
  8. package/dist/pallete/my-colorbox.entry.js +40 -0
  9. package/dist/{components/my-colorinfo2.js → pallete/my-colorinfo.entry.js} +7 -35
  10. package/dist/{components/my-component.js → pallete/my-component.entry.js} +10 -72
  11. package/dist/pallete/my-loader.entry.js +15 -0
  12. package/dist/{components/my-modal2.js → pallete/my-modal.entry.js} +84 -76
  13. package/dist/pallete/my-search.entry.js +36 -0
  14. package/dist/pallete/my-slider.entry.js +11333 -0
  15. package/dist/pallete/pallete.css +3 -1
  16. package/dist/pallete/pallete.esm.js +129 -1
  17. package/dist/pallete/shadow-css-02866686.js +387 -0
  18. package/package.json +1 -1
  19. package/www/build/app-globals-0f993ce5.js +3 -0
  20. package/www/build/css-shim-60f618b9.js +4 -0
  21. package/www/build/dom-4eeb3fee.js +73 -0
  22. package/www/build/gtmUtils-dcdac4ce.js +5 -0
  23. package/www/build/index-1ac7471e.js +3059 -0
  24. package/www/build/index.esm.js +1 -0
  25. package/www/build/my-backdrop.entry.js +15 -0
  26. package/www/build/my-colorbox.entry.js +40 -0
  27. package/www/build/my-colorinfo.entry.js +36 -0
  28. package/www/build/my-component.entry.js +154 -0
  29. package/www/build/my-loader.entry.js +15 -0
  30. package/www/build/my-modal.entry.js +2459 -0
  31. package/www/build/my-search.entry.js +36 -0
  32. package/www/build/my-slider.entry.js +11333 -0
  33. package/www/build/pallete.css +3 -1
  34. package/www/build/pallete.esm.js +129 -1
  35. package/www/build/shadow-css-02866686.js +387 -0
  36. package/www/index.html +40 -2
  37. package/dist/cjs/index-029079e0.js +0 -1365
  38. package/dist/cjs/index.cjs.js +0 -2
  39. package/dist/cjs/loader.cjs.js +0 -21
  40. package/dist/cjs/my-backdrop_8.cjs.entry.js +0 -8109
  41. package/dist/cjs/pallete.cjs.js +0 -19
  42. package/dist/collection/collection-manifest.json +0 -19
  43. package/dist/collection/components/api/index.js +0 -19
  44. package/dist/collection/components/api/services.js +0 -81
  45. package/dist/collection/components/my-backdrop/my-backdrop.css +0 -21
  46. package/dist/collection/components/my-backdrop/my-backdrop.js +0 -13
  47. package/dist/collection/components/my-colorbox/my-colorbox.css +0 -60
  48. package/dist/collection/components/my-colorbox/my-colorbox.js +0 -145
  49. package/dist/collection/components/my-colorinfo/my-colorinfo.js +0 -197
  50. package/dist/collection/components/my-component/my-component.css +0 -6
  51. package/dist/collection/components/my-component/my-component.js +0 -107
  52. package/dist/collection/components/my-loader/my-loader.css +0 -85
  53. package/dist/collection/components/my-loader/my-loader.js +0 -18
  54. package/dist/collection/components/my-modal/assets/arrow_down.png +0 -0
  55. package/dist/collection/components/my-modal/assets/close.png +0 -0
  56. package/dist/collection/components/my-modal/my-modal.css +0 -323
  57. package/dist/collection/components/my-modal/my-modal.js +0 -430
  58. package/dist/collection/components/my-search/assets/search.svg +0 -15
  59. package/dist/collection/components/my-search/my-search.css +0 -43
  60. package/dist/collection/components/my-search/my-search.js +0 -113
  61. package/dist/collection/components/my-slider/index.js +0 -145
  62. package/dist/collection/components/my-slider/my-slider.css +0 -96
  63. package/dist/collection/gtmUtils.js +0 -3
  64. package/dist/collection/index.js +0 -1
  65. package/dist/collection/types.js +0 -1
  66. package/dist/components/index.js +0 -9
  67. package/dist/components/index2.js +0 -5458
  68. package/dist/components/my-backdrop.js +0 -6
  69. package/dist/components/my-backdrop2.js +0 -29
  70. package/dist/components/my-colorbox.js +0 -6
  71. package/dist/components/my-colorbox2.js +0 -61
  72. package/dist/components/my-colorinfo.js +0 -6
  73. package/dist/components/my-loader.js +0 -6
  74. package/dist/components/my-loader2.js +0 -29
  75. package/dist/components/my-modal.js +0 -6
  76. package/dist/components/my-search.js +0 -6
  77. package/dist/components/my-search2.js +0 -55
  78. package/dist/components/my-slider.js +0 -6
  79. package/dist/esm/index-faf4241e.js +0 -1337
  80. package/dist/esm/index.js +0 -1
  81. package/dist/esm/loader.js +0 -17
  82. package/dist/esm/my-backdrop_8.entry.js +0 -8098
  83. package/dist/esm/pallete.js +0 -17
  84. package/dist/esm/polyfills/core-js.js +0 -11
  85. package/dist/esm/polyfills/css-shim.js +0 -1
  86. package/dist/esm/polyfills/dom.js +0 -79
  87. package/dist/esm/polyfills/es5-html-element.js +0 -1
  88. package/dist/esm/polyfills/index.js +0 -34
  89. package/dist/esm/polyfills/system.js +0 -6
  90. package/dist/index.cjs.js +0 -1
  91. package/dist/index.js +0 -1
  92. package/dist/pallete/p-562ae52f.js +0 -2
  93. package/dist/pallete/p-e260bfb9.entry.js +0 -1
  94. package/www/build/p-562ae52f.js +0 -2
  95. package/www/build/p-b6a676fa.css +0 -11
  96. package/www/build/p-e260bfb9.entry.js +0 -1
  97. package/www/build/p-ef55983a.js +0 -129
  98. /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 };