@lostgradient/cinder 0.23.1 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/components.json +1 -1
- package/dist/_internal/text-direction-sheet-index.d.ts +69 -0
- package/dist/components/access-gate/index.js +447 -354
- package/dist/components/approval-card/index.js +72 -1
- package/dist/components/autocomplete/index.js +72 -1
- package/dist/components/avatar-group/index.js +72 -1
- package/dist/components/carousel/index.js +73 -1
- package/dist/components/combobox/index.js +72 -1
- package/dist/components/command-menu/index.js +74 -1
- package/dist/components/context-menu/index.js +74 -1
- package/dist/components/date-picker/index.js +72 -1
- package/dist/components/date-range-field/index.js +72 -1
- package/dist/components/dropdown/index.js +74 -1
- package/dist/components/dropdown-menu/index.js +74 -1
- package/dist/components/file-upload/file-upload-list.svelte.d.ts +12 -0
- package/dist/components/file-upload/file-upload-utilities.d.ts +15 -0
- package/dist/components/file-upload/file-upload.css +152 -11
- package/dist/components/file-upload/file-upload.schema.js +39 -5
- package/dist/components/file-upload/file-upload.types.d.ts +33 -5
- package/dist/components/file-upload/index.js +1017 -264
- package/dist/components/hover-card/index.js +72 -1
- package/dist/components/invocation-rule-builder/index.js +72 -1
- package/dist/components/json-schema-editor/index.js +72 -1
- package/dist/components/mega-menu/index.js +73 -1
- package/dist/components/menu-bar/index.js +74 -1
- package/dist/components/multi-select/index.js +72 -1
- package/dist/components/navigation-bar/index.js +72 -1
- package/dist/components/popover/index.js +72 -1
- package/dist/components/portal/index.js +72 -1
- package/dist/components/selection-popover/index.js +72 -1
- package/dist/components/slider/index.js +73 -1
- package/dist/components/speed-dial/index.js +72 -1
- package/dist/components/speed-dial-action/index.js +72 -1
- package/dist/components/tooltip/index.js +72 -1
- package/dist/index.js +18932 -18257
- package/dist/server/components/access-gate/index.js +7 -4
- package/dist/server/components/approval-card/index.js +6 -5
- package/dist/server/components/autocomplete/index.js +6 -5
- package/dist/server/components/avatar-group/index.js +6 -5
- package/dist/server/components/carousel/index.js +3 -2
- package/dist/server/components/combobox/index.js +7 -6
- package/dist/server/components/command-menu/index.js +6 -5
- package/dist/server/components/context-menu/index.js +7 -6
- package/dist/server/components/date-picker/index.js +7 -6
- package/dist/server/components/date-range-field/index.js +7 -6
- package/dist/server/components/dropdown/index.js +7 -6
- package/dist/server/components/dropdown-menu/index.js +7 -6
- package/dist/server/components/file-upload/index.js +10 -2
- package/dist/server/components/hover-card/index.js +5 -4
- package/dist/server/components/icons/index.js +17 -11
- package/dist/server/components/invocation-rule-builder/index.js +7 -6
- package/dist/server/components/json-schema-editor/index.js +10 -7
- package/dist/server/components/mega-menu/index.js +4 -3
- package/dist/server/components/menu-bar/index.js +7 -6
- package/dist/server/components/multi-select/index.js +5 -4
- package/dist/server/components/navigation-bar/index.js +5 -4
- package/dist/server/components/popover/index.js +6 -5
- package/dist/server/components/portal/index.js +4 -3
- package/dist/server/components/selection-popover/index.js +5 -4
- package/dist/server/components/slider/index.js +4 -3
- package/dist/server/components/speed-dial/index.js +6 -5
- package/dist/server/components/speed-dial-action/index.js +5 -4
- package/dist/server/components/tooltip/index.js +6 -5
- package/dist/server/index.js +45 -39
- package/dist/server/{index.server-116jzzd0.js → index.server-0d1703dw.js} +1 -1
- package/dist/server/index.server-3cpak389.js +689 -0
- package/dist/server/{index.server-wmeaz6qk.js → index.server-5smw78xz.js} +78 -109
- package/dist/server/{index.server-nwgxhrzg.js → index.server-6vd98s4m.js} +1 -1
- package/dist/server/{index.server-4hvjet4z.js → index.server-7h3nmj3g.js} +7 -5
- package/dist/server/{index.server-3e8n2sry.js → index.server-7vzk6qhf.js} +2 -2
- package/dist/server/{index.server-h6qhx8mw.js → index.server-83fg1k4x.js} +7 -1
- package/dist/server/{index.server-5mz0e28m.js → index.server-8bv9bkm6.js} +1 -1
- package/dist/server/{index.server-59hgwg0n.js → index.server-8xr5tbrn.js} +1 -1
- package/dist/server/{index.server-x5zjwrnb.js → index.server-aphnpg78.js} +2 -2
- package/dist/server/{index.server-9scm7zf9.js → index.server-aywvs10h.js} +1 -1
- package/dist/server/index.server-bfkka7x4.js +2 -0
- package/dist/server/{index.server-2h45p8kd.js → index.server-bjj2hpx1.js} +2 -2
- package/dist/server/{index.server-4w0rydct.js → index.server-bw1wbzzk.js} +1 -1
- package/dist/server/{index.server-w5f4ex0f.js → index.server-c71m0a88.js} +1 -1
- package/dist/server/{index.server-kergq7c5.js → index.server-cmz3t3zw.js} +1 -1
- package/dist/server/{index.server-t2p901p7.js → index.server-cn3tg876.js} +1 -1
- package/dist/server/{index.server-6z6s8qz8.js → index.server-d05m93p4.js} +1 -1
- package/dist/server/{index.server-yr2ndv9a.js → index.server-d7twz1zm.js} +1 -1
- package/dist/server/{index.server-1cnz5ax1.js → index.server-emqv9bz6.js} +1 -1
- package/dist/server/index.server-fvtdyxbc.js +2 -0
- package/dist/server/{index.server-5wmzrvvs.js → index.server-gg4jre7c.js} +1 -1
- package/dist/server/{index.server-t91tbrmn.js → index.server-h76gdmj1.js} +2 -2
- package/dist/server/{index.server-bjw3e1wh.js → index.server-hvp84h1d.js} +1 -1
- package/dist/server/{index.server-7kez94sz.js → index.server-j6wms88v.js} +1 -1
- package/dist/server/{index.server-8t53gqe7.js → index.server-k21nfvxe.js} +2 -2
- package/dist/server/{index.server-6771g0q4.js → index.server-mf4dr1kp.js} +5 -1
- package/dist/server/{index.server-s2dseqdh.js → index.server-p69bvf14.js} +1 -1
- package/dist/server/{index.server-br3khchh.js → index.server-ppw26tpq.js} +1 -1
- package/dist/server/{index.server-q7r53g7z.js → index.server-s4pfz6pb.js} +1 -1
- package/dist/server/index.server-sje2hers.js +97 -0
- package/dist/server/{index.server-drdtprjs.js → index.server-spdds2hk.js} +1 -1
- package/dist/server/index.server-sz6y8xqk.js +2 -0
- package/dist/server/index.server-tkv7aey1.js +35 -0
- package/dist/server/{index.server-rf9pd5mr.js → index.server-w20xg416.js} +1 -1
- package/dist/server/index.server-xvg6mjdw.js +73 -0
- package/dist/server/{index.server-03ndc3td.js → index.server-ye5xkaq2.js} +1 -1
- package/dist/server/{index.server-ejdprw7f.js → index.server-ykvb4rcc.js} +1 -1
- package/dist/server/index.server-yq9evnp4.js +38 -0
- package/dist/server/index.server-yrfah2yz.js +33 -0
- package/dist/server/{index.server-9n2bc545.js → index.server-zbgdfzy6.js} +1 -1
- package/dist/server/{index.server-n6wm89xy.js → index.server-zj0x74bt.js} +1 -1
- package/package.json +1 -1
- package/src/_internal/text-direction-css.ts +6 -0
- package/src/_internal/text-direction-sheet-index.ts +170 -0
- package/src/components/file-upload/file-upload-list.svelte +198 -0
- package/src/components/file-upload/file-upload-utilities.ts +262 -0
- package/src/components/file-upload/file-upload.css +152 -11
- package/src/components/file-upload/file-upload.examples.json +1 -1
- package/src/components/file-upload/file-upload.schema.json +38 -4
- package/src/components/file-upload/file-upload.schema.ts +40 -4
- package/src/components/file-upload/file-upload.svelte +176 -146
- package/src/components/file-upload/file-upload.types.ts +33 -5
- package/src/components/portal/portal.utilities.svelte.ts +8 -0
- package/dist/server/index.server-1qvmrpnx.js +0 -328
- package/dist/server/index.server-4n1mxg74.js +0 -2
- package/dist/server/index.server-7trweg3f.js +0 -61
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -3545,4 +3616,4 @@ export {
|
|
|
3545
3616
|
Hover_card as HoverCard
|
|
3546
3617
|
};
|
|
3547
3618
|
|
|
3548
|
-
//# debugId=
|
|
3619
|
+
//# debugId=C26BCA5874144C7A64756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -6015,4 +6086,4 @@ export {
|
|
|
6015
6086
|
Invocation_rule_builder as InvocationRuleBuilder
|
|
6016
6087
|
};
|
|
6017
6088
|
|
|
6018
|
-
//# debugId=
|
|
6089
|
+
//# debugId=5C687C961C8BF42E64756E2164756E21
|
|
@@ -1912,6 +1912,76 @@ function classNames(...parts) {
|
|
|
1912
1912
|
import * as $2 from "svelte/internal/client";
|
|
1913
1913
|
import { untrack } from "svelte";
|
|
1914
1914
|
|
|
1915
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1916
|
+
var sheetIndex = new WeakMap;
|
|
1917
|
+
function resetDirectionStyleSheetIndex() {
|
|
1918
|
+
sheetIndex = new WeakMap;
|
|
1919
|
+
}
|
|
1920
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1921
|
+
let rules;
|
|
1922
|
+
try {
|
|
1923
|
+
rules = sheet.cssRules;
|
|
1924
|
+
} catch {
|
|
1925
|
+
return true;
|
|
1926
|
+
}
|
|
1927
|
+
const cached = sheetIndex.get(sheet);
|
|
1928
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1929
|
+
return cached.declaresDirection;
|
|
1930
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1931
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1932
|
+
scanRuleList(rules, scan);
|
|
1933
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1934
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1935
|
+
} else {
|
|
1936
|
+
sheetIndex.delete(sheet);
|
|
1937
|
+
}
|
|
1938
|
+
return scan.declaresDirection;
|
|
1939
|
+
}
|
|
1940
|
+
function scanRuleList(rules, state) {
|
|
1941
|
+
for (const rule of Array.from(rules)) {
|
|
1942
|
+
if (state.declaresDirection)
|
|
1943
|
+
return;
|
|
1944
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1945
|
+
state.cacheable = false;
|
|
1946
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1947
|
+
if (imported) {
|
|
1948
|
+
try {
|
|
1949
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1950
|
+
if (isRuleCollection(importedRules))
|
|
1951
|
+
scanRuleList(importedRules, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
continue;
|
|
1957
|
+
}
|
|
1958
|
+
const style = Reflect.get(rule, "style");
|
|
1959
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1960
|
+
state.declaresDirection = true;
|
|
1961
|
+
return;
|
|
1962
|
+
}
|
|
1963
|
+
if (!("cssRules" in rule))
|
|
1964
|
+
continue;
|
|
1965
|
+
try {
|
|
1966
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1967
|
+
if (isRuleCollection(nested))
|
|
1968
|
+
scanRuleList(nested, state);
|
|
1969
|
+
} catch {
|
|
1970
|
+
state.declaresDirection = true;
|
|
1971
|
+
return;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
function isRuleCollection(value) {
|
|
1976
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1977
|
+
return true;
|
|
1978
|
+
if (Array.isArray(value))
|
|
1979
|
+
return true;
|
|
1980
|
+
if (typeof value !== "object" || value === null)
|
|
1981
|
+
return false;
|
|
1982
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1915
1985
|
// ../../node_modules/esm-env/true.js
|
|
1916
1986
|
var true_default = true;
|
|
1917
1987
|
// src/utilities/dev-warn.ts
|
|
@@ -2425,6 +2495,7 @@ function invalidateComputedDirections() {
|
|
|
2425
2495
|
});
|
|
2426
2496
|
}
|
|
2427
2497
|
function invalidatePortalDirection() {
|
|
2498
|
+
resetDirectionStyleSheetIndex();
|
|
2428
2499
|
if (computedDirectionObservations.size === 0)
|
|
2429
2500
|
return;
|
|
2430
2501
|
refreshMediaQueryObservers();
|
|
@@ -9733,4 +9804,4 @@ export {
|
|
|
9733
9804
|
Json_schema_editor as JsonSchemaEditor
|
|
9734
9805
|
};
|
|
9735
9806
|
|
|
9736
|
-
//# debugId=
|
|
9807
|
+
//# debugId=31B61498BC42B30264756E2164756E21
|
|
@@ -304,6 +304,76 @@ function evaluateContainerSizeConstraints(conditionText, width, remSize, inlineS
|
|
|
304
304
|
return /^\s*not\b/i.test(conditionText) ? !combinedMatches : combinedMatches;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
308
|
+
var sheetIndex = new WeakMap;
|
|
309
|
+
function resetDirectionStyleSheetIndex() {
|
|
310
|
+
sheetIndex = new WeakMap;
|
|
311
|
+
}
|
|
312
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
313
|
+
let rules;
|
|
314
|
+
try {
|
|
315
|
+
rules = sheet.cssRules;
|
|
316
|
+
} catch {
|
|
317
|
+
return true;
|
|
318
|
+
}
|
|
319
|
+
const cached = sheetIndex.get(sheet);
|
|
320
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
321
|
+
return cached.declaresDirection;
|
|
322
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
323
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
324
|
+
scanRuleList(rules, scan);
|
|
325
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
326
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
327
|
+
} else {
|
|
328
|
+
sheetIndex.delete(sheet);
|
|
329
|
+
}
|
|
330
|
+
return scan.declaresDirection;
|
|
331
|
+
}
|
|
332
|
+
function scanRuleList(rules, state) {
|
|
333
|
+
for (const rule of Array.from(rules)) {
|
|
334
|
+
if (state.declaresDirection)
|
|
335
|
+
return;
|
|
336
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
337
|
+
state.cacheable = false;
|
|
338
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
339
|
+
if (imported) {
|
|
340
|
+
try {
|
|
341
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
342
|
+
if (isRuleCollection(importedRules))
|
|
343
|
+
scanRuleList(importedRules, state);
|
|
344
|
+
} catch {
|
|
345
|
+
state.declaresDirection = true;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
const style = Reflect.get(rule, "style");
|
|
351
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
352
|
+
state.declaresDirection = true;
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
if (!("cssRules" in rule))
|
|
356
|
+
continue;
|
|
357
|
+
try {
|
|
358
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
359
|
+
if (isRuleCollection(nested))
|
|
360
|
+
scanRuleList(nested, state);
|
|
361
|
+
} catch {
|
|
362
|
+
state.declaresDirection = true;
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function isRuleCollection(value) {
|
|
368
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
369
|
+
return true;
|
|
370
|
+
if (Array.isArray(value))
|
|
371
|
+
return true;
|
|
372
|
+
if (typeof value !== "object" || value === null)
|
|
373
|
+
return false;
|
|
374
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
375
|
+
}
|
|
376
|
+
|
|
307
377
|
// src/_internal/text-direction-css.ts
|
|
308
378
|
function matchesDirectionStyleRule(element, getParentElement) {
|
|
309
379
|
const styleSheets = new Map;
|
|
@@ -327,6 +397,8 @@ function matchesDirectionStyleRule(element, getParentElement) {
|
|
|
327
397
|
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
328
398
|
if (!isActiveStyleSheet(sheet))
|
|
329
399
|
continue;
|
|
400
|
+
if (!styleSheetDeclaresDirection(sheet))
|
|
401
|
+
continue;
|
|
330
402
|
let rules;
|
|
331
403
|
try {
|
|
332
404
|
rules = sheet.cssRules;
|
|
@@ -2270,4 +2342,4 @@ export {
|
|
|
2270
2342
|
Mega_menu as MegaMenu
|
|
2271
2343
|
};
|
|
2272
2344
|
|
|
2273
|
-
//# debugId=
|
|
2345
|
+
//# debugId=9E9F9867E66D339A64756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -3266,6 +3337,8 @@ function matchesDirectionStyleRule(element2, getParentElement) {
|
|
|
3266
3337
|
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
3267
3338
|
if (!isActiveStyleSheet(sheet))
|
|
3268
3339
|
continue;
|
|
3340
|
+
if (!styleSheetDeclaresDirection(sheet))
|
|
3341
|
+
continue;
|
|
3269
3342
|
let rules;
|
|
3270
3343
|
try {
|
|
3271
3344
|
rules = sheet.cssRules;
|
|
@@ -5926,4 +5999,4 @@ export {
|
|
|
5926
5999
|
Menu_bar as MenuBar
|
|
5927
6000
|
};
|
|
5928
6001
|
|
|
5929
|
-
//# debugId=
|
|
6002
|
+
//# debugId=683124B1A7FA39A764756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -4521,4 +4592,4 @@ export {
|
|
|
4521
4592
|
Multi_select as MultiSelect
|
|
4522
4593
|
};
|
|
4523
4594
|
|
|
4524
|
-
//# debugId=
|
|
4595
|
+
//# debugId=E94AC54C41086B9064756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -3999,4 +4070,4 @@ export {
|
|
|
3999
4070
|
Navigation_bar as NavigationBar
|
|
4000
4071
|
};
|
|
4001
4072
|
|
|
4002
|
-
//# debugId=
|
|
4073
|
+
//# debugId=8DD2C0580548EE5464756E2164756E21
|