@maggioli-design-system/mds-accordion-timer-item 3.3.0 → 3.3.2
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-2bd6b4fb.js → index-e23d5ad6.js} +104 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer-item.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/aria.js +9 -1
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +21 -32
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-a4aa99a4.js → index-6704f580.js} +104 -20
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer-item.js +3 -3
- package/dist/esm-es5/index-6704f580.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/p-6f6de960.system.js +2 -0
- package/dist/mds-accordion-timer-item/p-ae55d615.js +2 -0
- package/dist/mds-accordion-timer-item/{p-b907655e.entry.js → p-bfd4e138.entry.js} +1 -1
- package/dist/mds-accordion-timer-item/p-d6674445.system.entry.js +1 -0
- package/dist/mds-accordion-timer-item/p-ef685e4f.system.js +1 -0
- package/dist/stats.json +32 -30
- package/dist/types/common/aria.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +19 -0
- package/documentation.json +15 -5
- package/package.json +5 -5
- package/readme.md +3 -1
- package/src/common/aria.ts +12 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +22 -21
- package/src/components/mds-accordion-timer-item/readme.md +1 -1
- package/src/fixtures/icons.json +2 -0
- package/www/build/mds-accordion-timer-item.esm.js +1 -1
- package/www/build/mds-accordion-timer-item.js +1 -1
- package/www/build/p-6f6de960.system.js +2 -0
- package/www/build/p-ae55d615.js +2 -0
- package/www/build/{p-b907655e.entry.js → p-bfd4e138.entry.js} +1 -1
- package/www/build/p-d6674445.system.entry.js +1 -0
- package/www/build/p-ef685e4f.system.js +1 -0
- package/dist/esm-es5/index-a4aa99a4.js +0 -2
- package/dist/mds-accordion-timer-item/p-8e2cd0f7.system.js +0 -2
- package/dist/mds-accordion-timer-item/p-a47cd642.js +0 -2
- package/dist/mds-accordion-timer-item/p-e42fe386.system.entry.js +0 -1
- package/dist/mds-accordion-timer-item/p-e5216d89.system.js +0 -1
- package/www/build/p-8e2cd0f7.system.js +0 -2
- package/www/build/p-a47cd642.js +0 -2
- package/www/build/p-e42fe386.system.entry.js +0 -1
- package/www/build/p-e5216d89.system.js +0 -1
|
@@ -994,6 +994,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
994
994
|
*/
|
|
995
995
|
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
996
996
|
try {
|
|
997
|
+
/**
|
|
998
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
999
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
1000
|
+
*/
|
|
997
1001
|
instance = instance.render() ;
|
|
998
1002
|
{
|
|
999
1003
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1102,6 +1106,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1102
1106
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1103
1107
|
*/
|
|
1104
1108
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1109
|
+
var _a;
|
|
1105
1110
|
if (cmpMeta.$members$) {
|
|
1106
1111
|
// It's better to have a const than two Object.entries()
|
|
1107
1112
|
const members = Object.entries(cmpMeta.$members$);
|
|
@@ -1126,7 +1131,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1126
1131
|
});
|
|
1127
1132
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1128
1133
|
const attrNameToPropName = new Map();
|
|
1129
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1134
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1130
1135
|
plt.jmp(() => {
|
|
1131
1136
|
const propName = attrNameToPropName.get(attrName);
|
|
1132
1137
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -1174,26 +1179,65 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1174
1179
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1175
1180
|
return;
|
|
1176
1181
|
}
|
|
1182
|
+
else if (propName == null) {
|
|
1183
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1184
|
+
// on a vanilla web component
|
|
1185
|
+
const hostRef = getHostRef(this);
|
|
1186
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1187
|
+
// We only want to trigger the callback(s) if:
|
|
1188
|
+
// 1. The instance is ready
|
|
1189
|
+
// 2. The watchers are ready
|
|
1190
|
+
// 3. The value has changed
|
|
1191
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1192
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1193
|
+
newValue !== oldValue) {
|
|
1194
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1195
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1196
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1197
|
+
if (instance[callbackName] != null) {
|
|
1198
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1199
|
+
}
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
return;
|
|
1203
|
+
}
|
|
1177
1204
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1178
1205
|
});
|
|
1179
1206
|
};
|
|
1180
|
-
//
|
|
1181
|
-
//
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1207
|
+
// Create an array of attributes to observe
|
|
1208
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1209
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1210
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1211
|
+
// an invalid attribute.
|
|
1212
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1213
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1214
|
+
...members
|
|
1215
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1216
|
+
.map(([propName, m]) => {
|
|
1217
|
+
const attrName = m[1] || propName;
|
|
1218
|
+
attrNameToPropName.set(attrName, propName);
|
|
1219
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1220
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1221
|
+
}
|
|
1222
|
+
return attrName;
|
|
1223
|
+
}),
|
|
1224
|
+
]));
|
|
1192
1225
|
}
|
|
1193
1226
|
}
|
|
1194
1227
|
return Cstr;
|
|
1195
1228
|
};
|
|
1196
|
-
|
|
1229
|
+
/**
|
|
1230
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1231
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1232
|
+
* and (optionally) an HMR version ID.
|
|
1233
|
+
*
|
|
1234
|
+
* @param elm a host element
|
|
1235
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1236
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1237
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1238
|
+
*/
|
|
1239
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1240
|
+
let Cstr;
|
|
1197
1241
|
// initializeComponent
|
|
1198
1242
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1199
1243
|
// Let the runtime know that the component has been initialized
|
|
@@ -1428,22 +1472,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1428
1472
|
* @returns void
|
|
1429
1473
|
*/
|
|
1430
1474
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1475
|
+
/**
|
|
1476
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1477
|
+
* instances.
|
|
1478
|
+
*/
|
|
1431
1479
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1480
|
+
/**
|
|
1481
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1482
|
+
*
|
|
1483
|
+
* @param ref the runtime ref of interest
|
|
1484
|
+
* @returns the Host reference (if found) or undefined
|
|
1485
|
+
*/
|
|
1432
1486
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1487
|
+
/**
|
|
1488
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
1489
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
1490
|
+
*
|
|
1491
|
+
* @param lazyInstance the lazy instance of interest
|
|
1492
|
+
* @param hostRef that instances `HostRef` object
|
|
1493
|
+
* @returns a reference to the host ref WeakMap
|
|
1494
|
+
*/
|
|
1433
1495
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1434
|
-
|
|
1496
|
+
/**
|
|
1497
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
1498
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
1499
|
+
* metadata.
|
|
1500
|
+
*
|
|
1501
|
+
* @param hostElement the host element to register
|
|
1502
|
+
* @param cmpMeta runtime metadata for that component
|
|
1503
|
+
* @returns a reference to the host ref WeakMap
|
|
1504
|
+
*/
|
|
1505
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1435
1506
|
const hostRef = {
|
|
1436
1507
|
$flags$: 0,
|
|
1437
|
-
$hostElement$:
|
|
1508
|
+
$hostElement$: hostElement,
|
|
1438
1509
|
$cmpMeta$: cmpMeta,
|
|
1439
1510
|
$instanceValues$: new Map(),
|
|
1440
1511
|
};
|
|
1441
1512
|
{
|
|
1442
1513
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1443
|
-
|
|
1444
|
-
|
|
1514
|
+
hostElement['s-p'] = [];
|
|
1515
|
+
hostElement['s-rc'] = [];
|
|
1445
1516
|
}
|
|
1446
|
-
return hostRefs.set(
|
|
1517
|
+
return hostRefs.set(hostElement, hostRef);
|
|
1447
1518
|
};
|
|
1448
1519
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1449
1520
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -1456,7 +1527,20 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1456
1527
|
if (module) {
|
|
1457
1528
|
return module[exportName];
|
|
1458
1529
|
}
|
|
1459
|
-
|
|
1530
|
+
|
|
1531
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1532
|
+
const processMod = importedModule => {
|
|
1533
|
+
cmpModules.set(bundleId, importedModule);
|
|
1534
|
+
return importedModule[exportName];
|
|
1535
|
+
}
|
|
1536
|
+
switch(bundleId) {
|
|
1537
|
+
|
|
1538
|
+
case 'mds-accordion-timer-item.cjs':
|
|
1539
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1540
|
+
/* webpackMode: "lazy" */
|
|
1541
|
+
'./mds-accordion-timer-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1460
1544
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1461
1545
|
/* @vite-ignore */
|
|
1462
1546
|
/* webpackInclude: /\.entry\.js$/ */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e23d5ad6.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e23d5ad6.js');
|
|
6
6
|
|
|
7
|
-
const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);
|
|
7
|
+
const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
|
|
8
8
|
|
|
9
9
|
const MdsAccordionTimerItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e23d5ad6.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.5.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-accordion-timer-item.cjs.js', document.baseURI).href));
|
|
@@ -5,6 +5,7 @@ const hash = (s) => {
|
|
|
5
5
|
}
|
|
6
6
|
return h.toString();
|
|
7
7
|
};
|
|
8
|
+
const randomInt = (max) => Math.floor(Math.random() * max);
|
|
8
9
|
const unslugName = (name) => {
|
|
9
10
|
var _a, _b, _c;
|
|
10
11
|
return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
|
|
@@ -18,4 +19,11 @@ const setAttributeIfEmpty = (element, attribute, value) => {
|
|
|
18
19
|
return value;
|
|
19
20
|
};
|
|
20
21
|
const hashValue = (value) => `${value}-${hash(value)}`;
|
|
21
|
-
|
|
22
|
+
const hashRandomValue = (value) => {
|
|
23
|
+
const randomValue = randomInt(1000000);
|
|
24
|
+
if (value) {
|
|
25
|
+
return `${value}-${hash(randomValue.toString())}`;
|
|
26
|
+
}
|
|
27
|
+
return hash(randomValue.toString());
|
|
28
|
+
};
|
|
29
|
+
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
|
|
@@ -26,13 +26,13 @@ export class KeyboardManager {
|
|
|
26
26
|
};
|
|
27
27
|
this.attachEscapeBehavior = (callBack) => {
|
|
28
28
|
this.escapeCallback = callBack;
|
|
29
|
-
if (
|
|
29
|
+
if (window !== undefined) {
|
|
30
30
|
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
this.detachEscapeBehavior = () => {
|
|
34
34
|
this.escapeCallback = () => { return; };
|
|
35
|
-
if (
|
|
35
|
+
if (window !== undefined) {
|
|
36
36
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
@@ -60,8 +60,6 @@
|
|
|
60
60
|
--mds-accordion-timer-item-progress-bar-background: var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));
|
|
61
61
|
--mds-accordion-timer-item-progress-bar-thickness: var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);
|
|
62
62
|
--mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 500ms);
|
|
63
|
-
position: relative;
|
|
64
|
-
display: grid;
|
|
65
63
|
padding-top: 1rem;
|
|
66
64
|
padding-bottom: 1rem;
|
|
67
65
|
transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
|
|
@@ -70,66 +68,57 @@
|
|
|
70
68
|
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
71
69
|
|
|
72
70
|
color: var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));
|
|
71
|
+
display: grid;
|
|
72
|
+
position: relative;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.row{
|
|
76
76
|
|
|
77
|
-
display: flex;
|
|
78
|
-
|
|
79
77
|
gap: 1rem;
|
|
80
|
-
}
|
|
81
78
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
display: grid;
|
|
79
|
+
display: flex;
|
|
85
80
|
}
|
|
86
81
|
|
|
87
|
-
.
|
|
82
|
+
.accordion {
|
|
83
|
+
display: grid;
|
|
84
|
+
}
|
|
88
85
|
|
|
89
|
-
|
|
86
|
+
.progress-bar {
|
|
90
87
|
|
|
91
88
|
--mds-progress-color: var(--mds-accordion-timer-item-progress-bar-color);
|
|
92
89
|
--mds-progress-background: var(--mds-accordion-timer-item-progress-bar-background);
|
|
93
90
|
--mds-progress-thickness: var(--mds-accordion-timer-item-progress-bar-thickness);
|
|
91
|
+
|
|
92
|
+
flex-shrink: 0;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
.action{
|
|
97
96
|
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
|
|
100
97
|
border-radius: 0.75rem;
|
|
101
98
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
text-align: left;
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
border: 0;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
padding: 0;
|
|
103
|
+
text-align: left;
|
|
109
104
|
}
|
|
110
105
|
|
|
111
|
-
:host( [selected] ) .action{
|
|
112
|
-
|
|
113
|
-
cursor: auto;
|
|
106
|
+
:host( [selected] ) .action {
|
|
107
|
+
cursor: auto;
|
|
114
108
|
}
|
|
115
109
|
|
|
116
110
|
.contents{
|
|
117
111
|
|
|
118
|
-
display: grid;
|
|
119
|
-
|
|
120
|
-
min-height: 0px;
|
|
121
|
-
|
|
122
112
|
gap: 1rem;
|
|
123
113
|
|
|
124
|
-
overflow: hidden;
|
|
125
|
-
|
|
126
|
-
padding-top: 0px;
|
|
127
|
-
|
|
128
|
-
opacity: 0;
|
|
129
|
-
|
|
130
114
|
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
131
115
|
|
|
116
|
+
display: grid;
|
|
132
117
|
grid-template-rows: 0fr;
|
|
118
|
+
min-height: 0;
|
|
119
|
+
opacity: 0;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
padding-top: 0;
|
|
133
122
|
transition-duration: var(--mds-accordion-timer-item-duration);
|
|
134
123
|
transition-property: grid-template-rows opacity padding;
|
|
135
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);
|
|
3
|
+
const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
|
|
4
4
|
|
|
5
5
|
const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionTimerItem extends HTMLElement {
|
|
6
6
|
constructor() {
|
package/dist/documentation.json
CHANGED
|
@@ -972,6 +972,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
972
972
|
*/
|
|
973
973
|
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
974
974
|
try {
|
|
975
|
+
/**
|
|
976
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
977
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
978
|
+
*/
|
|
975
979
|
instance = instance.render() ;
|
|
976
980
|
{
|
|
977
981
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1080,6 +1084,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1080
1084
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1081
1085
|
*/
|
|
1082
1086
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1087
|
+
var _a;
|
|
1083
1088
|
if (cmpMeta.$members$) {
|
|
1084
1089
|
// It's better to have a const than two Object.entries()
|
|
1085
1090
|
const members = Object.entries(cmpMeta.$members$);
|
|
@@ -1104,7 +1109,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1104
1109
|
});
|
|
1105
1110
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1106
1111
|
const attrNameToPropName = new Map();
|
|
1107
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1112
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1108
1113
|
plt.jmp(() => {
|
|
1109
1114
|
const propName = attrNameToPropName.get(attrName);
|
|
1110
1115
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -1152,26 +1157,65 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1152
1157
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1153
1158
|
return;
|
|
1154
1159
|
}
|
|
1160
|
+
else if (propName == null) {
|
|
1161
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1162
|
+
// on a vanilla web component
|
|
1163
|
+
const hostRef = getHostRef(this);
|
|
1164
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1165
|
+
// We only want to trigger the callback(s) if:
|
|
1166
|
+
// 1. The instance is ready
|
|
1167
|
+
// 2. The watchers are ready
|
|
1168
|
+
// 3. The value has changed
|
|
1169
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1170
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1171
|
+
newValue !== oldValue) {
|
|
1172
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1173
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1174
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1175
|
+
if (instance[callbackName] != null) {
|
|
1176
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1155
1182
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1156
1183
|
});
|
|
1157
1184
|
};
|
|
1158
|
-
//
|
|
1159
|
-
//
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1185
|
+
// Create an array of attributes to observe
|
|
1186
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1187
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1188
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1189
|
+
// an invalid attribute.
|
|
1190
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1191
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1192
|
+
...members
|
|
1193
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1194
|
+
.map(([propName, m]) => {
|
|
1195
|
+
const attrName = m[1] || propName;
|
|
1196
|
+
attrNameToPropName.set(attrName, propName);
|
|
1197
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1198
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1199
|
+
}
|
|
1200
|
+
return attrName;
|
|
1201
|
+
}),
|
|
1202
|
+
]));
|
|
1170
1203
|
}
|
|
1171
1204
|
}
|
|
1172
1205
|
return Cstr;
|
|
1173
1206
|
};
|
|
1174
|
-
|
|
1207
|
+
/**
|
|
1208
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1209
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1210
|
+
* and (optionally) an HMR version ID.
|
|
1211
|
+
*
|
|
1212
|
+
* @param elm a host element
|
|
1213
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1214
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1215
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1216
|
+
*/
|
|
1217
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1218
|
+
let Cstr;
|
|
1175
1219
|
// initializeComponent
|
|
1176
1220
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1177
1221
|
// Let the runtime know that the component has been initialized
|
|
@@ -1406,22 +1450,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1406
1450
|
* @returns void
|
|
1407
1451
|
*/
|
|
1408
1452
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1453
|
+
/**
|
|
1454
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1455
|
+
* instances.
|
|
1456
|
+
*/
|
|
1409
1457
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1458
|
+
/**
|
|
1459
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1460
|
+
*
|
|
1461
|
+
* @param ref the runtime ref of interest
|
|
1462
|
+
* @returns the Host reference (if found) or undefined
|
|
1463
|
+
*/
|
|
1410
1464
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1465
|
+
/**
|
|
1466
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
1467
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
1468
|
+
*
|
|
1469
|
+
* @param lazyInstance the lazy instance of interest
|
|
1470
|
+
* @param hostRef that instances `HostRef` object
|
|
1471
|
+
* @returns a reference to the host ref WeakMap
|
|
1472
|
+
*/
|
|
1411
1473
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1412
|
-
|
|
1474
|
+
/**
|
|
1475
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
1476
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
1477
|
+
* metadata.
|
|
1478
|
+
*
|
|
1479
|
+
* @param hostElement the host element to register
|
|
1480
|
+
* @param cmpMeta runtime metadata for that component
|
|
1481
|
+
* @returns a reference to the host ref WeakMap
|
|
1482
|
+
*/
|
|
1483
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1413
1484
|
const hostRef = {
|
|
1414
1485
|
$flags$: 0,
|
|
1415
|
-
$hostElement$:
|
|
1486
|
+
$hostElement$: hostElement,
|
|
1416
1487
|
$cmpMeta$: cmpMeta,
|
|
1417
1488
|
$instanceValues$: new Map(),
|
|
1418
1489
|
};
|
|
1419
1490
|
{
|
|
1420
1491
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1421
|
-
|
|
1422
|
-
|
|
1492
|
+
hostElement['s-p'] = [];
|
|
1493
|
+
hostElement['s-rc'] = [];
|
|
1423
1494
|
}
|
|
1424
|
-
return hostRefs.set(
|
|
1495
|
+
return hostRefs.set(hostElement, hostRef);
|
|
1425
1496
|
};
|
|
1426
1497
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1427
1498
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -1434,7 +1505,20 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1434
1505
|
if (module) {
|
|
1435
1506
|
return module[exportName];
|
|
1436
1507
|
}
|
|
1437
|
-
|
|
1508
|
+
|
|
1509
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1510
|
+
const processMod = importedModule => {
|
|
1511
|
+
cmpModules.set(bundleId, importedModule);
|
|
1512
|
+
return importedModule[exportName];
|
|
1513
|
+
}
|
|
1514
|
+
switch(bundleId) {
|
|
1515
|
+
|
|
1516
|
+
case 'mds-accordion-timer-item':
|
|
1517
|
+
return import(
|
|
1518
|
+
/* webpackMode: "lazy" */
|
|
1519
|
+
'./mds-accordion-timer-item.entry.js').then(processMod, consoleError);
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1438
1522
|
return import(
|
|
1439
1523
|
/* @vite-ignore */
|
|
1440
1524
|
/* webpackInclude: /\.entry\.js$/ */
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-6704f580.js';
|
|
2
|
+
export { s as setNonce } from './index-6704f580.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-6704f580.js';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);
|
|
3
|
+
const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
|
|
4
4
|
|
|
5
5
|
const MdsAccordionTimerItem = class {
|
|
6
6
|
constructor(hostRef) {
|