@limetech/lime-elements 40.4.2 → 40.5.1
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/CHANGELOG.md +14 -0
- package/dist/cjs/component-UyqdiWGc.js +1576 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/{limel-breadcrumbs_8.cjs.entry.js → limel-breadcrumbs_6.cjs.entry.js} +188 -2164
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
- package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +454 -0
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +26 -5
- package/dist/cjs/limel-list-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination-jump.cjs.entry.js +182 -0
- package/dist/cjs/limel-pagination.cjs.entry.js +165 -126
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pagination.util-B5zzH8vg.js +135 -0
- package/dist/cjs/{translations-C5T2-_rH.js → translations-DFFpR6AZ.js} +32 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pagination/jump/pagination-jump.css +11 -0
- package/dist/collection/components/pagination/jump/pagination-jump.js +331 -0
- package/dist/collection/components/pagination/pagination.css +8 -4
- package/dist/collection/components/pagination/pagination.js +167 -10
- package/dist/collection/components/pagination/pagination.util.js +25 -8
- package/dist/collection/components/portal/portal.js +26 -5
- package/dist/collection/translations/da.js +4 -0
- package/dist/collection/translations/de.js +4 -0
- package/dist/collection/translations/en.js +4 -0
- package/dist/collection/translations/fi.js +4 -0
- package/dist/collection/translations/fr.js +4 -0
- package/dist/collection/translations/nl.js +4 -0
- package/dist/collection/translations/no.js +4 -0
- package/dist/collection/translations/sv.js +4 -0
- package/dist/esm/component-B2Vy44Z3.js +1570 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +1 -1
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/{limel-breadcrumbs_8.entry.js → limel-breadcrumbs_6.entry.js} +3 -1977
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +1 -1
- package/dist/esm/limel-code-diff.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-drag-handle.entry.js +1 -1
- package/dist/esm/limel-email-viewer.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-helper-line_3.entry.js +450 -0
- package/dist/esm/limel-hotkey_4.entry.js +26 -5
- package/dist/esm/limel-list-item.entry.js +1 -1
- package/dist/esm/limel-pagination-jump.entry.js +180 -0
- package/dist/esm/limel-pagination.entry.js +165 -126
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/limel-text-editor-link-menu.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pagination.util-CSC2LJ7P.js +132 -0
- package/dist/esm/{translations-Bwm2y2E4.js → translations-DMtX4tTX.js} +32 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-2bbdac10.entry.js → p-11a96a8c.entry.js} +1 -1
- package/dist/lime-elements/p-1e93473a.entry.js +1 -0
- package/dist/lime-elements/{p-6b7ff8e0.entry.js → p-2daf0482.entry.js} +1 -1
- package/dist/lime-elements/{p-a41b5ff3.entry.js → p-2e568c56.entry.js} +1 -1
- package/dist/lime-elements/{p-de631fc3.entry.js → p-2f57c3fa.entry.js} +1 -1
- package/dist/lime-elements/p-3735111e.entry.js +1 -0
- package/dist/lime-elements/{p-c823054d.entry.js → p-452b9b01.entry.js} +1 -1
- package/dist/lime-elements/{p-f333f12d.entry.js → p-4855dc9b.entry.js} +1 -1
- package/dist/lime-elements/{p-a462aeb7.entry.js → p-4902fb3f.entry.js} +1 -1
- package/dist/lime-elements/p-507cc8a1.entry.js +159 -0
- package/dist/lime-elements/{p-dadd2e17.entry.js → p-531b6a64.entry.js} +1 -1
- package/dist/lime-elements/{p-b194a212.entry.js → p-5698e493.entry.js} +1 -1
- package/dist/lime-elements/{p-65a9adfc.entry.js → p-67f02b69.entry.js} +1 -1
- package/dist/lime-elements/{p-1162dd39.entry.js → p-867681aa.entry.js} +1 -1
- package/dist/lime-elements/{p-f72ee01b.entry.js → p-90df3e1b.entry.js} +1 -1
- package/dist/lime-elements/{p-22f85b99.entry.js → p-955292eb.entry.js} +1 -1
- package/dist/lime-elements/{p-c2ff132c.entry.js → p-9b631363.entry.js} +1 -1
- package/dist/lime-elements/{p-8af3e4a1.entry.js → p-9d3437ac.entry.js} +1 -1
- package/dist/lime-elements/p-B8hoCfhT.js +1 -0
- package/dist/lime-elements/p-BwJGg-WI.js +89 -0
- package/dist/lime-elements/p-CSC2LJ7P.js +1 -0
- package/dist/lime-elements/p-a1de9bbe.entry.js +1 -0
- package/dist/lime-elements/{p-b5484494.entry.js → p-acba5700.entry.js} +1 -1
- package/dist/lime-elements/{p-f6361b03.entry.js → p-b8c76487.entry.js} +1 -1
- package/dist/lime-elements/{p-ac9c5c88.entry.js → p-cafec335.entry.js} +1 -1
- package/dist/lime-elements/{p-48928b4f.entry.js → p-d146feda.entry.js} +1 -1
- package/dist/lime-elements/{p-532ea234.entry.js → p-deceda00.entry.js} +1 -1
- package/dist/lime-elements/{p-e508771f.entry.js → p-f04f7c8e.entry.js} +1 -1
- package/dist/lime-elements/{p-51dc5f0b.entry.js → p-f3c108c9.entry.js} +1 -1
- package/dist/lime-elements/{p-24041bbb.entry.js → p-fbcd99a3.entry.js} +1 -1
- package/dist/types/components/pagination/jump/pagination-jump.d.ts +102 -0
- package/dist/types/components/pagination/pagination.d.ts +81 -0
- package/dist/types/components/pagination/pagination.util.d.ts +12 -2
- package/dist/types/components/portal/portal.d.ts +3 -0
- package/dist/types/components.d.ts +145 -0
- package/dist/types/translations/da.d.ts +4 -0
- package/dist/types/translations/de.d.ts +4 -0
- package/dist/types/translations/en.d.ts +4 -0
- package/dist/types/translations/fi.d.ts +4 -0
- package/dist/types/translations/fr.d.ts +4 -0
- package/dist/types/translations/nl.d.ts +4 -0
- package/dist/types/translations/no.d.ts +4 -0
- package/dist/types/translations/sv.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/limel-helper-line.cjs.entry.js +0 -42
- package/dist/esm/limel-helper-line.entry.js +0 -40
- package/dist/lime-elements/p-497b7be1.entry.js +0 -248
- package/dist/lime-elements/p-DAFuhe5e.js +0 -1
- package/dist/lime-elements/p-b4988a9b.entry.js +0 -1
- package/dist/lime-elements/p-f81dc23a.entry.js +0 -1
|
@@ -79,6 +79,7 @@ export class Portal {
|
|
|
79
79
|
this.anchor = null;
|
|
80
80
|
this.loaded = false;
|
|
81
81
|
this.writtenStyles = {};
|
|
82
|
+
this.scheduledRestyle = null;
|
|
82
83
|
this.parents = new WeakMap();
|
|
83
84
|
}
|
|
84
85
|
disconnectedCallback() {
|
|
@@ -113,7 +114,7 @@ export class Portal {
|
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
render() {
|
|
116
|
-
return h("slot", { key: '
|
|
117
|
+
return h("slot", { key: 'ce5bfa7d65680773e1917e0a6d54256f5852bd65' });
|
|
117
118
|
}
|
|
118
119
|
onVisible() {
|
|
119
120
|
if (!this.container && this.visible) {
|
|
@@ -239,6 +240,7 @@ export class Portal {
|
|
|
239
240
|
destroyPopper() {
|
|
240
241
|
var _a, _b;
|
|
241
242
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
243
|
+
this.cancelScheduledRestyle();
|
|
242
244
|
(_b = this.popperInstance) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
243
245
|
this.popperInstance = null;
|
|
244
246
|
}
|
|
@@ -248,14 +250,33 @@ export class Portal {
|
|
|
248
250
|
return;
|
|
249
251
|
}
|
|
250
252
|
(_a = this.observer) !== null && _a !== void 0 ? _a : (this.observer = new ResizeObserver(() => {
|
|
251
|
-
|
|
252
|
-
this.styleContainer();
|
|
253
|
-
this.popperInstance.update();
|
|
254
|
-
}
|
|
253
|
+
this.scheduleRestyle();
|
|
255
254
|
}));
|
|
256
255
|
this.observer.observe(this.container);
|
|
257
256
|
this.observer.observe(this.anchorElement);
|
|
258
257
|
}
|
|
258
|
+
// Restyling can resize the container this observer watches, so writing from
|
|
259
|
+
// inside the callback re-enters it as a `ResizeObserver loop`.
|
|
260
|
+
scheduleRestyle() {
|
|
261
|
+
if (this.scheduledRestyle !== null) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
this.scheduledRestyle = requestAnimationFrame(() => {
|
|
265
|
+
this.scheduledRestyle = null;
|
|
266
|
+
if (!this.popperInstance) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
this.styleContainer();
|
|
270
|
+
this.popperInstance.update();
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
cancelScheduledRestyle() {
|
|
274
|
+
if (this.scheduledRestyle === null) {
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
cancelAnimationFrame(this.scheduledRestyle);
|
|
278
|
+
this.scheduledRestyle = null;
|
|
279
|
+
}
|
|
259
280
|
createPopperConfig() {
|
|
260
281
|
const placement = this.getPlacement(this.openDirection);
|
|
261
282
|
const flipPlacement = this.getFlipPlacement(this.openDirection);
|
|
@@ -127,4 +127,8 @@ Du kan fortsætte med at blokere billeder (e-mailen kan se ufuldstændig ud) ell
|
|
|
127
127
|
'pagination.go-to-page': 'Gå til side { page }',
|
|
128
128
|
'pagination.current-page': 'Side { page }, nuværende side',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (af { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Hop til en side',
|
|
131
|
+
'pagination.page-number': 'Sidenummer',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Gå',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ Sie können Bilder weiterhin blockieren (die E-Mail kann unvollständig aussehen
|
|
|
127
127
|
'pagination.go-to-page': 'Zu Seite { page } wechseln',
|
|
128
128
|
'pagination.current-page': 'Seite { page }, aktuelle Seite',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (von { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Zu einer Seite springen',
|
|
131
|
+
'pagination.page-number': 'Seitenzahl',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Los',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ You can keep images blocked (the email may look incomplete), or load them if you
|
|
|
127
127
|
'pagination.go-to-page': 'Go to page { page }',
|
|
128
128
|
'pagination.current-page': 'Page { page }, current page',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (of { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Jump to a page',
|
|
131
|
+
'pagination.page-number': 'Page number',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Go',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ Voit pitää kuvat estettyinä (sähköposti voi näyttää puutteelliselta) tai
|
|
|
127
127
|
'pagination.go-to-page': 'Siirry sivulle { page }',
|
|
128
128
|
'pagination.current-page': 'Sivu { page }, nykyinen sivu',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (yhteensä { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Siirry tietylle sivulle',
|
|
131
|
+
'pagination.page-number': 'Sivunumero',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Siirry',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ Vous pouvez laisser les images bloquées (l'e-mail peut sembler incomplet) ou le
|
|
|
127
127
|
'pagination.go-to-page': 'Aller à la page { page }',
|
|
128
128
|
'pagination.current-page': 'Page { page }, page actuelle',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (sur { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Aller à une page',
|
|
131
|
+
'pagination.page-number': 'Numéro de page',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Aller',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ Je kunt afbeeldingen geblokkeerd houden (de e-mail kan er onvolledig uitzien) of
|
|
|
127
127
|
'pagination.go-to-page': 'Ga naar pagina { page }',
|
|
128
128
|
'pagination.current-page': 'Pagina { page }, huidige pagina',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (van { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Naar een pagina springen',
|
|
131
|
+
'pagination.page-number': 'Paginanummer',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Ga',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ Du kan fortsette å blokkere bilder (e-posten kan se ufullstendig ut), eller las
|
|
|
127
127
|
'pagination.go-to-page': 'Gå til side { page }',
|
|
128
128
|
'pagination.current-page': 'Side { page }, gjeldende side',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (av { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Hopp til en side',
|
|
131
|
+
'pagination.page-number': 'Sidenummer',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Gå',
|
|
130
134
|
};
|
|
@@ -127,4 +127,8 @@ Du kan fortsätta blockera bilder (e-posten kan se ofullständig ut) eller ladda
|
|
|
127
127
|
'pagination.go-to-page': 'Gå till sida { page }',
|
|
128
128
|
'pagination.current-page': 'Sida { page }, aktuell sida',
|
|
129
129
|
'pagination.items-range': '{ from }–{ to } (av { total })',
|
|
130
|
+
'pagination.jump-to-a-page': 'Hoppa till en sida',
|
|
131
|
+
'pagination.page-number': 'Sidnummer',
|
|
132
|
+
'pagination.page-range': '{ first }–{ last }',
|
|
133
|
+
'pagination.go': 'Gå',
|
|
130
134
|
};
|