@italia/sticky 1.0.0-alpha.8 → 1.0.0-alpha.9
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/custom-elements.json +152 -8
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/it-sticky.d.ts +8 -1
- package/dist/src/it-sticky.d.ts.map +1 -1
- package/dist/src/it-sticky.js +4 -1432
- package/dist/src/it-sticky.js.map +1 -1
- package/dist/src/sticky-controller.d.ts +77 -4
- package/dist/src/sticky-controller.d.ts.map +1 -1
- package/package.json +3 -3
package/custom-elements.json
CHANGED
|
@@ -14,6 +14,38 @@
|
|
|
14
14
|
"name": "ItSticky",
|
|
15
15
|
"module": "./it-sticky.js"
|
|
16
16
|
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "StickyController",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "StickyController",
|
|
23
|
+
"module": "./sticky-controller.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "js",
|
|
28
|
+
"name": "StickyConfig",
|
|
29
|
+
"declaration": {
|
|
30
|
+
"name": "StickyConfig",
|
|
31
|
+
"module": "./sticky-controller.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "js",
|
|
36
|
+
"name": "StickyElement",
|
|
37
|
+
"declaration": {
|
|
38
|
+
"name": "StickyElement",
|
|
39
|
+
"module": "./sticky-controller.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"kind": "js",
|
|
44
|
+
"name": "StickyOptions",
|
|
45
|
+
"declaration": {
|
|
46
|
+
"name": "StickyOptions",
|
|
47
|
+
"module": "./sticky-controller.js"
|
|
48
|
+
}
|
|
17
49
|
}
|
|
18
50
|
]
|
|
19
51
|
},
|
|
@@ -65,9 +97,23 @@
|
|
|
65
97
|
"attribute": "stackable",
|
|
66
98
|
"reflects": true
|
|
67
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "field",
|
|
102
|
+
"name": "position",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "'top' | 'bottom' | undefined"
|
|
105
|
+
},
|
|
106
|
+
"default": "'top'",
|
|
107
|
+
"description": "Which viewport edge to stick to. Use `'bottom'` together with `position-type=\"fixed\"` for a persistent bottom bar.",
|
|
108
|
+
"attribute": "position",
|
|
109
|
+
"reflects": true
|
|
110
|
+
},
|
|
68
111
|
{
|
|
69
112
|
"kind": "field",
|
|
70
113
|
"name": "_stickyController",
|
|
114
|
+
"type": {
|
|
115
|
+
"text": "StickyController"
|
|
116
|
+
},
|
|
71
117
|
"privacy": "public",
|
|
72
118
|
"default": "new StickyController(this, this)"
|
|
73
119
|
}
|
|
@@ -103,6 +149,15 @@
|
|
|
103
149
|
},
|
|
104
150
|
"default": "false",
|
|
105
151
|
"fieldName": "stackable"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "position",
|
|
155
|
+
"type": {
|
|
156
|
+
"text": "'top' | 'bottom' | undefined"
|
|
157
|
+
},
|
|
158
|
+
"default": "'top'",
|
|
159
|
+
"description": "Which viewport edge to stick to. Use `'bottom'` together with `position-type=\"fixed\"` for a persistent bottom bar.",
|
|
160
|
+
"fieldName": "position"
|
|
106
161
|
}
|
|
107
162
|
],
|
|
108
163
|
"superclass": {
|
|
@@ -242,6 +297,16 @@
|
|
|
242
297
|
},
|
|
243
298
|
"privacy": "private"
|
|
244
299
|
},
|
|
300
|
+
{
|
|
301
|
+
"kind": "field",
|
|
302
|
+
"name": "isBottom",
|
|
303
|
+
"type": {
|
|
304
|
+
"text": "boolean"
|
|
305
|
+
},
|
|
306
|
+
"privacy": "private",
|
|
307
|
+
"description": "Whether this controller is managing a bottom-edge element.",
|
|
308
|
+
"readonly": true
|
|
309
|
+
},
|
|
245
310
|
{
|
|
246
311
|
"kind": "method",
|
|
247
312
|
"name": "hostConnected"
|
|
@@ -285,13 +350,22 @@
|
|
|
285
350
|
},
|
|
286
351
|
{
|
|
287
352
|
"kind": "method",
|
|
288
|
-
"name": "
|
|
289
|
-
"privacy": "
|
|
353
|
+
"name": "walkElements",
|
|
354
|
+
"privacy": "private",
|
|
290
355
|
"return": {
|
|
291
356
|
"type": {
|
|
292
|
-
"text": "
|
|
357
|
+
"text": "StickyElement[]"
|
|
293
358
|
}
|
|
294
|
-
}
|
|
359
|
+
},
|
|
360
|
+
"parameters": [
|
|
361
|
+
{
|
|
362
|
+
"name": "predicate",
|
|
363
|
+
"type": {
|
|
364
|
+
"text": "(el: HTMLElement) => boolean"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"description": "Walks the DOM from `document.body` using a TreeWalker and collects every\nelement for which `predicate` returns true.\n\nCompared to `querySelectorAll` this avoids allocating a static NodeList,\nallows arbitrary JS predicates (not just CSS selectors), and is the\nidiomatic API for programmatic DOM traversal."
|
|
295
369
|
},
|
|
296
370
|
{
|
|
297
371
|
"kind": "method",
|
|
@@ -311,7 +385,38 @@
|
|
|
311
385
|
"type": {
|
|
312
386
|
"text": "number"
|
|
313
387
|
}
|
|
314
|
-
}
|
|
388
|
+
},
|
|
389
|
+
"description": "Computes the top offset for top-edge stackable stickies.\n\nVisual order: active fixed-top first (activation order), then\nnon-fixed in DOM order. Returns the cumulative height of all elements\nwith a lower visual order than this one."
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"kind": "method",
|
|
393
|
+
"name": "getFixedContainingBlockFor",
|
|
394
|
+
"privacy": "private",
|
|
395
|
+
"return": {
|
|
396
|
+
"type": {
|
|
397
|
+
"text": "Element | null"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"parameters": [
|
|
401
|
+
{
|
|
402
|
+
"name": "el",
|
|
403
|
+
"type": {
|
|
404
|
+
"text": "Element"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"description": "Returns the nearest ancestor element that creates a CSS fixed-position\ncontaining block (i.e. has a non-none `transform`, `filter`, or\n`perspective`), or `null` when the viewport is the containing block.\n\nTwo bottom-fixed elements that share the same containing block should\nstack against each other; elements in different containing blocks\n(e.g. separate Storybook story previews) are fully independent."
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"kind": "method",
|
|
412
|
+
"name": "computeBottomOffset",
|
|
413
|
+
"privacy": "protected",
|
|
414
|
+
"return": {
|
|
415
|
+
"type": {
|
|
416
|
+
"text": "number"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"description": "Computes the bottom offset for bottom-edge stackable stickies.\n\nOnly elements that share the same CSS fixed containing block are counted —\nthis prevents elements in separate story previews (or any transformed\ncontainers) from stacking against each other."
|
|
315
420
|
},
|
|
316
421
|
{
|
|
317
422
|
"kind": "method",
|
|
@@ -356,8 +461,15 @@
|
|
|
356
461
|
},
|
|
357
462
|
{
|
|
358
463
|
"kind": "method",
|
|
359
|
-
"name": "
|
|
360
|
-
"privacy": "private"
|
|
464
|
+
"name": "updateAllActiveFixedTopPositions",
|
|
465
|
+
"privacy": "private",
|
|
466
|
+
"description": "Restacks all active top-fixed stickies from the top of their respective\ncontaining block downward.\n\nSymmetric with `updateAllActiveFixedBottomPositions`: elements grouped by\nCSS containing block so that stickies in separate containers (e.g. different\nStorybook previews) each start at `top: 0` independently."
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"kind": "method",
|
|
470
|
+
"name": "updateAllActiveFixedBottomPositions",
|
|
471
|
+
"privacy": "private",
|
|
472
|
+
"description": "Restacks all active bottom-fixed stickies from the bottom of their\nrespective containing block upward.\n\nElements are grouped by their CSS fixed containing block so that\nstickies in separate containers (e.g. different Storybook previews)\neach start at `bottom: 0` and don't affect one another."
|
|
361
473
|
}
|
|
362
474
|
]
|
|
363
475
|
}
|
|
@@ -432,6 +544,14 @@
|
|
|
432
544
|
"text": "StoryObj"
|
|
433
545
|
},
|
|
434
546
|
"default": "{ parameters: { heading: 'Sticky impilabili con resize', description: ` Questo esempio mostra più componenti it-sticky con attributo stackable e la gestione dei resize del suo contenitore (ie media query). Utilizza il selettore per modificare la larghezza del contenitore: al variare della dimensione, gli elementi interni cambiano altezza grazie alle container query e rimangono comunque correttamente impilati uno sopra l’altro durante lo scroll. `, }, render: () => html` <div id=\"wrapper\" style=\"container-type: inline-size; height:100%; transition: width 0.3s; padding:1rem;\"> <div style=\"padding: 1rem;\"> CSS per il ridimensionamento del contenuto: <pre style=\"background: #333; color: #eee; padding: 1rem; border-radius: 8px; overflow-x: auto;\"> .resizable-content { height: 40px; transition: height 0.3s; } /* Container queries */ @container (max-width: 1200px) { .resizable-content { height: 40px; } } @container (max-width: 1000px) { .resizable-content { height: 60px; } } @container (max-width: 800px) { .resizable-content { height: 80px; } } @container (max-width: 500px) { .resizable-content { height: 100px; } } </pre > </div> <it-sticky stackable sticky-class-name=\"l-0\" class=\"mb-4 p-2 bg-light border\" padding-top=\"16\" position-type=\"fixed\" > <label for=\"size\">Seleziona la larghezza del contenuto:</label> <select id=\"size\" name=\"size\" @change=${(e: Event) => { const target = e.target as HTMLSelectElement; // trova la .container definita nel decorator (il blocco grigio) const outerContainer = document.querySelector('.container') as HTMLElement | null; if (outerContainer) { outerContainer.style.width = `${target.value}px`; // forza reflow per render immediato delle container query outerContainer.getBoundingClientRect(); } else { // fallback: imposta il wrapper locale const wrapper = document.getElementById('wrapper') as HTMLDivElement | null; if (wrapper) { wrapper.style.width = `${target.value}px`; wrapper.getBoundingClientRect(); } } }} > <option value=\"1200\">1200px</option> <option value=\"1000\">1000px</option> <option value=\"800\">800px</option> <option value=\"600\">600px</option> <option value=\"400\">400px</option> </select> </it-sticky> <it-sticky class=\"bg-primary p-2 text-white w-100\" stackable> <div class=\"resizable-content\">Sticky Stackable 1</div> </it-sticky> <div style=\"height: 500px;\"></div> <it-sticky class=\"bg-success p-2 text-white w-100\" stackable> <div class=\"resizable-content\">Sticky Stackable 2</div> </it-sticky> <div style=\"height: 500px;\"></div> <it-sticky class=\"bg-warning p-2 text-white w-100\" stackable position-type=\"fixed\" sticky-class-name=\"l-0\"> <div class=\"resizable-content\">Another Stackable Sticky 3</div> </it-sticky> <it-sticky class=\"bg-danger p-2 text-white w-100\" stackable padding-top=\"50\"> <div class=\"resizable-content\">Sticky Stackable padded 1</div> </it-sticky> <div style=\"height: 500px;\"></div> <it-sticky class=\"bg-dark p-2 text-white w-100\" stackable padding-top=\"100\"> <div class=\"resizable-content\">Sticky Stackable padded 3</div> </it-sticky> <div style=\"height: 500px;\"></div> <style> .resizable-content { height: 40px; transition: height 0.3s; } /* Container queries */ @container (max-width: 1200px) { .resizable-content { height: 40px; } } @container (max-width: 1000px) { .resizable-content { height: 60px; } } @container (max-width: 800px) { .resizable-content { height: 80px; } } @container (max-width: 500px) { .resizable-content { height: 100px; } } </style> </div> `, }"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"kind": "variable",
|
|
550
|
+
"name": "FixedBottomSticky",
|
|
551
|
+
"type": {
|
|
552
|
+
"text": "StoryObj"
|
|
553
|
+
},
|
|
554
|
+
"default": "{ parameters: { heading: 'Esempio it-sticky: position bottom fixed', description: \"La barra in fondo è fissa dal caricamento della pagina — nessuno scroll necessario. Aggiungendo l'attributo stackable è possibile impilarne più d'una verso l'alto.\", }, render: () => html` <div style=\"height: 400px; display: flex; align-items: center; justify-content: center;\"> <p style=\"text-align:center; color:#666;\"> La barra è agganciata al bordo inferiore del viewport.<br /> Prova a ridimensionare la finestra del browser. </p> </div> <it-sticky position=\"bottom\" position-type=\"fixed\" stackable class=\"bg-primary text-white p-3 w-100\"> <div class=\"w-100 text-center\">Barra fissa in fondo — primo livello</div> </it-sticky> <it-sticky position=\"bottom\" position-type=\"fixed\" stackable class=\"bg-success text-white p-2 w-100\"> <div class=\"w-100 text-center\">Barra fissa in fondo — secondo livello (impilata)</div> </it-sticky> `, }"
|
|
435
555
|
}
|
|
436
556
|
],
|
|
437
557
|
"exports": [
|
|
@@ -490,6 +610,14 @@
|
|
|
490
610
|
"name": "StackableStickyResize",
|
|
491
611
|
"module": "stories/it-sticky-examples.stories.ts"
|
|
492
612
|
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"kind": "js",
|
|
616
|
+
"name": "FixedBottomSticky",
|
|
617
|
+
"declaration": {
|
|
618
|
+
"name": "FixedBottomSticky",
|
|
619
|
+
"module": "stories/it-sticky-examples.stories.ts"
|
|
620
|
+
}
|
|
493
621
|
}
|
|
494
622
|
]
|
|
495
623
|
},
|
|
@@ -503,7 +631,7 @@
|
|
|
503
631
|
"type": {
|
|
504
632
|
"text": "Meta"
|
|
505
633
|
},
|
|
506
|
-
"default": "{ title: 'Componenti/Sticky', component: 'it-sticky', tags: ['autodocs', 'a11y-ok', 'web-component'], args: { stackable: false, paddingTop: 0, stickyClassName: undefined, positionType: undefined, }, parameters: { docs: { description: { component: `<Description>Rende un elemento della pagina costantemente visibile allo scorrere della pagina.</Description> Talvolta è necessario che uno o più elementi della pagina restino sempre visibili anche quando essa viene fatta scorrere. Questo comportamento viene comunemente definito “sticky”. <br> Il componente <code><it-sticky></code> consente di mantenere visibile un elemento della pagina durante lo scroll, applicando automaticamente il comportamento “sticky”. <br> Per utilizzarlo, basta racchiudere il contenuto da fissare all’interno del tag <code><it-sticky></code>. Il componente gestisce in autonomia anche casi avanzati, come elementi impilabili o con padding e classi personalizzate, attraverso specifiche proprietà. <br> È disponibile una <a href=\"iframe.html?globals=&id=esempi-sticky--single-sticky&viewMode=story\" target=\"_blank\" rel=\"noopener\"> pagina di esempio </a> dedicata a questa funzionalità per comprenderne appieno significato ed utilizzo. `, }, }, }, argTypes: { stackable: { control: 'boolean', description: \"Attiva/disattiva la possibilità di rendere l'elemento impilabile su altri elementi sticky presenti in pagina\", table: { defaultValue: { summary: false } }, }, paddingTop: { control: 'number', description: \"Indica la distanza dall'elemento in sticky dal margine superiore\", table: { defaultValue: { summary: 0 } }, }, stickyClassName: { control: 'text', description: \"Classi CSS da applicare all'elemento quando viene attivata la funzionalità sticky\", table: { defaultValue: { summary: '' } }, }, positionType: { control: { type: 'select' }, options: ['sticky', 'fixed'], description: 'Indica il valore della proprietà CSS `position`. I valori ammessi sono `sticky` o `fixed`', table: { defaultValue: { summary: 'sticky' } }, }, }, render: (args) => renderSticky(args), }"
|
|
634
|
+
"default": "{ title: 'Componenti/Sticky', component: 'it-sticky', tags: ['autodocs', 'a11y-ok', 'web-component'], args: { stackable: false, paddingTop: 0, stickyClassName: undefined, positionType: undefined, position: undefined, }, parameters: { docs: { description: { component: `<Description>Rende un elemento della pagina costantemente visibile allo scorrere della pagina.</Description> Talvolta è necessario che uno o più elementi della pagina restino sempre visibili anche quando essa viene fatta scorrere. Questo comportamento viene comunemente definito “sticky”. <br> Il componente <code><it-sticky></code> consente di mantenere visibile un elemento della pagina durante lo scroll, applicando automaticamente il comportamento “sticky”. <br> Per utilizzarlo, basta racchiudere il contenuto da fissare all’interno del tag <code><it-sticky></code>. Il componente gestisce in autonomia anche casi avanzati, come elementi impilabili o con padding e classi personalizzate, attraverso specifiche proprietà. <br> È disponibile una <a href=\"iframe.html?globals=&id=esempi-sticky--single-sticky&viewMode=story\" target=\"_blank\" rel=\"noopener\"> pagina di esempio </a> dedicata a questa funzionalità per comprenderne appieno significato ed utilizzo. `, }, }, }, argTypes: { stackable: { control: 'boolean', description: \"Attiva/disattiva la possibilità di rendere l'elemento impilabile su altri elementi sticky presenti in pagina\", table: { defaultValue: { summary: false } }, }, paddingTop: { control: 'number', description: \"Indica la distanza dall'elemento in sticky dal margine superiore\", table: { defaultValue: { summary: 0 } }, }, stickyClassName: { control: 'text', description: \"Classi CSS da applicare all'elemento quando viene attivata la funzionalità sticky\", table: { defaultValue: { summary: '' } }, }, positionType: { control: { type: 'select' }, options: ['sticky', 'fixed'], description: 'Indica il valore della proprietà CSS `position`. I valori ammessi sono `sticky` o `fixed`', table: { defaultValue: { summary: 'sticky' } }, }, position: { control: { type: 'select' }, options: ['top', 'bottom'], description: \"Indica il bordo del viewport a cui agganciare l'elemento. Usa `'bottom'` con `position-type=\\\"fixed\\\"` per una barra persistente in fondo alla pagina.\", table: { defaultValue: { summary: 'top' } }, }, }, render: (args) => renderSticky(args), }"
|
|
507
635
|
},
|
|
508
636
|
{
|
|
509
637
|
"kind": "variable",
|
|
@@ -552,6 +680,14 @@
|
|
|
552
680
|
"text": "Story"
|
|
553
681
|
},
|
|
554
682
|
"default": "{ name: 'Eventi Custom', parameters: { viewMode: 'docs', docs: { canvas: { hidden: true, sourceState: 'none' }, description: { story: ` Il componente <code>it-sticky</code> emette eventi custom per notificare quando un elemento diventa sticky o smette di esserlo: - <strong>it-sticky-on</strong>: Emesso quando l'elemento diventa sticky - <strong>it-sticky-off</strong>: Emesso quando l'elemento smette di essere sticky ##### Proprietà degli eventi: Entrambi gli eventi hanno le seguenti proprietà: - <code>bubbles: true</code> - L'evento si propaga attraverso il DOM - <code>composed: true</code> - L'evento attraversa i confini del Shadow DOM - <code>cancelable: true</code> - L'evento può essere cancellato - <code>detail: { id: string }</code> - Contiene l'ID dell'elemento sticky ##### Esempio di utilizzo: \\`\\`\\`javascript const stickyElement = document.querySelector('it-sticky'); // Ascolta quando diventa sticky stickyElement.addEventListener('it-sticky-on', (event) => { console.log('Elemento diventato sticky:', event.detail.id); // Aggiungi logica personalizzata }); // Ascolta quando smette di essere sticky stickyElement.addEventListener('it-sticky-off', (event) => { console.log('Elemento non più sticky:', event.detail.id); // Aggiungi logica personalizzata }); \\`\\`\\` \\`\\`\\` `, }, }, }, }"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"kind": "variable",
|
|
686
|
+
"name": "FixedBottom",
|
|
687
|
+
"type": {
|
|
688
|
+
"text": "Story"
|
|
689
|
+
},
|
|
690
|
+
"default": "{ name: 'Position fixed bottom', parameters: { docs: { description: { story: ` Usando <code>position=\"bottom\"</code> insieme a <code>position-type=\"fixed\"</code> l'elemento viene agganciato al bordo inferiore del viewport immediatamente al caricamento — senza attendere lo scroll. Questo è il comportamento usato internamente da <code>it-bottom-nav</code>. <br> È disponibile una <a href=\"iframe.html?globals=&id=esempi-sticky--fixed-bottom-sticky&viewMode=story\" target=\"_blank\" rel=\"noopener\"> pagina di esempio </a> dedicata a questa funzionalità. `, }, source: { code: `<it-sticky position=\"bottom\" position-type=\"fixed\">\\n <div class=\"bg-primary text-white p-3\">Barra fissa in fondo</div>\\n</it-sticky>`, }, }, }, }"
|
|
555
691
|
}
|
|
556
692
|
],
|
|
557
693
|
"exports": [
|
|
@@ -610,6 +746,14 @@
|
|
|
610
746
|
"name": "CustomEvents",
|
|
611
747
|
"module": "stories/it-sticky.stories.ts"
|
|
612
748
|
}
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"kind": "js",
|
|
752
|
+
"name": "FixedBottom",
|
|
753
|
+
"declaration": {
|
|
754
|
+
"name": "FixedBottom",
|
|
755
|
+
"module": "stories/it-sticky.stories.ts"
|
|
756
|
+
}
|
|
613
757
|
}
|
|
614
758
|
]
|
|
615
759
|
}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/src/index.js
CHANGED
package/dist/src/it-sticky.d.ts
CHANGED
|
@@ -5,8 +5,15 @@ export declare class ItSticky extends BaseComponent {
|
|
|
5
5
|
stickyClassName?: StickyOptions['stickyClassName'];
|
|
6
6
|
positionType?: StickyOptions['positionType'];
|
|
7
7
|
stackable?: StickyOptions['stackable'];
|
|
8
|
-
|
|
8
|
+
/** Which viewport edge to stick to. Use `'bottom'` together with `position-type="fixed"` for a persistent bottom bar. */
|
|
9
|
+
position?: 'top' | 'bottom';
|
|
10
|
+
_stickyController: StickyController;
|
|
9
11
|
protected updated(): void;
|
|
10
12
|
createRenderRoot(): this;
|
|
11
13
|
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'it-sticky': ItSticky;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
12
19
|
//# sourceMappingURL=it-sticky.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it-sticky.d.ts","sourceRoot":"","sources":["../../src/it-sticky.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEzE,
|
|
1
|
+
{"version":3,"file":"it-sticky.d.ts","sourceRoot":"","sources":["../../src/it-sticky.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEzE,qBAAa,QAAS,SAAQ,aAAa;IACc,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAK;IAEvC,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAEvD,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAY;IAErE,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAS;IAE3F,yHAAyH;IAC5F,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAS;IAE1D,iBAAiB,EAAE,gBAAgB,CAAoC;cAE3D,OAAO,IAAI,IAAI;IAclC,gBAAgB;CAGjB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|