@dso-toolkit/core 51.2.1 → 51.4.0
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/dist/cjs/annotation.service-e980f478.js +21 -0
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +2 -192
- package/dist/cjs/dso-alert.cjs.entry.js +1 -1
- package/dist/cjs/dso-annotation-button.cjs.entry.js +25 -0
- package/dist/cjs/dso-annotation-output.cjs.entry.js +35 -0
- package/dist/cjs/dso-badge.cjs.entry.js +1 -1
- package/dist/cjs/dso-card.cjs.entry.js +5 -3
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +45 -1
- package/dist/cjs/dso-expandable-heading.cjs.entry.js +47 -0
- package/dist/cjs/dso-expandable.cjs.entry.js +20 -0
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -2
- package/dist/cjs/dso-info_2.cjs.entry.js +4 -3
- package/dist/cjs/dso-label.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js +12 -4
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +4 -1801
- package/dist/cjs/index-71b733b1.js +196 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-controls.interfaces-5ceec716.js +5 -0
- package/dist/cjs/popper-6adb1c1a.js +1803 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/accordion/components/accordion-section.css +6 -11
- package/dist/collection/components/alert/alert.css +4 -4
- package/dist/collection/components/annotation-button/annotation-button.css +3 -0
- package/dist/collection/components/annotation-button/annotation-button.js +45 -0
- package/dist/collection/components/annotation-output/annotation-output.css +82 -0
- package/dist/collection/components/annotation-output/annotation-output.interfaces.js +1 -0
- package/dist/collection/components/annotation-output/annotation-output.js +126 -0
- package/dist/collection/components/badge/badge.css +7 -2
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/card/card.css +0 -1
- package/dist/collection/components/card/card.js +22 -2
- package/dist/collection/components/dropdown-menu/dropdown-menu.css +0 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +64 -0
- package/dist/collection/components/expandable/expandable.css +24 -0
- package/dist/collection/components/expandable/expandable.js +42 -0
- package/dist/collection/components/expandable-heading/expandable-heading.css +145 -0
- package/dist/collection/components/expandable-heading/expandable-heading.interfaces.js +1 -0
- package/dist/collection/components/expandable-heading/expandable-heading.js +117 -0
- package/dist/collection/components/expandable-heading/heading.js +16 -0
- package/dist/collection/components/header/header.css +2 -2
- package/dist/collection/components/highlight-box/highlight-box.css +1 -0
- package/dist/collection/components/image-overlay/image-overlay.js +1 -3
- package/dist/collection/components/info/info.css +1 -0
- package/dist/collection/components/label/label.css +11 -10
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/map-controls/map-controls.interfaces.js +1 -0
- package/dist/collection/components/map-controls/map-controls.js +58 -2
- package/dist/collection/components/selectable/selectable.css +1 -0
- package/dist/collection/components/selectable/selectable.js +19 -1
- package/dist/collection/index.js +3 -0
- package/dist/collection/services/annotation.service.js +16 -0
- package/dist/components/annotation.service.js +19 -0
- package/dist/components/dropdown-menu.js +47 -2
- package/dist/components/dso-accordion-section.js +2 -2
- package/dist/components/dso-accordion.js +2 -192
- package/dist/components/dso-alert.js +1 -1
- package/dist/components/dso-annotation-button.d.ts +11 -0
- package/dist/components/dso-annotation-button.js +45 -0
- package/dist/components/dso-annotation-output.d.ts +11 -0
- package/dist/components/dso-annotation-output.js +69 -0
- package/dist/components/dso-autosuggest.js +1 -1
- package/dist/components/dso-badge.js +1 -1
- package/dist/components/dso-card.js +7 -4
- package/dist/components/dso-expandable-heading.d.ts +11 -0
- package/dist/components/dso-expandable-heading.js +77 -0
- package/dist/components/dso-expandable.d.ts +11 -0
- package/dist/components/dso-expandable.js +6 -0
- package/dist/components/dso-header.js +2 -2
- package/dist/components/dso-highlight-box.js +1 -1
- package/dist/components/dso-image-overlay.js +2 -4
- package/dist/components/dso-label.js +2 -2
- package/dist/components/dso-map-controls.js +14 -4
- package/dist/components/dso-table.js +1 -1
- package/dist/components/expandable.js +33 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +5 -1
- package/dist/components/index2.js +185 -61
- package/dist/components/index3.js +70 -0
- package/dist/components/info.js +1 -1
- package/dist/components/popper.js +1799 -0
- package/dist/components/selectable.js +4 -2
- package/dist/components/tooltip.js +4 -1801
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/index.esm.js +1 -0
- package/dist/dso-toolkit/p-07952ece.entry.js +1 -0
- package/dist/dso-toolkit/p-09424a1d.entry.js +1 -0
- package/dist/dso-toolkit/{p-a9baa631.entry.js → p-0af9bfb1.entry.js} +1 -1
- package/dist/dso-toolkit/{p-746dc38a.entry.js → p-0fce0861.entry.js} +1 -1
- package/dist/dso-toolkit/{p-abbcbe6a.entry.js → p-147ec7bd.entry.js} +1 -1
- package/dist/dso-toolkit/{p-a8cb2eae.entry.js → p-1aef13ee.entry.js} +1 -1
- package/dist/dso-toolkit/{p-19323600.entry.js → p-1cb94d7d.entry.js} +1 -1
- package/dist/dso-toolkit/p-1cea3b99.js +1 -0
- package/dist/dso-toolkit/{p-c846d208.entry.js → p-22f9240a.entry.js} +1 -1
- package/dist/dso-toolkit/p-30df5586.entry.js +1 -0
- package/dist/dso-toolkit/{p-427f6d90.entry.js → p-3914ad70.entry.js} +1 -1
- package/dist/dso-toolkit/{p-67c4987c.entry.js → p-43f3d736.entry.js} +1 -1
- package/dist/dso-toolkit/p-452c7fbb.entry.js +1 -0
- package/dist/dso-toolkit/{p-3b8cbd05.entry.js → p-494fe8e5.entry.js} +1 -1
- package/dist/dso-toolkit/p-4b18389c.entry.js +1 -0
- package/dist/dso-toolkit/p-4b8535b7.js +1 -0
- package/dist/dso-toolkit/p-4c8426b7.entry.js +1 -0
- package/dist/dso-toolkit/{p-8aa39e7f.entry.js → p-5082d823.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ff72ee4c.entry.js → p-588bc4d7.entry.js} +1 -1
- package/dist/dso-toolkit/p-67df25a7.entry.js +1 -0
- package/dist/dso-toolkit/p-6cdc1acd.entry.js +1 -0
- package/dist/dso-toolkit/{p-11176cb8.entry.js → p-82465cdc.entry.js} +1 -1
- package/dist/dso-toolkit/p-85b18dbd.js +1 -0
- package/dist/dso-toolkit/p-89b97fce.js +1 -0
- package/dist/dso-toolkit/{p-8e9f6355.entry.js → p-96efc763.entry.js} +1 -1
- package/dist/dso-toolkit/{p-8f35c8f8.js → p-98fd1658.js} +1 -1
- package/dist/dso-toolkit/p-9b07b034.entry.js +1 -0
- package/dist/dso-toolkit/p-ad0b38cf.entry.js +1 -0
- package/dist/dso-toolkit/{p-6080bb9e.entry.js → p-ba0da696.entry.js} +1 -1
- package/dist/dso-toolkit/p-c1226b66.entry.js +1 -0
- package/dist/dso-toolkit/{p-520a2cdd.entry.js → p-c16ce11e.entry.js} +1 -1
- package/dist/dso-toolkit/p-c2a4f4ea.entry.js +1 -0
- package/dist/dso-toolkit/{p-655eff47.entry.js → p-c54ad578.entry.js} +1 -1
- package/dist/dso-toolkit/{p-35687d62.entry.js → p-d4772fb0.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2fa96ac0.entry.js → p-d6ea8670.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ec25868b.entry.js → p-d987ef37.entry.js} +1 -1
- package/dist/dso-toolkit/{p-92ad1cdb.entry.js → p-e00a3019.entry.js} +1 -1
- package/dist/dso-toolkit/p-e3c9c7d0.entry.js +1 -0
- package/dist/dso-toolkit/{p-ec4501bb.entry.js → p-e4f667b3.entry.js} +1 -1
- package/dist/dso-toolkit/p-ee1acb32.entry.js +1 -0
- package/dist/dso-toolkit/{p-55142124.entry.js → p-efdf5c91.entry.js} +1 -1
- package/dist/dso-toolkit/p-f3f0d6c9.entry.js +1 -0
- package/dist/dso-toolkit/p-f53860da.entry.js +1 -0
- package/dist/dso-toolkit/{p-76a1428a.entry.js → p-f8a08ba1.entry.js} +1 -1
- package/dist/esm/annotation.service-d0add3fc.js +19 -0
- package/dist/esm/dso-accordion-section.entry.js +2 -2
- package/dist/esm/dso-accordion.entry.js +2 -192
- package/dist/esm/dso-alert.entry.js +2 -2
- package/dist/esm/dso-annotation-button.entry.js +21 -0
- package/dist/esm/dso-annotation-output.entry.js +31 -0
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +1 -1
- package/dist/esm/dso-badge.entry.js +2 -2
- package/dist/esm/dso-banner.entry.js +1 -1
- package/dist/esm/dso-card-container.entry.js +1 -1
- package/dist/esm/dso-card.entry.js +6 -4
- package/dist/esm/dso-date-picker.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +46 -2
- package/dist/esm/dso-expandable-heading.entry.js +43 -0
- package/dist/esm/dso-expandable.entry.js +16 -0
- package/dist/esm/dso-header.entry.js +2 -2
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-highlight-box.entry.js +2 -2
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +2 -3
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +5 -4
- package/dist/esm/dso-label.entry.js +3 -3
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +11 -3
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js +1 -1
- package/dist/esm/dso-ozon-content.entry.js +1 -1
- package/dist/esm/dso-pagination.entry.js +1 -1
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-responsive-element.entry.js +1 -1
- package/dist/esm/dso-slide-toggle.entry.js +1 -1
- package/dist/esm/dso-table.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +2 -2
- package/dist/esm/dso-tooltip.entry.js +2 -1799
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +1 -1
- package/dist/esm/{index-1a4dda48.js → index-ac5a22a3.js} +1 -1
- package/dist/esm/index-d6ffb688.js +194 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/map-controls.interfaces-2323e8ac.js +3 -0
- package/dist/esm/popper-467f7841.js +1799 -0
- package/dist/types/components/annotation-button/annotation-button.d.ts +7 -0
- package/dist/types/components/annotation-output/annotation-output.d.ts +12 -0
- package/dist/types/components/annotation-output/annotation-output.interfaces.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +1 -0
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +5 -0
- package/dist/types/components/expandable/expandable.d.ts +4 -0
- package/dist/types/components/expandable-heading/expandable-heading.d.ts +11 -0
- package/dist/types/components/expandable-heading/expandable-heading.interfaces.d.ts +5 -0
- package/dist/types/components/expandable-heading/heading.d.ts +9 -0
- package/dist/types/components/image-overlay/image-overlay.d.ts +0 -1
- package/dist/types/components/label/label.d.ts +1 -1
- package/dist/types/components/map-controls/map-controls.d.ts +9 -0
- package/dist/types/components/map-controls/map-controls.interfaces.d.ts +5 -0
- package/dist/types/components/selectable/selectable.d.ts +1 -0
- package/dist/types/components.d.ts +113 -4
- package/dist/types/index.d.ts +3 -0
- package/dist/types/services/annotation.service.d.ts +10 -0
- package/package.json +2 -2
- package/dist/dso-toolkit/p-04ffcc93.entry.js +0 -1
- package/dist/dso-toolkit/p-06b4f78d.entry.js +0 -1
- package/dist/dso-toolkit/p-0e5315a3.entry.js +0 -1
- package/dist/dso-toolkit/p-36cd87c4.entry.js +0 -1
- package/dist/dso-toolkit/p-46acc09f.entry.js +0 -1
- package/dist/dso-toolkit/p-6bd8515a.entry.js +0 -1
- package/dist/dso-toolkit/p-78ee23c5.entry.js +0 -1
- package/dist/dso-toolkit/p-9287b2f2.entry.js +0 -1
- package/dist/dso-toolkit/p-c2157b55.entry.js +0 -1
- package/dist/dso-toolkit/p-c7ec6e6e.entry.js +0 -1
- package/dist/dso-toolkit/p-ce475f06.entry.js +0 -1
- package/dist/dso-toolkit/p-d7b2adc3.entry.js +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a function, that, as long as it continues to be invoked, will not
|
|
3
|
+
* be triggered. The function will be called after it stops being called for
|
|
4
|
+
* N milliseconds. If `immediate` is passed, trigger the function on the
|
|
5
|
+
* leading edge, instead of the trailing. The function also has a property 'clear'
|
|
6
|
+
* that is a function which will clear the timer to prevent previously scheduled executions.
|
|
7
|
+
*
|
|
8
|
+
* @source underscore.js
|
|
9
|
+
* @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
|
|
10
|
+
* @param {Function} function to wrap
|
|
11
|
+
* @param {Number} timeout in ms (`100`)
|
|
12
|
+
* @param {Boolean} whether to execute at the beginning (`false`)
|
|
13
|
+
* @api public
|
|
14
|
+
*/
|
|
15
|
+
function debounce(func, wait, immediate){
|
|
16
|
+
var timeout, args, context, timestamp, result;
|
|
17
|
+
if (null == wait) wait = 100;
|
|
18
|
+
|
|
19
|
+
function later() {
|
|
20
|
+
var last = Date.now() - timestamp;
|
|
21
|
+
|
|
22
|
+
if (last < wait && last >= 0) {
|
|
23
|
+
timeout = setTimeout(later, wait - last);
|
|
24
|
+
} else {
|
|
25
|
+
timeout = null;
|
|
26
|
+
if (!immediate) {
|
|
27
|
+
result = func.apply(context, args);
|
|
28
|
+
context = args = null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
var debounced = function(){
|
|
33
|
+
context = this;
|
|
34
|
+
args = arguments;
|
|
35
|
+
timestamp = Date.now();
|
|
36
|
+
var callNow = immediate && !timeout;
|
|
37
|
+
if (!timeout) timeout = setTimeout(later, wait);
|
|
38
|
+
if (callNow) {
|
|
39
|
+
result = func.apply(context, args);
|
|
40
|
+
context = args = null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
debounced.clear = function() {
|
|
47
|
+
if (timeout) {
|
|
48
|
+
clearTimeout(timeout);
|
|
49
|
+
timeout = null;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
debounced.flush = function() {
|
|
54
|
+
if (timeout) {
|
|
55
|
+
result = func.apply(context, args);
|
|
56
|
+
context = args = null;
|
|
57
|
+
|
|
58
|
+
clearTimeout(timeout);
|
|
59
|
+
timeout = null;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return debounced;
|
|
64
|
+
}
|
|
65
|
+
// Adds compatibility for ES modules
|
|
66
|
+
debounce.debounce = debounce;
|
|
67
|
+
|
|
68
|
+
var debounce_1 = debounce;
|
|
69
|
+
|
|
70
|
+
export { debounce_1 as d };
|
package/dist/components/info.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
3
3
|
|
|
4
|
-
const infoCss = ":host{display:block;background-color:#f2f2f2;padding:16px 32px 16px 16px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;right:8px;top:8px}:host(:not([active]):not([fixed])){display:none}button{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}button[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
4
|
+
const infoCss = ":host{display:block;background-color:#f2f2f2;color:#000;padding:16px 32px 16px 16px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;right:8px;top:8px}:host(:not([active]):not([fixed])){display:none}button{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}button[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
5
5
|
|
|
6
6
|
const Info = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|