@zanichelli/albe-web-components 19.2.7 → 19.2.8-RC2
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/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-Ctc6JP2n.js → utils-BY7xrW7W.js} +6 -0
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +19 -17
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +4 -8
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +92 -31
- package/dist/cjs/z-toggle-switch.cjs.entry.js +1 -1
- package/dist/cjs/z-tool.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +1 -1
- package/dist/collection/components/z-app-header/index.js +21 -2
- package/dist/collection/components/z-app-header/index.stories.js +25 -9
- package/dist/collection/components/z-combobox/index.js +3 -3
- package/dist/collection/components/z-input/index.js +49 -30
- package/dist/collection/components/z-searchbar/index.js +25 -3
- package/dist/collection/components/z-searchbar/index.stories.js +9 -0
- package/dist/collection/components/z-select/index.js +4 -8
- package/dist/collection/utils/utils.js +5 -0
- package/dist/components/index13.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/z-app-header.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-select.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-slideshow.js +1 -1
- package/dist/components/z-toast-notification.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-DYd3kO0P.js → utils-BEzZQwOB.js} +6 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +19 -17
- package/dist/esm/z-book-card-deprecated.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +1 -1
- package/dist/esm/z-color-picker.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +3 -3
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-select.entry.js +4 -8
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +92 -31
- package/dist/esm/z-toggle-switch.entry.js +1 -1
- package/dist/esm/z-tool.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +1 -1
- package/dist/types/components/z-app-header/index.d.ts +4 -0
- package/dist/types/components/z-app-header/index.stories.d.ts +7 -0
- package/dist/types/components/z-input/index.d.ts +6 -4
- package/dist/types/components/z-searchbar/index.d.ts +2 -0
- package/dist/types/components/z-searchbar/index.stories.d.ts +4 -0
- package/dist/types/components/z-select/index.d.ts +0 -1
- package/dist/types/components.d.ts +32 -3
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-eddc2d19.entry.js → p-0105149a.entry.js} +1 -1
- package/{www/build/p-1d023220.entry.js → dist/web-components-library/p-20d94cce.entry.js} +1 -1
- package/dist/web-components-library/p-22da6202.entry.js +1 -0
- package/{www/build/p-14b804f9.entry.js → dist/web-components-library/p-271dfd9c.entry.js} +1 -1
- package/dist/web-components-library/{p-8a8df4f4.entry.js → p-2abf765d.entry.js} +1 -1
- package/dist/web-components-library/{p-299f0f85.entry.js → p-313fc91d.entry.js} +1 -1
- package/dist/web-components-library/{p-f7e46ef2.entry.js → p-4d1b3d16.entry.js} +1 -1
- package/dist/web-components-library/p-61992f12.entry.js +1 -0
- package/dist/web-components-library/{p-2c036e17.entry.js → p-62d2247e.entry.js} +1 -1
- package/dist/web-components-library/{p-583b8152.entry.js → p-64c025f6.entry.js} +1 -1
- package/dist/web-components-library/{p-3ea03d34.entry.js → p-660737b0.entry.js} +1 -1
- package/dist/web-components-library/p-7371a543.entry.js +2 -0
- package/dist/web-components-library/{p-85cac60d.entry.js → p-89daaeb5.entry.js} +1 -1
- package/dist/web-components-library/p-B0bOjMSb.js +1 -0
- package/dist/web-components-library/{p-83da1031.entry.js → p-b01ff8e6.entry.js} +1 -1
- package/dist/web-components-library/{p-8261c869.entry.js → p-ce3bbaf2.entry.js} +1 -1
- package/dist/web-components-library/{p-e48497f0.entry.js → p-d121122f.entry.js} +1 -1
- package/dist/web-components-library/p-f5e1420d.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +5 -4
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-eddc2d19.entry.js → p-0105149a.entry.js} +1 -1
- package/{dist/web-components-library/p-1d023220.entry.js → www/build/p-20d94cce.entry.js} +1 -1
- package/www/build/p-22da6202.entry.js +1 -0
- package/{dist/web-components-library/p-14b804f9.entry.js → www/build/p-271dfd9c.entry.js} +1 -1
- package/www/build/{p-8a8df4f4.entry.js → p-2abf765d.entry.js} +1 -1
- package/www/build/{p-299f0f85.entry.js → p-313fc91d.entry.js} +1 -1
- package/www/build/{p-f7e46ef2.entry.js → p-4d1b3d16.entry.js} +1 -1
- package/www/build/p-61992f12.entry.js +1 -0
- package/www/build/{p-2c036e17.entry.js → p-62d2247e.entry.js} +1 -1
- package/www/build/{p-583b8152.entry.js → p-64c025f6.entry.js} +1 -1
- package/www/build/{p-3ea03d34.entry.js → p-660737b0.entry.js} +1 -1
- package/www/build/p-7371a543.entry.js +2 -0
- package/www/build/{p-85cac60d.entry.js → p-89daaeb5.entry.js} +1 -1
- package/www/build/p-B0bOjMSb.js +1 -0
- package/www/build/{p-83da1031.entry.js → p-b01ff8e6.entry.js} +1 -1
- package/www/build/{p-23143b48.js → p-b3710a31.js} +1 -1
- package/www/build/{p-8261c869.entry.js → p-ce3bbaf2.entry.js} +1 -1
- package/www/build/{p-e48497f0.entry.js → p-d121122f.entry.js} +1 -1
- package/www/build/p-f5e1420d.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-37e84b71.entry.js +0 -1
- package/dist/web-components-library/p-8b026993.entry.js +0 -1
- package/dist/web-components-library/p-9d15ecdf.entry.js +0 -2
- package/dist/web-components-library/p-CPsEG702.js +0 -1
- package/dist/web-components-library/p-d10e6b1a.entry.js +0 -1
- package/www/build/p-37e84b71.entry.js +0 -1
- package/www/build/p-8b026993.entry.js +0 -1
- package/www/build/p-9d15ecdf.entry.js +0 -2
- package/www/build/p-CPsEG702.js +0 -1
- package/www/build/p-d10e6b1a.entry.js +0 -1
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, d as getElement
|
|
|
2
2
|
import { r as ToastNotificationTransition, g as KeyboardCode } from './index-BKCj6NR2.js';
|
|
3
3
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
|
|
4
4
|
|
|
5
|
-
/*! @license DOMPurify 3.
|
|
5
|
+
/*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE */
|
|
6
6
|
|
|
7
7
|
const {
|
|
8
8
|
entries,
|
|
@@ -31,12 +31,18 @@ if (!seal) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
if (!apply) {
|
|
34
|
-
apply = function apply(
|
|
35
|
-
|
|
34
|
+
apply = function apply(func, thisArg) {
|
|
35
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
36
|
+
args[_key - 2] = arguments[_key];
|
|
37
|
+
}
|
|
38
|
+
return func.apply(thisArg, args);
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
41
|
if (!construct) {
|
|
39
|
-
construct = function construct(Func
|
|
42
|
+
construct = function construct(Func) {
|
|
43
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
44
|
+
args[_key2 - 1] = arguments[_key2];
|
|
45
|
+
}
|
|
40
46
|
return new Func(...args);
|
|
41
47
|
};
|
|
42
48
|
}
|
|
@@ -65,8 +71,8 @@ function unapply(func) {
|
|
|
65
71
|
if (thisArg instanceof RegExp) {
|
|
66
72
|
thisArg.lastIndex = 0;
|
|
67
73
|
}
|
|
68
|
-
for (var
|
|
69
|
-
args[
|
|
74
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
75
|
+
args[_key3 - 1] = arguments[_key3];
|
|
70
76
|
}
|
|
71
77
|
return apply(func, thisArg, args);
|
|
72
78
|
};
|
|
@@ -77,12 +83,12 @@ function unapply(func) {
|
|
|
77
83
|
* @param func - The constructor function to be wrapped and called.
|
|
78
84
|
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
79
85
|
*/
|
|
80
|
-
function unconstruct(
|
|
86
|
+
function unconstruct(Func) {
|
|
81
87
|
return function () {
|
|
82
|
-
for (var
|
|
83
|
-
args[
|
|
88
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
89
|
+
args[_key4] = arguments[_key4];
|
|
84
90
|
}
|
|
85
|
-
return construct(
|
|
91
|
+
return construct(Func, args);
|
|
86
92
|
};
|
|
87
93
|
}
|
|
88
94
|
/**
|
|
@@ -181,8 +187,8 @@ function lookupGetter(object, prop) {
|
|
|
181
187
|
return fallbackValue;
|
|
182
188
|
}
|
|
183
189
|
|
|
184
|
-
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
185
|
-
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
190
|
+
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
191
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
186
192
|
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
187
193
|
// List of SVG elements that are disallowed by default.
|
|
188
194
|
// We still need to know them so that we can do namespace
|
|
@@ -195,9 +201,9 @@ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mgly
|
|
|
195
201
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
196
202
|
const text = freeze(['#text']);
|
|
197
203
|
|
|
198
|
-
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
199
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
200
|
-
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', '
|
|
204
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
205
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
206
|
+
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
201
207
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
202
208
|
|
|
203
209
|
// eslint-disable-next-line unicorn/better-regex
|
|
@@ -294,7 +300,7 @@ const _createHooksMap = function _createHooksMap() {
|
|
|
294
300
|
function createDOMPurify() {
|
|
295
301
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
296
302
|
const DOMPurify = root => createDOMPurify(root);
|
|
297
|
-
DOMPurify.version = '3.
|
|
303
|
+
DOMPurify.version = '3.4.0';
|
|
298
304
|
DOMPurify.removed = [];
|
|
299
305
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
300
306
|
// Not running in a browser, provide a factory function
|
|
@@ -405,6 +411,21 @@ function createDOMPurify() {
|
|
|
405
411
|
let FORBID_TAGS = null;
|
|
406
412
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
407
413
|
let FORBID_ATTR = null;
|
|
414
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
415
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
416
|
+
tagCheck: {
|
|
417
|
+
writable: true,
|
|
418
|
+
configurable: false,
|
|
419
|
+
enumerable: true,
|
|
420
|
+
value: null
|
|
421
|
+
},
|
|
422
|
+
attributeCheck: {
|
|
423
|
+
writable: true,
|
|
424
|
+
configurable: false,
|
|
425
|
+
enumerable: true,
|
|
426
|
+
value: null
|
|
427
|
+
}
|
|
428
|
+
}));
|
|
408
429
|
/* Decide if ARIA attributes are okay */
|
|
409
430
|
let ALLOW_ARIA_ATTR = true;
|
|
410
431
|
/* Decide if custom data attributes are okay */
|
|
@@ -555,7 +576,7 @@ function createDOMPurify() {
|
|
|
555
576
|
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
556
577
|
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
557
578
|
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
558
|
-
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING ||
|
|
579
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || create(null);
|
|
559
580
|
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
560
581
|
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
561
582
|
}
|
|
@@ -574,7 +595,7 @@ function createDOMPurify() {
|
|
|
574
595
|
/* Parse profile info */
|
|
575
596
|
if (USE_PROFILES) {
|
|
576
597
|
ALLOWED_TAGS = addToSet({}, text);
|
|
577
|
-
ALLOWED_ATTR =
|
|
598
|
+
ALLOWED_ATTR = create(null);
|
|
578
599
|
if (USE_PROFILES.html === true) {
|
|
579
600
|
addToSet(ALLOWED_TAGS, html$1);
|
|
580
601
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -595,18 +616,30 @@ function createDOMPurify() {
|
|
|
595
616
|
addToSet(ALLOWED_ATTR, xml);
|
|
596
617
|
}
|
|
597
618
|
}
|
|
619
|
+
/* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
|
|
620
|
+
* leaking across calls when switching from function to array config */
|
|
621
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
622
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
598
623
|
/* Merge configuration parameters */
|
|
599
624
|
if (cfg.ADD_TAGS) {
|
|
600
|
-
if (
|
|
601
|
-
|
|
625
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
626
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
627
|
+
} else {
|
|
628
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
629
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
630
|
+
}
|
|
631
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
602
632
|
}
|
|
603
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
604
633
|
}
|
|
605
634
|
if (cfg.ADD_ATTR) {
|
|
606
|
-
if (
|
|
607
|
-
|
|
635
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
636
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
637
|
+
} else {
|
|
638
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
639
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
640
|
+
}
|
|
641
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
608
642
|
}
|
|
609
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
610
643
|
}
|
|
611
644
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
612
645
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -617,6 +650,12 @@ function createDOMPurify() {
|
|
|
617
650
|
}
|
|
618
651
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
619
652
|
}
|
|
653
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
654
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
655
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
656
|
+
}
|
|
657
|
+
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
658
|
+
}
|
|
620
659
|
/* Add #text in case KEEP_CONTENT is set to true */
|
|
621
660
|
if (KEEP_CONTENT) {
|
|
622
661
|
ALLOWED_TAGS['#text'] = true;
|
|
@@ -903,6 +942,11 @@ function createDOMPurify() {
|
|
|
903
942
|
_forceRemove(currentNode);
|
|
904
943
|
return true;
|
|
905
944
|
}
|
|
945
|
+
/* Remove risky CSS construction leading to mXSS */
|
|
946
|
+
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
947
|
+
_forceRemove(currentNode);
|
|
948
|
+
return true;
|
|
949
|
+
}
|
|
906
950
|
/* Remove any occurrence of processing instructions */
|
|
907
951
|
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
908
952
|
_forceRemove(currentNode);
|
|
@@ -914,7 +958,7 @@ function createDOMPurify() {
|
|
|
914
958
|
return true;
|
|
915
959
|
}
|
|
916
960
|
/* Remove element if anything forbids its presence */
|
|
917
|
-
if (
|
|
961
|
+
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
918
962
|
/* Check if we have a custom element to handle */
|
|
919
963
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
920
964
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -978,6 +1022,10 @@ function createDOMPurify() {
|
|
|
978
1022
|
*/
|
|
979
1023
|
// eslint-disable-next-line complexity
|
|
980
1024
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
1025
|
+
/* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
|
|
1026
|
+
if (FORBID_ATTR[lcName]) {
|
|
1027
|
+
return false;
|
|
1028
|
+
}
|
|
981
1029
|
/* Make sure attribute cannot clobber */
|
|
982
1030
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
983
1031
|
return false;
|
|
@@ -986,12 +1034,12 @@ function createDOMPurify() {
|
|
|
986
1034
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
987
1035
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
988
1036
|
We don't need to check the value; it's always URI safe. */
|
|
989
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1037
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
990
1038
|
if (
|
|
991
1039
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
992
1040
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
993
1041
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
994
|
-
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
|
|
1042
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
|
|
995
1043
|
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
996
1044
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
997
1045
|
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
@@ -1070,7 +1118,12 @@ function createDOMPurify() {
|
|
|
1070
1118
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1071
1119
|
}
|
|
1072
1120
|
/* Work around a security issue with comments inside attributes */
|
|
1073
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1121
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
1122
|
+
_removeAttribute(name, currentNode);
|
|
1123
|
+
continue;
|
|
1124
|
+
}
|
|
1125
|
+
/* Make sure we cannot easily use animated hrefs, even if animations are allowed */
|
|
1126
|
+
if (lcName === 'attributename' && stringMatch(value, 'href')) {
|
|
1074
1127
|
_removeAttribute(name, currentNode);
|
|
1075
1128
|
continue;
|
|
1076
1129
|
}
|
|
@@ -1144,7 +1197,7 @@ function createDOMPurify() {
|
|
|
1144
1197
|
*
|
|
1145
1198
|
* @param fragment to iterate over recursively
|
|
1146
1199
|
*/
|
|
1147
|
-
const
|
|
1200
|
+
const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
|
|
1148
1201
|
let shadowNode = null;
|
|
1149
1202
|
const shadowIterator = _createNodeIterator(fragment);
|
|
1150
1203
|
/* Execute a hook if present */
|
|
@@ -1158,7 +1211,7 @@ function createDOMPurify() {
|
|
|
1158
1211
|
_sanitizeAttributes(shadowNode);
|
|
1159
1212
|
/* Deep shadow DOM detected */
|
|
1160
1213
|
if (shadowNode.content instanceof DocumentFragment) {
|
|
1161
|
-
|
|
1214
|
+
_sanitizeShadowDOM2(shadowNode.content);
|
|
1162
1215
|
}
|
|
1163
1216
|
}
|
|
1164
1217
|
/* Execute a hook if present */
|
|
@@ -1253,7 +1306,7 @@ function createDOMPurify() {
|
|
|
1253
1306
|
_sanitizeAttributes(currentNode);
|
|
1254
1307
|
/* Shadow DOM detected, sanitize it */
|
|
1255
1308
|
if (currentNode.content instanceof DocumentFragment) {
|
|
1256
|
-
|
|
1309
|
+
_sanitizeShadowDOM2(currentNode.content);
|
|
1257
1310
|
}
|
|
1258
1311
|
}
|
|
1259
1312
|
/* If we sanitized `dirty` in-place, return it. */
|
|
@@ -1262,6 +1315,14 @@ function createDOMPurify() {
|
|
|
1262
1315
|
}
|
|
1263
1316
|
/* Return sanitized string or DOM */
|
|
1264
1317
|
if (RETURN_DOM) {
|
|
1318
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
1319
|
+
body.normalize();
|
|
1320
|
+
let html = body.innerHTML;
|
|
1321
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1322
|
+
html = stringReplace(html, expr, ' ');
|
|
1323
|
+
});
|
|
1324
|
+
body.innerHTML = html;
|
|
1325
|
+
}
|
|
1265
1326
|
if (RETURN_DOM_FRAGMENT) {
|
|
1266
1327
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
1267
1328
|
while (body.firstChild) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-DPdXlnVe.js';
|
|
2
2
|
import { k as LabelPosition } from './index-BKCj6NR2.js';
|
|
3
|
-
import { r as randomId } from './utils-
|
|
3
|
+
import { r as randomId } from './utils-BEzZQwOB.js';
|
|
4
4
|
import './breakpoints-Q-tWjk7P.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}`;
|
package/dist/esm/z-tool.entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-DPdXlnVe.js';
|
|
2
2
|
import { P as PopoverPosition, g as KeyboardCode } from './index-BKCj6NR2.js';
|
|
3
|
-
import { a as containsElement } from './utils-
|
|
3
|
+
import { a as containsElement } from './utils-BEzZQwOB.js';
|
|
4
4
|
import './breakpoints-Q-tWjk7P.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `:host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}`;
|
package/dist/esm/z-tr.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-DPdXlnVe.js';
|
|
2
|
-
import { r as randomId } from './utils-
|
|
2
|
+
import { r as randomId } from './utils-BEzZQwOB.js';
|
|
3
3
|
import './z-td.entry.js';
|
|
4
4
|
import './z-th.entry.js';
|
|
5
5
|
import './index-BKCj6NR2.js';
|
|
@@ -31,6 +31,10 @@ export declare class ZAppHeader implements ComponentInterface {
|
|
|
31
31
|
* Placeholder text for the search bar.
|
|
32
32
|
*/
|
|
33
33
|
searchPlaceholder: string;
|
|
34
|
+
/**
|
|
35
|
+
* Label of the search button.
|
|
36
|
+
*/
|
|
37
|
+
searchButtonLabel?: string;
|
|
34
38
|
/**
|
|
35
39
|
* Search string for the search bar.
|
|
36
40
|
*/
|
|
@@ -20,6 +20,8 @@ declare const StoryMeta: {
|
|
|
20
20
|
"--app-header-content-max-width": string;
|
|
21
21
|
enableSearch: false;
|
|
22
22
|
searchPageUrl: string;
|
|
23
|
+
searchPlaceholder: string;
|
|
24
|
+
searchButtonLabel: string;
|
|
23
25
|
enableZLogo: false;
|
|
24
26
|
enableOffcanvas: false;
|
|
25
27
|
};
|
|
@@ -93,6 +95,11 @@ export declare const OffcanvasMenu: {
|
|
|
93
95
|
args: {
|
|
94
96
|
enableOffcanvas: true;
|
|
95
97
|
};
|
|
98
|
+
parameters: {
|
|
99
|
+
controls: {
|
|
100
|
+
exclude: string[];
|
|
101
|
+
};
|
|
102
|
+
};
|
|
96
103
|
render: (args: ZAppHeaderStoriesArgs) => TemplateResult<1>;
|
|
97
104
|
};
|
|
98
105
|
export declare const Stuck: {
|
|
@@ -20,6 +20,10 @@ export declare class ZInput implements ComponentInterface {
|
|
|
20
20
|
htmlAriaAutocomplete?: string;
|
|
21
21
|
/** the input aria-activedescendant (optional): available for text, password, number, email */
|
|
22
22
|
htmlAriaActivedescendant?: string;
|
|
23
|
+
/** the input aria-describedby (optional) */
|
|
24
|
+
htmlAriaDescribedBy?: string;
|
|
25
|
+
/** the input aria-labelledby (optional) */
|
|
26
|
+
htmlAriaLabelledby?: string;
|
|
23
27
|
/** the input value */
|
|
24
28
|
value?: string;
|
|
25
29
|
/** the input is disabled */
|
|
@@ -38,8 +42,6 @@ export declare class ZInput implements ComponentInterface {
|
|
|
38
42
|
status?: InputStatus;
|
|
39
43
|
/** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
|
|
40
44
|
message?: string | boolean;
|
|
41
|
-
/** input helper message id (optional): available for text, password, number, email, textarea - if set, it will be used to populate the aria-describedby attribute, otherwise the attribute (if present) will be populated with an auto-generated value */
|
|
42
|
-
htmlAriaDescribedBy?: string;
|
|
43
45
|
/** the input label position: available for checkbox, radio */
|
|
44
46
|
labelPosition?: LabelPosition;
|
|
45
47
|
/** the input has autocomplete option (optional): available for text, password, number, email */
|
|
@@ -94,9 +96,9 @@ export declare class ZInput implements ComponentInterface {
|
|
|
94
96
|
private getTextAttributes;
|
|
95
97
|
private getNumberAttributes;
|
|
96
98
|
private getPatternAttribute;
|
|
97
|
-
private getRoleAttribute;
|
|
98
99
|
private inputHasMessage;
|
|
99
|
-
private
|
|
100
|
+
private getAriaAttributes;
|
|
101
|
+
private getTextAriaAttributes;
|
|
100
102
|
private getFocusBlurAttributes;
|
|
101
103
|
private renderInputText;
|
|
102
104
|
private renderLabel;
|
|
@@ -35,6 +35,8 @@ export declare class ZSearchbar implements ComponentInterface {
|
|
|
35
35
|
showSearchButton?: boolean;
|
|
36
36
|
/** Hide the label of the submit button, showing only the icon */
|
|
37
37
|
searchButtonIconOnly?: boolean;
|
|
38
|
+
/** The label of the submit button */
|
|
39
|
+
searchButtonLabel?: string;
|
|
38
40
|
/** Size of the `z-input` and submit `z-button` */
|
|
39
41
|
size?: ControlSize;
|
|
40
42
|
/** Submit `z-button` variant */
|
|
@@ -24,6 +24,7 @@ declare const StoryMeta: {
|
|
|
24
24
|
preventSubmit: false;
|
|
25
25
|
showSearchButton: false;
|
|
26
26
|
searchButtonIconOnly: false;
|
|
27
|
+
searchButtonLabel: string;
|
|
27
28
|
autocomplete: false;
|
|
28
29
|
autocompleteMinChars: number;
|
|
29
30
|
resultsCount: any;
|
|
@@ -65,6 +66,7 @@ export declare const Autocomplete: {
|
|
|
65
66
|
htmlid: string;
|
|
66
67
|
showSearchButton: false;
|
|
67
68
|
searchButtonIconOnly: false;
|
|
69
|
+
searchButtonLabel: string;
|
|
68
70
|
};
|
|
69
71
|
render: (args: ZSearchbarStoriesArgs) => import("lit-html").TemplateResult<1>;
|
|
70
72
|
};
|
|
@@ -74,6 +76,7 @@ export declare const AutocompleteWithComplexItems: {
|
|
|
74
76
|
htmlid: string;
|
|
75
77
|
showSearchButton: false;
|
|
76
78
|
searchButtonIconOnly: false;
|
|
79
|
+
searchButtonLabel: string;
|
|
77
80
|
resultsItems: ({
|
|
78
81
|
label: string;
|
|
79
82
|
icon: string;
|
|
@@ -99,6 +102,7 @@ export declare const AutocompleteWithComplexTreeItems: {
|
|
|
99
102
|
htmlid: string;
|
|
100
103
|
showSearchButton: false;
|
|
101
104
|
searchButtonIconOnly: false;
|
|
105
|
+
searchButtonLabel: string;
|
|
102
106
|
resultsItems: ({
|
|
103
107
|
label: string;
|
|
104
108
|
icon: string;
|
|
@@ -139,6 +139,10 @@ export namespace Components {
|
|
|
139
139
|
* @default true
|
|
140
140
|
*/
|
|
141
141
|
"enableZLogo": boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Label of the search button.
|
|
144
|
+
*/
|
|
145
|
+
"searchButtonLabel"?: string;
|
|
142
146
|
/**
|
|
143
147
|
* Url to the search page. Set this prop and `enableSearch` to show a link-button on mobile and tablet viewports, instead of the normal searchbar. The link will also appear on the sticky header.
|
|
144
148
|
*/
|
|
@@ -1110,7 +1114,7 @@ export namespace Components {
|
|
|
1110
1114
|
*/
|
|
1111
1115
|
"htmlAriaControls"?: string;
|
|
1112
1116
|
/**
|
|
1113
|
-
* input
|
|
1117
|
+
* the input aria-describedby (optional)
|
|
1114
1118
|
*/
|
|
1115
1119
|
"htmlAriaDescribedBy"?: string;
|
|
1116
1120
|
/**
|
|
@@ -1118,6 +1122,10 @@ export namespace Components {
|
|
|
1118
1122
|
* @default ""
|
|
1119
1123
|
*/
|
|
1120
1124
|
"htmlAriaExpanded": string;
|
|
1125
|
+
/**
|
|
1126
|
+
* the input aria-labelledby (optional)
|
|
1127
|
+
*/
|
|
1128
|
+
"htmlAriaLabelledby"?: string;
|
|
1121
1129
|
/**
|
|
1122
1130
|
* the id of the input element
|
|
1123
1131
|
* @default `id-${randomId()}`
|
|
@@ -2134,6 +2142,11 @@ export namespace Components {
|
|
|
2134
2142
|
* @default false
|
|
2135
2143
|
*/
|
|
2136
2144
|
"searchButtonIconOnly"?: boolean;
|
|
2145
|
+
/**
|
|
2146
|
+
* The label of the submit button
|
|
2147
|
+
* @default "CERCA"
|
|
2148
|
+
*/
|
|
2149
|
+
"searchButtonLabel"?: string;
|
|
2137
2150
|
/**
|
|
2138
2151
|
* Search helper text
|
|
2139
2152
|
* @default "Cerca {searchString}"
|
|
@@ -4390,6 +4403,10 @@ declare namespace LocalJSX {
|
|
|
4390
4403
|
* Emitted when the `stuck` state of the header changes
|
|
4391
4404
|
*/
|
|
4392
4405
|
"onSticking"?: (event: ZAppHeaderCustomEvent<any>) => void;
|
|
4406
|
+
/**
|
|
4407
|
+
* Label of the search button.
|
|
4408
|
+
*/
|
|
4409
|
+
"searchButtonLabel"?: string;
|
|
4393
4410
|
/**
|
|
4394
4411
|
* Url to the search page. Set this prop and `enableSearch` to show a link-button on mobile and tablet viewports, instead of the normal searchbar. The link will also appear on the sticky header.
|
|
4395
4412
|
*/
|
|
@@ -5421,7 +5438,7 @@ declare namespace LocalJSX {
|
|
|
5421
5438
|
*/
|
|
5422
5439
|
"htmlAriaControls"?: string;
|
|
5423
5440
|
/**
|
|
5424
|
-
* input
|
|
5441
|
+
* the input aria-describedby (optional)
|
|
5425
5442
|
*/
|
|
5426
5443
|
"htmlAriaDescribedBy"?: string;
|
|
5427
5444
|
/**
|
|
@@ -5429,6 +5446,10 @@ declare namespace LocalJSX {
|
|
|
5429
5446
|
* @default ""
|
|
5430
5447
|
*/
|
|
5431
5448
|
"htmlAriaExpanded"?: string;
|
|
5449
|
+
/**
|
|
5450
|
+
* the input aria-labelledby (optional)
|
|
5451
|
+
*/
|
|
5452
|
+
"htmlAriaLabelledby"?: string;
|
|
5432
5453
|
/**
|
|
5433
5454
|
* the id of the input element
|
|
5434
5455
|
* @default `id-${randomId()}`
|
|
@@ -6565,6 +6586,11 @@ declare namespace LocalJSX {
|
|
|
6565
6586
|
* @default false
|
|
6566
6587
|
*/
|
|
6567
6588
|
"searchButtonIconOnly"?: boolean;
|
|
6589
|
+
/**
|
|
6590
|
+
* The label of the submit button
|
|
6591
|
+
* @default "CERCA"
|
|
6592
|
+
*/
|
|
6593
|
+
"searchButtonLabel"?: string;
|
|
6568
6594
|
/**
|
|
6569
6595
|
* Search helper text
|
|
6570
6596
|
* @default "Cerca {searchString}"
|
|
@@ -7149,6 +7175,7 @@ declare namespace LocalJSX {
|
|
|
7149
7175
|
"enableOffcanvas": boolean;
|
|
7150
7176
|
"enableSearch": boolean;
|
|
7151
7177
|
"searchPlaceholder": string;
|
|
7178
|
+
"searchButtonLabel": string;
|
|
7152
7179
|
"searchString": string;
|
|
7153
7180
|
"searchPageUrl": string;
|
|
7154
7181
|
"enableZLogo": boolean;
|
|
@@ -7373,6 +7400,8 @@ declare namespace LocalJSX {
|
|
|
7373
7400
|
"htmlAriaControls": string;
|
|
7374
7401
|
"htmlAriaAutocomplete": string;
|
|
7375
7402
|
"htmlAriaActivedescendant": string;
|
|
7403
|
+
"htmlAriaDescribedBy": string;
|
|
7404
|
+
"htmlAriaLabelledby": string;
|
|
7376
7405
|
"value": string;
|
|
7377
7406
|
"disabled": boolean;
|
|
7378
7407
|
"readonly": boolean;
|
|
@@ -7382,7 +7411,6 @@ declare namespace LocalJSX {
|
|
|
7382
7411
|
"htmltitle": string;
|
|
7383
7412
|
"status": InputStatus;
|
|
7384
7413
|
"message": string;
|
|
7385
|
-
"htmlAriaDescribedBy": string;
|
|
7386
7414
|
"labelPosition": LabelPosition;
|
|
7387
7415
|
"autocomplete": string;
|
|
7388
7416
|
"role": string;
|
|
@@ -7632,6 +7660,7 @@ declare namespace LocalJSX {
|
|
|
7632
7660
|
"sortResultsItems": boolean;
|
|
7633
7661
|
"showSearchButton": boolean;
|
|
7634
7662
|
"searchButtonIconOnly": boolean;
|
|
7663
|
+
"searchButtonLabel": string;
|
|
7635
7664
|
"size": ControlSize;
|
|
7636
7665
|
"variant": ButtonVariant;
|
|
7637
7666
|
}
|
|
@@ -61,4 +61,6 @@ export declare function isElementVisibleInContainer(element: HTMLElement, contai
|
|
|
61
61
|
export declare function findContainingBlockAncestor(element: HTMLElement): HTMLElement;
|
|
62
62
|
/** Convert HTML to plain text */
|
|
63
63
|
export declare const getPlainText: (html: string) => string;
|
|
64
|
+
/** Convert string to hex */
|
|
65
|
+
export declare const encodeString: (string: string) => string;
|
|
64
66
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as aa}from"./p-
|
|
1
|
+
import{c as aa}from"./p-B0bOjMSb.js";export{_ as AccordionVariant,o as AlertType,A as AvatarSize,Y as BookCardDeprecatedVariant,X as BookCardVariant,V as BreadcrumbHomepageVariant,U as BreadcrumbPathStyle,d as ButtonSize,c as ButtonType,B as ButtonVariant,C as CardVariant,Q as CarouselArrowsPosition,R as CarouselProgressMode,a0 as ColorPickerPalette,e as ControlSize,M as CoverHeroContentPosition,J as CoverHeroVariant,p as Device,h as DividerOrientation,D as DividerSize,j as ExpandableListButtonAlign,E as ExpandableListStyle,$ as IconPosition,H as InfoRevealPosition,f as InputStatus,I as InputType,g as KeyboardCode,K as KeyboardKeyCode,k as LabelPosition,L as LicenseType,l as ListDividerType,i as ListSize,m as ListType,b as NavigationTabsKeyboardEvents,N as NavigationTabsOrientation,a as NavigationTabsSize,n as NotificationType,O as OffCanvasVariant,P as PopoverPosition,S as SortDirection,T as ThemeVariant,q as ToastNotification,s as ToastNotificationPosition,r as ToastNotificationTransition,u as TransitionDirection,W as VisibilityCondition,t as ZAriaAlertMode,w as ZChipType,y as ZDatePickerMode,z as ZDatePickerModeValue,F as ZDatePickerPosition,v as ZFileUploadType,G as ZRangePickerMode,x as ZSectionTitleDividerPosition,Z as ZTableRowExpandedType}from"./p-BKCj6NR2.js";export{I as ICONS}from"./p-CjHS9zeM.js";import"./p-Q-tWjk7P.js";const ia={colorFromId:aa};export{ia as Utils}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-DPdXlnVe.js";import{h as a}from"./p-
|
|
1
|
+
import{r as i,c as t,h as s}from"./p-DPdXlnVe.js";import{h as a}from"./p-B0bOjMSb.js";import"./p-BKCj6NR2.js";import"./p-Q-tWjk7P.js";const e=class{emitZListItemLinkClick(i,t){this.zListItemLinkClick.emit({e:i,linkId:t})}emitZListItemClick(i,t){this.zListItemClick.emit({e:i,listitemid:t})}constructor(s){i(this,s),this.zListItemLinkClick=t(this,"zListItemLinkClick",7),this.zListItemClick=t(this,"zListItemClick",7),this.linktarget="_self",this.underlined=!0,this.emitZListItemLinkClick=this.emitZListItemLinkClick.bind(this),this.emitZListItemClick=this.emitZListItemClick.bind(this)}render(){const i=this.listitemid?`link_${this.listitemid}`:"";return s("li",{key:"09e6ff232f05fda0714becf9e1197c174f4d8a70",role:"button",id:this.listitemid,"data-action":this.action,onClick:i=>this.emitZListItemClick(i,this.listitemid),onKeyPress:i=>a(i,this.emitZListItemClick,this.listitemid)},s("span",{key:"5af77b520ee760061280a3e1bc7f0a14a935abe4",class:this.underlined&&"border"},this.icon&&s("z-icon",{key:"5d850a4a1e5b5390c8d24529df96c65eda11f8e9",name:this.icon}),this.link?s("a",{href:this.link?this.link:null,target:this.linktarget,id:i,onClick:t=>this.emitZListItemLinkClick(t,i),onKeyPress:t=>a(t,this.emitZListItemLinkClick,i),role:this.link?"link":"button",tabindex:"0"},this.text):s("span",{innerHTML:this.text}),s("slot",{key:"9d581e10a76a3affba423defd8d468d6485d347a"})))}};e.style=":host li{all:unset;all:reset;width:100%;line-height:14px;list-style-type:none}:host li>span{display:flex;padding:calc(var(--space-unit) * 2) 0;color:var(--color-default-text);fill:var(--color-default-icon);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);letter-spacing:0.23px;line-height:14px}:host(.small) li>span{padding:calc(var(--space-unit) * 1.5) 0;font-size:var(--font-size-2)}:host(.x-small) li>span{padding:var(--space-unit) 0;font-size:var(--font-size-2)}:host(.small) li>span>z-icon,:host(.x-small) li>span>z-icon{--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:calc(var(--space-unit) * 0.5);padding:0}:host li>span.border{border-bottom:2px solid var(--color-surface03)}:host li span:hover,a:hover{color:var(--color-primary01);fill:var(--color-primary01)}a,a:visited,a:active{color:inherit;fill:inherit;text-decoration:none}:host li span z-icon{width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);padding:0 calc(var(--space-unit) * 1.5) 0 0;background-repeat:no-repeat;background-size:contain;color:var(--color-primary01);fill:var(--color-primary01)}";export{e as z_myz_list_item}
|