September 23, 2026
f4125fddf170ad18d8c71fd11f944127485c5013 Previous:
5ff803d5 Bundle: 722.6 KB Chip gains removable/onremove, Checkbox gains indeterminate state, MoneyField gains min/max, plus a new updateComplete render promise.
Highlights
- Chip now supports removable and onremove properties, enabling built-in dismissible chip behavior.
- ClickableChip now extends Chip directly and inherits its properties instead of duplicating them.
- Checkbox adds an indeterminate property and a labelAccessibilityVisibility property for controlling label visibility to assistive technology.
- MoneyField adds min and max properties to constrain the allowed numeric value.
- MoneyField's value getter now returns an empty string instead of NaN for invalid input.
- All Polaris elements now expose an updateComplete promise that resolves after a pending render finishes.
Infrastructure Changes
.polaris-meta.json +3 -3
@@ -1,5 +1,5 @@
{
"hash": "5ff803d5f82b5b8a4238acb189bfebec198906dc",
"hash": "f4125fddf170ad18d8c71fd11f944127485c5013",
"detectedAt": "2026-03-26T08:13:36.943Z",
"detectedAt": "2026-09-23T08:01:57.306Z",
"bundleSize": 504626
"bundleSize": 739944
}
base-element.js Truncated +50 -8
@@ -2,58 +2,94 @@
// PolarisBaseElement, PolarisElement, HTMLElementBase
const SHADOW_ROOT_SYMBOL = Symbol('shadowRoot'),
qe = Symbol('flushRender'),
HTMLElementBase = globalThis.HTMLElement || Object;
class PolarisBaseElement extends HTMLElementBase {
static get observedAttributes() {
return this[Symbol.metadata]?.observedAttributes || [];
}
#t;
[SHADOW_ROOT_SYMBOL] = null;
#a = 0;
#r = false;
#i;
#n;
#n = false;
#o = null;
#s = null;
[SHADOW_ROOT_SYMBOL] = null;
#l;
#c;
get updateComplete() {
return this.#o ?? Promise.resolve();
}
constructor({
styles: e = '',
ShadowRoot: t,
}) {
super();
this[SHADOW_ROOT_SYMBOL] = this.attachShadow({
mode: 'open',
});
this.#i = () => {
s = false;
this.#r = false;
try {
callback3(this.isConnected && createVNode(o, null), this[SHADOW_ROOT_SYMBOL]);
} finally {
if (this.#s) {
this.#s();
this.#o = null;
this.#s = null;
}
}
};
this.#t = () => {
if (!o) {
if (s) return;
queueMicrotask(() => {
this.#r = true;
o = false;
if (!this.#o) {
B(this.isConnected && createVNode(s, null), this[SHADOW_ROOT_SYMBOL]);
this.#o = new Promise((e) => {
this.#s = e;
});
}
const e = ++this.#a;
queueMicrotask(() => {
if (this.#a === e) {
this.#i();
}
});
};
this.#t();
}
[qe]() {
if (this.#r) {
this.#a++;
this.#i?.();
}
}
setAttribute(e, t) {
if ('_reactWrapped' !== e) {
if (
!(function (e, t) {
if (Te) return false;
}
return false;
})(this, e)
@@ -67,33 +103,40 @@ class PolarisBaseElement extends HTMLElementBase {
attributeChangedCallback(e) {
if (!this.#t) return;
const t = this.constructor[Symbol.metadata].reactiveAttributes,
}
if (t && t.has(e)) {
this.#t();
}
}
connectedCallback() {
this.dispatchEvent(
new Event('_PreactCustomElement:connected', {
bubbles: true,
}),
);
this.queueRender();
if (this.#n || Reflect.get(this, '_reactWrapped')) {
this.queueRender();
} else {
this.#n = true;
this.#a++;
this.#i?.();
}
}
disconnectedCallback() {
set.delete(this);
this.queueRender();
}
adoptedCallback() {
if (this[SHADOW_ROOT_SYMBOL]) {
this[SHADOW_ROOT_SYMBOL].adoptedStyleSheets = [];
}
}
queueRender() {
@@ -121,10 +164,158 @@ class PolarisBaseElement extends HTMLElementBase {
ctrlKey: e.ctrlKey || t,
view: window,
});
this.dispatchEvent(i);
... (truncated)
Diff truncated at 200 lines
decorators.js Truncated +2 -2
@@ -23,22 +23,22 @@ function customElement(e) {
}
function eventHandler() {
return (instance, value) => {
throw Error(`Event listener property names must be lowercase. "${text3}" is not lowercase.`);
throw Error(`Event listener property names must be lowercase. "${text6}" is not lowercase.`);
throw Error(
`Event listener property names must start with "on". "${text3}" does not start with "on".`,
`Event listener property names must start with "on". "${text6}" does not start with "on".`,
);
return {
set(t) {
}
if (t) {
}
return instance.set.call(this, t);
},
Diff truncated at 200 lines
dom-bridge.js +21 -3
@@ -4,71 +4,77 @@
function BRIDGE_SYMBOL(e) {
for (const key in e)
if (key.startsWith('__reactFiber$')) {
}
}
}
const Ne = new Set();
function De() {
function $e(e, t) {
if (set.size)
for (const item of set) {
set.delete(item);
Pe(item);
}
}
function Pe(e, t) {
if (e.getRootNode() !== e.ownerDocument) return;
if (Reflect.get(e, '_reactWrapped')) return;
return t ? void Ne.add(e) : void Promise.resolve(e).then(Me);
return t ? void set.add(e) : void Promise.resolve(e).then(Re);
}
}
change: true,
error: true,
load: true,
toggle: true,
},
configurable: true,
enumerable: false,
get() {
},
set(e) {
Te = true;
for (const key in e) {
if ('children' === key || 'ref' === key) continue;
if (key.startsWith('on')) {
const e = key.toLowerCase(),
t = e in this ? e : key,
}
} else {
}
} else if (key in this) {
} else {
this.removeAttribute(key);
} else {
}
}
}
@@ -78,18 +84,30 @@ const Be = {
if (key.startsWith('on')) {
const e = key.toLowerCase(),
t = e in this ? e : key,
} else if (key in this) {
this[key] = undefined;
} else {
this.removeAttribute(key);
}
}
Te = false;
},
};
function Fe(e) {
const t = this[Ie],
a = 'on' + e.type;
let r = t[a];
if (!r)
for (const key in t)
if (key.toLowerCase() === a) {
r = t[key];
break;
}
return r(e);
}
exports.js +7 -4
@@ -1,66 +1,69 @@
// Polaris Exports
// Component element map and React wrapper
polaris.reactWrap = function (e, t) {
try {
if (e)
if (item in e.prototype) {
}
} catch {}
d = e.useRef();
c = e.useRef(null);
e.useLayoutEffect(() => {
for (const [key, o] of Object.entries(instance)) {
if ('string' != typeof o) {
if ('string' == typeof current2[key]) {
options(current, key, null);
Da(current, key, null);
}
continue;
}
}
if (o !== current2[key]) {
options(current, key, o);
Da(current, key, o);
}
}
Object.prototype.hasOwnProperty.call(instance, key) ||
(undefined !== r && options(current, key, null));
(undefined !== i && Da(current, key, null));
if (current instanceof PolarisElement) {
current[qe]();
}
}, [instance]);
(e) => {
value && ('function' == typeof value ? value(e) : (value.current = e));
},
[value],
),
? null
: e.createElement(
'div',
{
slot:
.replace(/([a-z]|\d+)([A-Z]|\d+)/g, '$1-$2')
.replace(/[\s_]+/g, '-')
.toLowerCase()),
index.js +15 -9
@@ -1,5 +1,5 @@
// Polaris Web Components - De-minified Source
// Original hash: 5ff803d5f82b5b8a4238acb189bfebec198906dc
// Original hash: f4125fddf170ad18d8c71fd11f944127485c5013
//
// Structure:
// preact-core.js - Embedded Preact virtual DOM
@@ -37,25 +37,30 @@
// Stack.js
// DropZone.js
// EmailField.js
// Image.js
// EmptyState.js
// Grid.js
// GridItem.js
// Image.js
// Link.js
// ListItem.js
// SearchField.js
// Menu.js
// Tooltip.js
// Thumbnail.js
// Modal.js
// MoneyField.js
// Number.js
// NumberField.js
// Option.js
// OptionGroup.js
// OrderedList.js
// Section.js
// Page.js
// PasswordField.js
// PressButton.js
// Progress.js
// QueryContainer.js
// ScrollBox.js
// Section.js
// Select.js
// Switch.js
// TableRow.js
@@ -66,8 +71,6 @@
// TableHeaderRow.js
// TextArea.js
// TextField.js
// Thumbnail.js
// Tooltip.js
// URLField.js
// UnorderedList.js
// exports.js - Component registry and React wrapper
@@ -99,25 +102,30 @@
// - Stack
// - DropZone
// - EmailField
// - Image
// - EmptyState
// - Grid
// - GridItem
// - Image
// - Link
// - ListItem
// - SearchField
// - Menu
// - Tooltip
// - Thumbnail
// - Modal
// - MoneyField
// - Number
// - NumberField
// - Option
// - OptionGroup
// - OrderedList
// - Section
// - Page
// - PasswordField
// - PressButton
// - Progress
// - QueryContainer
// - ScrollBox
// - Section
// - Select
// - Switch
// - TableRow
@@ -128,7 +136,5 @@
// - TableHeaderRow
// - TextArea
// - TextField
// - Thumbnail
// - Tooltip
// - URLField
// - UnorderedList
popover-polyfill.js Truncated +19 -30
@@ -4,91 +4,83 @@
var ToggleEvent = class extends Event {
oldState;
newState;
constructor(e, { oldState: t = '', newState: i = '', ...n } = {}) {
constructor(e, t = {}) {
super(e, n);
const a = Object.assign({}, t);
this.oldState = (t || '') + '';
delete a.oldState;
this.newState = (i || '') + '';
delete a.newState;
super(e, a);
this.oldState = (t.oldState || '') + '';
this.newState = (t.newState || '') + '';
}
},
Ft = new WeakMap();
function Ht(element, t, i) {
var Ht = globalThis.ShadowRoot || function () {},
Ft.set(
qt = globalThis.HTMLDialogElement || function () {},
element,
Wt = new WeakMap(),
setTimeout(() => {
Gt = new WeakMap(),
if (Ft.has(element)) {
Ut = new WeakMap(),
element.dispatchEvent(
Kt = new WeakMap();
new ToggleEvent('toggle', {
function Zt(element, t) {
cancelable: false,
oldState: t,
newState: i,
}),
);
}
}, 0),
);
}
function Qt(element, t) {
return !(
('auto' !== element.popover && 'manual' !== element.popover && 'hint' !== element.popover) ||
!element.isConnected ||
(element instanceof qt && element.hasAttribute('open')) ||
document.fullscreenElement === element
);
}
for (; element; ) {
if (
element instanceof HTMLElement &&
'auto' === element.popover &&
)
return element;
if (
((element =
(element instanceof Element && element.assignedSlot) ||
element.parentElement ||
element instanceof Document)
)
return;
}
}
for (const item of t || []) {
}
(function (t) {
if (!t) return;
element2 = null,
element2 = null;
s = null;
for (; !flag2; ) {
for (; !flag3; ) {
if (((element2 = ra(t) || null), null === element2)) return;
if (((element2 = ai(t) || null), null === element2)) return;
if (!map5.has(element2)) return;
if (!map2.has(element2)) return;
if (!('hint' !== element.popover && 'auto' !== element2.popover)) {
}
t = element2.parentElement;
}
}
s = map2.get(element2);
const index6 = map5.get(element2) ?? null;
}
}
const ownerDocument = element.ownerDocument;
if (
!element.dispatchEvent(
@@ -140,12 +132,12 @@ function li(element) {
const activeElement = ownerDocument.activeElement;
var element2;
element.classList.add(':popover-open');
Yt.set(element, 'showing');
if (!Gt.has(ownerDocument)) {
Gt.set(ownerDocument, new Set());
... (truncated)
Diff truncated at 200 lines
preact-core.js Truncated +50 -58
@@ -1,900 +1,807 @@
// Preact Virtual DOM Core
// Embedded Preact implementation for Shopify Polaris web components
const INSERT_VNODE = 4,
function removeNode(e, t) {
MODE_HYDRATE = 32,
for (var a in t) e[a] = t[a];
MODE_SUSPENDED = 128;
const eventListenerMap = new WeakMap();
function options(element, text3, n) {
const text4 = text3.toLowerCase();
if (text3.startsWith('on')) {
const i = text4.slice(2),
r = eventListenerMap.get(element),
s = r?.get(i);
if (
(s && (element.removeEventListener(i, s), r.delete(i)),
!(function (e) {
return !(!e || 'function' != typeof e);
})(n))
)
return;
if (n) {
const a = (e) => {
n(e);
};
let r = eventListenerMap.get(element);
if (!r) {
r = new Map();
eventListenerMap.set(element, r);
}
r.set(i, a);
element.addEventListener(i, a);
}
} else if (text3 in element) {
element[text3] = n;
} else {
if (null == n) {
element.removeAttribute(text3);
} else {
element.setAttribute(text3, n);
}
}
}
function isArray(e, t) {
for (var i in t) e[i] = t[i];
return e;
}
function removeNode(element) {
function createElement(element) {
if (element && element.parentNode) {
element.parentNode.removeChild(element);
}
}
props = {};
} else {
} else {
}
}
if (
(arguments.length > 2 &&
(props.children = arguments.length > 3 ? vnodeId.call(arguments, 2) : key),
(props.children = arguments.length > 3 ? eventListenerMap.call(arguments, 2) : key),
'function' == typeof type && null != type.defaultProps)
)
}
return createElement(type, props, a, r, null);
return Fragment(type, props, i, n, null);
}
function createElement(e, t, i, n, s) {
function Fragment(e, t, i, n, o) {
type: e,
props: t,
key: i,
ref: n,
i: null,
o: null,
k: null,
constructor: undefined,
_original: -1,
};
}
}
function Fragment(props) {
function updateParentDomPointers(props) {
return props.children;
}
function getDomSibling(e, t) {
this.props = e;
this.context = t;
}
if (null == t) return vnode._parent ? PreactComponent(vnode._parent, vnode._original + 1) : null;
if (null == index6)
for (var i; t < vnode._children.length; t++)
return vnode._parent ? PreactComponent(vnode._parent, vnode._original + 1) : null;
if (null != (i = vnode._children[t]) && null != i._depth) return i._depth;
for (var a; index6 < vnode._children.length; index6++)
if (null != (a = vnode._children[index6]) && null != a._dom) return a._dom;
return 'function' == typeof vnode.type ? PreactComponent(vnode) : null;
}
function updateParentDomPointers(e) {
function findMatchingIndex(childVNode) {
var t, i;
if (childVNode._flags && childVNode._force) {
if (null != (e = e._parent) && null != e._component) {
var S2 = childVNode._index,
for (e._depth = e._component.base = null, t = 0; t < e._children.length; t++)
m2 = S2._dom,
if (null != (i = e._children[t]) && null != i._depth) {
i = [],
e._depth = e._component.base = i._depth;
n = [],
break;
o = removeNode({}, S2);
}
o._index = S2._index + 1;
return updateParentDomPointers(e);
if (setProperty.vnode) {
setProperty.vnode(o);
}
callback(
childVNode._flags,
o,
S2,
childVNode._globalContext,
childVNode._flags.namespaceURI,
32 & S2._parentDom ? [m2] : null,
i,
m2 ?? PreactComponent(S2),
!!(32 & S2._parentDom),
n,
);
o._index = S2._index;
o._parent._children[o._original] = o;
unmount(i, o, n);
S2._dom = S2._parent = null;
if (o._dom != m2) {
enqueueRender(o);
}
}
}
function enqueueRender(e) {
if (null != (e = e._parent) && null != e._component) {
e._dom = e._component.base = null;
e._children.some(function (t) {
if (null != t && null != t._dom) return (e._dom = e._component.base = t._dom);
});
return enqueueRender(e);
}
}
function insertBefore(e) {
... (truncated)
Diff truncated at 200 lines
preact-hooks.js Truncated +62 -38
@@ -1,204 +1,234 @@
// Preact Hooks
// useState, useEffect, useCallback, useId, and hook internals
var vnodeId,
var eventListenerMap,
setProperty,
slice,
prevDebounce,
options,
vnodeId,
rerenderQueue,
prevDebounce,
defer,
depthSort,
currentComponent,
currentIndex,
assign,
EMPTY_OBJ,
currentHook,
afterPaintEffects,
afterPaintEffects = {},
EMPTY_ARR = {},
EMPTY_ARR = [],
IS_NON_DIMENSIONAL = [],
IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
EMPTY_OBJ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
isArray = Array.isArray;
assign = Array.isArray;
function callback3(e, element, i) {
function callback3(e, t) {
var n, o, s;
if (U._stateCallbacks) {
if (element == document) {
U._stateCallbacks(H, e, G || t);
element = document.documentElement;
}
G = 0;
if (setProperty._parent) {
var i =
setProperty._parent(e, element);
H.__hooks ||
}
(H.__hooks = {
n = element._children;
o = [];
s = [];
callback(
element,
(e = element._children = createVNode(updateParentDomPointers, null, [e])),
n || afterPaintEffects,
afterPaintEffects,
element.namespaceURI,
n ? null : element.firstChild ? eventListenerMap.call(element.childNodes) : null,
o,
n ? n._dom : element.firstChild,
false,
s,
);
unmount(o, e, s);
e.props.children = null;
}
function callback8(index6, t) {
if (X._processingException) {
X._processingException(G, index6, Y || t);
}
Y = 0;
var a =
G.__hooks ||
(G.__hooks = {
o: [],
});
}
}
return (function (e, t) {
if (
function (e) {
n = i._reducer(t, e);
r = a.t(t, e);
}
},
]),
) {
var r = i._component.__hooks.o.filter(function (e) {
var flag2 = false,
return !!e._component;
o = a._component.props !== e;
});
if (
r.every(function (e) {
(a._component.__hooks.o.some(function (e) {
return !e.$;
if (e._stateManaged) {
})
flag2 = true;
)
var t = e._parent[0];
return !shouldComponentUpdate || shouldComponentUpdate.call(this, e, t, n);
e._parent = e._stateManaged;
var s = i._component.props !== e;
e._stateManaged = undefined;
r.forEach(function (e) {
if (t !== e._parent[0]) {
if (e.$) {
o = true;
var t = e._parent[0];
}
e._parent = e.$;
e.$ = undefined;
if (t !== e._parent[0]) {
s = true;
}
}
}),
});
shouldComponentUpdate)
return (shouldComponentUpdate && shouldComponentUpdate.call(this, e, t, n)) || s;
) {
var s = shouldComponentUpdate.call(this, e, t, r);
return flag2 ? s || o : s;
}
return !flag2 || o;
};
shouldComponentUpdate = undefined;
}
if (componentWillUpdate) {
}
};
}
}
function callback5(e, t) {
var i = callback3(F++, 3);
if (!U.j && argsChanged(i.__hooks, t)) {
i._parent = e;
... (truncated)
Diff truncated at 200 lines
property-types.js Truncated +28 -50
@@ -7,16 +7,16 @@ function ratioProp() {
defaultValue: e,
get(t) {
if (!t || 'string' != typeof t) return e;
return t ? t + '/1' : e;
}
return a && r ? `${a}/${r}` : e;
return i && n ? `${i}/${n}` : e;
},
};
}
@@ -50,107 +50,85 @@ function booleanProp() {
function colorProp({ alphaFlag: e = 'alpha' } = {}) {
return {
defaultValue: '',
if (e) {
}
fallbackValue: '',
});
},
};
}
function dt(text3) {
const lt = (text6) =>
switch (text3.length) {
text6.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, '#$1$1$2$2$3$3$4$4');
case 4:
function dt(e, { fallbackValue: t, isAlpha: a } = {}) {
case 5:
if ('' == e) return e;
return dt(ct(text3));
let r;
case 7:
if ((ht(e) && (r = ft(e, a)), bt(e) && (r = pt(e, a)), mt(e) && ((r = e), !a))) {
default:
const e = lt(r);
return text3;
if (9 === e.length) {
case 9:
r = e.substring(0, 7);
return text3.toLowerCase().endsWith('ff') ? text3.slice(0, -2) : text3;
} else {
if (5 === e.length) {
r = e.substring(0, 4);
}
}
}
return r
? ct(r).toUpperCase()
: null != t &&
(function (e) {
return '' == e || !!mt(e) || !!ht(e) || !!bt(e);
})(t)
? dt(t).toUpperCase()
: '';
}
function mt(e, t = true) {
return ht(
return (
(function (e) {
t
const { hue: t, saturation: i, lightness: n, alpha: a } = bt(e),
? /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{8})$/
r = (1 - Math.abs(2 * n - 1)) * i,
: /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/
s = r * (1 - Math.abs(((t / 60) % 2) - 1)),
).test(e);
o = n - r / 2;
let l = 0,
c = 0,
d = 0;
if (t >= 0 && t < 60) {
[l, c, d] = [r, s, 0];
} else {
if (t >= 60 && t < 120) {
[l, c, d] = [s, r, 0];
} else {
if (t >= 120 && t < 180) {
[l, c, d] = [0, r, s];
} else {
if (t >= 180 && t < 240) {
[l, c, d] = [0, s, r];
} else {
if (t >= 240 && t < 300) {
[l, c, d] = [s, 0, r];
} else {
if (t >= 300 && t < 360) {
[l, c, d] = [r, 0, s];
}
}
}
}
}
}
const u = Math.round(255 * (l + o)),
b = Math.round(255 * (c + o)),
h = Math.round(255 * (d + o));
return a ? `rgb(${u} ${b} ${h} / ${a})` : `rgb(${u} ${b} ${h})`;
})(e),
t,
);
}
function stringProp(e = {}) {
const { defaultValue: t } = e,
return {
};
}
function enumProp(
e,
) {
if (value > 0 && instance.startsWith(' ')) {
const t = instance.slice(1);
}
}
});
{
}
};
... (truncated)
Diff truncated at 200 lines
utilities.js Truncated +51 -24
@@ -1,118 +1,147 @@
// Utilities
// Helper functions and remaining infrastructure
const ct = (text3) =>
function ct(text6) {
text3.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, '#$1$1$2$2$3$3$4$4');
switch (text6.length) {
function ut(e, { fallbackValue: t, isAlpha: i } = {}) {
case 4:
if ('' == e) return e;
case 5:
let n;
return ct(lt(text6));
if ((pt(e) && (n = ht(e, i)), gt(e) && (n = mt(e, i)), ft(e) && ((n = e), !i))) {
case 7:
const e = ct(n);
default:
if (9 === e.length) {
return text6;
n = e.substring(0, 7);
case 9:
} else {
return text6.toLowerCase().endsWith('ff') ? text6.slice(0, -2) : text6;
if (5 === e.length) {
n = e.substring(0, 4);
}
}
}
return n
? dt(n).toUpperCase()
: null != t &&
(function (e) {
return '' == e || !!ft(e) || !!pt(e) || !!gt(e);
})(t)
? ut(t).toUpperCase()
: '';
}
}
}
}
return {
lightness: l,
};
};
if (
)
return '';
return Number.isNaN(e) || e < 0 || e > 1
? ''
.toString(16)
.padStart(2, '0')}`;
}
}
function pt(e, t = true) {
return ft(
(function (e) {
const { hue: index6, saturation: index7, lightness: index8, alpha: i } = ut(e),
n = (1 - Math.abs(2 * index8 - 1)) * index7,
o = n * (1 - Math.abs(((index6 / 60) % 2) - 1)),
s = index8 - n / 2;
let l = 0,
c = 0,
d = 0;
if (index6 >= 0 && index6 < 60) {
[l, c, d] = [n, o, 0];
} else {
if (index6 >= 60 && index6 < 120) {
[l, c, d] = [o, n, 0];
} else {
if (index6 >= 120 && index6 < 180) {
[l, c, d] = [0, n, o];
} else {
if (index6 >= 180 && index6 < 240) {
[l, c, d] = [0, o, n];
} else {
if (index6 >= 240 && index6 < 300) {
[l, c, d] = [o, 0, n];
} else {
if (index6 >= 300 && index6 < 360) {
[l, c, d] = [n, 0, o];
}
}
}
}
}
}
const u = Math.round(255 * (l + s)),
f = Math.round(255 * (c + s)),
p = Math.round(255 * (d + s));
return i ? `rgb(${u} ${f} ${p} / ${i})` : `rgb(${u} ${f} ${p})`;
})(e),
t,
);
}
return (
}
}
}
return (
!Number.isNaN(n) &&
n >= 0 &&
... (truncated)
Diff truncated at 200 lines
Component Changes
components/Avatar.js +10 -10
@@ -29,7 +29,7 @@ let Avatar = (() => {
classRef = this;
}
static {
const S =
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
@@ -61,7 +61,7 @@ let Avatar = (() => {
instance.initials = value;
},
},
metadata: S,
metadata: classMetadata,
},
initialsInitializers,
initialsExtraInitializers,
@@ -82,7 +82,7 @@ let Avatar = (() => {
instance.src = value;
},
},
metadata: S,
metadata: classMetadata,
},
srcInitializers,
srcExtraInitializers,
@@ -103,7 +103,7 @@ let Avatar = (() => {
instance.size = value;
},
},
metadata: S,
metadata: classMetadata,
},
sizeInitializers,
sizeExtraInitializers,
@@ -124,7 +124,7 @@ let Avatar = (() => {
instance.alt = value;
},
},
metadata: S,
metadata: classMetadata,
},
altInitializers,
altExtraInitializers,
@@ -145,7 +145,7 @@ let Avatar = (() => {
instance.onload = value;
},
},
metadata: S,
metadata: classMetadata,
},
onloadInitializers,
onloadExtraInitializers,
@@ -166,7 +166,7 @@ let Avatar = (() => {
instance.onerror = value;
},
},
metadata: S,
metadata: classMetadata,
},
onerrorInitializers,
onerrorExtraInitializers,
@@ -180,76 +180,76 @@ let Avatar = (() => {
{
kind: 'class',
name: classRef.name,
metadata: S,
metadata: classMetadata,
},
null,
classInitializers,
);
classRef = classWrapper.value;
if (S) {
if (classMetadata) {
Object.defineProperty(classRef, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: S,
value: classMetadata,
});
}
runInitializers(classRef, classInitializers);
}
get initials() {
}
set initials(e) {
}
(runInitializers(this, initialsExtraInitializers),
runInitializers(this, srcInitializers, undefined));
get src() {
}
set src(e) {
}
(runInitializers(this, srcExtraInitializers),
runInitializers(this, sizeInitializers, undefined));
get size() {
}
set size(e) {
}
(runInitializers(this, sizeExtraInitializers),
runInitializers(this, altInitializers, undefined));
get alt() {
}
set alt(e) {
}
(runInitializers(this, altExtraInitializers),
runInitializers(this, onloadInitializers, null));
get onload() {
}
set onload(e) {
}
(runInitializers(this, onloadExtraInitializers),
runInitializers(this, onerrorInitializers, null));
get onerror() {
}
set onerror(e) {
}
constructor() {
runInitializers(this, onerrorExtraInitializers);
}
});
components/Banner.js +10 -10
@@ -29,14 +29,14 @@ let Banner = (() => {
classRef = this;
}
static {
const S =
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
headingDecorators = [property(stringProp())];
toneDecorators = [
property(
defaultValue: 'auto',
}),
),
@@ -69,7 +69,7 @@ let Banner = (() => {
instance.heading = value;
},
},
metadata: S,
metadata: classMetadata,
},
headingInitializers,
headingExtraInitializers,
@@ -90,7 +90,7 @@ let Banner = (() => {
instance.tone = value;
},
},
metadata: S,
metadata: classMetadata,
},
toneInitializers,
toneExtraInitializers,
@@ -111,7 +111,7 @@ let Banner = (() => {
instance.hidden = value;
},
},
metadata: S,
metadata: classMetadata,
},
hiddenInitializers,
hiddenExtraInitializers,
@@ -132,7 +132,7 @@ let Banner = (() => {
instance.dismissible = value;
},
},
metadata: S,
metadata: classMetadata,
},
dismissibleInitializers,
dismissibleExtraInitializers,
@@ -153,7 +153,7 @@ let Banner = (() => {
instance.ondismiss = value;
},
},
metadata: S,
metadata: classMetadata,
},
ondismissInitializers,
ondismissExtraInitializers,
@@ -174,7 +174,7 @@ let Banner = (() => {
instance.onafterhide = value;
},
},
metadata: S,
metadata: classMetadata,
},
onafterhideInitializers,
onafterhideExtraInitializers,
@@ -188,76 +188,76 @@ let Banner = (() => {
{
kind: 'class',
name: classRef.name,
metadata: S,
metadata: classMetadata,
},
null,
classInitializers,
);
classRef = classWrapper.value;
if (S) {
if (classMetadata) {
Object.defineProperty(classRef, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: S,
value: classMetadata,
});
}
runInitializers(classRef, classInitializers);
}
get heading() {
}
set heading(e) {
}
(runInitializers(this, headingExtraInitializers),
runInitializers(this, toneInitializers, undefined));
get tone() {
}
set tone(e) {
}
(runInitializers(this, toneExtraInitializers),
runInitializers(this, hiddenInitializers, undefined));
get hidden() {
}
set hidden(e) {
}
(runInitializers(this, hiddenExtraInitializers),
runInitializers(this, dismissibleInitializers, undefined));
get dismissible() {
}
set dismissible(e) {
}
(runInitializers(this, dismissibleExtraInitializers),
runInitializers(this, ondismissInitializers, null));
get ondismiss() {
}
set ondismiss(e) {
}
(runInitializers(this, ondismissExtraInitializers),
runInitializers(this, onafterhideInitializers, null));
get onafterhide() {
}
set onafterhide(e) {
}
constructor() {
runInitializers(this, onafterhideExtraInitializers);
}
});
components/Checkbox.js Truncated +143 -42
@@ -1,48 +1,155 @@
// Checkbox Component
classDecorators = [customElement(TAG_CHECKBOX)],
BaseClass = yl,
BaseClass = mo;
defaultIndeterminateInitializers = [],
(class extends BaseClass {
defaultIndeterminateExtraInitializers = [],
static {
labelAccessibilityVisibilityInitializers = [];
classRef = this;
return class extends BaseClass {
}
static {
static {
const classMetadata =
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
: undefined;
classWrapper = [
applyDecorators(
property(booleanProp(), {
null,
attribute: 'indeterminate',
(classWrapper = {
}),
value: classRef,
];
}),
classRef = [
classDecorators,
property(
{
enumProp(wl, {
kind: 'class',
defaultValue: 'visible',
name: classRef.name,
}),
metadata: classMetadata,
),
},
];
null,
applyDecorators(
classInitializers,
this,
);
null,
classRef = classWrapper.value;
classWrapper,
if (classMetadata) {
{
Object.defineProperty(classRef, Symbol.metadata, {
kind: 'accessor',
enumerable: true,
name: 'defaultIndeterminate',
configurable: true,
static: false,
writable: true,
private: false,
value: classMetadata,
access: {
});
has: (instance) => 'defaultIndeterminate' in instance,
}
get: (instance) => instance.defaultIndeterminate,
runInitializers(classRef, classInitializers);
set: (instance, value) => {
}
instance.defaultIndeterminate = value;
constructor() {
},
super(go);
},
}
metadata: classMetadata,
});
},
return classRef;
classInitializers,
})();
defaultIndeterminateInitializers,
);
applyDecorators(
this,
null,
classRef,
{
kind: 'accessor',
name: 'labelAccessibilityVisibility',
static: false,
private: false,
access: {
has: (instance) => 'labelAccessibilityVisibility' in instance,
get: (instance) => instance.labelAccessibilityVisibility,
set: (instance, value) => {
instance.labelAccessibilityVisibility = value;
},
},
metadata: classMetadata,
},
defaultIndeterminateExtraInitializers,
labelAccessibilityVisibilityInitializers,
);
if (classMetadata) {
Object.defineProperty(this, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
}
#Oe;
get indeterminate() {
return this.#Oe ?? this.defaultIndeterminate;
}
set indeterminate(e) {
this.#Oe = e;
this.queueRender();
}
#Re = runInitializers(this, classInitializers, undefined);
get defaultIndeterminate() {
return this.#Re;
}
set defaultIndeterminate(e) {
this.#Re = e;
}
#Me =
(runInitializers(this, defaultIndeterminateInitializers),
runInitializers(this, defaultIndeterminateExtraInitializers, undefined));
get labelAccessibilityVisibility() {
return this.#Me;
}
set labelAccessibilityVisibility(e) {
this.#Me = e;
}
constructor(e) {
super(e);
runInitializers(this, labelAccessibilityVisibilityInitializers);
}
};
})(),
Checkbox = (() => {
let classWrapper,
classRef,
classDecorators = [customElement(TAG_CHECKBOX)],
classInitializers = [],
BaseClass = zl;
(class extends BaseClass {
static {
classRef = this;
}
static {
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
applyDecorators(
null,
(classWrapper = {
value: classRef,
}),
classDecorators,
{
kind: 'class',
name: classRef.name,
metadata: classMetadata,
},
null,
classInitializers,
);
classRef = classWrapper.value;
if (classMetadata) {
Object.defineProperty(classRef, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
runInitializers(classRef, classInitializers);
}
... (truncated)
Diff truncated at 200 lines
components/Chip.js +69 -1
@@ -5,13 +5,19 @@ let Chip = (() => {
classRef,
colorDecorators,
accessibilityLabelDecorators,
removableDecorators,
onremoveDecorators,
classDecorators = [customElement(TAG_CHIP)],
classInitializers = [],
BaseClass = PolarisElement,
colorInitializers = [],
colorExtraInitializers = [],
accessibilityLabelInitializers = [],
accessibilityLabelExtraInitializers = [];
accessibilityLabelExtraInitializers = [],
removableInitializers = [],
removableExtraInitializers = [],
onremoveInitializers = [],
onremoveExtraInitializers = [];
(class extends BaseClass {
static {
classRef = this;
@@ -29,6 +35,8 @@ let Chip = (() => {
),
];
accessibilityLabelDecorators = [property(stringProp())];
removableDecorators = [property(booleanProp())];
onremoveDecorators = [eventHandler()];
applyDecorators(
this,
null,
@@ -71,6 +79,48 @@ let Chip = (() => {
accessibilityLabelInitializers,
accessibilityLabelExtraInitializers,
);
applyDecorators(
this,
null,
removableDecorators,
{
kind: 'accessor',
name: 'removable',
static: false,
private: false,
access: {
has: (instance) => 'removable' in instance,
get: (instance) => instance.removable,
set: (instance, value) => {
instance.removable = value;
},
},
metadata: classMetadata,
},
removableInitializers,
removableExtraInitializers,
);
applyDecorators(
this,
null,
onremoveDecorators,
{
kind: 'accessor',
name: 'onremove',
static: false,
private: false,
access: {
has: (instance) => 'onremove' in instance,
get: (instance) => instance.onremove,
set: (instance, value) => {
instance.onremove = value;
},
},
metadata: classMetadata,
},
onremoveInitializers,
onremoveExtraInitializers,
);
applyDecorators(
null,
(classWrapper = {
@@ -96,25 +146,43 @@ let Chip = (() => {
}
runInitializers(classRef, classInitializers);
}
get color() {
}
set color(e) {
}
(runInitializers(this, colorExtraInitializers),
runInitializers(this, accessibilityLabelInitializers, undefined));
get accessibilityLabel() {
}
set accessibilityLabel(e) {
}
#je =
(runInitializers(this, accessibilityLabelExtraInitializers),
runInitializers(this, removableInitializers, undefined));
get removable() {
return this.#je;
}
set removable(e) {
this.#je = e;
}
#De =
(runInitializers(this, removableExtraInitializers),
runInitializers(this, onremoveInitializers, null));
get onremove() {
return this.#De;
}
set onremove(e) {
this.#De = e;
}
constructor() {
}
});
return classRef;
components/ClickableChip.js Truncated +6 -158
@@ -4,67 +4,27 @@ let ClickableChip = (() => {
let classWrapper,
classRef,
colorDecorators,
accessibilityLabelDecorators,
removableDecorators,
hiddenDecorators,
disabledDecorators,
hrefDecorators,
onclickDecorators,
onremoveDecorators,
onafterhideDecorators,
classDecorators = [customElement(TAG_CLICKABLE_CHIP)],
classInitializers = [],
h = Qn(PolarisElement),
BaseClass = ec,
colorInitializers = [],
colorExtraInitializers = [],
colorExtraInitializers = [];
accessibilityLabelInitializers = [],
(class extends BaseClass {
accessibilityLabelExtraInitializers = [],
removableInitializers = [],
removableExtraInitializers = [],
hiddenInitializers = [],
hiddenExtraInitializers = [],
disabledInitializers = [],
disabledExtraInitializers = [],
hrefInitializers = [],
hrefExtraInitializers = [],
onclickInitializers = [],
onclickExtraInitializers = [],
onremoveInitializers = [],
onremoveExtraInitializers = [],
onafterhideInitializers = [],
onafterhideExtraInitializers = [];
(class extends h {
static {
classRef = this;
}
static {
const R =
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(h[Symbol.metadata] ?? null)
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
colorDecorators = [
property(
defaultValue: 'base',
}),
),
];
accessibilityLabelDecorators = [property(stringProp())];
removableDecorators = [property(booleanProp())];
hiddenDecorators = [
property(booleanProp(), {
onChange: (element) => {
if (element.hidden) {
element.dispatchEvent(new Event('afterhide'));
}
},
}),
];
disabledDecorators = [property(booleanProp())];
hrefDecorators = [property(stringProp())];
onclickDecorators = [eventHandler()];
onremoveDecorators = [eventHandler()];
onafterhideDecorators = [eventHandler()];
applyDecorators(
this,
null,
@@ -81,179 +41,11 @@ let ClickableChip = (() => {
instance.color = value;
},
},
metadata: R,
metadata: classMetadata,
},
colorInitializers,
colorExtraInitializers,
);
applyDecorators(
this,
null,
accessibilityLabelDecorators,
{
kind: 'accessor',
name: 'accessibilityLabel',
static: false,
private: false,
access: {
has: (instance) => 'accessibilityLabel' in instance,
get: (instance) => instance.accessibilityLabel,
set: (instance, value) => {
instance.accessibilityLabel = value;
},
},
metadata: R,
},
accessibilityLabelInitializers,
accessibilityLabelExtraInitializers,
);
applyDecorators(
this,
null,
removableDecorators,
{
kind: 'accessor',
name: 'removable',
static: false,
private: false,
access: {
has: (instance) => 'removable' in instance,
get: (instance) => instance.removable,
set: (instance, value) => {
instance.removable = value;
},
},
metadata: R,
},
removableInitializers,
removableExtraInitializers,
);
applyDecorators(
this,
null,
hiddenDecorators,
{
kind: 'accessor',
name: 'hidden',
static: false,
private: false,
access: {
has: (instance) => 'hidden' in instance,
get: (instance) => instance.hidden,
set: (instance, value) => {
instance.hidden = value;
},
},
metadata: R,
},
hiddenInitializers,
hiddenExtraInitializers,
);
applyDecorators(
this,
null,
disabledDecorators,
{
kind: 'accessor',
name: 'disabled',
static: false,
private: false,
access: {
has: (instance) => 'disabled' in instance,
get: (instance) => instance.disabled,
set: (instance, value) => {
instance.disabled = value;
},
},
metadata: R,
},
disabledInitializers,
disabledExtraInitializers,
);
applyDecorators(
this,
null,
hrefDecorators,
{
kind: 'accessor',
name: 'href',
static: false,
private: false,
access: {
has: (instance) => 'href' in instance,
get: (instance) => instance.href,
set: (instance, value) => {
instance.href = value;
},
},
metadata: R,
},
hrefInitializers,
hrefExtraInitializers,
);
applyDecorators(
this,
null,
onclickDecorators,
{
kind: 'accessor',
name: 'onclick',
... (truncated)
Diff truncated at 200 lines
components/Image.js Truncated +0 -1
@@ -498,150 +498,150 @@ let Image = (() => {
}
runInitializers(classRef, classInitializers);
}
get src() {
}
set src(e) {
}
(runInitializers(this, srcExtraInitializers),
runInitializers(this, srcSetInitializers, undefined));
get srcSet() {
}
set srcSet(e) {
}
(runInitializers(this, srcSetExtraInitializers),
runInitializers(this, sizesInitializers, undefined));
get sizes() {
}
set sizes(e) {
}
(runInitializers(this, sizesExtraInitializers),
runInitializers(this, altInitializers, undefined));
get alt() {
}
set alt(e) {
}
(runInitializers(this, altExtraInitializers),
runInitializers(this, aspectRatioInitializers, undefined));
get aspectRatio() {
}
set aspectRatio(e) {
}
(runInitializers(this, aspectRatioExtraInitializers),
runInitializers(this, objectFitInitializers, undefined));
get objectFit() {
}
set objectFit(e) {
}
(runInitializers(this, objectFitExtraInitializers),
runInitializers(this, loadingInitializers, undefined));
get loading() {
}
set loading(e) {
}
(runInitializers(this, loadingExtraInitializers),
runInitializers(this, accessibilityRoleInitializers, undefined));
get accessibilityRole() {
}
set accessibilityRole(e) {
}
(runInitializers(this, accessibilityRoleExtraInitializers),
runInitializers(this, inlineSizeInitializers, undefined));
get inlineSize() {
}
set inlineSize(e) {
}
(runInitializers(this, inlineSizeExtraInitializers),
runInitializers(this, borderInitializers, undefined));
get border() {
}
set border(e) {
}
(runInitializers(this, borderExtraInitializers),
runInitializers(this, borderWidthInitializers, undefined));
get borderWidth() {
}
set borderWidth(e) {
}
(runInitializers(this, borderWidthExtraInitializers),
runInitializers(this, borderStyleInitializers, undefined));
get borderStyle() {
}
set borderStyle(e) {
}
(runInitializers(this, borderStyleExtraInitializers),
runInitializers(this, borderColorInitializers, undefined));
get borderColor() {
return this.#re;
... (truncated)
Diff truncated at 200 lines
components/Modal.js +1 -1
@@ -41,7 +41,7 @@ let Modal = (() => {
runInitializers(classRef, classInitializers);
}
constructor() {
super(Bu, TAG_MODAL);
super(Sb);
}
});
return classRef;
components/MoneyField.js Truncated +144 -43
@@ -1,48 +1,195 @@
// MoneyField Component
classDecorators = [customElement(TAG_MONEY_FIELD)],
maxDecorators,
classInitializers = [],
BaseClass = nc,
BaseClass = qu;
classInitializers = [],
(class extends BaseClass {
maxInitializers = [],
static {
maxExtraInitializers = [],
classRef = this;
minInitializers = [],
}
minExtraInitializers = [],
static {
currencyCodeInitializers = [];
const classMetadata =
return class extends BaseClass {
'function' == typeof Symbol && Symbol.metadata
static {
? Object.create(BaseClass[Symbol.metadata] ?? null)
const classMetadata =
: undefined;
'function' == typeof Symbol && Symbol.metadata
applyDecorators(
? Object.create(BaseClass[Symbol.metadata] ?? null)
null,
: undefined;
(classWrapper = {
classWrapper = [
value: classRef,
property(
}),
numberProp({
classDecorators,
defaultValue: 1 / 0,
{
}),
kind: 'class',
),
name: classRef.name,
];
metadata: classMetadata,
classRef = [
},
property(
null,
numberProp({
classInitializers,
defaultValue: 0,
);
}),
classRef = classWrapper.value;
),
if (classMetadata) {
];
Object.defineProperty(classRef, Symbol.metadata, {
maxDecorators = [
enumerable: true,
property(
configurable: true,
enumProp([...Cb, 'auto'], {
writable: true,
defaultValue: 'auto',
value: classMetadata,
}),
});
),
}
];
runInitializers(classRef, classInitializers);
applyDecorators(
}
this,
constructor() {
null,
super(Gu);
classWrapper,
}
{
});
kind: 'accessor',
return classRef;
name: 'max',
})();
static: false,
private: false,
access: {
has: (instance) => 'max' in instance,
get: (instance) => instance.max,
set: (instance, value) => {
instance.max = value;
},
},
metadata: classMetadata,
},
classInitializers,
maxInitializers,
);
applyDecorators(
this,
null,
classRef,
{
kind: 'accessor',
name: 'min',
static: false,
private: false,
access: {
has: (instance) => 'min' in instance,
get: (instance) => instance.min,
set: (instance, value) => {
instance.min = value;
},
},
metadata: classMetadata,
},
maxExtraInitializers,
minInitializers,
);
applyDecorators(
this,
null,
maxDecorators,
{
kind: 'accessor',
name: 'currencyCode',
static: false,
private: false,
access: {
has: (instance) => 'currencyCode' in instance,
get: (instance) => instance.currencyCode,
set: (instance, value) => {
instance.currencyCode = value;
},
},
metadata: classMetadata,
},
minExtraInitializers,
currencyCodeInitializers,
);
if (classMetadata) {
Object.defineProperty(this, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
}
#ua = runInitializers(this, classInitializers, undefined);
get max() {
return this.#ua;
}
set max(e) {
this.#ua = e;
}
#fa =
(runInitializers(this, maxInitializers),
runInitializers(this, maxExtraInitializers, undefined));
get min() {
return this.#fa;
}
set min(e) {
this.#fa = e;
}
#pa =
(runInitializers(this, minInitializers),
runInitializers(this, minExtraInitializers, undefined));
get currencyCode() {
return this.#pa;
}
set currencyCode(e) {
this.#pa = e;
}
get value() {
return isNaN(Number(super.value)) ? '' : super.value;
}
set value(e) {
super.value = e;
}
constructor(e) {
super(e);
runInitializers(this, currencyCodeInitializers);
}
};
})(),
... (truncated)
Diff truncated at 200 lines
components/PasswordField.js Truncated +143 -42
@@ -1,48 +1,153 @@
// PasswordField Component
classDecorators = [customElement(TAG_PASSWORD_FIELD)],
BaseClass = nc,
BaseClass = Bb;
maxLengthInitializers = [],
(class extends BaseClass {
maxLengthExtraInitializers = [],
static {
minLengthInitializers = [];
classRef = this;
return class extends BaseClass {
}
static {
static {
const classMetadata =
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
: undefined;
classWrapper = [
applyDecorators(
property(
null,
numberProp({
(classWrapper = {
defaultValue: 1 / 0,
value: classRef,
min: 0,
}),
floor: true,
classDecorators,
}),
{
),
kind: 'class',
];
name: classRef.name,
classRef = [
metadata: classMetadata,
property(
},
numberProp({
null,
defaultValue: 0,
classInitializers,
min: 0,
);
floor: true,
classRef = classWrapper.value;
}),
if (classMetadata) {
),
Object.defineProperty(classRef, Symbol.metadata, {
];
enumerable: true,
applyDecorators(
configurable: true,
this,
writable: true,
null,
value: classMetadata,
classWrapper,
});
{
}
kind: 'accessor',
runInitializers(classRef, classInitializers);
name: 'maxLength',
}
static: false,
constructor() {
private: false,
super(Fb);
access: {
}
has: (instance) => 'maxLength' in instance,
});
get: (instance) => instance.maxLength,
return classRef;
set: (instance, value) => {
})();
instance.maxLength = value;
},
},
metadata: classMetadata,
},
classInitializers,
maxLengthInitializers,
);
applyDecorators(
this,
null,
classRef,
{
kind: 'accessor',
name: 'minLength',
static: false,
private: false,
access: {
has: (instance) => 'minLength' in instance,
get: (instance) => instance.minLength,
set: (instance, value) => {
instance.minLength = value;
},
},
metadata: classMetadata,
},
maxLengthExtraInitializers,
minLengthInitializers,
);
if (classMetadata) {
Object.defineProperty(this, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
}
#$t = runInitializers(this, classInitializers, undefined);
get maxLength() {
return this.#$t;
}
set maxLength(e) {
this.#$t = e;
}
#Ht =
(runInitializers(this, maxLengthInitializers),
runInitializers(this, maxLengthExtraInitializers, undefined));
get minLength() {
return this.#Ht;
}
set minLength(e) {
this.#Ht = e;
}
constructor(e) {
super(e);
runInitializers(this, minLengthInitializers);
}
};
})(),
PasswordField = (() => {
let classWrapper,
classRef,
classDecorators = [customElement(TAG_PASSWORD_FIELD)],
classInitializers = [],
BaseClass = vh;
(class extends BaseClass {
static {
classRef = this;
}
static {
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
applyDecorators(
null,
(classWrapper = {
value: classRef,
}),
classDecorators,
{
kind: 'class',
name: classRef.name,
metadata: classMetadata,
},
null,
classInitializers,
);
classRef = classWrapper.value;
if (classMetadata) {
Object.defineProperty(classRef, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
runInitializers(classRef, classInitializers);
}
constructor() {
super(gh);
... (truncated)
Diff truncated at 200 lines
components/QueryContainer.js +1 -1
@@ -64,19 +64,19 @@ let QueryContainer = (() => {
});
}
}
get containerName() {
}
set containerName(e) {
}
static globalStylesApplied = false;
constructor() {
runInitializers(this, containerNameExtraInitializers);
if (!l.globalStylesApplied) {
Ae(this.ownerDocument, 's-query-container{container-name:var(--s-container-name-26021)}');
Ce(this.ownerDocument, 's-query-container{container-name:var(--s-container-name-f4125)}');
l.globalStylesApplied = true;
}
}
components/TextField.js Truncated +103 -1
@@ -1,48 +1,193 @@
// TextField Component
let TextField = (() => {
})();
})(),
Cg = (() => {
let classWrapper,
classRef,
autocompleteDecorators,
BaseClass = nc,
classInitializers = [],
autocompleteInitializers = [],
autocompleteExtraInitializers = [],
maxLengthInitializers = [],
maxLengthExtraInitializers = [],
minLengthInitializers = [];
return class extends BaseClass {
static {
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
classWrapper = [
property(
autocompleteProp({
defaultValue: 'url',
}),
),
];
classRef = [
property(
numberProp({
defaultValue: 1 / 0,
min: 0,
floor: true,
}),
),
];
autocompleteDecorators = [
property(
numberProp({
defaultValue: 0,
min: 0,
floor: true,
}),
),
];
applyDecorators(
this,
null,
classWrapper,
{
kind: 'accessor',
name: 'autocomplete',
static: false,
private: false,
access: {
has: (instance) => 'autocomplete' in instance,
get: (instance) => instance.autocomplete,
set: (instance, value) => {
instance.autocomplete = value;
},
},
metadata: classMetadata,
},
classInitializers,
autocompleteInitializers,
);
applyDecorators(
this,
null,
classRef,
{
kind: 'accessor',
name: 'maxLength',
static: false,
private: false,
access: {
has: (instance) => 'maxLength' in instance,
get: (instance) => instance.maxLength,
set: (instance, value) => {
instance.maxLength = value;
},
},
metadata: classMetadata,
},
autocompleteExtraInitializers,
maxLengthInitializers,
);
applyDecorators(
this,
null,
autocompleteDecorators,
{
kind: 'accessor',
name: 'minLength',
static: false,
private: false,
access: {
has: (instance) => 'minLength' in instance,
get: (instance) => instance.minLength,
set: (instance, value) => {
instance.minLength = value;
},
},
metadata: classMetadata,
},
... (truncated)
Diff truncated at 200 lines
components/Tooltip.js Truncated +0 -188
@@ -1,193 +1,48 @@
// Tooltip Component
let Tooltip = (() => {
classDecorators = [customElement(TAG_TOOLTIP)],
classInitializers = [],
BaseClass = El;
(class extends BaseClass {
static {
classRef = this;
}
static {
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
applyDecorators(
null,
(classWrapper = {
value: classRef,
}),
classDecorators,
{
kind: 'class',
name: classRef.name,
metadata: classMetadata,
},
null,
classInitializers,
);
classRef = classWrapper.value;
if (classMetadata) {
Object.defineProperty(classRef, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
runInitializers(classRef, classInitializers);
}
constructor() {
super(mm);
}
});
return classRef;
})(),
pm = (() => {
let classWrapper,
classRef,
autocompleteDecorators,
BaseClass = Go,
classInitializers = [],
autocompleteInitializers = [],
autocompleteExtraInitializers = [],
maxLengthInitializers = [],
maxLengthExtraInitializers = [],
minLengthInitializers = [];
return class extends BaseClass {
static {
const classMetadata =
'function' == typeof Symbol && Symbol.metadata
? Object.create(BaseClass[Symbol.metadata] ?? null)
: undefined;
classWrapper = [
property(
autocompleteProp({
defaultValue: 'url',
}),
),
];
classRef = [
property(
numberProp({
defaultValue: 1 / 0,
min: 0,
floor: true,
}),
),
];
autocompleteDecorators = [
property(
numberProp({
defaultValue: 0,
min: 0,
floor: true,
}),
),
];
applyDecorators(
this,
null,
classWrapper,
{
kind: 'accessor',
name: 'autocomplete',
static: false,
private: false,
access: {
has: (instance) => 'autocomplete' in instance,
get: (instance) => instance.autocomplete,
set: (instance, value) => {
instance.autocomplete = value;
},
},
metadata: classMetadata,
},
classInitializers,
autocompleteInitializers,
);
applyDecorators(
this,
null,
classRef,
{
kind: 'accessor',
name: 'maxLength',
static: false,
private: false,
access: {
has: (instance) => 'maxLength' in instance,
get: (instance) => instance.maxLength,
set: (instance, value) => {
instance.maxLength = value;
},
},
metadata: classMetadata,
},
autocompleteExtraInitializers,
maxLengthInitializers,
);
applyDecorators(
this,
null,
autocompleteDecorators,
{
kind: 'accessor',
name: 'minLength',
static: false,
private: false,
access: {
has: (instance) => 'minLength' in instance,
get: (instance) => instance.minLength,
set: (instance, value) => {
instance.minLength = value;
},
},
metadata: classMetadata,
},
maxLengthExtraInitializers,
minLengthInitializers,
);
if (classMetadata) {
Object.defineProperty(this, Symbol.metadata, {
enumerable: true,
configurable: true,
writable: true,
value: classMetadata,
});
}
}
#Pe = runInitializers(this, classInitializers, undefined);
get autocomplete() {
return this.#Pe;
}
set autocomplete(e) {
this.#Pe = e;
}
#_t =
(runInitializers(this, autocompleteInitializers),
runInitializers(this, autocompleteExtraInitializers, undefined));
get maxLength() {
return this.#_t;
}
set maxLength(e) {
this.#_t = e;
}
#zt =
(runInitializers(this, maxLengthInitializers),
runInitializers(this, maxLengthExtraInitializers, undefined));
get minLength() {
return this.#zt;
}
set minLength(e) {
this.#zt = e;
}
constructor(e) {
super(e);
runInitializers(this, minLengthInitializers);
}
};
})();
... (truncated)
Diff truncated at 200 lines