@prt-ts/fluent-react-table-v2 9.48.0-build-1.0 → 9.48.0-build-1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +38 -1038
- package/index.esm.js +23 -1023
- package/package.json +3 -2
package/index.cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactComponents = require('@fluentui/react-components');
|
|
8
|
+
var reactIcons = require('@fluentui/react-icons');
|
|
8
9
|
var reactControlFlow = require('@prt-ts/react-control-flow');
|
|
9
10
|
var reactTable = require('@tanstack/react-table');
|
|
10
11
|
var sortable = require('@dnd-kit/sortable');
|
|
@@ -118,1007 +119,6 @@ const usePaginationStyle = reactComponents.makeStyles({
|
|
|
118
119
|
},
|
|
119
120
|
});
|
|
120
121
|
|
|
121
|
-
const IconDirectionContext = React__namespace.createContext(undefined);
|
|
122
|
-
const IconDirectionContextDefaultValue = {};
|
|
123
|
-
IconDirectionContext.Provider;
|
|
124
|
-
const useIconContext = () => React__namespace.useContext(IconDirectionContext) ? React__namespace.useContext(IconDirectionContext) : IconDirectionContextDefaultValue;
|
|
125
|
-
|
|
126
|
-
// ----
|
|
127
|
-
// Heads up!
|
|
128
|
-
// These constants are global and will be shared between Griffel instances.
|
|
129
|
-
// Any change in them should happen only in a MAJOR version. If it happens,
|
|
130
|
-
// please change "__NAMESPACE_PREFIX__" to include a version.
|
|
131
|
-
const __GLOBAL__ = typeof window === 'undefined' ? global : window;
|
|
132
|
-
const __NAMESPACE_PREFIX__ = '@griffel/';
|
|
133
|
-
function getGlobalVar(name, defaultValue) {
|
|
134
|
-
if (!__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__ + name)]) {
|
|
135
|
-
__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__ + name)] = defaultValue;
|
|
136
|
-
}
|
|
137
|
-
return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__ + name)];
|
|
138
|
-
}
|
|
139
|
-
/** @internal */
|
|
140
|
-
const DEBUG_RESET_CLASSES = /*#__PURE__*/getGlobalVar('DEBUG_RESET_CLASSES', {});
|
|
141
|
-
/** @internal */
|
|
142
|
-
const DEFINITION_LOOKUP_TABLE = /*#__PURE__*/getGlobalVar('DEFINITION_LOOKUP_TABLE', {});
|
|
143
|
-
// ----
|
|
144
|
-
/** @internal */
|
|
145
|
-
const DATA_BUCKET_ATTR = 'data-make-styles-bucket';
|
|
146
|
-
/** @internal */
|
|
147
|
-
const RESET_HASH_PREFIX = 'r';
|
|
148
|
-
/** @internal */
|
|
149
|
-
const SEQUENCE_HASH_LENGTH = 7;
|
|
150
|
-
/** @internal */
|
|
151
|
-
const SEQUENCE_PREFIX = '___';
|
|
152
|
-
/** @internal */
|
|
153
|
-
const DEBUG_SEQUENCE_SEPARATOR = '_';
|
|
154
|
-
/** @internal */
|
|
155
|
-
const SEQUENCE_SIZE = process.env.NODE_ENV === 'production' ? SEQUENCE_PREFIX.length + SEQUENCE_HASH_LENGTH : SEQUENCE_PREFIX.length + SEQUENCE_HASH_LENGTH + DEBUG_SEQUENCE_SEPARATOR.length + SEQUENCE_HASH_LENGTH;
|
|
156
|
-
// indexes for values in LookupItem tuple
|
|
157
|
-
/** @internal */
|
|
158
|
-
const LOOKUP_DEFINITIONS_INDEX = 0;
|
|
159
|
-
/** @internal */
|
|
160
|
-
const LOOKUP_DIR_INDEX = 1;
|
|
161
|
-
|
|
162
|
-
/* eslint-disable */
|
|
163
|
-
// Inspired by https://github.com/garycourt/murmurhash-js
|
|
164
|
-
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
|
165
|
-
function murmur2(str) {
|
|
166
|
-
// 'm' and 'r' are mixing constants generated offline.
|
|
167
|
-
// They're not really 'magic', they just happen to work well.
|
|
168
|
-
// const m = 0x5bd1e995;
|
|
169
|
-
// const r = 24;
|
|
170
|
-
// Initialize the hash
|
|
171
|
-
var h = 0; // Mix 4 bytes at a time into the hash
|
|
172
|
-
|
|
173
|
-
var k,
|
|
174
|
-
i = 0,
|
|
175
|
-
len = str.length;
|
|
176
|
-
|
|
177
|
-
for (; len >= 4; ++i, len -= 4) {
|
|
178
|
-
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
|
179
|
-
k =
|
|
180
|
-
/* Math.imul(k, m): */
|
|
181
|
-
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
|
182
|
-
k ^=
|
|
183
|
-
/* k >>> r: */
|
|
184
|
-
k >>> 24;
|
|
185
|
-
h =
|
|
186
|
-
/* Math.imul(k, m): */
|
|
187
|
-
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
|
188
|
-
/* Math.imul(h, m): */
|
|
189
|
-
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
190
|
-
} // Handle the last few bytes of the input array
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
switch (len) {
|
|
194
|
-
case 3:
|
|
195
|
-
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
|
196
|
-
|
|
197
|
-
case 2:
|
|
198
|
-
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
|
199
|
-
|
|
200
|
-
case 1:
|
|
201
|
-
h ^= str.charCodeAt(i) & 0xff;
|
|
202
|
-
h =
|
|
203
|
-
/* Math.imul(h, m): */
|
|
204
|
-
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
205
|
-
} // Do a few final mixes of the hash to ensure the last few
|
|
206
|
-
// bytes are well-incorporated.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
h ^= h >>> 13;
|
|
210
|
-
h =
|
|
211
|
-
/* Math.imul(h, m): */
|
|
212
|
-
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
|
213
|
-
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
function padEndHash(value) {
|
|
217
|
-
const hashLength = value.length;
|
|
218
|
-
if (hashLength === SEQUENCE_HASH_LENGTH) {
|
|
219
|
-
return value;
|
|
220
|
-
}
|
|
221
|
-
for (let i = hashLength; i < SEQUENCE_HASH_LENGTH; i++) {
|
|
222
|
-
value += '0';
|
|
223
|
-
}
|
|
224
|
-
return value;
|
|
225
|
-
}
|
|
226
|
-
function hashSequence(classes, dir, sequenceIds = []) {
|
|
227
|
-
if (process.env.NODE_ENV === 'production') {
|
|
228
|
-
return SEQUENCE_PREFIX + padEndHash(murmur2(classes + dir));
|
|
229
|
-
}
|
|
230
|
-
return SEQUENCE_PREFIX + padEndHash(murmur2(classes + dir)) + DEBUG_SEQUENCE_SEPARATOR + padEndHash(murmur2(sequenceIds.join('')));
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Reduces a classname map for slot to a classname string. Uses classnames according to text directions.
|
|
235
|
-
*
|
|
236
|
-
* @private
|
|
237
|
-
*/
|
|
238
|
-
function reduceToClassName(classMap, dir) {
|
|
239
|
-
let className = '';
|
|
240
|
-
// eslint-disable-next-line guard-for-in
|
|
241
|
-
for (const propertyHash in classMap) {
|
|
242
|
-
const classNameMapping = classMap[propertyHash];
|
|
243
|
-
if (classNameMapping) {
|
|
244
|
-
const hasRTLClassName = Array.isArray(classNameMapping);
|
|
245
|
-
if (dir === 'rtl') {
|
|
246
|
-
className += (hasRTLClassName ? classNameMapping[1] : classNameMapping) + ' ';
|
|
247
|
-
} else {
|
|
248
|
-
className += (hasRTLClassName ? classNameMapping[0] : classNameMapping) + ' ';
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
return className.slice(0, -1);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Reduces classname maps for slots to classname strings. Registers them in a definition cache to be used by
|
|
256
|
-
* `mergeClasses()`.
|
|
257
|
-
*
|
|
258
|
-
* @internal
|
|
259
|
-
*/
|
|
260
|
-
function reduceToClassNameForSlots(classesMapBySlot, dir) {
|
|
261
|
-
const classNamesForSlots = {};
|
|
262
|
-
// eslint-disable-next-line guard-for-in
|
|
263
|
-
for (const slotName in classesMapBySlot) {
|
|
264
|
-
const slotClasses = reduceToClassName(classesMapBySlot[slotName], dir);
|
|
265
|
-
// Handles a case when there are no classes in a set i.e. "makeStyles({ root: {} })"
|
|
266
|
-
if (slotClasses === '') {
|
|
267
|
-
classNamesForSlots[slotName] = '';
|
|
268
|
-
continue;
|
|
269
|
-
}
|
|
270
|
-
const sequenceHash = hashSequence(slotClasses, dir);
|
|
271
|
-
const resultSlotClasses = sequenceHash + ' ' + slotClasses;
|
|
272
|
-
DEFINITION_LOOKUP_TABLE[sequenceHash] = [classesMapBySlot[slotName], dir];
|
|
273
|
-
classNamesForSlots[slotName] = resultSlotClasses;
|
|
274
|
-
}
|
|
275
|
-
return classNamesForSlots;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// Contains a mapping of previously resolved sequences of atomic classnames
|
|
279
|
-
const mergeClassesCachedResults = {};
|
|
280
|
-
function mergeClasses() {
|
|
281
|
-
// arguments are parsed manually to avoid double loops as TS & Babel transforms rest via an additional loop
|
|
282
|
-
// @see https://babeljs.io/docs/en/babel-plugin-transform-parameters
|
|
283
|
-
/* eslint-disable prefer-rest-params */
|
|
284
|
-
let dir = null;
|
|
285
|
-
let resultClassName = '';
|
|
286
|
-
// Is used as a cache key to avoid object merging
|
|
287
|
-
let sequenceMatch = '';
|
|
288
|
-
const sequencesIds = new Array(arguments.length);
|
|
289
|
-
let containsResetClassName = '';
|
|
290
|
-
for (let i = 0; i < arguments.length; i++) {
|
|
291
|
-
const className = arguments[i];
|
|
292
|
-
if (typeof className === 'string' && className !== '') {
|
|
293
|
-
// All classes generated by `makeStyles()` are prefixed by a sequence hash, this allows to identify class sets
|
|
294
|
-
// without parsing each className in a string
|
|
295
|
-
const sequenceIndex = className.indexOf(SEQUENCE_PREFIX);
|
|
296
|
-
if (sequenceIndex === -1) {
|
|
297
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
298
|
-
className.split(' ').forEach(entry => {
|
|
299
|
-
if (entry.startsWith(RESET_HASH_PREFIX) && DEBUG_RESET_CLASSES[entry]) {
|
|
300
|
-
if (containsResetClassName) {
|
|
301
|
-
// eslint-disable-next-line no-console
|
|
302
|
-
console.error('mergeClasses(): a passed string contains multiple classes produced by makeResetStyles (' + `${className} & ${resultClassName}, this will lead to non-deterministic behavior. Learn more:` + 'https://griffel.js.org/react/api/make-reset-styles#limitations' + '\n' + `Source string: ${className}`);
|
|
303
|
-
} else {
|
|
304
|
-
containsResetClassName = entry;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
resultClassName += className + ' ';
|
|
310
|
-
} else {
|
|
311
|
-
const sequenceId = className.substr(sequenceIndex, SEQUENCE_SIZE);
|
|
312
|
-
// Handles a case with mixed classnames, i.e. "ui-button ATOMIC_CLASSES"
|
|
313
|
-
if (sequenceIndex > 0) {
|
|
314
|
-
resultClassName += className.slice(0, sequenceIndex);
|
|
315
|
-
}
|
|
316
|
-
sequenceMatch += sequenceId;
|
|
317
|
-
sequencesIds[i] = sequenceId;
|
|
318
|
-
}
|
|
319
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
320
|
-
if (className.indexOf(SEQUENCE_PREFIX, sequenceIndex + 1) !== -1) {
|
|
321
|
-
// eslint-disable-next-line no-console
|
|
322
|
-
console.error('mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start ' + `with "${SEQUENCE_PREFIX}"), it's possible that passed classes were concatenated in a wrong way. ` + `Source string: ${className}`);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
// .slice() there allows to avoid trailing space for non-atomic classes
|
|
328
|
-
// "ui-button ui-flex " => "ui-button ui-flex"
|
|
329
|
-
if (sequenceMatch === '') {
|
|
330
|
-
return resultClassName.slice(0, -1);
|
|
331
|
-
}
|
|
332
|
-
// It's safe to reuse results to avoid continuous merging as results are stable
|
|
333
|
-
// "__seq1 ... __seq2 ..." => "__seq12 ..."
|
|
334
|
-
const mergeClassesResult = mergeClassesCachedResults[sequenceMatch];
|
|
335
|
-
if (mergeClassesResult !== undefined) {
|
|
336
|
-
return resultClassName + mergeClassesResult;
|
|
337
|
-
}
|
|
338
|
-
const sequenceMappings = [];
|
|
339
|
-
for (let i = 0; i < arguments.length; i++) {
|
|
340
|
-
const sequenceId = sequencesIds[i];
|
|
341
|
-
if (sequenceId) {
|
|
342
|
-
const sequenceMapping = DEFINITION_LOOKUP_TABLE[sequenceId];
|
|
343
|
-
if (sequenceMapping) {
|
|
344
|
-
sequenceMappings.push(sequenceMapping[LOOKUP_DEFINITIONS_INDEX]);
|
|
345
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
346
|
-
if (dir !== null && dir !== sequenceMapping[LOOKUP_DIR_INDEX]) {
|
|
347
|
-
// eslint-disable-next-line no-console
|
|
348
|
-
console.error(`mergeClasses(): a passed string contains an identifier (${sequenceId}) that has different direction ` + `(dir="${sequenceMapping[1] ? 'rtl' : 'ltr'}") setting than other classes. This is not supported. ` + `Source string: ${arguments[i]}`);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
dir = sequenceMapping[LOOKUP_DIR_INDEX];
|
|
352
|
-
} else {
|
|
353
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
354
|
-
// eslint-disable-next-line no-console
|
|
355
|
-
console.error(`mergeClasses(): a passed string contains an identifier (${sequenceId}) that does not match any entry ` + `in cache. Source string: ${arguments[i]}`);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
// eslint-disable-next-line prefer-spread
|
|
361
|
-
const resultDefinitions = Object.assign.apply(Object,
|
|
362
|
-
// .assign() mutates the first object, we can't mutate mappings as it will produce invalid results later
|
|
363
|
-
[{}].concat(sequenceMappings));
|
|
364
|
-
let atomicClassNames = reduceToClassName(resultDefinitions, dir);
|
|
365
|
-
// Each merge of classes generates a new sequence of atomic classes that needs to be registered
|
|
366
|
-
const newSequenceHash = hashSequence(atomicClassNames, dir, sequencesIds);
|
|
367
|
-
atomicClassNames = newSequenceHash + ' ' + atomicClassNames;
|
|
368
|
-
mergeClassesCachedResults[sequenceMatch] = atomicClassNames;
|
|
369
|
-
DEFINITION_LOOKUP_TABLE[newSequenceHash] = [resultDefinitions, dir];
|
|
370
|
-
return resultClassName + atomicClassNames;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
const sequenceDetails = {};
|
|
374
|
-
const cssRules = /*#__PURE__*/new Set();
|
|
375
|
-
const debugData = {
|
|
376
|
-
getChildrenSequences: debugSequenceHash => {
|
|
377
|
-
const key = Object.keys(mergeClassesCachedResults).find(key => mergeClassesCachedResults[key].startsWith(debugSequenceHash));
|
|
378
|
-
if (key) {
|
|
379
|
-
// key of the mergeClasses cache contains merge order
|
|
380
|
-
return key.split(SEQUENCE_PREFIX).filter(sequence => sequence.length).map(sequence => SEQUENCE_PREFIX + sequence);
|
|
381
|
-
}
|
|
382
|
-
return [];
|
|
383
|
-
},
|
|
384
|
-
addCSSRule: rule => {
|
|
385
|
-
cssRules.add(rule);
|
|
386
|
-
},
|
|
387
|
-
addSequenceDetails: (classNamesForSlots, sourceURL) => {
|
|
388
|
-
Object.entries(classNamesForSlots).forEach(([slotName, sequenceHash]) => {
|
|
389
|
-
sequenceDetails[sequenceHash.substring(0, SEQUENCE_SIZE)] = {
|
|
390
|
-
slotName,
|
|
391
|
-
sourceURL
|
|
392
|
-
};
|
|
393
|
-
});
|
|
394
|
-
},
|
|
395
|
-
getCSSRules: () => {
|
|
396
|
-
return Array.from(cssRules);
|
|
397
|
-
},
|
|
398
|
-
getSequenceDetails: sequenceHash => {
|
|
399
|
-
return sequenceDetails[sequenceHash];
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
function getDirectionalClassName(classes, direction) {
|
|
404
|
-
return Array.isArray(classes) ? direction === 'rtl' ? classes[1] : classes[0] : classes;
|
|
405
|
-
}
|
|
406
|
-
function getDebugClassNames(lookupItem, parentLookupItem, parentDebugClassNames, overridingSiblings) {
|
|
407
|
-
const classesMapping = lookupItem[0];
|
|
408
|
-
const direction = lookupItem[1];
|
|
409
|
-
return Object.entries(classesMapping).map(([propertyHash, classes]) => {
|
|
410
|
-
const className = getDirectionalClassName(classes, direction);
|
|
411
|
-
let overriddenBy;
|
|
412
|
-
if (parentDebugClassNames && parentLookupItem) {
|
|
413
|
-
const matching = parentDebugClassNames.find(({
|
|
414
|
-
className: parentClassName
|
|
415
|
-
}) => parentClassName === className);
|
|
416
|
-
if (!matching && parentLookupItem[0][propertyHash]) {
|
|
417
|
-
// parent node does not have current className (style), but has current selector:
|
|
418
|
-
// style is overriden in current merging by another rule in sibling node
|
|
419
|
-
overriddenBy = getDirectionalClassName(parentLookupItem[0][propertyHash], parentLookupItem[1]);
|
|
420
|
-
} else if (matching && parentLookupItem[0][propertyHash]) {
|
|
421
|
-
// parent node has current className (style), and has current selector:
|
|
422
|
-
// case 1. style is not overriden during current merging; it may be overriden in higher level of merging
|
|
423
|
-
// case 2. style is overriden in current merging by exactly the same rule in sibling nodes
|
|
424
|
-
const siblingHasSameRule = overridingSiblings ? overridingSiblings.filter(({
|
|
425
|
-
debugClassNames
|
|
426
|
-
}) => debugClassNames.filter(({
|
|
427
|
-
className: siblingClassName
|
|
428
|
-
}) => siblingClassName === className).length > 0).length > 0 : false;
|
|
429
|
-
overriddenBy = siblingHasSameRule ? matching.className // case 2
|
|
430
|
-
: matching.overriddenBy; // case 1
|
|
431
|
-
} else if (!matching && !parentLookupItem[0][propertyHash]) {
|
|
432
|
-
// parent node does not have current className (style), and does not have current selector:
|
|
433
|
-
// this case is not possible
|
|
434
|
-
overriddenBy = undefined;
|
|
435
|
-
} else if (matching && !parentLookupItem[0][propertyHash]) {
|
|
436
|
-
// parent node has current className (style), but does not have current selector:
|
|
437
|
-
// this case is not possible
|
|
438
|
-
overriddenBy = undefined;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
return {
|
|
442
|
-
className,
|
|
443
|
-
overriddenBy
|
|
444
|
-
};
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
function getDebugTree(debugSequenceHash, parentNode) {
|
|
449
|
-
const lookupItem = DEFINITION_LOOKUP_TABLE[debugSequenceHash];
|
|
450
|
-
if (lookupItem === undefined) {
|
|
451
|
-
return undefined;
|
|
452
|
-
}
|
|
453
|
-
const parentLookupItem = parentNode ? DEFINITION_LOOKUP_TABLE[parentNode.sequenceHash] : undefined;
|
|
454
|
-
const debugClassNames = getDebugClassNames(lookupItem, parentLookupItem, parentNode === null || parentNode === void 0 ? void 0 : parentNode.debugClassNames, parentNode === null || parentNode === void 0 ? void 0 : parentNode.children);
|
|
455
|
-
const node = {
|
|
456
|
-
sequenceHash: debugSequenceHash,
|
|
457
|
-
direction: lookupItem[1],
|
|
458
|
-
children: [],
|
|
459
|
-
debugClassNames
|
|
460
|
-
};
|
|
461
|
-
const childrenSequences = debugData.getChildrenSequences(node.sequenceHash);
|
|
462
|
-
childrenSequences.reverse() // first process the overriding children that are merged last
|
|
463
|
-
.forEach(sequence => {
|
|
464
|
-
const child = getDebugTree(sequence, node);
|
|
465
|
-
if (child) {
|
|
466
|
-
node.children.push(child);
|
|
467
|
-
}
|
|
468
|
-
});
|
|
469
|
-
// if it's leaf (makeStyle node), get css rules
|
|
470
|
-
if (!node.children.length) {
|
|
471
|
-
node.rules = {};
|
|
472
|
-
node.debugClassNames.forEach(({
|
|
473
|
-
className
|
|
474
|
-
}) => {
|
|
475
|
-
const mapData = debugData.getSequenceDetails(debugSequenceHash);
|
|
476
|
-
if (mapData) {
|
|
477
|
-
node.slot = mapData.slotName;
|
|
478
|
-
node.sourceURL = mapData.sourceURL;
|
|
479
|
-
}
|
|
480
|
-
const cssRule = debugData.getCSSRules().find(cssRule => {
|
|
481
|
-
return cssRule.includes(className);
|
|
482
|
-
});
|
|
483
|
-
node.rules[className] = cssRule;
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
return node;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
function injectDevTools(document) {
|
|
490
|
-
const window = document.defaultView;
|
|
491
|
-
if (!window || window.__GRIFFEL_DEVTOOLS__) {
|
|
492
|
-
return;
|
|
493
|
-
}
|
|
494
|
-
const devtools = {
|
|
495
|
-
getInfo: element => {
|
|
496
|
-
const rootDebugSequenceHash = Array.from(element.classList).find(className => className.startsWith(SEQUENCE_PREFIX));
|
|
497
|
-
if (rootDebugSequenceHash === undefined) {
|
|
498
|
-
return undefined;
|
|
499
|
-
}
|
|
500
|
-
return getDebugTree(rootDebugSequenceHash);
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
|
-
Object.defineProperty(window, '__GRIFFEL_DEVTOOLS__', {
|
|
504
|
-
configurable: false,
|
|
505
|
-
enumerable: false,
|
|
506
|
-
get() {
|
|
507
|
-
return devtools;
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
const isDevToolsEnabled = /*#__PURE__*/(() => {
|
|
513
|
-
var _a;
|
|
514
|
-
// Accessing "window.sessionStorage" causes an exception when third party cookies are blocked
|
|
515
|
-
// https://stackoverflow.com/questions/30481516/iframe-in-chrome-error-failed-to-read-localstorage-from-window-access-deni
|
|
516
|
-
try {
|
|
517
|
-
return Boolean(typeof window !== 'undefined' && ((_a = window.sessionStorage) === null || _a === void 0 ? void 0 : _a.getItem('__GRIFFEL_DEVTOOLS__')));
|
|
518
|
-
} catch (e) {
|
|
519
|
-
return false;
|
|
520
|
-
}
|
|
521
|
-
})();
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* @internal
|
|
525
|
-
*
|
|
526
|
-
* @param entry - CSS bucket entry that can be either a string or an array
|
|
527
|
-
* @returns An array where the first element is the CSS rule
|
|
528
|
-
*/
|
|
529
|
-
function normalizeCSSBucketEntry(entry) {
|
|
530
|
-
if (!Array.isArray(entry)) {
|
|
531
|
-
return [entry];
|
|
532
|
-
}
|
|
533
|
-
if (process.env.NODE_ENV !== 'production' && entry.length > 2) {
|
|
534
|
-
throw new Error('CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues');
|
|
535
|
-
}
|
|
536
|
-
return entry;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
function createIsomorphicStyleSheet(styleElement, bucketName, elementAttributes) {
|
|
540
|
-
// no CSSStyleSheet in SSR, just append rules here for server render
|
|
541
|
-
const __cssRulesForSSR = [];
|
|
542
|
-
elementAttributes[DATA_BUCKET_ATTR] = bucketName;
|
|
543
|
-
if (styleElement) {
|
|
544
|
-
for (const attrName in elementAttributes) {
|
|
545
|
-
styleElement.setAttribute(attrName, elementAttributes[attrName]);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
function insertRule(rule) {
|
|
549
|
-
if (styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet) {
|
|
550
|
-
return styleElement.sheet.insertRule(rule, styleElement.sheet.cssRules.length);
|
|
551
|
-
}
|
|
552
|
-
return __cssRulesForSSR.push(rule);
|
|
553
|
-
}
|
|
554
|
-
return {
|
|
555
|
-
elementAttributes,
|
|
556
|
-
insertRule,
|
|
557
|
-
element: styleElement,
|
|
558
|
-
bucketName,
|
|
559
|
-
cssRules() {
|
|
560
|
-
if (styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet) {
|
|
561
|
-
return Array.from(styleElement.sheet.cssRules).map(cssRule => cssRule.cssText);
|
|
562
|
-
}
|
|
563
|
-
return __cssRulesForSSR;
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* Ordered style buckets using their short pseudo name.
|
|
570
|
-
*
|
|
571
|
-
* @internal
|
|
572
|
-
*/
|
|
573
|
-
const styleBucketOrdering = [
|
|
574
|
-
// reset styles
|
|
575
|
-
'r',
|
|
576
|
-
// catch-all
|
|
577
|
-
'd',
|
|
578
|
-
// link
|
|
579
|
-
'l',
|
|
580
|
-
// visited
|
|
581
|
-
'v',
|
|
582
|
-
// focus-within
|
|
583
|
-
'w',
|
|
584
|
-
// focus
|
|
585
|
-
'f',
|
|
586
|
-
// focus-visible
|
|
587
|
-
'i',
|
|
588
|
-
// hover
|
|
589
|
-
'h',
|
|
590
|
-
// active
|
|
591
|
-
'a',
|
|
592
|
-
// at rules for reset styles
|
|
593
|
-
's',
|
|
594
|
-
// keyframes
|
|
595
|
-
'k',
|
|
596
|
-
// at-rules
|
|
597
|
-
't',
|
|
598
|
-
// @media rules
|
|
599
|
-
'm',
|
|
600
|
-
// @container rules
|
|
601
|
-
'c'];
|
|
602
|
-
// avoid repeatedly calling `indexOf`to determine order during new insertions
|
|
603
|
-
const styleBucketOrderingMap = /*#__PURE__*/styleBucketOrdering.reduce((acc, cur, j) => {
|
|
604
|
-
acc[cur] = j;
|
|
605
|
-
return acc;
|
|
606
|
-
}, {});
|
|
607
|
-
/**
|
|
608
|
-
* Lazily adds a `<style>` bucket to the `<head>`. This will ensure that the style buckets are ordered.
|
|
609
|
-
*/
|
|
610
|
-
function getStyleSheetForBucket(bucketName, targetDocument, insertionPoint, renderer, metadata = {}) {
|
|
611
|
-
const isMediaBucket = bucketName === 'm';
|
|
612
|
-
const stylesheetKey = isMediaBucket ? bucketName + metadata['m'] : bucketName;
|
|
613
|
-
if (!renderer.stylesheets[stylesheetKey]) {
|
|
614
|
-
const tag = targetDocument && targetDocument.createElement('style');
|
|
615
|
-
const stylesheet = createIsomorphicStyleSheet(tag, bucketName, {
|
|
616
|
-
...renderer.styleElementAttributes,
|
|
617
|
-
...(isMediaBucket && {
|
|
618
|
-
media: metadata['m']
|
|
619
|
-
})
|
|
620
|
-
});
|
|
621
|
-
renderer.stylesheets[stylesheetKey] = stylesheet;
|
|
622
|
-
if (targetDocument && tag) {
|
|
623
|
-
targetDocument.head.insertBefore(tag, findInsertionPoint(targetDocument, insertionPoint, bucketName, renderer, metadata));
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
return renderer.stylesheets[stylesheetKey];
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* Finds an element before which the new bucket style element should be inserted following the bucket sort order.
|
|
630
|
-
*
|
|
631
|
-
* @param targetDocument - A document
|
|
632
|
-
* @param insertionPoint - An element that will be used as an initial insertion point
|
|
633
|
-
* @param targetBucket - The bucket that should be inserted to DOM
|
|
634
|
-
* @param renderer - Griffel renderer
|
|
635
|
-
* @param metadata - metadata for CSS rule
|
|
636
|
-
* @returns - Smallest style element with greater sort order than the current bucket
|
|
637
|
-
*/
|
|
638
|
-
function findInsertionPoint(targetDocument, insertionPoint, targetBucket, renderer, metadata) {
|
|
639
|
-
const targetOrder = styleBucketOrderingMap[targetBucket];
|
|
640
|
-
// Similar to javascript sort comparators where
|
|
641
|
-
// a positive value is increasing sort order
|
|
642
|
-
// a negative value is decreasing sort order
|
|
643
|
-
let comparer = el => targetOrder - styleBucketOrderingMap[el.getAttribute(DATA_BUCKET_ATTR)];
|
|
644
|
-
let styleElements = targetDocument.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);
|
|
645
|
-
if (targetBucket === 'm' && metadata) {
|
|
646
|
-
const mediaElements = targetDocument.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${targetBucket}"]`);
|
|
647
|
-
// only reduce the scope of the search and change comparer
|
|
648
|
-
// if there are other media buckets already on the page
|
|
649
|
-
if (mediaElements.length) {
|
|
650
|
-
styleElements = mediaElements;
|
|
651
|
-
comparer = el => renderer.compareMediaQueries(metadata['m'], el.media);
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
const length = styleElements.length;
|
|
655
|
-
let index = length - 1;
|
|
656
|
-
while (index >= 0) {
|
|
657
|
-
const styleElement = styleElements.item(index);
|
|
658
|
-
if (comparer(styleElement) > 0) {
|
|
659
|
-
return styleElement.nextSibling;
|
|
660
|
-
}
|
|
661
|
-
index--;
|
|
662
|
-
}
|
|
663
|
-
if (length > 0) {
|
|
664
|
-
return styleElements.item(0);
|
|
665
|
-
}
|
|
666
|
-
return insertionPoint ? insertionPoint.nextSibling : null;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Suffixes to be ignored in case of error
|
|
671
|
-
*/
|
|
672
|
-
const ignoreSuffixes = /*#__PURE__*/['-moz-placeholder', '-moz-focus-inner', '-moz-focusring', '-ms-input-placeholder', '-moz-read-write', '-moz-read-only'].join('|');
|
|
673
|
-
const ignoreSuffixesRegex = /*#__PURE__*/new RegExp(`:(${ignoreSuffixes})`);
|
|
674
|
-
/**
|
|
675
|
-
* @internal
|
|
676
|
-
*
|
|
677
|
-
* Calls `sheet.insertRule` and catches errors related to browser prefixes.
|
|
678
|
-
*/
|
|
679
|
-
function safeInsertRule(sheet, ruleCSS) {
|
|
680
|
-
try {
|
|
681
|
-
sheet.insertRule(ruleCSS);
|
|
682
|
-
} catch (e) {
|
|
683
|
-
// We've disabled these warnings due to false-positive errors with browser prefixes
|
|
684
|
-
if (process.env.NODE_ENV !== 'production' && !ignoreSuffixesRegex.test(ruleCSS)) {
|
|
685
|
-
// eslint-disable-next-line no-console
|
|
686
|
-
console.error(`There was a problem inserting the following rule: "${ruleCSS}"`, e);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
let lastIndex = 0;
|
|
692
|
-
/** @internal */
|
|
693
|
-
const defaultCompareMediaQueries = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
694
|
-
/**
|
|
695
|
-
* Creates a new instances of a renderer.
|
|
696
|
-
*
|
|
697
|
-
* @public
|
|
698
|
-
*/
|
|
699
|
-
function createDOMRenderer(targetDocument = typeof document === 'undefined' ? undefined : document, options = {}) {
|
|
700
|
-
const {
|
|
701
|
-
unstable_filterCSSRule,
|
|
702
|
-
insertionPoint,
|
|
703
|
-
styleElementAttributes,
|
|
704
|
-
compareMediaQueries = defaultCompareMediaQueries
|
|
705
|
-
} = options;
|
|
706
|
-
const renderer = {
|
|
707
|
-
insertionCache: {},
|
|
708
|
-
stylesheets: {},
|
|
709
|
-
styleElementAttributes: Object.freeze(styleElementAttributes),
|
|
710
|
-
compareMediaQueries,
|
|
711
|
-
id: `d${lastIndex++}`,
|
|
712
|
-
insertCSSRules(cssRules) {
|
|
713
|
-
// eslint-disable-next-line guard-for-in
|
|
714
|
-
for (const styleBucketName in cssRules) {
|
|
715
|
-
const cssRulesForBucket = cssRules[styleBucketName];
|
|
716
|
-
// This is a hot path in rendering styles: ".length" is cached in "l" var to avoid accesses the property
|
|
717
|
-
for (let i = 0, l = cssRulesForBucket.length; i < l; i++) {
|
|
718
|
-
const [ruleCSS, metadata] = normalizeCSSBucketEntry(cssRulesForBucket[i]);
|
|
719
|
-
const sheet = getStyleSheetForBucket(styleBucketName, targetDocument, insertionPoint || null, renderer, metadata);
|
|
720
|
-
if (renderer.insertionCache[ruleCSS]) {
|
|
721
|
-
continue;
|
|
722
|
-
}
|
|
723
|
-
renderer.insertionCache[ruleCSS] = styleBucketName;
|
|
724
|
-
if (process.env.NODE_ENV !== 'production' && isDevToolsEnabled) {
|
|
725
|
-
debugData.addCSSRule(ruleCSS);
|
|
726
|
-
}
|
|
727
|
-
if (unstable_filterCSSRule) {
|
|
728
|
-
if (unstable_filterCSSRule(ruleCSS)) {
|
|
729
|
-
safeInsertRule(sheet, ruleCSS);
|
|
730
|
-
}
|
|
731
|
-
} else {
|
|
732
|
-
safeInsertRule(sheet, ruleCSS);
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
if (targetDocument && process.env.NODE_ENV !== 'production' && isDevToolsEnabled) {
|
|
739
|
-
injectDevTools(targetDocument);
|
|
740
|
-
}
|
|
741
|
-
return renderer;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
// TODO: duplicated from https://github.com/lahmatiy/react-render-tracker/blob/main/src/publisher/react-integration/utils/stackTrace.ts
|
|
745
|
-
// once it is published as a standalone npm package, remove this file
|
|
746
|
-
// Adopted version of StackTrace-Parser
|
|
747
|
-
// https://github.com/errwischt/stacktrace-parser/blob/master/src/stack-trace-parser.js
|
|
748
|
-
const UNKNOWN_FUNCTION = '<unknown>';
|
|
749
|
-
function parseStackTraceLine(line) {
|
|
750
|
-
return parseChrome(line) || parseGecko(line) || parseJSC(line);
|
|
751
|
-
}
|
|
752
|
-
const chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)?\)?\s*$/i;
|
|
753
|
-
const chromeRe2 = /^\s*at ()((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)\s*$/i;
|
|
754
|
-
const chromeEvalRe = /\((\S*)\)/;
|
|
755
|
-
function parseChrome(line) {
|
|
756
|
-
const parts = chromeRe.exec(line) || chromeRe2.exec(line);
|
|
757
|
-
if (!parts) {
|
|
758
|
-
return null;
|
|
759
|
-
}
|
|
760
|
-
let loc = parts[2];
|
|
761
|
-
const isNative = loc && loc.indexOf('native') === 0; // start of line
|
|
762
|
-
const isEval = loc && loc.indexOf('eval') === 0; // start of line
|
|
763
|
-
const submatch = chromeEvalRe.exec(loc);
|
|
764
|
-
if (isEval && submatch != null) {
|
|
765
|
-
// throw out eval line/column and use top-most line/column number
|
|
766
|
-
loc = submatch[1]; // url
|
|
767
|
-
}
|
|
768
|
-
return {
|
|
769
|
-
loc: !isNative ? parts[2] : null,
|
|
770
|
-
name: parts[1] || UNKNOWN_FUNCTION
|
|
771
|
-
};
|
|
772
|
-
}
|
|
773
|
-
const geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)\s*$/i;
|
|
774
|
-
const geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
775
|
-
function parseGecko(line) {
|
|
776
|
-
const parts = geckoRe.exec(line);
|
|
777
|
-
if (!parts) {
|
|
778
|
-
return null;
|
|
779
|
-
}
|
|
780
|
-
let loc = parts[3];
|
|
781
|
-
const isEval = loc && loc.indexOf(' > eval') > -1;
|
|
782
|
-
const submatch = geckoEvalRe.exec(loc);
|
|
783
|
-
if (isEval && submatch != null) {
|
|
784
|
-
// throw out eval line/column and use top-most line number
|
|
785
|
-
loc = submatch[1];
|
|
786
|
-
}
|
|
787
|
-
return {
|
|
788
|
-
loc: parts[3],
|
|
789
|
-
name: parts[1] || UNKNOWN_FUNCTION
|
|
790
|
-
};
|
|
791
|
-
}
|
|
792
|
-
const javaScriptCoreRe = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?)\s*$/i;
|
|
793
|
-
function parseJSC(line) {
|
|
794
|
-
const parts = javaScriptCoreRe.exec(line);
|
|
795
|
-
if (!parts) {
|
|
796
|
-
return null;
|
|
797
|
-
}
|
|
798
|
-
return {
|
|
799
|
-
loc: parts[3],
|
|
800
|
-
name: parts[1] || UNKNOWN_FUNCTION
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
function getSourceURLfromError() {
|
|
805
|
-
const stacks = String(new Error().stack).split('\n');
|
|
806
|
-
const userMakeStyleCallLine = findUserMakeStyleCallInStacks(stacks);
|
|
807
|
-
if (userMakeStyleCallLine === undefined) {
|
|
808
|
-
return undefined;
|
|
809
|
-
}
|
|
810
|
-
const result = parseStackTraceLine(userMakeStyleCallLine);
|
|
811
|
-
return result === null || result === void 0 ? void 0 : result.loc;
|
|
812
|
-
}
|
|
813
|
-
function findUserMakeStyleCallInStacks(stacks) {
|
|
814
|
-
for (let i = stacks.length - 1; i >= 0; --i) {
|
|
815
|
-
if (stacks[i].includes('at getSourceURLfromError')) {
|
|
816
|
-
// The error stacks look like:
|
|
817
|
-
// getSourceURLfromError
|
|
818
|
-
// makeStyles/__styles in griffel core
|
|
819
|
-
// makeStyles/__styles in griffel react
|
|
820
|
-
// user makeStyles call
|
|
821
|
-
return stacks[i + 3];
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
return undefined;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
* Default implementation of insertion factory. Inserts styles only once per renderer and performs
|
|
829
|
-
* insertion immediately after styles computation.
|
|
830
|
-
*
|
|
831
|
-
* @internal
|
|
832
|
-
*/
|
|
833
|
-
const insertionFactory$1 = () => {
|
|
834
|
-
const insertionCache = {};
|
|
835
|
-
return function insertStyles(renderer, cssRules) {
|
|
836
|
-
if (insertionCache[renderer.id] === undefined) {
|
|
837
|
-
renderer.insertCSSRules(cssRules);
|
|
838
|
-
insertionCache[renderer.id] = true;
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
/**
|
|
844
|
-
* A version of makeStyles() that accepts build output as an input and skips all runtime transforms.
|
|
845
|
-
*
|
|
846
|
-
* @internal
|
|
847
|
-
*/
|
|
848
|
-
function __styles$1(classesMapBySlot, cssRules, factory = insertionFactory$1) {
|
|
849
|
-
const insertStyles = factory();
|
|
850
|
-
let ltrClassNamesForSlots = null;
|
|
851
|
-
let rtlClassNamesForSlots = null;
|
|
852
|
-
let sourceURL;
|
|
853
|
-
if (process.env.NODE_ENV !== 'production' && isDevToolsEnabled) {
|
|
854
|
-
sourceURL = getSourceURLfromError();
|
|
855
|
-
}
|
|
856
|
-
function computeClasses(options) {
|
|
857
|
-
const {
|
|
858
|
-
dir,
|
|
859
|
-
renderer
|
|
860
|
-
} = options;
|
|
861
|
-
const isLTR = dir === 'ltr';
|
|
862
|
-
if (isLTR) {
|
|
863
|
-
if (ltrClassNamesForSlots === null) {
|
|
864
|
-
ltrClassNamesForSlots = reduceToClassNameForSlots(classesMapBySlot, dir);
|
|
865
|
-
}
|
|
866
|
-
} else {
|
|
867
|
-
if (rtlClassNamesForSlots === null) {
|
|
868
|
-
rtlClassNamesForSlots = reduceToClassNameForSlots(classesMapBySlot, dir);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
insertStyles(renderer, cssRules);
|
|
872
|
-
const classNamesForSlots = isLTR ? ltrClassNamesForSlots : rtlClassNamesForSlots;
|
|
873
|
-
if (process.env.NODE_ENV !== 'production' && isDevToolsEnabled) {
|
|
874
|
-
debugData.addSequenceDetails(classNamesForSlots, sourceURL);
|
|
875
|
-
}
|
|
876
|
-
return classNamesForSlots;
|
|
877
|
-
}
|
|
878
|
-
return computeClasses;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* Verifies if an application can use DOM.
|
|
883
|
-
*/
|
|
884
|
-
function canUseDOM() {
|
|
885
|
-
return typeof window !== 'undefined' && !!(window.document && window.document.createElement);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
const useInsertionEffect =
|
|
889
|
-
// @ts-expect-error Hack to make sure that `useInsertionEffect` will not cause bundling issues in older React versions
|
|
890
|
-
// eslint-disable-next-line no-useless-concat
|
|
891
|
-
React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : undefined;
|
|
892
|
-
|
|
893
|
-
const insertionFactory = () => {
|
|
894
|
-
const insertionCache = {};
|
|
895
|
-
return function insert(renderer, cssRules) {
|
|
896
|
-
// Even if `useInsertionEffect` is available, we can use it on a client only as it will not be executed in SSR
|
|
897
|
-
if (useInsertionEffect && canUseDOM()) {
|
|
898
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
899
|
-
useInsertionEffect(() => {
|
|
900
|
-
renderer.insertCSSRules(cssRules);
|
|
901
|
-
}, [renderer, cssRules]);
|
|
902
|
-
return;
|
|
903
|
-
}
|
|
904
|
-
if (insertionCache[renderer.id] === undefined) {
|
|
905
|
-
renderer.insertCSSRules(cssRules);
|
|
906
|
-
insertionCache[renderer.id] = true;
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
* @private
|
|
913
|
-
*/
|
|
914
|
-
const RendererContext = /*#__PURE__*/React__namespace.createContext( /*#__PURE__*/createDOMRenderer());
|
|
915
|
-
/**
|
|
916
|
-
* Returns an instance of current makeStyles() renderer.
|
|
917
|
-
*
|
|
918
|
-
* @private Exported as "useRenderer_unstable" use it on own risk. Can be changed or removed without a notice.
|
|
919
|
-
*/
|
|
920
|
-
function useRenderer() {
|
|
921
|
-
return React__namespace.useContext(RendererContext);
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* @private
|
|
926
|
-
*/
|
|
927
|
-
const TextDirectionContext = /*#__PURE__*/React__namespace.createContext('ltr');
|
|
928
|
-
/**
|
|
929
|
-
* Returns current directionality of the element's text.
|
|
930
|
-
*
|
|
931
|
-
* @private
|
|
932
|
-
*/
|
|
933
|
-
function useTextDirection() {
|
|
934
|
-
return React__namespace.useContext(TextDirectionContext);
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* A version of makeStyles() that accepts build output as an input and skips all runtime transforms.
|
|
939
|
-
*
|
|
940
|
-
* @internal
|
|
941
|
-
*/
|
|
942
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
943
|
-
function __styles(classesMapBySlot, cssRules) {
|
|
944
|
-
const getStyles = __styles$1(classesMapBySlot, cssRules, insertionFactory);
|
|
945
|
-
return function useClasses() {
|
|
946
|
-
const dir = useTextDirection();
|
|
947
|
-
const renderer = useRenderer();
|
|
948
|
-
return getStyles({
|
|
949
|
-
dir,
|
|
950
|
-
renderer
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
const useRootStyles = __styles({
|
|
956
|
-
"root": {
|
|
957
|
-
"mc9l5x": "f1w7gpdv",
|
|
958
|
-
"Bg96gwp": "fez10in",
|
|
959
|
-
"ycbfsm": "fg4l7m0"
|
|
960
|
-
},
|
|
961
|
-
"rtl": {
|
|
962
|
-
"Bz10aip": "f13rod7r"
|
|
963
|
-
}
|
|
964
|
-
}, {
|
|
965
|
-
"d": [".f1w7gpdv{display:inline;}", ".fez10in{line-height:0;}", ".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],
|
|
966
|
-
"t": ["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]
|
|
967
|
-
});
|
|
968
|
-
const useIconState = (props, options) => {
|
|
969
|
-
const {
|
|
970
|
-
title,
|
|
971
|
-
primaryFill = "currentColor",
|
|
972
|
-
...rest
|
|
973
|
-
} = props;
|
|
974
|
-
const state = {
|
|
975
|
-
...rest,
|
|
976
|
-
title: undefined,
|
|
977
|
-
fill: primaryFill
|
|
978
|
-
};
|
|
979
|
-
const styles = useRootStyles();
|
|
980
|
-
const iconContext = useIconContext();
|
|
981
|
-
state.className = mergeClasses(styles.root, (options === null || options === void 0 ? void 0 : options.flipInRtl) && (iconContext === null || iconContext === void 0 ? void 0 : iconContext.textDirection) === 'rtl' && styles.rtl, state.className);
|
|
982
|
-
if (title) {
|
|
983
|
-
state['aria-label'] = title;
|
|
984
|
-
}
|
|
985
|
-
if (!state['aria-label'] && !state['aria-labelledby']) {
|
|
986
|
-
state['aria-hidden'] = true;
|
|
987
|
-
} else {
|
|
988
|
-
state['role'] = 'img';
|
|
989
|
-
}
|
|
990
|
-
return state;
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
const createFluentIcon = (displayName, width, paths, options) => {
|
|
994
|
-
const viewBoxWidth = width === "1em" ? "20" : width;
|
|
995
|
-
const Icon = React__namespace.forwardRef((props, ref) => {
|
|
996
|
-
const state = {
|
|
997
|
-
...useIconState(props, {
|
|
998
|
-
flipInRtl: options === null || options === void 0 ? void 0 : options.flipInRtl
|
|
999
|
-
}),
|
|
1000
|
-
ref,
|
|
1001
|
-
width,
|
|
1002
|
-
height: width,
|
|
1003
|
-
viewBox: `0 0 ${viewBoxWidth} ${viewBoxWidth}`,
|
|
1004
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1005
|
-
};
|
|
1006
|
-
return React__namespace.createElement("svg", state, ...paths.map(d => React__namespace.createElement("path", {
|
|
1007
|
-
d,
|
|
1008
|
-
fill: state.fill
|
|
1009
|
-
})));
|
|
1010
|
-
});
|
|
1011
|
-
Icon.displayName = displayName;
|
|
1012
|
-
return Icon;
|
|
1013
|
-
};
|
|
1014
|
-
|
|
1015
|
-
const ArrowNextFilled = /*#__PURE__*/createFluentIcon('ArrowNextFilled', "1em", ["M13.75 4.75c.38 0 .7.28.74.65l.01.1v9a.75.75 0 0 1-1.5.1V5.5c0-.41.34-.75.75-.75Zm-8.28.22a.75.75 0 0 1 .98-.07l.08.07 4.5 4.5c.27.27.3.68.07.98l-.07.08-4.5 4.5a.75.75 0 0 1-1.13-.98l.07-.08L9.44 10 5.47 6.03a.75.75 0 0 1 0-1.06Z"], {
|
|
1016
|
-
flipInRtl: true
|
|
1017
|
-
});
|
|
1018
|
-
const ArrowPreviousFilled = /*#__PURE__*/createFluentIcon('ArrowPreviousFilled', "1em", ["M6 4.75c-.38 0-.7.28-.74.65l-.01.1v9a.75.75 0 0 0 1.5.1V5.5A.75.75 0 0 0 6 4.75Zm8.28.22a.75.75 0 0 0-.98-.07l-.08.07-4.5 4.5a.75.75 0 0 0-.07.98l.07.08 4.5 4.5a.75.75 0 0 0 1.13-.98l-.07-.08L10.31 10l3.97-3.97c.3-.3.3-.77 0-1.06Z"], {
|
|
1019
|
-
flipInRtl: true
|
|
1020
|
-
});
|
|
1021
|
-
const ArrowSortFilled = /*#__PURE__*/createFluentIcon('ArrowSortFilled', "1em", ["M14.84 16.72a.76.76 0 0 1-.59.28.73.73 0 0 1-.53-.22l-3-3a.75.75 0 0 1 1.06-1.07l1.72 1.73V3.75a.75.75 0 0 1 1.5 0v10.68l1.72-1.71a.75.75 0 1 1 1.06 1.06l-2.94 2.94ZM6.34 3.28A.76.76 0 0 0 5.75 3c-.2 0-.38.07-.53.22l-3 3A.75.75 0 0 0 3.28 7.3L5 5.56v10.69a.75.75 0 0 0 1.5 0V5.57l1.72 1.71a.75.75 0 1 0 1.06-1.06L6.34 3.28Z"]);
|
|
1022
|
-
const ArrowStepInLeftRegular = /*#__PURE__*/createFluentIcon('ArrowStepInLeftRegular', "1em", ["M5 10a1 1 0 1 0-2 0 1 1 0 0 0 2 0ZM4 8a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm14 2a.5.5 0 0 1-.5.5H9.7l3.15 3.15a.5.5 0 0 1-.7.7l-4-4a.5.5 0 0 1 0-.7l4-4a.5.5 0 0 1 .7.7L9.71 9.5h7.79c.28 0 .5.22.5.5Z"]);
|
|
1023
|
-
const ArrowStepInRightRegular = /*#__PURE__*/createFluentIcon('ArrowStepInRightRegular', "1em", ["M15 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0Zm1 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM2 10c0-.28.22-.5.5-.5h7.8L7.14 6.35a.5.5 0 1 1 .7-.7l4 4c.2.2.2.5 0 .7l-4 4a.5.5 0 0 1-.7-.7l3.14-3.15H2.5A.5.5 0 0 1 2 10Z"]);
|
|
1024
|
-
|
|
1025
|
-
const ChevronDownFilled = /*#__PURE__*/createFluentIcon('ChevronDownFilled', "1em", ["M15.8 7.73c.28.3.27.78-.03 1.06l-5.25 5a.75.75 0 0 1-1.04 0l-5.25-5a.75.75 0 0 1 1.04-1.08L10 12.2l4.73-4.5a.75.75 0 0 1 1.06.02Z"]);
|
|
1026
|
-
const ChevronDownRegular = /*#__PURE__*/createFluentIcon('ChevronDownRegular', "1em", ["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]);
|
|
1027
|
-
const ChevronRightFilled = /*#__PURE__*/createFluentIcon('ChevronRightFilled', "1em", ["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]);
|
|
1028
|
-
const ChevronRightRegular = /*#__PURE__*/createFluentIcon('ChevronRightRegular', "1em", ["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]);
|
|
1029
|
-
const ColumnEditFilled = /*#__PURE__*/createFluentIcon('ColumnEditFilled', "1em", ["M3 3.5c0-.28.22-.5.5-.5H4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-.5a.5.5 0 0 1 0-1H4a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-.5a.5.5 0 0 1-.5-.5ZM9 3a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h.22l.21-.84a3.2 3.2 0 0 1 .84-1.49L13 11.94V5a2 2 0 0 0-2-2H9Zm6 2v4.94l-1 1V5c0-1.1.9-2 2-2h.5a.5.5 0 0 1 0 1H16a1 1 0 0 0-1 1Zm-4.02 10.38 4.83-4.83a1.87 1.87 0 1 1 2.64 2.64l-4.83 4.83a2.2 2.2 0 0 1-1.02.58l-1.5.37a.89.89 0 0 1-1.07-1.07l.37-1.5c.1-.39.3-.74.58-1.02Z"]);
|
|
1030
|
-
const ColumnEditRegular = /*#__PURE__*/createFluentIcon('ColumnEditRegular', "1em", ["M3 3.5c0-.28.22-.5.5-.5H4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-.5a.5.5 0 0 1 0-1H4a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-.5a.5.5 0 0 1-.5-.5ZM9 4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h.47l-.04.16-.21.84H9a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v6.94l-1 1V5a1 1 0 0 0-1-1H9Zm6 1v4.94l-1 1V5c0-1.1.9-2 2-2h.5a.5.5 0 0 1 0 1H16a1 1 0 0 0-1 1Zm-4.02 10.38 4.83-4.83a1.87 1.87 0 1 1 2.64 2.64l-4.83 4.83a2.2 2.2 0 0 1-1.02.58l-1.5.37a.89.89 0 0 1-1.07-1.07l.37-1.5c.1-.39.3-.74.58-1.02Z"]);
|
|
1031
|
-
const DragFilled = /*#__PURE__*/createFluentIcon('DragFilled', "1em", ["M10 2c.2 0 .39.08.53.22l1.5 1.5a.75.75 0 0 1-1.06 1.06l-.22-.22v1.69a.75.75 0 0 1-1.5 0V4.56l-.22.22a.75.75 0 0 1-1.06-1.06l1.5-1.5A.75.75 0 0 1 10 2Zm2 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-9.78-.53a.75.75 0 0 0 0 1.06l1.5 1.5a.75.75 0 0 0 1.06-1.06l-.22-.22h1.69a.75.75 0 0 0 0-1.5H4.56l.22-.22a.75.75 0 0 0-1.06-1.06l-1.5 1.5ZM10 18c.2 0 .39-.08.53-.22l1.5-1.5a.75.75 0 1 0-1.06-1.06l-.22.22v-1.69a.75.75 0 0 0-1.5 0v1.69l-.22-.22a.75.75 0 0 0-1.06 1.06l1.5 1.5c.14.14.33.22.53.22Zm7.78-8.53a.75.75 0 0 1 0 1.06l-1.5 1.5a.75.75 0 1 1-1.06-1.06l.22-.22h-1.69a.75.75 0 0 1 0-1.5h1.69l-.22-.22a.75.75 0 0 1 1.06-1.06l1.5 1.5Z"]);
|
|
1032
|
-
const DragRegular = /*#__PURE__*/createFluentIcon('DragRegular', "1em", ["M9.65 2.15c.2-.2.5-.2.7 0l2 2a.5.5 0 0 1-.7.7L10.5 3.71V6.5a.5.5 0 0 1-1 0V3.7L8.35 4.86a.5.5 0 1 1-.7-.7l2-2ZM10 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0-1a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5.85 1.35 2-2a.5.5 0 0 0 0-.7l-2-2a.5.5 0 0 0-.7.7l1.14 1.15H13.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7Zm-5.5 5.5 2-2a.5.5 0 0 0-.7-.7l-1.15 1.14V13.5a.5.5 0 0 0-1 0v2.8l-1.15-1.15a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0Zm-8.2-7.5a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7L3.71 9.5H6.5a.5.5 0 0 1 0 1H3.7l1.15 1.15a.5.5 0 0 1-.7.7l-2-2Z"]);
|
|
1033
|
-
const EyeTrackingOffFilled = /*#__PURE__*/createFluentIcon('EyeTrackingOffFilled', "1em", ["M2.41 3.12C2.15 3.52 2 4 2 4.5v3a.5.5 0 0 0 1 0v-3c0-.23.05-.45.15-.65L6.29 7a6.6 6.6 0 0 0-2.23 2.27v.01l.44.23-.45-.22a.5.5 0 0 0 .9.44v-.01a2.39 2.39 0 0 1 .25-.39 5.49 5.49 0 0 1 1.82-1.6l1.3 1.3a3 3 0 1 0 4.16 4.17l3.67 3.66c-.2.1-.42.15-.65.15h-3a.5.5 0 0 0 0 1h3c.5 0 .98-.15 1.38-.41l.27.26a.5.5 0 0 0 .7-.7l-.26-.27-.74-.73-3.93-3.94-3.63-3.63L8.01 7.3l-.78-.78-3.38-3.37-.73-.74-.27-.26a.5.5 0 1 0-.7.7l.26.27Zm15.57 12.73.02-.35v-3a.5.5 0 0 0-1 0v2.38l.98.97Zm-8.81-8.8A7 7 0 0 1 10 7a5.86 5.86 0 0 1 4.8 2.32 4.13 4.13 0 0 1 .24.39l.01.01a.5.5 0 0 0 .9-.44v-.01l-.01-.01a1.7 1.7 0 0 0-.08-.14l-.25-.38A6.85 6.85 0 0 0 10 6c-.63 0-1.2.07-1.7.18l.86.87Zm6.78 2.23-.06.03-.39.19.45-.22ZM5.12 3H7.5a.5.5 0 0 0 0-1h-3c-.12 0-.24 0-.35.02l.97.98ZM3 15.5c0 .83.67 1.5 1.5 1.5h3a.5.5 0 0 1 0 1h-3A2.5 2.5 0 0 1 2 15.5v-3a.5.5 0 0 1 1 0v3Zm14-11c0-.83-.67-1.5-1.5-1.5h-3a.5.5 0 0 1 0-1h3A2.5 2.5 0 0 1 18 4.5v3a.5.5 0 0 1-1 0v-3Z"]);
|
|
1034
|
-
const EyeTrackingOffRegular = /*#__PURE__*/createFluentIcon('EyeTrackingOffRegular', "1em", ["M2.41 3.12C2.15 3.52 2 4 2 4.5v3a.5.5 0 0 0 1 0v-3c0-.23.05-.45.15-.65L6.29 7a6.6 6.6 0 0 0-2.23 2.27v.01l.44.23-.45-.22a.5.5 0 0 0 .9.44v-.01a2.39 2.39 0 0 1 .25-.39 5.49 5.49 0 0 1 1.82-1.6l1.3 1.3a3 3 0 1 0 4.16 4.17l3.67 3.66c-.2.1-.42.15-.65.15h-3a.5.5 0 0 0 0 1h3c.5 0 .98-.15 1.38-.41l.27.26a.5.5 0 0 0 .7-.7l-.26-.27-.74-.73-3.93-3.94-3.63-3.63L8.01 7.3l-.78-.78-3.38-3.37-.73-.74-.27-.26a.5.5 0 1 0-.7.7l.26.27Zm9.34 9.34a2 2 0 1 1-2.71-2.71l2.71 2.71Zm6.23 3.4.02-.36v-3a.5.5 0 0 0-1 0v2.38l.98.97ZM9.17 7.04A7 7 0 0 1 10 7a5.86 5.86 0 0 1 4.8 2.32 4.13 4.13 0 0 1 .24.39l.01.01a.5.5 0 0 0 .9-.44v-.01l-.01-.01a1.7 1.7 0 0 0-.08-.14l-.25-.38A6.85 6.85 0 0 0 10 6c-.63 0-1.2.07-1.7.18l.86.87Zm6.78 2.23-.06.03-.39.19.45-.22ZM5.12 3H7.5a.5.5 0 0 0 0-1h-3c-.12 0-.24 0-.35.02l.97.98ZM4.5 17A1.5 1.5 0 0 1 3 15.5v-3a.5.5 0 0 0-1 0v3A2.5 2.5 0 0 0 4.5 18h3a.5.5 0 0 0 0-1h-3Zm11-14c.83 0 1.5.67 1.5 1.5v3a.5.5 0 0 0 1 0v-3A2.5 2.5 0 0 0 15.5 2h-3a.5.5 0 0 0 0 1h3Z"]);
|
|
1035
|
-
const FilterFilled = /*#__PURE__*/createFluentIcon('FilterFilled', "1em", ["M12.25 13.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h4.5Zm2-4.25a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h8.5Zm2-4.25a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1 0-1.5h12.5Z"]);
|
|
1036
|
-
const FilterRegular = /*#__PURE__*/createFluentIcon('FilterRegular', "1em", ["M7.5 13h5a.5.5 0 0 1 .09 1H7.5a.5.5 0 0 1-.09-1h5.09-5Zm-2-4h9a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h9.09-9Zm-2-4h13a.5.5 0 0 1 .09 1H3.5a.5.5 0 0 1-.09-1H16.5h-13Z"]);
|
|
1037
|
-
const FilterDismissFilled = /*#__PURE__*/createFluentIcon('FilterDismissFilled', "1em", ["M11.73 10.25A5.46 5.46 0 0 0 14 11c0 .41-.34.75-.75.75h-8.5a.75.75 0 0 1 0-1.5h6.98ZM9.03 6c.04.52.16 1.03.34 1.5H2.75a.75.75 0 0 1 0-1.5h6.27ZM12 15.25a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h4.5c.41 0 .75-.34.75-.75ZM14.5 10a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm1.85-6.35c.2.2.2.5 0 .7L15.21 5.5l1.14 1.15a.5.5 0 0 1-.7.7L14.5 6.21l-1.15 1.14a.5.5 0 0 1-.7-.7l1.14-1.15-1.14-1.15a.5.5 0 0 1 .7-.7l1.15 1.14 1.15-1.14c.2-.2.5-.2.7 0Z"]);
|
|
1038
|
-
|
|
1039
|
-
const GroupFilled = /*#__PURE__*/createFluentIcon('GroupFilled', "1em", ["M7 4.5c0 .36-.07.7-.2 1H10c.28 0 .5.22.5.5v2H10a2 2 0 0 0-2 2v.5H6a.5.5 0 0 1-.5-.5V6.8a2.5 2.5 0 0 1-1.5.15V10c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h3.05a2.51 2.51 0 0 1 .16-1.5H10a.5.5 0 0 1-.5-.5v-2h.5a2 2 0 0 0 2-2v-.5h2c.28 0 .5.22.5.5v3.2a2.5 2.5 0 0 1 1.5-.15V10a2 2 0 0 0-2-2h-2V6a2 2 0 0 0-2-2H6.95c.03.16.05.33.05.5Zm3.5 5v.5a.5.5 0 0 1-.5.5h-.5V10c0-.28.22-.5.5-.5h.5ZM6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0-11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]);
|
|
1040
|
-
const GroupRegular = /*#__PURE__*/createFluentIcon('GroupRegular', "1em", ["M7 4.5c0 .17-.02.34-.05.5H10a1 1 0 0 1 1 1v2h-1a2 2 0 0 0-2 2v1H6a1 1 0 0 1-1-1V6.95a2.51 2.51 0 0 1-1 0V10c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h3.05a2.51 2.51 0 0 1 0-1H10a1 1 0 0 1-1-1v-2h1a2 2 0 0 0 2-2V9h2a1 1 0 0 1 1 1v3.05a2.51 2.51 0 0 1 1 0V10a2 2 0 0 0-2-2h-2V6a2 2 0 0 0-2-2H6.95c.03.16.05.33.05.5ZM11 9v1a1 1 0 0 1-1 1H9v-1a1 1 0 0 1 1-1h1ZM6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0-11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]);
|
|
1041
|
-
const GroupDismissFilled = /*#__PURE__*/createFluentIcon('GroupDismissFilled', "1em", ["M7 4.5c0 .36-.07.7-.2 1H10c.28 0 .5.22.5.5v2H10a2 2 0 0 0-2 2v.5H6a.5.5 0 0 1-.5-.5V6.8a2.5 2.5 0 0 1-1.5.15V10c0 1.1.9 2 2 2h2v2a2 2 0 0 0 1.16 1.81 5.51 5.51 0 0 1 .34-3.6V10c0-.28.22-.5.5-.5h2.2a5.48 5.48 0 0 1 3.61-.34A2 2 0 0 0 14 8h-2V6a2 2 0 0 0-2-2H6.95c.03.16.05.33.05.5Zm-1 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm13-1a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.65-1.15a.5.5 0 0 0-.7-.7l-1.15 1.14-1.15-1.14a.5.5 0 0 0-.7.7l1.14 1.15-1.14 1.15a.5.5 0 0 0 .7.7l1.15-1.14 1.15 1.14a.5.5 0 0 0 .7-.7l-1.14-1.15 1.14-1.15Z"]);
|
|
1042
|
-
const GroupListRegular = /*#__PURE__*/createFluentIcon('GroupListRegular', "1em", ["M2.5 3a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1H3V4h1.5a.5.5 0 0 0 0-1h-2Zm0 8a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1H3v-4h1.5a.5.5 0 0 0 0-1h-2ZM6 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm.5 7.5a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11ZM6 7.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm.5 7.5a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11Z"]);
|
|
1043
|
-
const MoreVerticalFilled = /*#__PURE__*/createFluentIcon('MoreVerticalFilled', "1em", ["M10 6.5A1.75 1.75 0 1 1 10 3a1.75 1.75 0 0 1 0 3.5ZM10 17a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5Zm-1.75-7a1.75 1.75 0 1 0 3.5 0 1.75 1.75 0 0 0-3.5 0Z"]);
|
|
1044
|
-
const MoreVerticalRegular = /*#__PURE__*/createFluentIcon('MoreVerticalRegular', "1em", ["M10 6a1.25 1.25 0 1 1 0-2.5A1.25 1.25 0 0 1 10 6Zm0 5.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm-1.25 4a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0Z"]);
|
|
1045
|
-
const NextRegular = /*#__PURE__*/createFluentIcon('NextRegular', "1em", ["M17 3.5a.5.5 0 0 0-1 0v13a.5.5 0 1 0 1 0v-13ZM3 4.25c0-1 1.12-1.6 1.95-1.04l8.5 5.71c.73.5.73 1.57 0 2.07l-8.5 5.8A1.25 1.25 0 0 1 3 15.75V4.25Zm1.39-.2a.25.25 0 0 0-.39.2v11.5c0 .2.23.32.4.2l8.49-5.78a.25.25 0 0 0 0-.42l-8.5-5.7Z"]);
|
|
1046
|
-
|
|
1047
|
-
const PinFilled = /*#__PURE__*/createFluentIcon('PinFilled', "1em", ["M13.33 2.62a2 2 0 0 0-3.2.52L8.38 6.6a1.5 1.5 0 0 1-.78.72L4 8.75a1 1 0 0 0-.33 1.64l2.61 2.6L3 16.3v.7h.7L7 13.72l2.61 2.6a1 1 0 0 0 1.64-.33l1.43-3.59c.14-.34.4-.62.72-.78l3.46-1.73a2 2 0 0 0 .52-3.2l-4.05-4.06Z"]);
|
|
1048
|
-
const PinRegular = /*#__PURE__*/createFluentIcon('PinRegular', "1em", ["M10.12 3.14a2 2 0 0 1 3.2-.52l4.06 4.05a2 2 0 0 1-.52 3.2l-3.46 1.74a1.5 1.5 0 0 0-.72.78L11.25 16a1 1 0 0 1-1.64.33L7 13.7 3.7 17H3v-.7L6.3 13l-2.62-2.61a1 1 0 0 1 .34-1.64L7.6 7.32c.34-.14.62-.4.78-.72l1.73-3.46Zm2.5.18a1 1 0 0 0-1.6.26L9.29 7.04a2.5 2.5 0 0 1-1.31 1.2L4.39 9.69l5.93 5.93 1.43-3.59a2.5 2.5 0 0 1 1.2-1.3l3.46-1.74a1 1 0 0 0 .26-1.6l-4.05-4.06Z"]);
|
|
1049
|
-
const PinOffRegular = /*#__PURE__*/createFluentIcon('PinOffRegular', "1em", ["M2.85 2.15a.5.5 0 1 0-.7.7L6.9 7.6 4.02 8.75a1 1 0 0 0-.34 1.64L6.3 13 3 16.3v.7h.7L7 13.7l2.61 2.62a1 1 0 0 0 1.64-.34l1.15-2.88 4.75 4.75a.5.5 0 0 0 .7-.7l-15-15Zm8.78 10.18-1.31 3.28-5.93-5.93 3.28-1.3 3.96 3.95Zm1.33-1.62-.08.04.74.75 3.24-1.62a2 2 0 0 0 .52-3.2l-4.05-4.06a2 2 0 0 0-3.2.52L8.5 6.38l.75.74.04-.08 1.73-3.45a1 1 0 0 1 1.6-.26l4.05 4.05a1 1 0 0 1-.26 1.6l-3.45 1.73Z"]);
|
|
1050
|
-
const PreviousRegular = /*#__PURE__*/createFluentIcon('PreviousRegular', "1em", ["M3 3.5a.5.5 0 0 1 1 0v13a.5.5 0 0 1-1 0v-13Zm14 .75c0-1-1.12-1.6-1.95-1.04l-8.5 5.71c-.73.5-.73 1.57 0 2.07l8.5 5.8c.83.56 1.95-.03 1.95-1.04V4.25Zm-1.39-.2c.17-.12.39 0 .39.2v11.5c0 .2-.22.32-.4.2l-8.49-5.78a.25.25 0 0 1 0-.42l8.5-5.7Z"]);
|
|
1051
|
-
const SaveFilled = /*#__PURE__*/createFluentIcon('SaveFilled', "1em", ["M3 5c0-1.1.9-2 2-2h1v3.5C6 7.33 6.67 8 7.5 8h4c.83 0 1.5-.67 1.5-1.5V3h.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2v-5.5c0-.83-.67-1.5-1.5-1.5h-7c-.83 0-1.5.67-1.5 1.5V17a2 2 0 0 1-2-2V5Zm9-2H7v3.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V3Zm2 8.5V17H6v-5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5Z"]);
|
|
1052
|
-
const SaveRegular = /*#__PURE__*/createFluentIcon('SaveRegular', "1em", ["M3 5c0-1.1.9-2 2-2h8.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1v-4.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V16a1 1 0 0 0 1-1V6.62a1 1 0 0 0-.3-.7L14.1 4.28a1 1 0 0 0-.71-.29H13v2.5c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 6 6.5V4H5Zm2 0v2.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V4H7Zm7 12v-4.5a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V16h8Z"]);
|
|
1053
|
-
const SearchFilled = /*#__PURE__*/createFluentIcon('SearchFilled', "1em", ["M8.5 3a5.5 5.5 0 0 1 4.38 8.82l4.15 4.15a.75.75 0 0 1-.98 1.13l-.08-.07-4.15-4.15A5.5 5.5 0 1 1 8.5 3Zm0 1.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]);
|
|
1054
|
-
const SearchRegular = /*#__PURE__*/createFluentIcon('SearchRegular', "1em", ["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]);
|
|
1055
|
-
const StarRegular = /*#__PURE__*/createFluentIcon('StarRegular', "1em", ["M9.1 2.9a1 1 0 0 1 1.8 0l1.93 3.91 4.31.63a1 1 0 0 1 .56 1.7l-3.12 3.05.73 4.3a1 1 0 0 1-1.45 1.05L10 15.51l-3.86 2.03a1 1 0 0 1-1.45-1.05l.74-4.3L2.3 9.14a1 1 0 0 1 .56-1.7l4.31-.63L9.1 2.9Zm.9.44L8.07 7.25a1 1 0 0 1-.75.55L3 8.43l3.12 3.04a1 1 0 0 1 .3.89l-.75 4.3 3.87-2.03a1 1 0 0 1 .93 0l3.86 2.03-.74-4.3a1 1 0 0 1 .29-.89L17 8.43l-4.32-.63a1 1 0 0 1-.75-.55L10 3.35Z"]);
|
|
1056
|
-
|
|
1057
|
-
const SwipeDownFilled = /*#__PURE__*/createFluentIcon('SwipeDownFilled', "1em", ["M14 6a4 4 0 0 1-2.25 3.6V8.44a3 3 0 1 0-3.5 0V9.6A4 4 0 1 1 14 6ZM9.47 17.78c.3.3.77.3 1.06 0l2.5-2.5a.75.75 0 1 0-1.06-1.06l-1.22 1.22V5.75a.75.75 0 0 0-1.5 0v9.69l-1.22-1.22a.75.75 0 0 0-1.06 1.06l2.5 2.5Z"]);
|
|
1058
|
-
const SwipeUpFilled = /*#__PURE__*/createFluentIcon('SwipeUpFilled', "1em", ["M10.53 2.22a.75.75 0 0 0-1.06 0l-2.5 2.5a.75.75 0 0 0 1.06 1.06l1.22-1.22v9.69a.75.75 0 0 0 1.5 0V4.56l1.22 1.22a.75.75 0 1 0 1.06-1.06l-2.5-2.5ZM6 14a4 4 0 0 1 2.25-3.6v1.16a3 3 0 1 0 3.5 0V10.4A4 4 0 1 1 6 14Z"]);
|
|
1059
|
-
const TableSimpleCheckmarkFilled = /*#__PURE__*/createFluentIcon('TableSimpleCheckmarkFilled', "1em", ["M14 17h-3.5v-6.5H17V14a3 3 0 0 1-3 3Zm3-7.5h-6.5V3H14a3 3 0 0 1 3 3v3.5Zm-7.5 0V3H6a3 3 0 0 0-3 3v3.5h6.5Zm0 7.5v-6.5H3V14a3 3 0 0 0 3 3h3.5Zm5.85-3.9a.5.5 0 0 0-.7-.7l-1.4 1.4-.4-.4a.5.5 0 0 0-.7.7l.75.75c.2.2.5.2.7 0l1.75-1.75Z"]);
|
|
1060
|
-
const TableSimpleCheckmarkRegular = /*#__PURE__*/createFluentIcon('TableSimpleCheckmarkRegular', "1em", ["M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM4 6c0-1.1.9-2 2-2h3.5v5.5H4V6Zm6.5 3.5V4H14a2 2 0 0 1 2 2v3.5h-5.5Zm-6.5 1h5.5V16H6a2 2 0 0 1-2-2v-3.5Zm10.86 1.4c.2.2.2.5 0 .7l-1.75 1.75a.5.5 0 0 1-.71 0l-.75-.75a.5.5 0 0 1 .7-.7l.4.4 1.4-1.4c.2-.2.51-.2.7 0Z"]);
|
|
1061
|
-
const TextClearFormattingFilled = /*#__PURE__*/createFluentIcon('TextClearFormattingFilled', "1em", ["M6 2c.2 0 .4.13.47.32l3.5 8.95a.5.5 0 0 1-.94.37L8.01 9H4l-1.04 2.68a.5.5 0 1 1-.94-.36l3.5-9A.5.5 0 0 1 6 2Zm0 1.88L4.4 8H7.6l-1.6-4.12ZM11.5 2c.28 0 .5.22.5.5v3.52a2.48 2.48 0 0 1 2.26-1.3c.89 0 1.6.34 2.15 1 .55.66.82 1.54.82 2.64l-.01.42-.05-.05a2.49 2.49 0 0 0-1.15-.65 2.86 2.86 0 0 0-.53-1.62c-.36-.47-.86-.7-1.48-.7-.6 0-1.09.24-1.47.72-.3.37-.47.83-.54 1.37v1.03c.05.43.18.8.37 1.12L11 11.37V2.5c0-.28.22-.5.5-.5Zm4.97 7.44 2.1 2.1a1.5 1.5 0 0 1-.01 2.12l-3.6 3.6-4.21-4.22 3.6-3.6a1.5 1.5 0 0 1 2.12 0Zm-2.22 8.52-4.21-4.21-.6.6a1.5 1.5 0 0 0 0 2.12l2.1 2.1c.3.3.71.45 1.12.43h4.09a.5.5 0 1 0 0-1h-2.53l.03-.04Z"]);
|
|
1062
|
-
const TextCollapseFilled = /*#__PURE__*/createFluentIcon('TextCollapseFilled', "1em", ["M5 3.5c0-.41.34-.75.75-.75h11.5a.75.75 0 0 1 0 1.5H5.75A.75.75 0 0 1 5 3.5Zm0 12c0-.41.34-.75.75-.75h11.5a.75.75 0 0 1 0 1.5H5.75A.75.75 0 0 1 5 15.5Zm6.75-8.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5ZM11 11.5c0-.41.34-.75.75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75Zm-2-2a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Zm-6 0c0 .28.22.5.5.5h4a.5.5 0 0 0 0-1h-4a.5.5 0 0 0-.5.5Z"]);
|
|
1063
|
-
const TextCollapseRegular = /*#__PURE__*/createFluentIcon('TextCollapseRegular', "1em", ["M5 3.5c0-.28.22-.5.5-.5h12a.5.5 0 0 1 0 1h-12a.5.5 0 0 1-.5-.5Zm0 12c0-.28.22-.5.5-.5h12a.5.5 0 0 1 0 1h-12a.5.5 0 0 1-.5-.5Zm6-8c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm-2-2a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM3.5 9a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Z"]);
|
|
1064
|
-
const TextExpandFilled = /*#__PURE__*/createFluentIcon('TextExpandFilled', "1em", ["M4.75 3.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5H4.75ZM4 16.25c0-.41.34-.75.75-.75h12.5a.75.75 0 0 1 0 1.5H4.75a.75.75 0 0 1-.75-.75Zm7-4c0-.41.34-.75.75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75Zm0-4c0-.41.34-.75.75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75ZM5.5 14a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM6 8.5V10h1.5a.5.5 0 0 1 0 1H6v1.5a.5.5 0 0 1-1 0V11H3.5a.5.5 0 0 1 0-1H5V8.5a.5.5 0 0 1 1 0Z"]);
|
|
1065
|
-
const TextExpandRegular = /*#__PURE__*/createFluentIcon('TextExpandRegular', "1em", ["M4 4.5c0-.28.22-.5.5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5Zm0 12c0-.28.22-.5.5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5Zm6-4c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Zm0-4c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5ZM5.5 14a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7ZM6 8.5a.5.5 0 0 0-1 0V10H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V11h1.5a.5.5 0 0 0 0-1H6V8.5Z"]);
|
|
1066
|
-
const TextSortAscendingFilled = /*#__PURE__*/createFluentIcon('TextSortAscendingFilled', "1em", ["M6.7 2.5a.75.75 0 0 0-1.4 0L3.03 9a.75.75 0 0 0 1.42.5l.34-1h2.4l.34 1A.75.75 0 0 0 8.96 9L6.7 2.5ZM6 5.04 6.68 7H5.32L6 5.04ZM4 11a.75.75 0 0 0 0 1.5h2.53l-3.14 4.3A.75.75 0 0 0 4 18h4a.75.75 0 0 0 0-1.5H5.47l3.14-4.3A.75.75 0 0 0 8 11H4Zm10.25-9c.41 0 .75.34.75.75v12.57l1.45-1.58a.75.75 0 0 1 1.1 1.02l-2.75 3a.75.75 0 0 1-1.1 0l-2.75-3a.75.75 0 0 1 1.1-1.02l1.45 1.58V2.75c0-.41.34-.75.75-.75Z"]);
|
|
1067
|
-
const TextSortDescendingFilled = /*#__PURE__*/createFluentIcon('TextSortDescendingFilled', "1em", ["M4 2a.75.75 0 1 0 0 1.5h2.53L3.39 7.8A.75.75 0 0 0 4 9h4a.75.75 0 0 0 0-1.5H5.47l3.14-4.3A.75.75 0 0 0 8 2H4Zm2.7 8.5a.75.75 0 0 0-1.4 0L3.03 17a.75.75 0 1 0 1.42.5l.34-1h2.4l.34 1a.75.75 0 1 0 1.42-.5L6.7 10.5ZM6 13.04 6.68 15H5.32L6 13.04ZM14.25 2c.41 0 .75.34.75.75v12.57l1.45-1.58a.75.75 0 0 1 1.1 1.02l-2.75 3a.75.75 0 0 1-1.1 0l-2.75-3a.75.75 0 0 1 1.1-1.02l1.45 1.58V2.75c0-.41.34-.75.75-.75Z"]);
|
|
1068
|
-
|
|
1069
|
-
const Album24Regular = /*#__PURE__*/createFluentIcon('Album24Regular', "24", ["M10 9c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V9Zm2-.5a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V9a.5.5 0 0 0-.5-.5h-4ZM4 4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4Zm16 1.5c.28 0 .5.22.5.5v12a.5.5 0 0 1-.5.5H7.5v-13H20Zm-16 0h2v13H4a.5.5 0 0 1-.5-.5V6c0-.28.22-.5.5-.5Z"], {
|
|
1070
|
-
flipInRtl: true
|
|
1071
|
-
});
|
|
1072
|
-
|
|
1073
|
-
const ArrowSortDown20Filled = /*#__PURE__*/createFluentIcon('ArrowSortDown20Filled', "20", ["M9.75 17c.23 0 .45-.1.59-.28l2.94-2.94a.75.75 0 0 0-1.06-1.06l-1.72 1.71V3.75a.75.75 0 0 0-1.5 0v10.7L7.28 12.7a.75.75 0 1 0-1.06 1.06l3 3.01c.15.15.34.22.53.22Z"]);
|
|
1074
|
-
const ArrowSortDown20Regular = /*#__PURE__*/createFluentIcon('ArrowSortDown20Regular', "20", ["m10 15.29 2.65-2.64a.5.5 0 0 1 .7.7L9.9 16.82a.5.5 0 0 1-.74.03h-.01l-3.5-3.5a.5.5 0 1 1 .71-.7L9 15.29V3.5a.5.5 0 0 1 1 0v11.79Z"]);
|
|
1075
|
-
const ArrowSortUp20Filled = /*#__PURE__*/createFluentIcon('ArrowSortUp20Filled', "20", ["M9.75 3c.23 0 .45.1.59.28l2.94 2.94a.75.75 0 0 1-1.06 1.06L10.5 5.57v10.68a.75.75 0 0 1-1.5 0V5.55L7.28 7.3a.75.75 0 1 1-1.06-1.06l3-3.01A.73.73 0 0 1 9.75 3Z"]);
|
|
1076
|
-
const ArrowSortUp20Regular = /*#__PURE__*/createFluentIcon('ArrowSortUp20Regular', "20", ["M9 4.71 6.35 7.35a.5.5 0 1 1-.7-.7L9.1 3.18a.5.5 0 0 1 .74-.03h.01l3.5 3.5a.5.5 0 1 1-.71.7L10 4.71V16.5a.5.5 0 0 1-1 0V4.71Z"]);
|
|
1077
|
-
|
|
1078
|
-
const CodeTextOff16Filled = /*#__PURE__*/createFluentIcon('CodeTextOff16Filled', "16", ["M13.25 7h-3a.75.75 0 0 1 0-1.5h3a.75.75 0 0 1 0 1.5Zm-3.5-3h4.5a.75.75 0 0 0 0-1.5h-4.5a.75.75 0 0 0 0 1.5Zm-1 7.5h-7a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5Zm-2-7.5a.75.75 0 0 0 0-1.5H4.62L6.12 4h.63Zm8.1 10.15-13-13a.5.5 0 0 0-.7.7l.64.65h-.04a.75.75 0 0 0 0 1.5h1.54l1.5 1.5h-.04a.75.75 0 0 0 0 1.5h1.54l1.5 1.5H3.75a.75.75 0 0 0 0 1.5h5.54l4.86 4.85a.5.5 0 0 0 .7 0 .5.5 0 0 0 0-.7Z"]);
|
|
1079
|
-
const CodeTextOff16Regular = /*#__PURE__*/createFluentIcon('CodeTextOff16Regular', "16", ["m6.12 4-1-1H7a.5.5 0 0 1 0 1h-.88ZM9.5 4h5a.5.5 0 0 0 0-1h-5a.5.5 0 0 0 0 1Zm.5 2a.5.5 0 0 0 0 1h3.5a.5.5 0 0 0 0-1H10Zm-1 6H1.5a.5.5 0 0 0 0 1H9a.5.5 0 0 0 0-1Zm5.85 2.15-13-13a.5.5 0 0 0-.7.7L2.29 3H1.5a.5.5 0 0 0 0 1h1.8l2 2h-.8a.5.5 0 0 0 0 1h1.8l2 2H3.5a.5.5 0 0 0 0 1h5.8l4.85 4.85a.5.5 0 0 0 .7 0 .5.5 0 0 0 0-.7Z"]);
|
|
1080
|
-
|
|
1081
|
-
const Dismiss24Regular = /*#__PURE__*/createFluentIcon('Dismiss24Regular', "24", ["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]);
|
|
1082
|
-
const DocumentSearch24Regular = /*#__PURE__*/createFluentIcon('DocumentSearch24Regular', "24", ["M4 4c0-1.1.9-2 2-2h6.17a2 2 0 0 1 1.42.59L19.4 8.4A2 2 0 0 1 20 9.83V20a2 2 0 0 1-2 2h-4.02c-.05-.36-.21-.7-.5-.99l-.5-.51H18a.5.5 0 0 0 .5-.5V10H14a2 2 0 0 1-2-2V3.5H6a.5.5 0 0 0-.5.5v7.1c-.53.09-1.03.26-1.5.5V4Zm10 4.5h3.38L13.5 4.62V8c0 .28.22.5.5.5ZM6.5 21c.97 0 1.87-.3 2.6-.83l2.62 2.61a.75.75 0 1 0 1.06-1.06l-2.61-2.61A4.5 4.5 0 1 0 6.5 21Zm0-1.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z"]);
|
|
1083
|
-
|
|
1084
|
-
const Save20Filled = /*#__PURE__*/createFluentIcon('Save20Filled', "20", ["M3 5c0-1.1.9-2 2-2h1v3.5C6 7.33 6.67 8 7.5 8h4c.83 0 1.5-.67 1.5-1.5V3h.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2v-5.5c0-.83-.67-1.5-1.5-1.5h-7c-.83 0-1.5.67-1.5 1.5V17a2 2 0 0 1-2-2V5Zm9-2H7v3.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V3Zm2 8.5V17H6v-5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5Z"]);
|
|
1085
|
-
const Search24Regular = /*#__PURE__*/createFluentIcon('Search24Regular', "24", ["M4.5 10a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0ZM10 3a7 7 0 1 0 4.4 12.45l5.32 5.33a.75.75 0 1 0 1.06-1.06l-5.33-5.33A7 7 0 0 0 10 3Z"]);
|
|
1086
|
-
|
|
1087
|
-
const ViewDesktop20Filled = /*#__PURE__*/createFluentIcon('ViewDesktop20Filled', "20", ["M1.96 4.5c0-.83.67-1.5 1.5-1.5H16.4c.83 0 1.5.67 1.5 1.5v8c0 .83-.67 1.5-1.5 1.5H12v2.01h1.5a.5.5 0 0 1 0 1h-7a.5.5 0 1 1 0-1H8V14H3.46a1.5 1.5 0 0 1-1.5-1.5v-8ZM9 14v2.01h2V14H9ZM4 5.5v6c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5Zm3 0v6c0 .28.22.5.5.5h8a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5Z"]);
|
|
1088
|
-
const ViewDesktop20Regular = /*#__PURE__*/createFluentIcon('ViewDesktop20Regular', "20", ["M4 5.5c0-.28.22-.5.5-.5h1c.27 0 .5.22.5.5v6a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-6ZM7.5 5a.5.5 0 0 0-.5.5v6c0 .28.22.5.5.5h8a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-8Zm-5.54-.5c0-.83.67-1.5 1.5-1.5H16.4c.83 0 1.5.67 1.5 1.5v8c0 .83-.67 1.5-1.5 1.5H12v2.01h1.5a.5.5 0 0 1 0 1h-7a.5.5 0 1 1 0-1H8V14H3.46a1.5 1.5 0 0 1-1.5-1.5v-8ZM9 14v2.01h2V14H9ZM3.46 4a.5.5 0 0 0-.5.5v8c0 .28.23.5.5.5H16.4a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5H3.46Z"]);
|
|
1089
|
-
|
|
1090
|
-
const iconFilledClassName = "fui-Icon-filled";
|
|
1091
|
-
const iconRegularClassName = "fui-Icon-regular";
|
|
1092
|
-
|
|
1093
|
-
const useBundledIconStyles = __styles({
|
|
1094
|
-
"root": {
|
|
1095
|
-
"mc9l5x": "fjseox"
|
|
1096
|
-
},
|
|
1097
|
-
"visible": {
|
|
1098
|
-
"mc9l5x": "f1w7gpdv"
|
|
1099
|
-
}
|
|
1100
|
-
}, {
|
|
1101
|
-
"d": [".fjseox{display:none;}", ".f1w7gpdv{display:inline;}"]
|
|
1102
|
-
});
|
|
1103
|
-
const bundleIcon = (FilledIcon, RegularIcon) => {
|
|
1104
|
-
const Component = props => {
|
|
1105
|
-
const {
|
|
1106
|
-
className,
|
|
1107
|
-
filled,
|
|
1108
|
-
...rest
|
|
1109
|
-
} = props;
|
|
1110
|
-
const styles = useBundledIconStyles();
|
|
1111
|
-
return React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(FilledIcon, Object.assign({}, rest, {
|
|
1112
|
-
className: mergeClasses(styles.root, filled && styles.visible, iconFilledClassName, className)
|
|
1113
|
-
})), React__namespace.createElement(RegularIcon, Object.assign({}, rest, {
|
|
1114
|
-
className: mergeClasses(styles.root, !filled && styles.visible, iconRegularClassName, className)
|
|
1115
|
-
})));
|
|
1116
|
-
};
|
|
1117
|
-
Component.displayName = "CompoundIcon";
|
|
1118
|
-
return Component;
|
|
1119
|
-
};
|
|
1120
|
-
var bundleIcon$1 = bundleIcon;
|
|
1121
|
-
|
|
1122
122
|
const range = (from, to, step = 1) => {
|
|
1123
123
|
var _a;
|
|
1124
124
|
return (_a = [...Array(Math.floor((to - from) / step) + 1)]) === null || _a === void 0 ? void 0 : _a.map((_, i) => from + i * step);
|
|
@@ -1154,19 +154,19 @@ const Pagination = (props) => {
|
|
|
1154
154
|
if (page >= 0 && page < table.getPageCount()) {
|
|
1155
155
|
table.setPageIndex(page);
|
|
1156
156
|
}
|
|
1157
|
-
}, className: styles.pageSizeInput, "aria-label": "Page Number", autoComplete: "off", autoCorrect: "off" })] })] }), jsxRuntime.jsx(reactComponents.Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.setPageIndex(0), disabled: !table.getCanPreviousPage(), icon: jsxRuntime.jsx(PreviousRegular, {}), "aria-label": "Go to first page" }), jsxRuntime.jsx(reactComponents.Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.previousPage(), disabled: !table.getCanPreviousPage(), icon: jsxRuntime.jsx(ArrowPreviousFilled, {}), "aria-label": "Go to previous page" }), jsxRuntime.jsx(reactControlFlow.For, { each: pageSelectionOptions, children: (option, index) => (jsxRuntime.jsx(reactComponents.Button, { shape: "circular", appearance: option - 1 === currentPage ? "primary" : undefined, onClick: () => table.setPageIndex(option - 1), "aria-label": `Show Page ${option}`, size: "small", className: styles.pageBtn, children: option }, index)) }), jsxRuntime.jsx(reactComponents.Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.nextPage(), disabled: !table.getCanNextPage(), icon: jsxRuntime.jsx(ArrowNextFilled, {}), "aria-label": "Go to next page" }), jsxRuntime.jsx(reactComponents.Button, { size: "small", shape: "circular", className: styles.pageBtn, onClick: () => table.setPageIndex(table.getPageCount() - 1), disabled: !table.getCanNextPage(), icon: jsxRuntime.jsx(NextRegular, {}), "aria-label": "Go to last page" })] })] }) }));
|
|
157
|
+
}, className: styles.pageSizeInput, "aria-label": "Page Number", autoComplete: "off", autoCorrect: "off" })] })] }), jsxRuntime.jsx(reactComponents.Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.setPageIndex(0), disabled: !table.getCanPreviousPage(), icon: jsxRuntime.jsx(reactIcons.PreviousRegular, {}), "aria-label": "Go to first page" }), jsxRuntime.jsx(reactComponents.Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.previousPage(), disabled: !table.getCanPreviousPage(), icon: jsxRuntime.jsx(reactIcons.ArrowPreviousFilled, {}), "aria-label": "Go to previous page" }), jsxRuntime.jsx(reactControlFlow.For, { each: pageSelectionOptions, children: (option, index) => (jsxRuntime.jsx(reactComponents.Button, { shape: "circular", appearance: option - 1 === currentPage ? "primary" : undefined, onClick: () => table.setPageIndex(option - 1), "aria-label": `Show Page ${option}`, size: "small", className: styles.pageBtn, children: option }, index)) }), jsxRuntime.jsx(reactComponents.Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.nextPage(), disabled: !table.getCanNextPage(), icon: jsxRuntime.jsx(reactIcons.ArrowNextFilled, {}), "aria-label": "Go to next page" }), jsxRuntime.jsx(reactComponents.Button, { size: "small", shape: "circular", className: styles.pageBtn, onClick: () => table.setPageIndex(table.getPageCount() - 1), disabled: !table.getCanNextPage(), icon: jsxRuntime.jsx(reactIcons.NextRegular, {}), "aria-label": "Go to last page" })] })] }) }));
|
|
1158
158
|
};
|
|
1159
159
|
|
|
1160
|
-
bundleIcon
|
|
1161
|
-
bundleIcon
|
|
1162
|
-
bundleIcon
|
|
1163
|
-
bundleIcon
|
|
1164
|
-
const ClearFilterIcon = bundleIcon
|
|
1165
|
-
const ToggleSelectColumnIcon = bundleIcon
|
|
1166
|
-
const ToggleGroupColumnIcon = bundleIcon
|
|
1167
|
-
const GroupCollapsedIcon = bundleIcon
|
|
1168
|
-
const GroupExpandedIcon = bundleIcon
|
|
1169
|
-
bundleIcon
|
|
160
|
+
reactIcons.bundleIcon(reactIcons.SaveFilled, reactIcons.SaveRegular);
|
|
161
|
+
reactIcons.bundleIcon(reactIcons.TableSimpleCheckmarkFilled, reactIcons.TableSimpleCheckmarkRegular);
|
|
162
|
+
reactIcons.bundleIcon(reactIcons.SearchFilled, reactIcons.SearchRegular);
|
|
163
|
+
reactIcons.bundleIcon(reactIcons.FilterFilled, reactIcons.FilterRegular);
|
|
164
|
+
const ClearFilterIcon = reactIcons.bundleIcon(reactIcons.CodeTextOff16Filled, reactIcons.CodeTextOff16Regular);
|
|
165
|
+
const ToggleSelectColumnIcon = reactIcons.bundleIcon(reactIcons.ColumnEditFilled, reactIcons.ColumnEditRegular);
|
|
166
|
+
const ToggleGroupColumnIcon = reactIcons.bundleIcon(reactIcons.GroupFilled, reactIcons.GroupRegular);
|
|
167
|
+
const GroupCollapsedIcon = reactIcons.bundleIcon(reactIcons.ChevronRightFilled, reactIcons.ChevronRightRegular);
|
|
168
|
+
const GroupExpandedIcon = reactIcons.bundleIcon(reactIcons.ChevronDownRegular, reactIcons.ChevronDownFilled);
|
|
169
|
+
reactIcons.bundleIcon(reactIcons.DragFilled, reactIcons.DragRegular);
|
|
1170
170
|
|
|
1171
171
|
const useGridHeaderStyles = reactComponents.makeStyles({
|
|
1172
172
|
tableTopHeaderContainer: Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "flex-end", width: "100%", backgroundColor: reactComponents.tokens.colorBrandBackground2Hover }, reactComponents.shorthands.padding("5px")),
|
|
@@ -1206,7 +206,7 @@ const GridHeader = (props) => {
|
|
|
1206
206
|
return (jsxRuntime.jsx(reactComponents.Checkbox, { checked: column.getIsVisible(), onChange: column.getToggleVisibilityHandler(), label: column.id, disabled: !column.getCanHide() }, column.id));
|
|
1207
207
|
})] }) })] }), jsxRuntime.jsx(reactComponents.Tooltip, { content: 'Table Views Management', relationship: "label", children: jsxRuntime.jsx(reactComponents.Button, { onClick: () => {
|
|
1208
208
|
dispatchDrawerAction === null || dispatchDrawerAction === void 0 ? void 0 : dispatchDrawerAction({ type: "TOGGLE_VIEW_DRAWER" });
|
|
1209
|
-
}, icon: jsxRuntime.jsx(Album24Regular, {}), "aria-label": "View Menu" }) }), jsxRuntime.jsx(DebouncedInput, { value: globalFilter !== null && globalFilter !== void 0 ? globalFilter : '', onChange: (value) => setGlobalFilter(String(value)), className: "p-2 font-lg shadow border border-block", placeholder: "Search all columns...", dispatch: dispatchDrawerAction, drawerState: drawerState })] }))] }));
|
|
209
|
+
}, icon: jsxRuntime.jsx(reactIcons.Album24Regular, {}), "aria-label": "View Menu" }) }), jsxRuntime.jsx(DebouncedInput, { value: globalFilter !== null && globalFilter !== void 0 ? globalFilter : '', onChange: (value) => setGlobalFilter(String(value)), className: "p-2 font-lg shadow border border-block", placeholder: "Search all columns...", dispatch: dispatchDrawerAction, drawerState: drawerState })] }))] }));
|
|
1210
210
|
};
|
|
1211
211
|
// A debounced input react component
|
|
1212
212
|
function DebouncedInput({ value: initialValue, onChange, debounce = 500, drawerState, dispatch, }) {
|
|
@@ -1220,7 +220,7 @@ function DebouncedInput({ value: initialValue, onChange, debounce = 500, drawerS
|
|
|
1220
220
|
}, debounce);
|
|
1221
221
|
return () => clearTimeout(timeout);
|
|
1222
222
|
}, [value, onChange, debounce]);
|
|
1223
|
-
return (jsxRuntime.jsx(reactComponents.Input, { placeholder: "Search Keyword", value: value, onChange: (_, data) => setValue(data.value), type: "search", autoComplete: "off", contentBefore: jsxRuntime.jsx(Search24Regular, {}), style: { width: '300px' }, contentAfter: jsxRuntime.jsx(reactComponents.Tooltip, { content: (drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen) ? 'Close Filter Window' : 'Open Advance Filter', relationship: "label", children: jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", icon: (drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen) ? jsxRuntime.jsx(FilterDismissFilled, {}) : jsxRuntime.jsx(FilterFilled, {}), "aria-label": "View Menu", onClick: () => {
|
|
223
|
+
return (jsxRuntime.jsx(reactComponents.Input, { placeholder: "Search Keyword", value: value, onChange: (_, data) => setValue(data.value), type: "search", autoComplete: "off", contentBefore: jsxRuntime.jsx(reactIcons.Search24Regular, {}), style: { width: '300px' }, contentAfter: jsxRuntime.jsx(reactComponents.Tooltip, { content: (drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen) ? 'Close Filter Window' : 'Open Advance Filter', relationship: "label", children: jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", icon: (drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen) ? jsxRuntime.jsx(reactIcons.FilterDismissFilled, {}) : jsxRuntime.jsx(reactIcons.FilterFilled, {}), "aria-label": "View Menu", onClick: () => {
|
|
1224
224
|
dispatch === null || dispatch === void 0 ? void 0 : dispatch({ type: "TOGGLE_FILTER_DRAWER" });
|
|
1225
225
|
} }) }) }));
|
|
1226
226
|
}
|
|
@@ -1606,13 +606,13 @@ const getRowPinningStyles = (row, bottomRowLength, headerGroupLength, additional
|
|
|
1606
606
|
return styles;
|
|
1607
607
|
};
|
|
1608
608
|
|
|
1609
|
-
const MoreIcon = bundleIcon
|
|
1610
|
-
const SortAscIcon = bundleIcon
|
|
1611
|
-
const SortDescIcon = bundleIcon
|
|
1612
|
-
const PinIcon = bundleIcon
|
|
1613
|
-
const HideColumnIcon = bundleIcon
|
|
1614
|
-
const GroupExpandIcon = bundleIcon
|
|
1615
|
-
const GroupCollapseIcon = bundleIcon
|
|
609
|
+
const MoreIcon = reactIcons.bundleIcon(reactIcons.MoreVerticalFilled, reactIcons.MoreVerticalRegular);
|
|
610
|
+
const SortAscIcon = reactIcons.bundleIcon(reactIcons.ArrowSortDown20Filled, reactIcons.ArrowSortDown20Regular);
|
|
611
|
+
const SortDescIcon = reactIcons.bundleIcon(reactIcons.ArrowSortUp20Filled, reactIcons.ArrowSortUp20Regular);
|
|
612
|
+
const PinIcon = reactIcons.bundleIcon(reactIcons.PinFilled, reactIcons.PinRegular);
|
|
613
|
+
const HideColumnIcon = reactIcons.bundleIcon(reactIcons.EyeTrackingOffFilled, reactIcons.EyeTrackingOffRegular);
|
|
614
|
+
const GroupExpandIcon = reactIcons.bundleIcon(reactIcons.TextExpandFilled, reactIcons.TextExpandRegular);
|
|
615
|
+
const GroupCollapseIcon = reactIcons.bundleIcon(reactIcons.TextCollapseFilled, reactIcons.TextCollapseRegular);
|
|
1616
616
|
function HeaderCell({ header, table, tabAttributes }) {
|
|
1617
617
|
var _a;
|
|
1618
618
|
const { column, id } = header;
|
|
@@ -1651,7 +651,7 @@ function HeaderCell({ header, table, tabAttributes }) {
|
|
|
1651
651
|
}, appearance: "transparent", className: styles.tHeadContentBtn, icon: (_a = {
|
|
1652
652
|
asc: (jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(SortAscIcon, {}) })),
|
|
1653
653
|
desc: (jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(SortDescIcon, {}) })),
|
|
1654
|
-
}[header.column.getIsSorted()]) !== null && _a !== void 0 ? _a : undefined, iconPosition: "after", children: [jsxRuntime.jsx("strong", { children: columnName }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getIsGrouped(), children: jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(GroupListRegular, {}) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getIsFiltered(), children: jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(FilterFilled, {}) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getIsPinned(), children: jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(PinRegular, {}) }) })] }) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: !!isLeafHeaders, children: jsxRuntime.jsx(HeaderMenu, { header: header, table: table }) })] }) })), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanResize(), children: jsxRuntime.jsx("div", { onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), className: reactComponents.mergeClasses(styles.resizer, column.getIsResizing() && styles.resizerActive) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: !isLeafHeaders, children: jsxRuntime.jsx("div", { className: styles.tHeadNonLeafCellFakeBorder }) })] })));
|
|
654
|
+
}[header.column.getIsSorted()]) !== null && _a !== void 0 ? _a : undefined, iconPosition: "after", children: [jsxRuntime.jsx("strong", { children: columnName }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getIsGrouped(), children: jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(reactIcons.GroupListRegular, {}) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getIsFiltered(), children: jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(reactIcons.FilterFilled, {}) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getIsPinned(), children: jsxRuntime.jsx("strong", { children: jsxRuntime.jsx(reactIcons.PinRegular, {}) }) })] }) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: !!isLeafHeaders, children: jsxRuntime.jsx(HeaderMenu, { header: header, table: table }) })] }) })), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanResize(), children: jsxRuntime.jsx("div", { onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), className: reactComponents.mergeClasses(styles.resizer, column.getIsResizing() && styles.resizerActive) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: !isLeafHeaders, children: jsxRuntime.jsx("div", { className: styles.tHeadNonLeafCellFakeBorder }) })] })));
|
|
1655
655
|
}
|
|
1656
656
|
function HeaderMenu(props) {
|
|
1657
657
|
const { header, table } = props;
|
|
@@ -1665,36 +665,36 @@ function HeaderMenu(props) {
|
|
|
1665
665
|
return (jsxRuntime.jsxs(reactComponents.Menu, { positioning: { align: "end" }, children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsx(reactComponents.Tooltip, { relationship: "label", content: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: ["More actions for ", columnName] }), children: jsxRuntime.jsx(reactComponents.MenuButton, { appearance: "subtle", "aria-label": "View Column Actions", icon: jsxRuntime.jsx(MoreIcon, {}) }) }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { className: styles.tHeadMenuPopover, children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanSort(), children: jsxRuntime.jsxs(reactComponents.MenuGroup, { children: [jsxRuntime.jsx(reactComponents.MenuItem, { onClick: (e) => {
|
|
1666
666
|
var _a;
|
|
1667
667
|
(_a = header.column) === null || _a === void 0 ? void 0 : _a.clearSorting();
|
|
1668
|
-
}, icon: jsxRuntime.jsx(ArrowSortFilled, {}), disabled: !header.column.getIsSorted(), children: "Clear Sorting" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: (e) => {
|
|
668
|
+
}, icon: jsxRuntime.jsx(reactIcons.ArrowSortFilled, {}), disabled: !header.column.getIsSorted(), children: "Clear Sorting" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: (e) => {
|
|
1669
669
|
var _a;
|
|
1670
670
|
const isControlKeySelected = e.ctrlKey;
|
|
1671
671
|
(_a = header.column) === null || _a === void 0 ? void 0 : _a.toggleSorting(false, isControlKeySelected);
|
|
1672
|
-
}, icon: jsxRuntime.jsx(TextSortAscendingFilled, {}), disabled: header.column.getIsSorted() === 'asc', children: "Sort A to Z" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: (e) => {
|
|
672
|
+
}, icon: jsxRuntime.jsx(reactIcons.TextSortAscendingFilled, {}), disabled: header.column.getIsSorted() === 'asc', children: "Sort A to Z" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: (e) => {
|
|
1673
673
|
var _a;
|
|
1674
674
|
const isControlKeySelected = e.ctrlKey;
|
|
1675
675
|
(_a = header.column) === null || _a === void 0 ? void 0 : _a.toggleSorting(true, isControlKeySelected);
|
|
1676
|
-
}, icon: jsxRuntime.jsx(TextSortDescendingFilled, {}), disabled: header.column.getIsSorted() === 'desc', children: "Sort Z to A" }), jsxRuntime.jsx(reactComponents.MenuDivider, {})] }, 'sort-group') }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanGroup(), children: jsxRuntime.jsxs(reactComponents.MenuGroup, { children: [!header.column.getIsGrouped() && (jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: () => {
|
|
676
|
+
}, icon: jsxRuntime.jsx(reactIcons.TextSortDescendingFilled, {}), disabled: header.column.getIsSorted() === 'desc', children: "Sort Z to A" }), jsxRuntime.jsx(reactComponents.MenuDivider, {})] }, 'sort-group') }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanGroup(), children: jsxRuntime.jsxs(reactComponents.MenuGroup, { children: [!header.column.getIsGrouped() && (jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: () => {
|
|
1677
677
|
header.column.getToggleGroupingHandler()();
|
|
1678
678
|
const { isAutoExpandOnGroup } = table.options.meta;
|
|
1679
679
|
if (isAutoExpandOnGroup) {
|
|
1680
680
|
table.toggleAllRowsExpanded(true);
|
|
1681
681
|
}
|
|
1682
|
-
}, icon: jsxRuntime.jsx(GroupFilled, {}), children: ["Group Column (by ", columnName, ")"] })), jsxRuntime.jsxs(reactControlFlow.Show, { when: header.column.getIsGrouped(), children: [jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: () => {
|
|
682
|
+
}, icon: jsxRuntime.jsx(reactIcons.GroupFilled, {}), children: ["Group Column (by ", columnName, ")"] })), jsxRuntime.jsxs(reactControlFlow.Show, { when: header.column.getIsGrouped(), children: [jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: () => {
|
|
1683
683
|
header.column.getToggleGroupingHandler()();
|
|
1684
|
-
}, icon: jsxRuntime.jsx(GroupDismissFilled, {}), children: ["Remove Grouping (on ", columnName, ")"] }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => table.toggleAllRowsExpanded(), icon: table.getIsAllRowsExpanded() ? jsxRuntime.jsx(GroupCollapseIcon, {}) : jsxRuntime.jsx(GroupExpandIcon, {}), children: jsxRuntime.jsx(reactControlFlow.Show, { when: table.getIsAllRowsExpanded(), fallback: jsxRuntime.jsx(jsxRuntime.Fragment, { children: "Expand All Groups" }), children: "Collapse All Groups" }) })] }), jsxRuntime.jsx(reactComponents.MenuDivider, {})] }, 'grouping-group') }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanPin(), children: jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsxs(reactComponents.MenuItem, { icon: jsxRuntime.jsx(PinIcon, {}), children: ["Pin Column (", columnName, ")"] }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
684
|
+
}, icon: jsxRuntime.jsx(reactIcons.GroupDismissFilled, {}), children: ["Remove Grouping (on ", columnName, ")"] }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => table.toggleAllRowsExpanded(), icon: table.getIsAllRowsExpanded() ? jsxRuntime.jsx(GroupCollapseIcon, {}) : jsxRuntime.jsx(GroupExpandIcon, {}), children: jsxRuntime.jsx(reactControlFlow.Show, { when: table.getIsAllRowsExpanded(), fallback: jsxRuntime.jsx(jsxRuntime.Fragment, { children: "Expand All Groups" }), children: "Collapse All Groups" }) })] }), jsxRuntime.jsx(reactComponents.MenuDivider, {})] }, 'grouping-group') }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanPin(), children: jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsxs(reactComponents.MenuItem, { icon: jsxRuntime.jsx(PinIcon, {}), children: ["Pin Column (", columnName, ")"] }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
1685
685
|
var _a;
|
|
1686
686
|
(_a = header.column) === null || _a === void 0 ? void 0 : _a.pin(false);
|
|
1687
|
-
}, icon: jsxRuntime.jsx(PinOffRegular, {}), disabled: !(['left', 'right'].includes(header.column.getIsPinned())), children: "No Pin" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
687
|
+
}, icon: jsxRuntime.jsx(reactIcons.PinOffRegular, {}), disabled: !(['left', 'right'].includes(header.column.getIsPinned())), children: "No Pin" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
1688
688
|
var _a;
|
|
1689
689
|
(_a = header.column) === null || _a === void 0 ? void 0 : _a.pin('left');
|
|
1690
|
-
}, icon: jsxRuntime.jsx(ArrowStepInLeftRegular, {}), disabled: header.column.getIsPinned() === 'left', children: "Pin Left" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
690
|
+
}, icon: jsxRuntime.jsx(reactIcons.ArrowStepInLeftRegular, {}), disabled: header.column.getIsPinned() === 'left', children: "Pin Left" }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
1691
691
|
var _a;
|
|
1692
692
|
(_a = header.column) === null || _a === void 0 ? void 0 : _a.pin('right');
|
|
1693
|
-
}, icon: jsxRuntime.jsx(ArrowStepInRightRegular, {}), disabled: header.column.getIsPinned() === 'right', children: "Pin Right" })] }) })] }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanHide(), children: jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuList, { children: jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: header.column.getToggleVisibilityHandler(), disabled: !header.column.getCanHide(), icon: jsxRuntime.jsx(HideColumnIcon, {}), children: ["Hide Column (", columnName, ")"] }) }), jsxRuntime.jsx(reactComponents.MenuDivider, {})] }) }), jsxRuntime.jsxs(reactControlFlow.Show, { when: header.column.getCanFilter(), children: [jsxRuntime.jsx(reactComponents.MenuDivider, {}), jsxRuntime.jsx(reactComponents.MenuGroup, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(ClearFilterIcon, {}), children: "Clear Filters" }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: () => {
|
|
693
|
+
}, icon: jsxRuntime.jsx(reactIcons.ArrowStepInRightRegular, {}), disabled: header.column.getIsPinned() === 'right', children: "Pin Right" })] }) })] }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: header.column.getCanHide(), children: jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuList, { children: jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: header.column.getToggleVisibilityHandler(), disabled: !header.column.getCanHide(), icon: jsxRuntime.jsx(HideColumnIcon, {}), children: ["Hide Column (", columnName, ")"] }) }), jsxRuntime.jsx(reactComponents.MenuDivider, {})] }) }), jsxRuntime.jsxs(reactControlFlow.Show, { when: header.column.getCanFilter(), children: [jsxRuntime.jsx(reactComponents.MenuDivider, {}), jsxRuntime.jsx(reactComponents.MenuGroup, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(ClearFilterIcon, {}), children: "Clear Filters" }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsxs(reactComponents.MenuItem, { onClick: () => {
|
|
1694
694
|
header.column.setFilterValue(undefined);
|
|
1695
|
-
}, icon: jsxRuntime.jsx(TextClearFormattingFilled, {}), disabled: !header.column.getIsFiltered(), children: ["Clear for ", columnName] }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
695
|
+
}, icon: jsxRuntime.jsx(reactIcons.TextClearFormattingFilled, {}), disabled: !header.column.getIsFiltered(), children: ["Clear for ", columnName] }), jsxRuntime.jsx(reactComponents.MenuItem, { onClick: () => {
|
|
1696
696
|
table.resetColumnFilters();
|
|
1697
|
-
}, icon: jsxRuntime.jsx(ClearFilterIcon, {}), children: "Clear for All Columns" })] }) })] }), jsxRuntime.jsx(reactComponents.MenuItem, { icon: (drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen) ? jsxRuntime.jsx(FilterDismissFilled, {}) : jsxRuntime.jsx(FilterFilled, {}), onClick: () => {
|
|
697
|
+
}, icon: jsxRuntime.jsx(ClearFilterIcon, {}), children: "Clear for All Columns" })] }) })] }), jsxRuntime.jsx(reactComponents.MenuItem, { icon: (drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen) ? jsxRuntime.jsx(reactIcons.FilterDismissFilled, {}) : jsxRuntime.jsx(reactIcons.FilterFilled, {}), onClick: () => {
|
|
1698
698
|
if (drawerState.isFilterDrawerOpen) {
|
|
1699
699
|
dispatchDrawerAction === null || dispatchDrawerAction === void 0 ? void 0 : dispatchDrawerAction({ type: "CLOSE_FILTER_DRAWER" });
|
|
1700
700
|
}
|
|
@@ -1781,7 +781,7 @@ const useNoFilterMatchStyles = reactComponents.makeStyles({
|
|
|
1781
781
|
|
|
1782
782
|
const NoSearchResult = ({ message }) => {
|
|
1783
783
|
const styles = useNoFilterMatchStyles();
|
|
1784
|
-
return (jsxRuntime.jsxs("div", { className: styles.wrapper, children: [jsxRuntime.jsx("div", { className: styles.iconWrapper, children: jsxRuntime.jsx(DocumentSearch24Regular, {}) }), jsxRuntime.jsx("div", { children: message ? message : jsxRuntime.jsx(reactComponents.Subtitle2Stronger, { children: "No item found that matches your search term." }) })] }));
|
|
784
|
+
return (jsxRuntime.jsxs("div", { className: styles.wrapper, children: [jsxRuntime.jsx("div", { className: styles.iconWrapper, children: jsxRuntime.jsx(reactIcons.DocumentSearch24Regular, {}) }), jsxRuntime.jsx("div", { children: message ? message : jsxRuntime.jsx(reactComponents.Subtitle2Stronger, { children: "No item found that matches your search term." }) })] }));
|
|
1785
785
|
};
|
|
1786
786
|
|
|
1787
787
|
const useTableBodyStyles = reactComponents.makeStyles({
|
|
@@ -1849,7 +849,7 @@ function TableCell({ cell, row }) {
|
|
|
1849
849
|
|
|
1850
850
|
const PinRowAction = ({ row }) => {
|
|
1851
851
|
const isPinned = row.getIsPinned();
|
|
1852
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactControlFlow.Show, { when: isPinned, children: jsxRuntime.jsx(reactComponents.Button, { size: "small", shape: "circular", onClick: () => row.pin(false, true, false), icon: jsxRuntime.jsx(PinOffRegular, {}) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: !isPinned, children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsx(reactComponents.Button, { icon: jsxRuntime.jsx(StarRegular, {}), shape: "circular", size: "small" }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(SwipeUpFilled, {}), onClick: () => row.pin('top', true, false), children: "Top" }), jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(SwipeDownFilled, {}), onClick: () => row.pin('bottom', true, true), children: "Bottom" })] }) })] }) }) })] }));
|
|
852
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactControlFlow.Show, { when: isPinned, children: jsxRuntime.jsx(reactComponents.Button, { size: "small", shape: "circular", onClick: () => row.pin(false, true, false), icon: jsxRuntime.jsx(reactIcons.PinOffRegular, {}) }) }), jsxRuntime.jsx(reactControlFlow.Show, { when: !isPinned, children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(reactComponents.Menu, { children: [jsxRuntime.jsx(reactComponents.MenuTrigger, { disableButtonEnhancement: true, children: jsxRuntime.jsx(reactComponents.Button, { icon: jsxRuntime.jsx(reactIcons.StarRegular, {}), shape: "circular", size: "small" }) }), jsxRuntime.jsx(reactComponents.MenuPopover, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(reactIcons.SwipeUpFilled, {}), onClick: () => row.pin('top', true, false), children: "Top" }), jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(reactIcons.SwipeDownFilled, {}), onClick: () => row.pin('bottom', true, true), children: "Bottom" })] }) })] }) }) })] }));
|
|
1853
853
|
};
|
|
1854
854
|
|
|
1855
855
|
const SelectRowCheckbox = ({ row }) => {
|
|
@@ -2293,7 +1293,7 @@ const FilterDrawer = ({ table }) => {
|
|
|
2293
1293
|
}, [table]);
|
|
2294
1294
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2295
1295
|
const { dispatchDrawerAction, drawerState } = table.options.meta;
|
|
2296
|
-
return (jsxRuntime.jsxs(reactComponents.InlineDrawer, { position: "end", open: drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen, separator: true, children: [jsxRuntime.jsx(reactComponents.DrawerHeader, { children: jsxRuntime.jsx(reactComponents.DrawerHeaderTitle, { action: jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", "aria-label": "Close", icon: jsxRuntime.jsx(Dismiss24Regular, {}), onClick: () => dispatchDrawerAction === null || dispatchDrawerAction === void 0 ? void 0 : dispatchDrawerAction({ type: "CLOSE_FILTER_DRAWER" }) }), children: "Column Filters" }) }), jsxRuntime.jsx(reactComponents.DrawerBody, { className: styles.drawerBody, children: jsxRuntime.jsx(reactComponents.Accordion, { multiple: true, collapsible: true, children: headerGroups.map((headerGroup) => {
|
|
1296
|
+
return (jsxRuntime.jsxs(reactComponents.InlineDrawer, { position: "end", open: drawerState === null || drawerState === void 0 ? void 0 : drawerState.isFilterDrawerOpen, separator: true, children: [jsxRuntime.jsx(reactComponents.DrawerHeader, { children: jsxRuntime.jsx(reactComponents.DrawerHeaderTitle, { action: jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", "aria-label": "Close", icon: jsxRuntime.jsx(reactIcons.Dismiss24Regular, {}), onClick: () => dispatchDrawerAction === null || dispatchDrawerAction === void 0 ? void 0 : dispatchDrawerAction({ type: "CLOSE_FILTER_DRAWER" }) }), children: "Column Filters" }) }), jsxRuntime.jsx(reactComponents.DrawerBody, { className: styles.drawerBody, children: jsxRuntime.jsx(reactComponents.Accordion, { multiple: true, collapsible: true, children: headerGroups.map((headerGroup) => {
|
|
2297
1297
|
const canApplyFilter = headerGroup.depth === (headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.length) - 1;
|
|
2298
1298
|
if (!canApplyFilter)
|
|
2299
1299
|
return null;
|
|
@@ -2312,7 +1312,7 @@ const ViewSaveForm = (props) => {
|
|
|
2312
1312
|
const inputRef = React__namespace.useRef(null);
|
|
2313
1313
|
const checkboxRef = React__namespace.useRef(null);
|
|
2314
1314
|
if (!isFormOpen) {
|
|
2315
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactComponents.MenuList, { children: jsxRuntime.jsx(reactComponents.MenuItemRadio, { name: 'view-manager', value: 'View Manager', onClick: () => setIsFormOpen(true), icon: jsxRuntime.jsx(Save20Filled, {}), children: "Save Current View" }) }), jsxRuntime.jsx(reactComponents.Divider, {})] }));
|
|
1315
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactComponents.MenuList, { children: jsxRuntime.jsx(reactComponents.MenuItemRadio, { name: 'view-manager', value: 'View Manager', onClick: () => setIsFormOpen(true), icon: jsxRuntime.jsx(reactIcons.Save20Filled, {}), children: "Save Current View" }) }), jsxRuntime.jsx(reactComponents.Divider, {})] }));
|
|
2316
1316
|
}
|
|
2317
1317
|
return (jsxRuntime.jsxs("div", { style: {
|
|
2318
1318
|
boxSizing: 'border-box',
|
|
@@ -2374,13 +1374,13 @@ const ViewsDrawer = (props) => {
|
|
|
2374
1374
|
setCheckedValues((s) => (Object.assign(Object.assign({}, s), { [name]: checkedItems })));
|
|
2375
1375
|
};
|
|
2376
1376
|
const styles = useFilterDrawerStyles();
|
|
2377
|
-
return (jsxRuntime.jsxs(reactComponents.InlineDrawer, { position: "end", open: drawerState.isViewsDrawerOpen, separator: true, children: [jsxRuntime.jsx(reactComponents.DrawerHeader, { children: jsxRuntime.jsx(reactComponents.DrawerHeaderTitle, { action: jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", "aria-label": "Close", icon: jsxRuntime.jsx(Dismiss24Regular, {}), onClick: () => dispatchDrawerAction === null || dispatchDrawerAction === void 0 ? void 0 : dispatchDrawerAction({ type: "CLOSE_VIEW_DRAWER" }) }), children: "Table Views" }) }), jsxRuntime.jsxs(reactComponents.DrawerBody, { className: styles.drawerBody, children: [onTableViewSave && jsxRuntime.jsx(ViewSaveForm, { mode: 'create', getTableState: table.getState, onSave: onTableViewSave }), jsxRuntime.jsxs(reactComponents.MenuList, { checkedValues: checkedValues, onCheckedValueChange: onChange, children: [jsxRuntime.jsx(reactComponents.MenuItemRadio, { name: 'table-views', value: 'Default View', icon: jsxRuntime.jsx(ViewDesktop20Filled, {}), onClick: resetToGridDefaultView, children: "Default View" }), tableViews.length > 0 && jsxRuntime.jsx(reactComponents.MenuDivider, { children: "Additional Views" }), tableViews.map((view) => {
|
|
1377
|
+
return (jsxRuntime.jsxs(reactComponents.InlineDrawer, { position: "end", open: drawerState.isViewsDrawerOpen, separator: true, children: [jsxRuntime.jsx(reactComponents.DrawerHeader, { children: jsxRuntime.jsx(reactComponents.DrawerHeaderTitle, { action: jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", "aria-label": "Close", icon: jsxRuntime.jsx(reactIcons.Dismiss24Regular, {}), onClick: () => dispatchDrawerAction === null || dispatchDrawerAction === void 0 ? void 0 : dispatchDrawerAction({ type: "CLOSE_VIEW_DRAWER" }) }), children: "Table Views" }) }), jsxRuntime.jsxs(reactComponents.DrawerBody, { className: styles.drawerBody, children: [onTableViewSave && jsxRuntime.jsx(ViewSaveForm, { mode: 'create', getTableState: table.getState, onSave: onTableViewSave }), jsxRuntime.jsxs(reactComponents.MenuList, { checkedValues: checkedValues, onCheckedValueChange: onChange, children: [jsxRuntime.jsx(reactComponents.MenuItemRadio, { name: 'table-views', value: 'Default View', icon: jsxRuntime.jsx(reactIcons.ViewDesktop20Filled, {}), onClick: resetToGridDefaultView, children: "Default View" }), tableViews.length > 0 && jsxRuntime.jsx(reactComponents.MenuDivider, { children: "Additional Views" }), tableViews.map((view) => {
|
|
2378
1378
|
return (jsxRuntime.jsxs("div", { style: {
|
|
2379
1379
|
display: 'flex',
|
|
2380
1380
|
justifyContent: 'space-between',
|
|
2381
1381
|
alignItems: 'center',
|
|
2382
1382
|
width: '100%',
|
|
2383
|
-
}, children: [jsxRuntime.jsx(reactComponents.MenuItemRadio, { name: "table-views", value: view.viewName, onClick: () => applyTableState(view.tableState), icon: jsxRuntime.jsx(ViewDesktop20Regular, {}), children: view.viewName }), onTableViewDelete && (view === null || view === void 0 ? void 0 : view.isViewOwner) && (jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", "aria-label": "Close", icon: jsxRuntime.jsx(Dismiss24Regular, {}), onClick: () => onTableViewDelete === null || onTableViewDelete === void 0 ? void 0 : onTableViewDelete(view) }))] }, view.id + view.viewName));
|
|
1383
|
+
}, children: [jsxRuntime.jsx(reactComponents.MenuItemRadio, { name: "table-views", value: view.viewName, onClick: () => applyTableState(view.tableState), icon: jsxRuntime.jsx(reactIcons.ViewDesktop20Regular, {}), children: view.viewName }), onTableViewDelete && (view === null || view === void 0 ? void 0 : view.isViewOwner) && (jsxRuntime.jsx(reactComponents.Button, { appearance: "subtle", "aria-label": "Close", icon: jsxRuntime.jsx(reactIcons.Dismiss24Regular, {}), onClick: () => onTableViewDelete === null || onTableViewDelete === void 0 ? void 0 : onTableViewDelete(view) }))] }, view.id + view.viewName));
|
|
2384
1384
|
})] })] }), jsxRuntime.jsx(reactComponents.DrawerFooter, { children: jsxRuntime.jsxs(reactComponents.MenuList, { children: [jsxRuntime.jsx(reactComponents.MenuDivider, {}), jsxRuntime.jsx(reactComponents.MenuItem, { icon: jsxRuntime.jsx(ClearFilterIcon, {}), onClick: resetToGridDefaultView, children: "Reset to Default View" })] }) })] }));
|
|
2385
1385
|
};
|
|
2386
1386
|
|