@getflip/swirl-components 0.97.1 → 0.98.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/components.json +395 -3
- package/dist/cjs/index-506fe4ea.js +20 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-accordion-item.cjs.entry.js +76 -0
- package/dist/cjs/swirl-accordion.cjs.entry.js +34 -0
- package/dist/cjs/swirl-app-layout_7.cjs.entry.js +2 -75
- package/dist/cjs/swirl-color-input.cjs.entry.js +78 -0
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-file-uploader.cjs.entry.js +1 -1
- package/dist/cjs/v4-8e8d6fbc.js +77 -0
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/swirl-accordion/swirl-accordion.css +7 -0
- package/dist/collection/components/swirl-accordion/swirl-accordion.js +33 -0
- package/dist/collection/components/swirl-accordion/swirl-accordion.spec.js +67 -0
- package/dist/collection/components/swirl-accordion/swirl-accordion.stories.js +64 -0
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.css +155 -0
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.js +246 -0
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.spec.js +87 -0
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.stories.js +34 -0
- package/dist/collection/components/swirl-color-input/swirl-color-input.css +68 -0
- package/dist/collection/components/swirl-color-input/swirl-color-input.js +292 -0
- package/dist/collection/components/swirl-color-input/swirl-color-input.spec.js +62 -0
- package/dist/collection/components/swirl-color-input/swirl-color-input.stories.js +22 -0
- package/dist/collection/components/swirl-file-uploader/swirl-file-uploader.js +1 -1
- package/dist/collection/components/swirl-file-uploader/swirl-file-uploader.spec.js +1 -1
- package/dist/components/swirl-accordion-item.d.ts +11 -0
- package/dist/components/swirl-accordion-item.js +113 -0
- package/dist/components/swirl-accordion.d.ts +11 -0
- package/dist/components/swirl-accordion.js +49 -0
- package/dist/components/swirl-color-input.d.ts +11 -0
- package/dist/components/swirl-color-input.js +102 -0
- package/dist/components/swirl-file-uploader.js +1 -1
- package/dist/components/swirl-icon.js +1 -35
- package/dist/components/swirl-icon2.js +37 -0
- package/dist/components/swirl-resource-list-item2.js +1 -74
- package/dist/components/v4.js +75 -0
- package/dist/esm/index-99d0060d.js +20 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-accordion-item.entry.js +72 -0
- package/dist/esm/swirl-accordion.entry.js +30 -0
- package/dist/esm/swirl-app-layout_7.entry.js +1 -74
- package/dist/esm/swirl-color-input.entry.js +74 -0
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-file-uploader.entry.js +1 -1
- package/dist/esm/v4-fa4bb814.js +75 -0
- package/dist/swirl-components/p-19b890a3.js +1 -0
- package/dist/swirl-components/p-230745da.entry.js +1 -0
- package/dist/swirl-components/p-244a747a.entry.js +1 -0
- package/dist/swirl-components/{p-a3a772b0.entry.js → p-a537a059.entry.js} +1 -1
- package/dist/swirl-components/p-b1648433.entry.js +1 -0
- package/dist/swirl-components/p-e8231bad.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-accordion/swirl-accordion.d.ts +6 -0
- package/dist/types/components/swirl-accordion/swirl-accordion.stories.d.ts +14 -0
- package/dist/types/components/swirl-accordion-item/swirl-accordion-item.d.ts +30 -0
- package/dist/types/components/swirl-accordion-item/swirl-accordion-item.stories.d.ts +14 -0
- package/dist/types/components/swirl-color-input/swirl-color-input.d.ts +24 -0
- package/dist/types/components/swirl-color-input/swirl-color-input.stories.d.ts +14 -0
- package/dist/types/components.d.ts +97 -4
- package/package.json +1 -1
- package/vscode-data.json +82 -0
- package/dist/swirl-components/p-8a00faee.entry.js +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as classnames } from './index2.js';
|
|
3
|
+
|
|
4
|
+
const swirlColorInputCss = ".sc-swirl-color-input-h{display:block;width:100%}.sc-swirl-color-input-h *.sc-swirl-color-input{box-sizing:border-box}.color-input.sc-swirl-color-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm);cursor:text}.color-input--inline.sc-swirl-color-input .color-input__preview.sc-swirl-color-input{width:1.5rem;height:1.5rem;margin-top:-0.125rem;margin-bottom:-0.125rem;margin-right:-0.25rem}.color-input__input.sc-swirl-color-input{display:inline-flex;width:100%;margin:0;padding:0;flex-grow:1;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.color-input__input.sc-swirl-color-input:focus{outline:none}.color-input__input.sc-swirl-color-input:disabled{color:var(--s-text-disabled);background-color:transparent}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.color-input__input.sc-swirl-color-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.color-input__preview.sc-swirl-color-input{width:2.75rem;height:2.75rem;margin-top:-1.25rem;flex-shrink:0;border:0.0625rem solid var(--s-border-default);border-radius:var(--s-border-radius-s)}";
|
|
5
|
+
|
|
6
|
+
const SwirlColorInput$1 = /*@__PURE__*/ proxyCustomElement(class SwirlColorInput extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.inputBlur = createEvent(this, "inputBlur", 7);
|
|
11
|
+
this.inputFocus = createEvent(this, "inputFocus", 7);
|
|
12
|
+
this.valueChange = createEvent(this, "valueChange", 7);
|
|
13
|
+
this.onChange = (event) => {
|
|
14
|
+
const el = event.target;
|
|
15
|
+
this.value = el.value;
|
|
16
|
+
};
|
|
17
|
+
this.onBlur = (event) => {
|
|
18
|
+
this.inputBlur.emit(event);
|
|
19
|
+
};
|
|
20
|
+
this.onFocus = (event) => {
|
|
21
|
+
this.inputFocus.emit(event);
|
|
22
|
+
this.handleAutoSelect(event);
|
|
23
|
+
};
|
|
24
|
+
this.onInput = (event) => {
|
|
25
|
+
this.onChange(event);
|
|
26
|
+
};
|
|
27
|
+
this.autoFocus = undefined;
|
|
28
|
+
this.autoSelect = undefined;
|
|
29
|
+
this.disabled = undefined;
|
|
30
|
+
this.swirlAriaDescribedby = undefined;
|
|
31
|
+
this.inline = undefined;
|
|
32
|
+
this.invalid = undefined;
|
|
33
|
+
this.placeholder = undefined;
|
|
34
|
+
this.required = undefined;
|
|
35
|
+
this.value = undefined;
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
// see https://stackoverflow.com/a/27314017
|
|
39
|
+
if (this.autoFocus) {
|
|
40
|
+
setTimeout(() => {
|
|
41
|
+
this.inputEl.focus();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
watchValue(newValue, oldValue) {
|
|
46
|
+
if (newValue !== oldValue) {
|
|
47
|
+
this.valueChange.emit(newValue);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
handleAutoSelect(event) {
|
|
51
|
+
if (!this.autoSelect) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
event.target.select();
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
const ariaInvalid = this.invalid === true || this.invalid === false
|
|
58
|
+
? String(this.invalid)
|
|
59
|
+
: undefined;
|
|
60
|
+
const className = classnames("color-input", {
|
|
61
|
+
"color-input--inline": this.inline,
|
|
62
|
+
});
|
|
63
|
+
return (h(Host, null, h("div", { class: className }, h("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "color-input__input", disabled: this.disabled, maxLength: 9, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, spellcheck: "false", type: "text", value: this.value }), h("span", { class: "color-input__preview", style: {
|
|
64
|
+
backgroundColor: this.disabled
|
|
65
|
+
? "var(--s-border-subdued)"
|
|
66
|
+
: this.value,
|
|
67
|
+
} }))));
|
|
68
|
+
}
|
|
69
|
+
static get watchers() { return {
|
|
70
|
+
"value": ["watchValue"]
|
|
71
|
+
}; }
|
|
72
|
+
static get style() { return swirlColorInputCss; }
|
|
73
|
+
}, [2, "swirl-color-input", {
|
|
74
|
+
"autoFocus": [4, "auto-focus"],
|
|
75
|
+
"autoSelect": [4, "auto-select"],
|
|
76
|
+
"disabled": [4],
|
|
77
|
+
"swirlAriaDescribedby": [1, "swirl-aria-describedby"],
|
|
78
|
+
"inline": [4],
|
|
79
|
+
"invalid": [4],
|
|
80
|
+
"placeholder": [1],
|
|
81
|
+
"required": [4],
|
|
82
|
+
"value": [1537]
|
|
83
|
+
}]);
|
|
84
|
+
function defineCustomElement$1() {
|
|
85
|
+
if (typeof customElements === "undefined") {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const components = ["swirl-color-input"];
|
|
89
|
+
components.forEach(tagName => { switch (tagName) {
|
|
90
|
+
case "swirl-color-input":
|
|
91
|
+
if (!customElements.get(tagName)) {
|
|
92
|
+
customElements.define(tagName, SwirlColorInput$1);
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
} });
|
|
96
|
+
}
|
|
97
|
+
defineCustomElement$1();
|
|
98
|
+
|
|
99
|
+
const SwirlColorInput = SwirlColorInput$1;
|
|
100
|
+
const defineCustomElement = defineCustomElement$1;
|
|
101
|
+
|
|
102
|
+
export { SwirlColorInput, defineCustomElement };
|
|
@@ -46,7 +46,7 @@ const SwirlFileUploader$1 = /*@__PURE__*/ proxyCustomElement(class SwirlFileUplo
|
|
|
46
46
|
"file-uploader--disabled": this.disabled,
|
|
47
47
|
"file-uploader--show-dropzone": this.showDropzone,
|
|
48
48
|
});
|
|
49
|
-
return (h(Host, null, h("div", { class: className }, h("label", { class: "file-uploader__label", htmlFor: this.inputId, id: `${this.
|
|
49
|
+
return (h(Host, null, h("div", { class: className }, h("label", { class: "file-uploader__label", htmlFor: this.inputId, id: `${this.inputId}-label` }, this.label), this.description && (h("span", { class: "file-uploader__description", id: `${this.inputId}-description` }, this.description)), h("div", { class: "file-uploader__dropzone" }, this.showDropzone ? ([
|
|
50
50
|
h("swirl-icon-cloud-upload", { class: "file-uploader__dropzone-icon" }),
|
|
51
51
|
h("div", { class: "file-uploader__dropzone-label", id: `${this.inputId}-additional-label` }, h("span", { class: "file-uploader__dropzone-cta" }, this.ctaLabel), " ", h("span", { class: "file-uploader__drag-drop-label" }, this.dragDropLabel)),
|
|
52
52
|
]) : (h("swirl-button", { class: "file-uploader__upload-button", disabled: this.disabled, icon: this.uploadButtonIcon, intent: "primary", label: this.uploadButtonLabel, onClick: this.onUploadButtonClick, swirlAriaDescribedby: ariaDescribedby, variant: this.uploadButtonVariant })), h("input", { accept: this.accept, "aria-describedby": ariaDescribedby, "aria-disabled": this.disabled, autoComplete: "off", class: "file-uploader__input", disabled: this.disabled, id: this.inputId, multiple: this.multiple, name: this.inputName, onChange: this.onChange, ref: (el) => (this.inputEl = el), tabIndex: tabIndex, type: "file" })))));
|
|
@@ -1,38 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const swirlIconCss = ":host{display:inline-flex}";
|
|
4
|
-
|
|
5
|
-
const SwirlIcon$1 = /*@__PURE__*/ proxyCustomElement(class SwirlIcon extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.glyph = undefined;
|
|
11
|
-
this.size = 24;
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const Tag = `swirl-icon-${this.glyph}`;
|
|
15
|
-
return (h(Host, null, h(Tag, { size: this.size })));
|
|
16
|
-
}
|
|
17
|
-
static get style() { return swirlIconCss; }
|
|
18
|
-
}, [1, "swirl-icon", {
|
|
19
|
-
"glyph": [1],
|
|
20
|
-
"size": [2]
|
|
21
|
-
}]);
|
|
22
|
-
function defineCustomElement$1() {
|
|
23
|
-
if (typeof customElements === "undefined") {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const components = ["swirl-icon"];
|
|
27
|
-
components.forEach(tagName => { switch (tagName) {
|
|
28
|
-
case "swirl-icon":
|
|
29
|
-
if (!customElements.get(tagName)) {
|
|
30
|
-
customElements.define(tagName, SwirlIcon$1);
|
|
31
|
-
}
|
|
32
|
-
break;
|
|
33
|
-
} });
|
|
34
|
-
}
|
|
35
|
-
defineCustomElement$1();
|
|
1
|
+
import { S as SwirlIcon$1, d as defineCustomElement$1 } from './swirl-icon2.js';
|
|
36
2
|
|
|
37
3
|
const SwirlIcon = SwirlIcon$1;
|
|
38
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const swirlIconCss = ":host{display:inline-flex}";
|
|
4
|
+
|
|
5
|
+
const SwirlIcon = /*@__PURE__*/ proxyCustomElement(class SwirlIcon extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.glyph = undefined;
|
|
11
|
+
this.size = 24;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const Tag = `swirl-icon-${this.glyph}`;
|
|
15
|
+
return (h(Host, null, h(Tag, { size: this.size })));
|
|
16
|
+
}
|
|
17
|
+
static get style() { return swirlIconCss; }
|
|
18
|
+
}, [1, "swirl-icon", {
|
|
19
|
+
"glyph": [1],
|
|
20
|
+
"size": [2]
|
|
21
|
+
}]);
|
|
22
|
+
function defineCustomElement() {
|
|
23
|
+
if (typeof customElements === "undefined") {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const components = ["swirl-icon"];
|
|
27
|
+
components.forEach(tagName => { switch (tagName) {
|
|
28
|
+
case "swirl-icon":
|
|
29
|
+
if (!customElements.get(tagName)) {
|
|
30
|
+
customElements.define(tagName, SwirlIcon);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
} });
|
|
34
|
+
}
|
|
35
|
+
defineCustomElement();
|
|
36
|
+
|
|
37
|
+
export { SwirlIcon as S, defineCustomElement as d };
|
|
@@ -5,80 +5,7 @@ import { d as defineCustomElement$4 } from './swirl-button2.js';
|
|
|
5
5
|
import { d as defineCustomElement$3 } from './swirl-icon-check-strong2.js';
|
|
6
6
|
import { d as defineCustomElement$2 } from './swirl-icon-drag-handle2.js';
|
|
7
7
|
import { d as defineCustomElement$1 } from './swirl-popover-trigger2.js';
|
|
8
|
-
|
|
9
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
10
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
11
|
-
// generators (like Math.random()).
|
|
12
|
-
var getRandomValues;
|
|
13
|
-
var rnds8 = new Uint8Array(16);
|
|
14
|
-
function rng() {
|
|
15
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
16
|
-
if (!getRandomValues) {
|
|
17
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
18
|
-
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
19
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
20
|
-
|
|
21
|
-
if (!getRandomValues) {
|
|
22
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return getRandomValues(rnds8);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
30
|
-
|
|
31
|
-
function validate(uuid) {
|
|
32
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
37
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
var byteToHex = [];
|
|
41
|
-
|
|
42
|
-
for (var i = 0; i < 256; ++i) {
|
|
43
|
-
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function stringify(arr) {
|
|
47
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
48
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
49
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
50
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
51
|
-
// of the following:
|
|
52
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
53
|
-
// "undefined" in the uuid)
|
|
54
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
55
|
-
|
|
56
|
-
if (!validate(uuid)) {
|
|
57
|
-
throw TypeError('Stringified UUID is invalid');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return uuid;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function v4(options, buf, offset) {
|
|
64
|
-
options = options || {};
|
|
65
|
-
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
66
|
-
|
|
67
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
68
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
69
|
-
|
|
70
|
-
if (buf) {
|
|
71
|
-
offset = offset || 0;
|
|
72
|
-
|
|
73
|
-
for (var i = 0; i < 16; ++i) {
|
|
74
|
-
buf[offset + i] = rnds[i];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return buf;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return stringify(rnds);
|
|
81
|
-
}
|
|
8
|
+
import { v as v4 } from './v4.js';
|
|
82
9
|
|
|
83
10
|
const swirlResourceListItemCss = ".sc-swirl-resource-list-item-h{position:relative;display:block;width:100%}.sc-swirl-resource-list-item-h *.sc-swirl-resource-list-item{box-sizing:border-box}.resource-list-item.sc-swirl-resource-list-item{position:relative;width:100%}.resource-list-item.sc-swirl-resource-list-item:not(.resource-list-item--show-meta){display:flex;align-items:center}.resource-list-item.sc-swirl-resource-list-item:not(.resource-list-item--show-meta) .resource-list-item__control.sc-swirl-resource-list-item{position:relative;top:auto;right:auto;transform:none}.resource-list-item--interactive.sc-swirl-resource-list-item:hover{--swirl-ghost-button-background-default:var(--s-background-hovered)}.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item{cursor:pointer}.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:disabled{cursor:default}.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:hover:not(:disabled),.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:focus:not(:disabled){background-color:var(--swirl-resource-list-item-background-hovered)}.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:hover:not(:disabled) .resource-list-item__media.sc-swirl-resource-list-item,.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:hover:not(:disabled) .resource-list-item__meta.sc-swirl-resource-list-item,.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:focus:not(:disabled) .resource-list-item__media.sc-swirl-resource-list-item,.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:focus:not(:disabled) .resource-list-item__meta.sc-swirl-resource-list-item{--swirl-avatar-background-color:var(--s-surface-raised-hovered);--swirl-avatar-group-border-color:var(--s-background-hovered);--swirl-badge-border-color:var(--s-background-hovered)}.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:active:not(:disabled){background-color:var(--swirl-resource-list-item-background-pressed)}.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:active:not(:disabled) .resource-list-item__media.sc-swirl-resource-list-item,.resource-list-item--interactive.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item:active:not(:disabled) .resource-list-item__meta.sc-swirl-resource-list-item{--swirl-avatar-group-border-color:var(--s-background-pressed);--swirl-badge-border-color:var(--s-background-pressed)}.resource-list-item--active.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item{--swirl-badge-border-color:var(\n --swirl-resource-list-item-background-hovered\n );background-color:var(--swirl-resource-list-item-background-hovered)}.resource-list-item--checked.sc-swirl-resource-list-item .resource-list-item__checkbox.sc-swirl-resource-list-item{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}@media (min-width: 768px){.resource-list-item--selectable.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item{padding-left:calc(var(--s-space-16) + 1.5rem + var(--s-space-12))}}.resource-list-item--selectable.sc-swirl-resource-list-item .resource-list-item__label-container.sc-swirl-resource-list-item{padding-right:calc(var(--s-space-16) + 1.5rem + var(--s-space-12))}@media (min-width: 768px){.resource-list-item--selectable.sc-swirl-resource-list-item .resource-list-item__label-container.sc-swirl-resource-list-item{padding-right:var(--s-space-16)}}.resource-list-item--hide-divider.sc-swirl-resource-list-item .resource-list-item__label-container.sc-swirl-resource-list-item:after{display:none}.resource-list-item--label-weight-medium.sc-swirl-resource-list-item{font-weight:var(--s-font-weight-medium)}.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:hover,.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:focus,.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:focus-within{--swirl-flat-button-background-default:var(--s-background-default);--swirl-flat-button-background-disabled:var(--s-background-disabled);--swirl-flat-button-background-hovered:var(--s-background-hovered);--swirl-flat-button-background-pressed:var(--s-background-pressed)}.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:hover .resource-list-item__control.sc-swirl-resource-list-item,.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:focus .resource-list-item__control.sc-swirl-resource-list-item,.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:focus-within .resource-list-item__control.sc-swirl-resource-list-item{pointer-events:auto;opacity:1}.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:hover .resource-list-item__meta.sc-swirl-resource-list-item,.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:focus .resource-list-item__meta.sc-swirl-resource-list-item,.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item:focus-within .resource-list-item__meta.sc-swirl-resource-list-item{pointer-events:none;opacity:0}.resource-list-item--show-control-on-focus.sc-swirl-resource-list-item .resource-list-item__control.sc-swirl-resource-list-item{pointer-events:none;opacity:0}.resource-list-item--draggable.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item{padding-left:calc(var(--s-space-16) * 2 + 1.5rem)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.resource-list-item--draggable.sc-swirl-resource-list-item .resource-list-item__content.sc-swirl-resource-list-item{padding-left:calc(var(--s-space-16) * 2 + 1rem)}}.resource-list-item--dragging.sc-swirl-resource-list-item{z-index:1;border-radius:var(--s-border-radius-s);background-color:var(--s-surface-overlay-pressed);box-shadow:0 0.0625rem 0.125rem rgba(25, 26, 28, 0.08),\n 0 0.25rem 2rem rgba(25, 26, 28, 0.16)}.resource-list-item--dragging.sc-swirl-resource-list-item:hover:not(.resource-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.resource-list-item--disabled.resource-list-item--checked.sc-swirl-resource-list-item .resource-list-item__checkbox.sc-swirl-resource-list-item{border-color:var(--s-icon-disabled);background-color:var(--s-icon-disabled)}.resource-list-item--disabled.sc-swirl-resource-list-item .resource-list-item__checkbox.sc-swirl-resource-list-item{border-color:var(--s-icon-disabled);background-color:transparent}.resource-list-item--disabled.sc-swirl-resource-list-item .resource-list-item__checkbox-icon.sc-swirl-resource-list-item{color:var(--s-text-on-status)}.resource-list-item__content.sc-swirl-resource-list-item{--swirl-avatar-group-border-color:var(--s-background-default);--swirl-badge-border-color:var(--s-background-default);display:flex;width:100%;min-width:0;margin:0;padding-top:var(--s-space-12);padding-right:0;padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);align-items:center;border:none;color:var(--s-text-default);background-color:var(--swirl-resource-list-item-background-default);font:inherit;line-height:var(--s-line-height-base);text-align:left;text-decoration:none;gap:var(--s-space-12)}.resource-list-item__content.sc-swirl-resource-list-item:focus{outline:none}.resource-list-item__content.sc-swirl-resource-list-item:focus-visible{background-color:var(--s-background-hovered)}.resource-list-item__content.sc-swirl-resource-list-item:focus-visible .resource-list-item__media.sc-swirl-resource-list-item{--swirl-avatar-group-border-color:var(--s-background-hovered);--swirl-badge-border-color:var(--s-background-hovered)}.resource-list-item__content.sc-swirl-resource-list-item:disabled{color:var(--s-text-disabled);cursor:default}.resource-list-item__content.sc-swirl-resource-list-item:disabled .resource-list-item__description.sc-swirl-resource-list-item{color:var(--s-text-disabled)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.resource-list-item__content.sc-swirl-resource-list-item{padding:var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.resource-list-item__media.sc-swirl-resource-list-item{display:inline-flex}.resource-list-item__label-container.sc-swirl-resource-list-item{position:relative;display:flex;min-width:0;min-height:2.875rem;padding-right:var(--s-space-16);flex-grow:1;justify-content:center;flex-direction:column}.resource-list-item__label-container.sc-swirl-resource-list-item:after{position:absolute;right:0;bottom:calc(-1 * var(--s-space-12));left:0;height:0.0625rem;background-color:var(--s-border-default);content:\"\"}.resource-list-item__label.sc-swirl-resource-list-item{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.resource-list-item__label.sc-swirl-resource-list-item b.sc-swirl-resource-list-item,.resource-list-item__label.sc-swirl-resource-list-item strong.sc-swirl-resource-list-item{font-weight:var(--s-font-weight-semibold)}.resource-list-item__description.sc-swirl-resource-list-item{overflow:hidden;margin-top:var(--s-space-2);color:var(--s-text-subdued);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);white-space:nowrap;text-overflow:ellipsis}.resource-list-item__menu-trigger.sc-swirl-resource-list-item{position:absolute;top:50%;right:var(--s-space-16);transform:translateY(-50%)}.resource-list-item__control.sc-swirl-resource-list-item{position:absolute;top:50%;right:var(--s-space-16);transform:translateY(-50%)}.resource-list-item__checkbox.sc-swirl-resource-list-item{position:absolute;top:50%;right:var(--s-space-16);display:flex;width:1.125rem;height:1.125rem;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s);transform:translateY(-50%);pointer-events:none}@media (min-width: 768px){.resource-list-item__checkbox.sc-swirl-resource-list-item{right:auto;left:calc(var(--s-space-16) - var(--s-space-2))}}.resource-list-item__checkbox-icon.sc-swirl-resource-list-item{display:inline-flex;width:1.0625rem;height:1.0625rem}.resource-list-item__checkbox-icon.sc-swirl-resource-list-item>*.sc-swirl-resource-list-item::part(icon){width:1.0625rem;height:1.0625rem}.resource-list-item__meta.sc-swirl-resource-list-item{display:flex;align-items:flex-end;color:var(--s-text-subdued);font-size:var(--s-font-size-sm);flex-direction:column;align-self:flex-start}.resource-list-item__drag-handle.sc-swirl-resource-list-item{position:absolute;z-index:1;top:50%;left:var(--s-space-4);display:inline-flex;margin:0;padding:0;padding:var(--s-space-8);flex-shrink:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:grab;transform:translateY(-50%)}.resource-list-item__drag-handle.sc-swirl-resource-list-item:active{cursor:grabbing}.resource-list-item__drag-handle.sc-swirl-resource-list-item:focus:not(:focus-visible){outline:none}.resource-list-item__drag-handle.sc-swirl-resource-list-item:focus-visible{outline-color:var(--s-focus-default)}";
|
|
84
11
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
2
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
3
|
+
// generators (like Math.random()).
|
|
4
|
+
var getRandomValues;
|
|
5
|
+
var rnds8 = new Uint8Array(16);
|
|
6
|
+
function rng() {
|
|
7
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
8
|
+
if (!getRandomValues) {
|
|
9
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
10
|
+
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
11
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
12
|
+
|
|
13
|
+
if (!getRandomValues) {
|
|
14
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return getRandomValues(rnds8);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
22
|
+
|
|
23
|
+
function validate(uuid) {
|
|
24
|
+
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
29
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
var byteToHex = [];
|
|
33
|
+
|
|
34
|
+
for (var i = 0; i < 256; ++i) {
|
|
35
|
+
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function stringify(arr) {
|
|
39
|
+
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
40
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
41
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
42
|
+
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
43
|
+
// of the following:
|
|
44
|
+
// - One or more input array values don't map to a hex octet (leading to
|
|
45
|
+
// "undefined" in the uuid)
|
|
46
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
|
47
|
+
|
|
48
|
+
if (!validate(uuid)) {
|
|
49
|
+
throw TypeError('Stringified UUID is invalid');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return uuid;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function v4(options, buf, offset) {
|
|
56
|
+
options = options || {};
|
|
57
|
+
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
58
|
+
|
|
59
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
60
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
61
|
+
|
|
62
|
+
if (buf) {
|
|
63
|
+
offset = offset || 0;
|
|
64
|
+
|
|
65
|
+
for (var i = 0; i < 16; ++i) {
|
|
66
|
+
buf[offset + i] = rnds[i];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return buf;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return stringify(rnds);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { v4 as v };
|
|
@@ -2083,6 +2083,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2083
2083
|
return import(
|
|
2084
2084
|
/* webpackMode: "lazy" */
|
|
2085
2085
|
'./file-manager.entry.js').then(processMod, consoleError);
|
|
2086
|
+
case 'swirl-accordion':
|
|
2087
|
+
return import(
|
|
2088
|
+
/* webpackMode: "lazy" */
|
|
2089
|
+
'./swirl-accordion.entry.js').then(processMod, consoleError);
|
|
2090
|
+
case 'swirl-accordion-item':
|
|
2091
|
+
return import(
|
|
2092
|
+
/* webpackMode: "lazy" */
|
|
2093
|
+
'./swirl-accordion-item.entry.js').then(processMod, consoleError);
|
|
2086
2094
|
case 'swirl-action-list-section':
|
|
2087
2095
|
return import(
|
|
2088
2096
|
/* webpackMode: "lazy" */
|
|
@@ -2131,6 +2139,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2131
2139
|
return import(
|
|
2132
2140
|
/* webpackMode: "lazy" */
|
|
2133
2141
|
'./swirl-chip.entry.js').then(processMod, consoleError);
|
|
2142
|
+
case 'swirl-color-input':
|
|
2143
|
+
return import(
|
|
2144
|
+
/* webpackMode: "lazy" */
|
|
2145
|
+
'./swirl-color-input.entry.js').then(processMod, consoleError);
|
|
2134
2146
|
case 'swirl-columns':
|
|
2135
2147
|
return import(
|
|
2136
2148
|
/* webpackMode: "lazy" */
|
|
@@ -2195,10 +2207,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2195
2207
|
return import(
|
|
2196
2208
|
/* webpackMode: "lazy" */
|
|
2197
2209
|
'./swirl-form-group.entry.js').then(processMod, consoleError);
|
|
2198
|
-
case 'swirl-icon':
|
|
2199
|
-
return import(
|
|
2200
|
-
/* webpackMode: "lazy" */
|
|
2201
|
-
'./swirl-icon.entry.js').then(processMod, consoleError);
|
|
2202
2210
|
case 'swirl-icon-add-photo':
|
|
2203
2211
|
return import(
|
|
2204
2212
|
/* webpackMode: "lazy" */
|
|
@@ -3031,6 +3039,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
3031
3039
|
return import(
|
|
3032
3040
|
/* webpackMode: "lazy" */
|
|
3033
3041
|
'./swirl-date-picker_2.entry.js').then(processMod, consoleError);
|
|
3042
|
+
case 'swirl-icon':
|
|
3043
|
+
return import(
|
|
3044
|
+
/* webpackMode: "lazy" */
|
|
3045
|
+
'./swirl-icon.entry.js').then(processMod, consoleError);
|
|
3034
3046
|
case 'swirl-icon-add_6':
|
|
3035
3047
|
return import(
|
|
3036
3048
|
/* webpackMode: "lazy" */
|
|
@@ -3127,14 +3139,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
3127
3139
|
return import(
|
|
3128
3140
|
/* webpackMode: "lazy" */
|
|
3129
3141
|
'./swirl-icon-error_3.entry.js').then(processMod, consoleError);
|
|
3130
|
-
case 'swirl-text':
|
|
3131
|
-
return import(
|
|
3132
|
-
/* webpackMode: "lazy" */
|
|
3133
|
-
'./swirl-text.entry.js').then(processMod, consoleError);
|
|
3134
3142
|
case 'swirl-stack':
|
|
3135
3143
|
return import(
|
|
3136
3144
|
/* webpackMode: "lazy" */
|
|
3137
3145
|
'./swirl-stack.entry.js').then(processMod, consoleError);
|
|
3146
|
+
case 'swirl-text':
|
|
3147
|
+
return import(
|
|
3148
|
+
/* webpackMode: "lazy" */
|
|
3149
|
+
'./swirl-text.entry.js').then(processMod, consoleError);
|
|
3138
3150
|
case 'swirl-button':
|
|
3139
3151
|
return import(
|
|
3140
3152
|
/* webpackMode: "lazy" */
|