@everymatrix/general-slider 1.44.0 → 1.45.2

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 (47) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-slider.cjs.entry.js +195 -221
  3. package/dist/cjs/general-slider.cjs.js +16 -10
  4. package/dist/cjs/index-a188f427.js +1190 -0
  5. package/dist/cjs/loader.cjs.js +6 -12
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/general-slider/general-slider.js +365 -391
  8. package/dist/collection/components/general-slider/index.js +1 -0
  9. package/dist/collection/utils/utils.js +1 -1
  10. package/dist/esm/app-globals-0f993ce5.js +3 -0
  11. package/dist/esm/general-slider.entry.js +195 -221
  12. package/dist/esm/general-slider.js +13 -10
  13. package/dist/esm/index-81e4031d.js +1163 -0
  14. package/dist/esm/loader.js +6 -12
  15. package/dist/general-slider/general-slider.esm.js +1 -1
  16. package/dist/general-slider/p-0c9064c9.entry.js +1 -0
  17. package/dist/general-slider/p-b2733fb4.js +2 -0
  18. package/dist/general-slider/p-e1255160.js +1 -0
  19. package/dist/stencil.config.dev.js +17 -0
  20. package/dist/stencil.config.js +14 -19
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.d.ts +2 -0
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.dev.d.ts +2 -0
  23. package/dist/types/components/general-slider/general-slider.d.ts +67 -67
  24. package/dist/types/components/general-slider/index.d.ts +1 -0
  25. package/dist/types/stencil-public-runtime.d.ts +142 -33
  26. package/loader/cdn.js +1 -3
  27. package/loader/index.cjs.js +1 -3
  28. package/loader/index.d.ts +13 -1
  29. package/loader/index.es2017.js +1 -3
  30. package/loader/index.js +1 -3
  31. package/loader/package.json +1 -0
  32. package/package.json +8 -4
  33. package/dist/cjs/index-813e9dd4.js +0 -1176
  34. package/dist/components/general-slider.d.ts +0 -11
  35. package/dist/components/general-slider.js +0 -260
  36. package/dist/components/index.d.ts +0 -26
  37. package/dist/components/index.js +0 -1
  38. package/dist/esm/index-3bef6f6d.js +0 -1150
  39. package/dist/esm/polyfills/core-js.js +0 -11
  40. package/dist/esm/polyfills/css-shim.js +0 -1
  41. package/dist/esm/polyfills/dom.js +0 -79
  42. package/dist/esm/polyfills/es5-html-element.js +0 -1
  43. package/dist/esm/polyfills/index.js +0 -34
  44. package/dist/esm/polyfills/system.js +0 -6
  45. package/dist/general-slider/p-1d97b302.js +0 -1
  46. package/dist/general-slider/p-20e28994.entry.js +0 -1
  47. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-slider/.stencil/packages/general-slider/stencil.config.d.ts +0 -2
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;
@@ -2,232 +2,206 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-813e9dd4.js');
5
+ const index = require('./index-a188f427.js');
6
6
 
7
7
  const generalSliderCss = ":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emfe-w-color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";
8
+ const GeneralSliderStyle0 = generalSliderCss;
8
9
 
9
10
  const GeneralSlider = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Slide Count
14
- */
15
- this.slideNumber = 3;
16
- /**
17
- * Slides to show
18
- */
19
- this.slideShow = 3;
20
- /**
21
- * Display the arrow icon
22
- */
23
- this.showArrow = true;
24
- /**
25
- * Display the button
26
- */
27
- this.showButton = false;
28
- /**
29
- * Auto Slide
30
- */
31
- this.autoSlide = false;
32
- /**
33
- * Auto Slide loop time
34
- */
35
- this.loopTime = 1;
36
- /**
37
- * Auto fill the Item height
38
- */
39
- this.autoItemHeight = false;
40
- /**
41
- * Client custom styling via inline styles
42
- */
43
- this.clientStyling = '';
44
- /**
45
- * Client custom styling via url
46
- */
47
- this.clientStylingUrl = '';
48
- this.currentSlideNumber = 0;
49
- this.slidesCount = 0;
50
- this.limitStylingAppends = false;
51
- this.slides = null;
52
- this.slideWidth = 0;
53
- this.currentPage = 0;
54
- this.controls = {
55
- Prev: null,
56
- Next: null
57
- };
58
- this.xDown = null;
59
- this.yDown = null;
60
- }
61
- slide(next) {
62
- let slideTo = 0;
63
- if (next) {
64
- slideTo = this.currentSlideNumber + this.slideNumber;
65
- }
66
- else {
67
- slideTo = this.currentSlideNumber - this.slideNumber;
68
- }
69
- if (slideTo < 0 || slideTo >= this.slidesCount)
70
- return;
71
- this.currentSlideNumber = slideTo;
72
- this.currentPage = this.currentSlideNumber / this.slideNumber;
73
- this.updateListStyle();
74
- }
75
- slideTo(page) {
76
- this.currentSlideNumber = page * this.slideNumber;
77
- this.currentPage = page;
78
- this.updateListStyle();
79
- }
80
- updateControls() {
81
- this.switchControl('Prev', (this.currentSlideNumber === 0) ? false : true);
82
- this.switchControl('Next', (this.currentSlideNumber === this.slidesCount - this.slideShow) ? false : true);
83
- }
84
- switchControl(type, enabled) {
85
- if (this.controls[type]) {
86
- this.controls[type].disabled = !enabled;
87
- }
88
- }
89
- componentWillLoad() {
90
- if (!this.slideNumber)
91
- this.slideNumber = 1;
92
- if (!this.slideShow)
93
- this.slideShow = 1;
94
- }
95
- componentDidLoad() {
96
- this.slides = this.slotEl.assignedElements();
97
- this.slidesCount = this.slides.length;
98
- for (let type in this.controls) {
99
- this.controls[type] = this.el.shadowRoot.querySelector('.Button' + type);
100
- }
101
- if (this.autoSlide) {
102
- this.setSlideAutoInterval();
103
- }
104
- if (!this.limitStylingAppends && this.el.shadowRoot) {
105
- if (this.clientStyling)
106
- this.setClientStyling();
107
- if (this.clientStylingUrl)
108
- this.setClientStylingURL();
109
- this.limitStylingAppends = true;
110
- }
111
- }
112
- componentDidRender() {
113
- if (this.slides)
114
- this.slideWidth = this.slides[0].offsetWidth;
115
- this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), { passive: true });
116
- this.el.addEventListener('touchmove', this.handleTouchMove.bind(this), { passive: true });
117
- this.updateListStyle();
118
- if (!this.limitStylingAppends && this.el.shadowRoot) {
119
- if (this.clientStyling)
120
- this.setClientStyling();
121
- if (this.clientStylingUrl)
122
- this.setClientStylingURL();
123
- this.limitStylingAppends = true;
124
- }
125
- }
126
- updateListStyle() {
127
- if (!this.autoItemHeight)
128
- return;
129
- if (this.slides === null)
130
- return;
131
- this.slides.forEach((li, index) => {
132
- if (index >= this.currentPage * this.slideNumber && index < (this.currentPage + 1) * this.slideNumber) {
133
- li.classList.remove('hide');
134
- }
135
- else {
136
- li.classList.add('hide');
137
- }
138
- });
139
- }
140
- disconnectedCallback() {
141
- this.el.removeEventListener('touchstart', this.handleTouchStart);
142
- this.el.removeEventListener('touchmove', this.handleTouchMove);
143
- }
144
- handleTouchStart(evt) {
145
- const firstTouch = this.getTouches(evt)[0];
146
- this.xDown = firstTouch.clientX;
147
- this.yDown = firstTouch.clientY;
148
- clearInterval(this.sliderInterval);
149
- }
150
- getTouches(evt) {
151
- return evt.touches || evt.originalEvent.touches;
152
- }
153
- handleTouchMove(evt) {
154
- if (!this.xDown || !this.yDown)
155
- return;
156
- let xUp = evt.touches[0].clientX;
157
- let yUp = evt.touches[0].clientY;
158
- let xDiff = this.xDown - xUp;
159
- let yDiff = this.yDown - yUp;
160
- if (Math.abs(xDiff) > Math.abs(yDiff)) {
161
- if (xDiff > 0) {
162
- this.slide(true);
163
- }
164
- else {
165
- this.slide(false);
166
- }
167
- }
168
- this.xDown = null;
169
- this.yDown = null;
170
- if (this.autoSlide) {
171
- this.setSlideAutoInterval();
172
- }
173
- }
174
- ;
175
- setSlideAutoInterval() {
176
- if (this.loopTime == 0) {
177
- return;
178
- }
179
- clearInterval(this.sliderInterval);
180
- this.sliderInterval = setInterval(() => {
181
- if (this.currentPage + 1 < this.slidesCount / this.slideNumber) {
182
- this.slideTo(this.currentPage + 1);
183
- }
184
- else {
185
- this.slideTo(0);
186
- }
187
- }, Number(this.loopTime) * 1000);
188
- }
189
- componentDidUpdate() {
190
- this.sliderEl.style.transform = `translateX(${this.currentSlideNumber * this.slideWidth * -1}px)`;
191
- this.updateControls();
192
- }
193
- switchLoopStatus(isMouseMoveEnter) {
194
- if (!this.autoSlide)
195
- return;
196
- if (this.loopTime > 0) {
197
- if (isMouseMoveEnter) {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.slides = null;
14
+ this.slideWidth = 0;
15
+ this.currentPage = 0;
16
+ this.controls = {
17
+ Prev: null,
18
+ Next: null
19
+ };
20
+ this.xDown = null;
21
+ this.yDown = null;
22
+ this.slideNumber = 3;
23
+ this.slideShow = 3;
24
+ this.showArrow = true;
25
+ this.showButton = false;
26
+ this.autoSlide = false;
27
+ this.loopTime = 1;
28
+ this.autoItemHeight = false;
29
+ this.clientStyling = '';
30
+ this.clientStylingUrl = '';
31
+ this.currentSlideNumber = 0;
32
+ this.slidesCount = 0;
33
+ this.limitStylingAppends = false;
34
+ }
35
+ slide(next) {
36
+ let slideTo = 0;
37
+ if (next) {
38
+ slideTo = this.currentSlideNumber + this.slideNumber;
39
+ }
40
+ else {
41
+ slideTo = this.currentSlideNumber - this.slideNumber;
42
+ }
43
+ if (slideTo < 0 || slideTo >= this.slidesCount)
44
+ return;
45
+ this.currentSlideNumber = slideTo;
46
+ this.currentPage = this.currentSlideNumber / this.slideNumber;
47
+ this.updateListStyle();
48
+ }
49
+ slideTo(page) {
50
+ this.currentSlideNumber = page * this.slideNumber;
51
+ this.currentPage = page;
52
+ this.updateListStyle();
53
+ }
54
+ updateControls() {
55
+ this.switchControl('Prev', (this.currentSlideNumber === 0) ? false : true);
56
+ this.switchControl('Next', (this.currentSlideNumber === this.slidesCount - this.slideShow) ? false : true);
57
+ }
58
+ switchControl(type, enabled) {
59
+ if (this.controls[type]) {
60
+ this.controls[type].disabled = !enabled;
61
+ }
62
+ }
63
+ componentWillLoad() {
64
+ if (!this.slideNumber)
65
+ this.slideNumber = 1;
66
+ if (!this.slideShow)
67
+ this.slideShow = 1;
68
+ }
69
+ componentDidLoad() {
70
+ this.slides = this.slotEl.assignedElements();
71
+ this.slidesCount = this.slides.length;
72
+ for (let type in this.controls) {
73
+ this.controls[type] = this.el.shadowRoot.querySelector('.Button' + type);
74
+ }
75
+ if (this.autoSlide) {
76
+ this.setSlideAutoInterval();
77
+ }
78
+ if (!this.limitStylingAppends && this.el.shadowRoot) {
79
+ if (this.clientStyling)
80
+ this.setClientStyling();
81
+ if (this.clientStylingUrl)
82
+ this.setClientStylingURL();
83
+ this.limitStylingAppends = true;
84
+ }
85
+ }
86
+ componentDidRender() {
87
+ if (this.slides)
88
+ this.slideWidth = this.slides[0].offsetWidth;
89
+ this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), { passive: true });
90
+ this.el.addEventListener('touchmove', this.handleTouchMove.bind(this), { passive: true });
91
+ this.updateListStyle();
92
+ if (!this.limitStylingAppends && this.el.shadowRoot) {
93
+ if (this.clientStyling)
94
+ this.setClientStyling();
95
+ if (this.clientStylingUrl)
96
+ this.setClientStylingURL();
97
+ this.limitStylingAppends = true;
98
+ }
99
+ }
100
+ updateListStyle() {
101
+ if (!this.autoItemHeight)
102
+ return;
103
+ if (this.slides === null)
104
+ return;
105
+ this.slides.forEach((li, index) => {
106
+ if (index >= this.currentPage * this.slideNumber && index < (this.currentPage + 1) * this.slideNumber) {
107
+ li.classList.remove('hide');
108
+ }
109
+ else {
110
+ li.classList.add('hide');
111
+ }
112
+ });
113
+ }
114
+ disconnectedCallback() {
115
+ this.el.removeEventListener('touchstart', this.handleTouchStart);
116
+ this.el.removeEventListener('touchmove', this.handleTouchMove);
117
+ }
118
+ handleTouchStart(evt) {
119
+ const firstTouch = this.getTouches(evt)[0];
120
+ this.xDown = firstTouch.clientX;
121
+ this.yDown = firstTouch.clientY;
198
122
  clearInterval(this.sliderInterval);
199
- }
200
- else {
201
- this.setSlideAutoInterval();
202
- }
203
- }
204
- }
205
- setClientStyling() {
206
- const sheet = new CSSStyleSheet();
207
- // @ts-ignore
208
- sheet.replace(this.clientStyling);
209
- // @ts-ignore
210
- this.el.shadowRoot.adoptedStyleSheets = [...this.el.shadowRoot.adoptedStyleSheets, sheet];
211
- }
212
- setClientStylingURL() {
213
- let url = new URL(this.clientStylingUrl);
214
- fetch(url.href)
215
- .then((res) => res.text())
216
- .then((data) => {
217
- const sheet = new CSSStyleSheet();
218
- // @ts-ignore
219
- sheet.replace(data);
220
- // @ts-ignore
221
- this.el.shadowRoot.adoptedStyleSheets = [...this.el.shadowRoot.adoptedStyleSheets, sheet];
222
- });
223
- }
224
- render() {
225
- return (index.h("div", { class: "GeneralSlider" }, index.h("div", { class: "Slider" }, this.showArrow &&
226
- index.h("div", null, index.h("button", { type: "button", class: "Button ButtonNext", onClick: this.slide.bind(this, true), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, ">"), index.h("button", { type: "button", class: "Button ButtonPrev", onClick: this.slide.bind(this, false), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "<")), index.h("ul", { class: `SliderList Col-${this.slideShow}`, part: "SliderList", onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false), ref: (el) => this.sliderEl = el }, index.h("slot", { ref: (el) => this.slotEl = el }))), this.showButton && this.slidesCount > 0 &&
227
- index.h("div", { class: "PageButtons", part: "PageButtons" }, [...Array(this.slidesCount / this.slideNumber)].map((_x, i) => index.h("div", { class: `PageButton ${this.currentPage == i ? 'active' : ''}`, title: `page${i}`, onClick: this.slideTo.bind(this, i), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "\u00A0")))));
228
- }
229
- get el() { return index.getElement(this); }
123
+ }
124
+ getTouches(evt) {
125
+ return evt.touches || evt.originalEvent.touches;
126
+ }
127
+ handleTouchMove(evt) {
128
+ if (!this.xDown || !this.yDown)
129
+ return;
130
+ let xUp = evt.touches[0].clientX;
131
+ let yUp = evt.touches[0].clientY;
132
+ let xDiff = this.xDown - xUp;
133
+ let yDiff = this.yDown - yUp;
134
+ if (Math.abs(xDiff) > Math.abs(yDiff)) {
135
+ if (xDiff > 0) {
136
+ this.slide(true);
137
+ }
138
+ else {
139
+ this.slide(false);
140
+ }
141
+ }
142
+ this.xDown = null;
143
+ this.yDown = null;
144
+ if (this.autoSlide) {
145
+ this.setSlideAutoInterval();
146
+ }
147
+ }
148
+ ;
149
+ setSlideAutoInterval() {
150
+ if (this.loopTime == 0) {
151
+ return;
152
+ }
153
+ clearInterval(this.sliderInterval);
154
+ this.sliderInterval = setInterval(() => {
155
+ if (this.currentPage + 1 < this.slidesCount / this.slideNumber) {
156
+ this.slideTo(this.currentPage + 1);
157
+ }
158
+ else {
159
+ this.slideTo(0);
160
+ }
161
+ }, Number(this.loopTime) * 1000);
162
+ }
163
+ componentDidUpdate() {
164
+ this.sliderEl.style.transform = `translateX(${this.currentSlideNumber * this.slideWidth * -1}px)`;
165
+ this.updateControls();
166
+ }
167
+ switchLoopStatus(isMouseMoveEnter) {
168
+ if (!this.autoSlide)
169
+ return;
170
+ if (this.loopTime > 0) {
171
+ if (isMouseMoveEnter) {
172
+ clearInterval(this.sliderInterval);
173
+ }
174
+ else {
175
+ this.setSlideAutoInterval();
176
+ }
177
+ }
178
+ }
179
+ setClientStyling() {
180
+ const sheet = new CSSStyleSheet();
181
+ // @ts-ignore
182
+ sheet.replace(this.clientStyling);
183
+ // @ts-ignore
184
+ this.el.shadowRoot.adoptedStyleSheets = [...this.el.shadowRoot.adoptedStyleSheets, sheet];
185
+ }
186
+ setClientStylingURL() {
187
+ let url = new URL(this.clientStylingUrl);
188
+ fetch(url.href)
189
+ .then((res) => res.text())
190
+ .then((data) => {
191
+ const sheet = new CSSStyleSheet();
192
+ // @ts-ignore
193
+ sheet.replace(data);
194
+ // @ts-ignore
195
+ this.el.shadowRoot.adoptedStyleSheets = [...this.el.shadowRoot.adoptedStyleSheets, sheet];
196
+ });
197
+ }
198
+ render() {
199
+ return (index.h("div", { key: 'b8c30bef4c9ca004256c94cb642e8acb350afea4', class: "GeneralSlider" }, index.h("div", { key: '27d6869ae4f675f5e14d17fae20718ec24391e1b', class: "Slider" }, this.showArrow &&
200
+ index.h("div", { key: '61acebc8e1a0ecf02ae6dad1ecc6f618424d05d5' }, index.h("button", { key: 'c593883f94b693d6dfe741b2b4ed08185db36ef2', type: "button", class: "Button ButtonNext", onClick: this.slide.bind(this, true), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, ">"), index.h("button", { key: '2bea5e3e9f36443e78bc25f0556dce2adb7111a0', type: "button", class: "Button ButtonPrev", onClick: this.slide.bind(this, false), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "<")), index.h("ul", { key: '6643c865256f26b5d06ec78044a2b595832ecb5e', class: `SliderList Col-${this.slideShow}`, part: "SliderList", onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false), ref: (el) => this.sliderEl = el }, index.h("slot", { key: '48f1ad37b771f32ecc27f3065d58bc7ef1a8a021', ref: (el) => this.slotEl = el }))), this.showButton && this.slidesCount > 0 &&
201
+ index.h("div", { key: 'd125efa8c68a6e913664d01fb395ed6cada71f5b', class: "PageButtons", part: "PageButtons" }, [...Array(this.slidesCount / this.slideNumber)].map((_x, i) => index.h("div", { class: `PageButton ${this.currentPage == i ? 'active' : ''}`, title: `page${i}`, onClick: this.slideTo.bind(this, i), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "\u00A0")))));
202
+ }
203
+ get el() { return index.getElement(this); }
230
204
  };
231
- GeneralSlider.style = generalSliderCss;
205
+ GeneralSlider.style = GeneralSliderStyle0;
232
206
 
233
207
  exports.general_slider = GeneralSlider;
@@ -1,19 +1,25 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-813e9dd4.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-a188f427.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
4
7
 
5
8
  /*
6
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
10
  */
8
- const patchBrowser = () => {
9
- const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-slider.cjs.js', document.baseURI).href));
10
- const opts = {};
11
- if (importMeta !== '') {
12
- opts.resourcesUrl = new URL('.', importMeta).href;
13
- }
14
- return index.promiseResolve(opts);
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-slider.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
15
18
  };
16
19
 
17
- patchBrowser().then(options => {
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
18
22
  return index.bootstrapLazy([["general-slider.cjs",[[1,"general-slider",{"slideNumber":[2,"slide-number"],"slideShow":[2,"slide-show"],"showArrow":[4,"show-arrow"],"showButton":[4,"show-button"],"autoSlide":[4,"auto-slide"],"loopTime":[2,"loop-time"],"autoItemHeight":[4,"auto-item-height"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"currentSlideNumber":[32],"slidesCount":[32],"limitStylingAppends":[32]}]]]], options);
19
23
  });
24
+
25
+ exports.setNonce = index.setNonce;