@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();
|
|
@@ -3950,4 +4021,4 @@ export {
|
|
|
3950
4021
|
Popover
|
|
3951
4022
|
};
|
|
3952
4023
|
|
|
3953
|
-
//# debugId=
|
|
4024
|
+
//# debugId=F13069AB5AABCCB764756E2164756E21
|
|
@@ -64,6 +64,76 @@ function classNames(...parts) {
|
|
|
64
64
|
import * as $2 from "svelte/internal/client";
|
|
65
65
|
import { untrack } from "svelte";
|
|
66
66
|
|
|
67
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
68
|
+
var sheetIndex = new WeakMap;
|
|
69
|
+
function resetDirectionStyleSheetIndex() {
|
|
70
|
+
sheetIndex = new WeakMap;
|
|
71
|
+
}
|
|
72
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
73
|
+
let rules;
|
|
74
|
+
try {
|
|
75
|
+
rules = sheet.cssRules;
|
|
76
|
+
} catch {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
const cached = sheetIndex.get(sheet);
|
|
80
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
81
|
+
return cached.declaresDirection;
|
|
82
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
83
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
84
|
+
scanRuleList(rules, scan);
|
|
85
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
86
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
87
|
+
} else {
|
|
88
|
+
sheetIndex.delete(sheet);
|
|
89
|
+
}
|
|
90
|
+
return scan.declaresDirection;
|
|
91
|
+
}
|
|
92
|
+
function scanRuleList(rules, state) {
|
|
93
|
+
for (const rule of Array.from(rules)) {
|
|
94
|
+
if (state.declaresDirection)
|
|
95
|
+
return;
|
|
96
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
97
|
+
state.cacheable = false;
|
|
98
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
99
|
+
if (imported) {
|
|
100
|
+
try {
|
|
101
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
102
|
+
if (isRuleCollection(importedRules))
|
|
103
|
+
scanRuleList(importedRules, state);
|
|
104
|
+
} catch {
|
|
105
|
+
state.declaresDirection = true;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
const style = Reflect.get(rule, "style");
|
|
111
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
112
|
+
state.declaresDirection = true;
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (!("cssRules" in rule))
|
|
116
|
+
continue;
|
|
117
|
+
try {
|
|
118
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
119
|
+
if (isRuleCollection(nested))
|
|
120
|
+
scanRuleList(nested, state);
|
|
121
|
+
} catch {
|
|
122
|
+
state.declaresDirection = true;
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function isRuleCollection(value) {
|
|
128
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
129
|
+
return true;
|
|
130
|
+
if (Array.isArray(value))
|
|
131
|
+
return true;
|
|
132
|
+
if (typeof value !== "object" || value === null)
|
|
133
|
+
return false;
|
|
134
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
135
|
+
}
|
|
136
|
+
|
|
67
137
|
// ../../node_modules/esm-env/true.js
|
|
68
138
|
var true_default = true;
|
|
69
139
|
// src/utilities/dev-warn.ts
|
|
@@ -577,6 +647,7 @@ function invalidateComputedDirections() {
|
|
|
577
647
|
});
|
|
578
648
|
}
|
|
579
649
|
function invalidatePortalDirection() {
|
|
650
|
+
resetDirectionStyleSheetIndex();
|
|
580
651
|
if (computedDirectionObservations.size === 0)
|
|
581
652
|
return;
|
|
582
653
|
refreshMediaQueryObservers();
|
|
@@ -1071,4 +1142,4 @@ export {
|
|
|
1071
1142
|
Portal
|
|
1072
1143
|
};
|
|
1073
1144
|
|
|
1074
|
-
//# debugId=
|
|
1145
|
+
//# debugId=FCED25C0DE7F080164756E2164756E21
|
|
@@ -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();
|
|
@@ -3807,4 +3878,4 @@ export {
|
|
|
3807
3878
|
Selection_popover as SelectionPopover
|
|
3808
3879
|
};
|
|
3809
3880
|
|
|
3810
|
-
//# debugId=
|
|
3881
|
+
//# debugId=C5F1ABDDAB0A709664756E2164756E21
|
|
@@ -312,6 +312,76 @@ function evaluateContainerSizeConstraints(conditionText, width, remSize, inlineS
|
|
|
312
312
|
return /^\s*not\b/i.test(conditionText) ? !combinedMatches : combinedMatches;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
316
|
+
var sheetIndex = new WeakMap;
|
|
317
|
+
function resetDirectionStyleSheetIndex() {
|
|
318
|
+
sheetIndex = new WeakMap;
|
|
319
|
+
}
|
|
320
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
321
|
+
let rules;
|
|
322
|
+
try {
|
|
323
|
+
rules = sheet.cssRules;
|
|
324
|
+
} catch {
|
|
325
|
+
return true;
|
|
326
|
+
}
|
|
327
|
+
const cached = sheetIndex.get(sheet);
|
|
328
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
329
|
+
return cached.declaresDirection;
|
|
330
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
331
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
332
|
+
scanRuleList(rules, scan);
|
|
333
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
334
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
335
|
+
} else {
|
|
336
|
+
sheetIndex.delete(sheet);
|
|
337
|
+
}
|
|
338
|
+
return scan.declaresDirection;
|
|
339
|
+
}
|
|
340
|
+
function scanRuleList(rules, state) {
|
|
341
|
+
for (const rule of Array.from(rules)) {
|
|
342
|
+
if (state.declaresDirection)
|
|
343
|
+
return;
|
|
344
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
345
|
+
state.cacheable = false;
|
|
346
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
347
|
+
if (imported) {
|
|
348
|
+
try {
|
|
349
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
350
|
+
if (isRuleCollection(importedRules))
|
|
351
|
+
scanRuleList(importedRules, state);
|
|
352
|
+
} catch {
|
|
353
|
+
state.declaresDirection = true;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
const style = Reflect.get(rule, "style");
|
|
359
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
360
|
+
state.declaresDirection = true;
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
if (!("cssRules" in rule))
|
|
364
|
+
continue;
|
|
365
|
+
try {
|
|
366
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
367
|
+
if (isRuleCollection(nested))
|
|
368
|
+
scanRuleList(nested, state);
|
|
369
|
+
} catch {
|
|
370
|
+
state.declaresDirection = true;
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
function isRuleCollection(value) {
|
|
376
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
377
|
+
return true;
|
|
378
|
+
if (Array.isArray(value))
|
|
379
|
+
return true;
|
|
380
|
+
if (typeof value !== "object" || value === null)
|
|
381
|
+
return false;
|
|
382
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
383
|
+
}
|
|
384
|
+
|
|
315
385
|
// src/_internal/text-direction-css.ts
|
|
316
386
|
function matchesDirectionStyleRule(element, getParentElement) {
|
|
317
387
|
const styleSheets = new Map;
|
|
@@ -335,6 +405,8 @@ function matchesDirectionStyleRule(element, getParentElement) {
|
|
|
335
405
|
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
336
406
|
if (!isActiveStyleSheet(sheet))
|
|
337
407
|
continue;
|
|
408
|
+
if (!styleSheetDeclaresDirection(sheet))
|
|
409
|
+
continue;
|
|
338
410
|
let rules;
|
|
339
411
|
try {
|
|
340
412
|
rules = sheet.cssRules;
|
|
@@ -1949,4 +2021,4 @@ export {
|
|
|
1949
2021
|
Slider
|
|
1950
2022
|
};
|
|
1951
2023
|
|
|
1952
|
-
//# debugId=
|
|
2024
|
+
//# debugId=043A2B3FC07CE7FA64756E2164756E21
|
|
@@ -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();
|
|
@@ -4309,4 +4380,4 @@ export {
|
|
|
4309
4380
|
SpeedDial
|
|
4310
4381
|
};
|
|
4311
4382
|
|
|
4312
|
-
//# debugId=
|
|
4383
|
+
//# debugId=F0CA40E0FFAC840864756E2164756E21
|
|
@@ -192,6 +192,76 @@ function Floating_action($$anchor, $$props) {
|
|
|
192
192
|
import * as $3 from "svelte/internal/client";
|
|
193
193
|
import { untrack } from "svelte";
|
|
194
194
|
|
|
195
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
196
|
+
var sheetIndex = new WeakMap;
|
|
197
|
+
function resetDirectionStyleSheetIndex() {
|
|
198
|
+
sheetIndex = new WeakMap;
|
|
199
|
+
}
|
|
200
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
201
|
+
let rules;
|
|
202
|
+
try {
|
|
203
|
+
rules = sheet.cssRules;
|
|
204
|
+
} catch {
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
const cached = sheetIndex.get(sheet);
|
|
208
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
209
|
+
return cached.declaresDirection;
|
|
210
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
211
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
212
|
+
scanRuleList(rules, scan);
|
|
213
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
214
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
215
|
+
} else {
|
|
216
|
+
sheetIndex.delete(sheet);
|
|
217
|
+
}
|
|
218
|
+
return scan.declaresDirection;
|
|
219
|
+
}
|
|
220
|
+
function scanRuleList(rules, state) {
|
|
221
|
+
for (const rule of Array.from(rules)) {
|
|
222
|
+
if (state.declaresDirection)
|
|
223
|
+
return;
|
|
224
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
225
|
+
state.cacheable = false;
|
|
226
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
227
|
+
if (imported) {
|
|
228
|
+
try {
|
|
229
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
230
|
+
if (isRuleCollection(importedRules))
|
|
231
|
+
scanRuleList(importedRules, state);
|
|
232
|
+
} catch {
|
|
233
|
+
state.declaresDirection = true;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
const style = Reflect.get(rule, "style");
|
|
239
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
240
|
+
state.declaresDirection = true;
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
if (!("cssRules" in rule))
|
|
244
|
+
continue;
|
|
245
|
+
try {
|
|
246
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
247
|
+
if (isRuleCollection(nested))
|
|
248
|
+
scanRuleList(nested, state);
|
|
249
|
+
} catch {
|
|
250
|
+
state.declaresDirection = true;
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function isRuleCollection(value) {
|
|
256
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
257
|
+
return true;
|
|
258
|
+
if (Array.isArray(value))
|
|
259
|
+
return true;
|
|
260
|
+
if (typeof value !== "object" || value === null)
|
|
261
|
+
return false;
|
|
262
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
263
|
+
}
|
|
264
|
+
|
|
195
265
|
// src/utilities/read-option.ts
|
|
196
266
|
function isOptionGetter(value) {
|
|
197
267
|
return typeof value === "function";
|
|
@@ -696,6 +766,7 @@ function invalidateComputedDirections() {
|
|
|
696
766
|
});
|
|
697
767
|
}
|
|
698
768
|
function invalidatePortalDirection() {
|
|
769
|
+
resetDirectionStyleSheetIndex();
|
|
699
770
|
if (computedDirectionObservations.size === 0)
|
|
700
771
|
return;
|
|
701
772
|
refreshMediaQueryObservers();
|
|
@@ -1234,4 +1305,4 @@ export {
|
|
|
1234
1305
|
Speed_dial_action as SpeedDialAction
|
|
1235
1306
|
};
|
|
1236
1307
|
|
|
1237
|
-
//# debugId=
|
|
1308
|
+
//# debugId=9A99266C9D14401F64756E2164756E21
|
|
@@ -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();
|
|
@@ -3446,4 +3517,4 @@ export {
|
|
|
3446
3517
|
Tooltip
|
|
3447
3518
|
};
|
|
3448
3519
|
|
|
3449
|
-
//# debugId=
|
|
3520
|
+
//# debugId=879FC900990B826364756E2164756E21
|