@qnc/qnc_data_tables 1.0.6-a → 1.0.8-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/state_machine.js +12 -1
- package/dist/state_machine.ts +17 -1
- package/dist/table_options.d.ts +1 -2
- package/dist/table_options.js +1 -3
- package/dist/table_options.ts +1 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/intermediate/qnc_data_tables_inline_css.d.ts +2 -0
- package/intermediate/qnc_data_tables_inline_css.js +8 -0
- package/package.json +3 -1
package/dist/state_machine.js
CHANGED
|
@@ -311,6 +311,17 @@ function make_bound_stored_values(options) {
|
|
|
311
311
|
page_number: new BoundStoredValue(navigation_storage, key_prefix + "_page", NUMBER_CONVERTER, 1),
|
|
312
312
|
page_size: new BoundStoredValue(layout_storage, key_prefix + "_page_size", NUMBER_CONVERTER, options.page_size),
|
|
313
313
|
selected_pks: new BoundStoredStringSet(selection_storage, key_prefix + "_selected"),
|
|
314
|
-
sort_key: new BoundStoredValue(sort_storage, key_prefix + "_sort", STRING_CONVERTER, column_sorting.encode_sort(options.default_sort)),
|
|
314
|
+
sort_key: new BoundStoredValue(sort_storage, key_prefix + "_sort", STRING_CONVERTER, column_sorting.encode_sort(options.default_sort || first_available_sorting_option(options))),
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
+
function first_available_sorting_option(options) {
|
|
318
|
+
for (const sf of options.extra_sort_functions) {
|
|
319
|
+
return { type: "function", function_key: sf.key };
|
|
320
|
+
}
|
|
321
|
+
for (const c of options.columns) {
|
|
322
|
+
if (c.sortable) {
|
|
323
|
+
return { type: "column", column_key: c.key, direction: "forward" };
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return null;
|
|
327
|
+
}
|
package/dist/state_machine.ts
CHANGED
|
@@ -428,7 +428,23 @@ function make_bound_stored_values(options: TableOptions) {
|
|
|
428
428
|
sort_storage,
|
|
429
429
|
key_prefix + "_sort",
|
|
430
430
|
STRING_CONVERTER,
|
|
431
|
-
column_sorting.encode_sort(
|
|
431
|
+
column_sorting.encode_sort(
|
|
432
|
+
options.default_sort || first_available_sorting_option(options),
|
|
433
|
+
),
|
|
432
434
|
),
|
|
433
435
|
};
|
|
434
436
|
}
|
|
437
|
+
|
|
438
|
+
function first_available_sorting_option(
|
|
439
|
+
options: TableOptions,
|
|
440
|
+
): SortState | null {
|
|
441
|
+
for (const sf of options.extra_sort_functions) {
|
|
442
|
+
return { type: "function", function_key: sf.key };
|
|
443
|
+
}
|
|
444
|
+
for (const c of options.columns) {
|
|
445
|
+
if (c.sortable) {
|
|
446
|
+
return { type: "column", column_key: c.key, direction: "forward" };
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return null;
|
|
450
|
+
}
|
package/dist/table_options.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ declare const TableOptionsStruct: ss.Struct<{
|
|
|
64
64
|
page_limit: number;
|
|
65
65
|
table_limit: number;
|
|
66
66
|
fill_last_page: boolean;
|
|
67
|
-
default_sort_key: string;
|
|
68
67
|
layout_storage: "localStorage" | "sessionStorage" | null;
|
|
69
68
|
navigation_storage: "localStorage" | "sessionStorage" | null;
|
|
70
69
|
selection_storage: "localStorage" | "sessionStorage" | null;
|
|
@@ -124,7 +123,6 @@ declare const TableOptionsStruct: ss.Struct<{
|
|
|
124
123
|
page_limit: ss.Struct<number, null>;
|
|
125
124
|
table_limit: ss.Struct<number, null>;
|
|
126
125
|
fill_last_page: ss.Struct<boolean, null>;
|
|
127
|
-
default_sort_key: ss.Struct<string, null>;
|
|
128
126
|
/** Where table layout preferences (columns, column widths) are stored */
|
|
129
127
|
layout_storage: ss.Struct<"localStorage" | "sessionStorage" | null, null>;
|
|
130
128
|
/** where page number is stored */
|
|
@@ -150,6 +148,7 @@ declare const TableOptionsStruct: ss.Struct<{
|
|
|
150
148
|
/** help text, in case `display` is not self-explanatory */
|
|
151
149
|
help_text: ss.Struct<string, null>;
|
|
152
150
|
}>>;
|
|
151
|
+
/** If null, front-end will arbitrarily choose one of the available sorting options */
|
|
153
152
|
default_sort: ss.Struct<{
|
|
154
153
|
type: "column";
|
|
155
154
|
column_key: string;
|
package/dist/table_options.js
CHANGED
|
@@ -77,9 +77,6 @@ const TableOptionsStruct = ss.object({
|
|
|
77
77
|
// If last page of data has fewer rows than page_size and this is set, we'll add empty rows
|
|
78
78
|
// keeps layout/height more consistent, regardless of data
|
|
79
79
|
fill_last_page: ss.defaulted(ss.boolean(), true),
|
|
80
|
-
// Initial sort key to pass to backend, if user has not chosen something else
|
|
81
|
-
// Empty string means "use first enabled sortable column"
|
|
82
|
-
default_sort_key: ss.defaulted(ss.string(), ""),
|
|
83
80
|
/** Where table layout preferences (columns, column widths) are stored */
|
|
84
81
|
layout_storage: ss.defaulted(OptionalStorageStruct, "localStorage"),
|
|
85
82
|
/** where page number is stored */
|
|
@@ -90,6 +87,7 @@ const TableOptionsStruct = ss.object({
|
|
|
90
87
|
sort_storage: ss.defaulted(OptionalStorageStruct, "localStorage"),
|
|
91
88
|
/** when non-empty, will cause a "sort widget" to be displayed in the paginator */
|
|
92
89
|
extra_sort_functions: ss.defaulted(ss.array(ExtraSortFunctionStruct), []),
|
|
90
|
+
/** If null, front-end will arbitrarily choose one of the available sorting options */
|
|
93
91
|
default_sort: ss.defaulted(ss.union([SortStateStruct, ss.literal(null)]), null),
|
|
94
92
|
});
|
|
95
93
|
export function read_options_from_json_string(json) {
|
package/dist/table_options.ts
CHANGED
|
@@ -100,10 +100,6 @@ const TableOptionsStruct = ss.object({
|
|
|
100
100
|
// keeps layout/height more consistent, regardless of data
|
|
101
101
|
fill_last_page: ss.defaulted(ss.boolean(), true),
|
|
102
102
|
|
|
103
|
-
// Initial sort key to pass to backend, if user has not chosen something else
|
|
104
|
-
// Empty string means "use first enabled sortable column"
|
|
105
|
-
default_sort_key: ss.defaulted(ss.string(), ""),
|
|
106
|
-
|
|
107
103
|
/** Where table layout preferences (columns, column widths) are stored */
|
|
108
104
|
layout_storage: ss.defaulted(OptionalStorageStruct, "localStorage"),
|
|
109
105
|
|
|
@@ -119,6 +115,7 @@ const TableOptionsStruct = ss.object({
|
|
|
119
115
|
/** when non-empty, will cause a "sort widget" to be displayed in the paginator */
|
|
120
116
|
extra_sort_functions: ss.defaulted(ss.array(ExtraSortFunctionStruct), []),
|
|
121
117
|
|
|
118
|
+
/** If null, front-end will arbitrarily choose one of the available sorting options */
|
|
122
119
|
default_sort: ss.defaulted(
|
|
123
120
|
ss.union([SortStateStruct, ss.literal(null)]),
|
|
124
121
|
null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es6.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@qnc/type_utils/build/index.d.ts","../src/bound_stored_value.ts","../node_modules/superstruct/dist/error.d.ts","../node_modules/superstruct/dist/utils.d.ts","../node_modules/superstruct/dist/struct.d.ts","../node_modules/superstruct/dist/structs/coercions.d.ts","../node_modules/superstruct/dist/structs/refinements.d.ts","../node_modules/superstruct/dist/structs/types.d.ts","../node_modules/superstruct/dist/structs/utilities.d.ts","../node_modules/superstruct/dist/index.d.ts","../src/table_options.ts","../src/column_manager.ts","../src/column_resizing.ts","../src/watched_mutable_value.ts","../src/state_types.ts","../src/column_sorting.ts","../src/conditionally_wrapped_element.ts","../src/event_names.ts","../src/state_machine.ts","../node_modules/@types/mithril/index.d.ts","../src/renderer.ts","../node_modules/@qnc/drag_sorter/dist/npm/drag_sorter.d.ts","../src/mithril_view.ts","../src/create_mithril_app.ts","../intermediate/qnc_data_tables_inline_css.d.ts","../src/create_style.ts","../src/table_manager.ts","../src/custom_element.ts","../src/selection_fieldset_controller.ts","../src/index.ts","../src/optional_storage.ts","../src/overflow_class_manager.ts"],"fileIdsList":[[21,23,24,25,26,27],[21,22],[23],[22,23],[21,23],[19],[19,28,29],[19,33],[37,38,39,41],[43],[29,33,35,37,38,39,42,45],[29,39,44,46,47],[29,30,31,32,33,38,39,40],[38],[45,46],[19,20,29,30,32,33,34,36],[29,30,32],[36,37],[19,28]],"fileInfos":[{"version":"df039a67536fe2acc3affdcbfb645892f842db36fe599e8e652e2f0c640a90d1","impliedFormat":1},{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c3ac004344cd885a3e9900c9c791da896c6c19c2fea8812a3196694b18624058","impliedFormat":99},{"version":"b9655fec9e804d1a5c0c982f078c2727c1df6ade35c415f7134d04257d39b792","signature":"f50456435236fdfb4bdb108b048c001ad3f963ec72593f90f6a50c62dfa3d953","impliedFormat":99},{"version":"56e933722bc0b995aa96a7d023497871ce07d1500d9dae9e95875b3208b23169","impliedFormat":99},{"version":"ce84cd04b7ff2a0935c34d426d049a4738dc1d32300f713e8f674b2fea83520b","impliedFormat":99},{"version":"1431e40edac4e9251b18760a8b7e294a3be538d15ec1bac6e90ea84efbd75434","impliedFormat":99},{"version":"6cc836c7185e9763e11d373e166b1f6f523b3b2de800af03cc8db68583ce6c03","impliedFormat":99},{"version":"ce4399c8e23cd32b5e9c245b57bf86bcf07773ff0fce06435520afd9e36ce511","impliedFormat":99},{"version":"b11eab7b532862de69b97b30ff6f4ea177573f017dc9177fe463e20fa8e8f3af","impliedFormat":99},{"version":"e9340584b4b5ee347c65b1f6db1b83c6e77a68db39b078780abdc076711eb815","impliedFormat":99},{"version":"70d9e74d5210f57d00925ce312dd29c7ae3ef49b8d0a7f896fb28ed1578b17c3","impliedFormat":99},{"version":"f260b75cccb7aeb744c918383f0802439edd489456eaf19cb881596edd6a28df","signature":"3a1376592753ac25aa0e5be921f708c10c92dda0038d4c532898dcdde80669ea","impliedFormat":99},{"version":"fb269872ac1ad5670145cf17c5dc6e6a260a45851bad0a25626a0b99ee343178","signature":"c39f3f0217ba6ffb4f99d5bba8035d0a7053008349fbc40ddee4c7cf0aa4a305","impliedFormat":99},{"version":"3f282694019489510ad94603a83fef03d0c4f3eb87b0e9acea0bd10bf0e5fbad","signature":"08430a86a223b1c96c83759fce45b89c3f4eb3fad5789ac3b16abd84f676d801","impliedFormat":99},{"version":"0fa88d7f497c6be699c7f0c1a5df29d3c831b6224d142cb13c706bece49a7964","signature":"49c05a47e0d95561844f886a410b4f9b37e938b208caa410a4a953ef94231be3","impliedFormat":99},{"version":"cc97bcbb9491923679fcaddd7ea4693fb51240205d36687ee03e6d4349065383","signature":"317d9fe91e003b8bd007841a22a18ccd3638ff472ee11c62fa658a23b6e69949","impliedFormat":99},{"version":"37b3a75065dd4328ab07a74e437c9bf9db9596e8a4b95d5b97118d699eca8a36","signature":"19da0d94fde1c3d8b2d184b20c1dcc27773c9e36f8448733f958f57f7bd0ccef","impliedFormat":99},{"version":"9b73eafa6c6ce2e98429a7a875c1efe2f53f10e2980671b8f4759d97cd112992","signature":"1ef769db3b1a03d9d69e9b6c7ade7a713b44d8e7d7beaf43a0b0f376a3433d04","impliedFormat":99},{"version":"cdb540d13c6ff674fb817cd1731f1cd5e841b213486f3f039d81993be9bb7c83","signature":"a874d76d20f351b70787a2ce6bcfa50aa8e09a18a0f566fa7e50a116b60e3927","impliedFormat":99},{"version":"d738ec3d508305b8c751c3df13651c65b9e3bc7167b9a02eb6788e96586bd84e","signature":"ab39ff0da30c9b6089a0fb9c188b4297ce8d91694d37d8f578f09150f0fcbf1c","impliedFormat":99},{"version":"7c4f7cb8a662bd8b8eec4a712d2bfc40cb2efc3248292dcd2a7fa80d5935c85e","affectsGlobalScope":true,"impliedFormat":1},{"version":"c958694cb815759fdbb55f2c17c57014907cbe871b488dfe4afb95bbd1377f07","signature":"54198656fece9670c3f97e3e6b19d4835c8a8e1aac1c5d654dd7d08167d223ce","impliedFormat":99},{"version":"ebdfbfedbd3b85bb714d114c948f30e6ff0991a6162d3b01cd18a2d9c8aa0bb7","impliedFormat":99},{"version":"9d6ee454201e564f5719ef4c93ee2c0848e29e9d43b3b8fe3612b6f5e97b31b5","signature":"eec30d355fadbcd5517512b0eb4d6f254a0740c68f00cf5e8d92cf2c7395b2a3","impliedFormat":99},{"version":"1fe29a6585ba8e801b8039bc1b38a2906ae6c0992d228d10052ee2dce0734572","signature":"01d66077fab5a605168eda3d63521b9c18273ac6f24c338bcb8cadb5bea0429a","impliedFormat":99},{"version":"6112bc1341c6e1a3f072a934b0de0e26982a18cac9b97944f4cb86158ee58f00","impliedFormat":99},{"version":"c7fc1faa87da67e586529a23efa3619028f3410844031d37602d30e7ec455390","signature":"a32c781b7e8666951242aa77a3594db0bcc809435a3aa4fc753043c1d3d05359","impliedFormat":99},{"version":"eb398eee10130c7ae74100afb8e6767cc67511c5060bfdff9ba82d57717493a7","signature":"937e6463557ae49ed5ff5bcde2741a9a88e3bc4a60e00a3671277aa9200e8607","impliedFormat":99},{"version":"c43e6d54a9a425a1256e5756611c5f4c7c0180dda198712de6df78c8fb80764f","signature":"7b2fe70181cc14d801e496ebe57931d9a162e928d36d5e92d171ac9b0b1d5102","impliedFormat":99},{"version":"6f099c7a3ac41d6f7b048dc12fa8b0ca987d471cb18b5fabcce10304e11e42ed","signature":"98f165bc8a33ea7a96bcc6521bef9fa1e0f6cc6ad17eb22065817338cdd0384e","impliedFormat":99},{"version":"99ff6f4f0316abce4aba84f8ad1fa8fcda70bb634611167fd137e20f09be687a","impliedFormat":99},{"version":"639d09070bc5a1a6712e0dc0c9ca0c85713474b95142b6f04f20af07d1cb5e41","signature":"eb9159adc2c9f22f2ede632b4bdd2625b76b28a8907700c7701c4f28b5834530","impliedFormat":99},{"version":"e11c3816af66cef18033102beb8116f978648b99abbbd5a5af46cae507ed642d","signature":"0e1b5dda8ed10831fc1a25a7b6cee85cc6a3810d2afafda84712d485c4d60594","impliedFormat":99}],"root":[20,[29,37],39,41,42,[44,50]],"options":{"declaration":true,"esModuleInterop":true,"module":199,"noImplicitAny":true,"noUncheckedIndexedAccess":true,"outDir":"./","strict":true,"target":2},"referencedMap":[[28,1],[23,2],[24,3],[25,3],[26,4],[27,4],[22,5],[20,6],[30,7],[34,8],[42,9],[44,10],[46,11],[48,12],[41,13],[39,14],[47,15],[37,16],[33,17],[45,18],[29,19]],"version":"5.8.3"}
|
|
1
|
+
{"fileNames":["../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es6.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../.nvm/versions/node/v22.16.0/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@qnc/type_utils/build/index.d.ts","../src/bound_stored_value.ts","../node_modules/superstruct/dist/error.d.ts","../node_modules/superstruct/dist/utils.d.ts","../node_modules/superstruct/dist/struct.d.ts","../node_modules/superstruct/dist/structs/coercions.d.ts","../node_modules/superstruct/dist/structs/refinements.d.ts","../node_modules/superstruct/dist/structs/types.d.ts","../node_modules/superstruct/dist/structs/utilities.d.ts","../node_modules/superstruct/dist/index.d.ts","../src/table_options.ts","../src/column_manager.ts","../src/column_resizing.ts","../src/watched_mutable_value.ts","../src/state_types.ts","../src/column_sorting.ts","../src/conditionally_wrapped_element.ts","../src/event_names.ts","../src/state_machine.ts","../node_modules/@types/mithril/index.d.ts","../src/renderer.ts","../node_modules/@qnc/drag_sorter/dist/npm/drag_sorter.d.ts","../src/mithril_view.ts","../src/create_mithril_app.ts","../intermediate/qnc_data_tables_inline_css.d.ts","../src/create_style.ts","../src/table_manager.ts","../src/custom_element.ts","../src/selection_fieldset_controller.ts","../src/index.ts","../src/optional_storage.ts","../src/overflow_class_manager.ts"],"fileIdsList":[[21,23,24,25,26,27],[21,22],[23],[22,23],[21,23],[19],[19,28,29],[19,33],[37,38,39,41],[43],[29,33,35,37,38,39,42,45],[29,39,44,46,47],[29,30,31,32,33,38,39,40],[38],[45,46],[19,20,29,30,32,33,34,36],[29,30,32],[36,37],[19,28]],"fileInfos":[{"version":"df039a67536fe2acc3affdcbfb645892f842db36fe599e8e652e2f0c640a90d1","impliedFormat":1},{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c3ac004344cd885a3e9900c9c791da896c6c19c2fea8812a3196694b18624058","impliedFormat":99},{"version":"b9655fec9e804d1a5c0c982f078c2727c1df6ade35c415f7134d04257d39b792","signature":"f50456435236fdfb4bdb108b048c001ad3f963ec72593f90f6a50c62dfa3d953","impliedFormat":99},{"version":"56e933722bc0b995aa96a7d023497871ce07d1500d9dae9e95875b3208b23169","impliedFormat":99},{"version":"ce84cd04b7ff2a0935c34d426d049a4738dc1d32300f713e8f674b2fea83520b","impliedFormat":99},{"version":"1431e40edac4e9251b18760a8b7e294a3be538d15ec1bac6e90ea84efbd75434","impliedFormat":99},{"version":"6cc836c7185e9763e11d373e166b1f6f523b3b2de800af03cc8db68583ce6c03","impliedFormat":99},{"version":"ce4399c8e23cd32b5e9c245b57bf86bcf07773ff0fce06435520afd9e36ce511","impliedFormat":99},{"version":"b11eab7b532862de69b97b30ff6f4ea177573f017dc9177fe463e20fa8e8f3af","impliedFormat":99},{"version":"e9340584b4b5ee347c65b1f6db1b83c6e77a68db39b078780abdc076711eb815","impliedFormat":99},{"version":"70d9e74d5210f57d00925ce312dd29c7ae3ef49b8d0a7f896fb28ed1578b17c3","impliedFormat":99},{"version":"3ea152b1a2dfd8017fb9ee21cd09b49a99c0d1bf9f2b5dd12141025dc9ffd03c","signature":"7c49b27b5df325771b5b0c97a9662f7e737e2997f516bf96afa4d08a8cb34bd3","impliedFormat":99},{"version":"fb269872ac1ad5670145cf17c5dc6e6a260a45851bad0a25626a0b99ee343178","signature":"c39f3f0217ba6ffb4f99d5bba8035d0a7053008349fbc40ddee4c7cf0aa4a305","impliedFormat":99},{"version":"3f282694019489510ad94603a83fef03d0c4f3eb87b0e9acea0bd10bf0e5fbad","signature":"08430a86a223b1c96c83759fce45b89c3f4eb3fad5789ac3b16abd84f676d801","impliedFormat":99},{"version":"0fa88d7f497c6be699c7f0c1a5df29d3c831b6224d142cb13c706bece49a7964","signature":"49c05a47e0d95561844f886a410b4f9b37e938b208caa410a4a953ef94231be3","impliedFormat":99},{"version":"cc97bcbb9491923679fcaddd7ea4693fb51240205d36687ee03e6d4349065383","signature":"317d9fe91e003b8bd007841a22a18ccd3638ff472ee11c62fa658a23b6e69949","impliedFormat":99},{"version":"37b3a75065dd4328ab07a74e437c9bf9db9596e8a4b95d5b97118d699eca8a36","signature":"19da0d94fde1c3d8b2d184b20c1dcc27773c9e36f8448733f958f57f7bd0ccef","impliedFormat":99},{"version":"9b73eafa6c6ce2e98429a7a875c1efe2f53f10e2980671b8f4759d97cd112992","signature":"1ef769db3b1a03d9d69e9b6c7ade7a713b44d8e7d7beaf43a0b0f376a3433d04","impliedFormat":99},{"version":"cdb540d13c6ff674fb817cd1731f1cd5e841b213486f3f039d81993be9bb7c83","signature":"a874d76d20f351b70787a2ce6bcfa50aa8e09a18a0f566fa7e50a116b60e3927","impliedFormat":99},{"version":"e1b908da197ad5cc9e39e0a33157cf14836c34fa09e1cd0af358528576aa179f","signature":"ab39ff0da30c9b6089a0fb9c188b4297ce8d91694d37d8f578f09150f0fcbf1c","impliedFormat":99},{"version":"7c4f7cb8a662bd8b8eec4a712d2bfc40cb2efc3248292dcd2a7fa80d5935c85e","affectsGlobalScope":true,"impliedFormat":1},{"version":"c958694cb815759fdbb55f2c17c57014907cbe871b488dfe4afb95bbd1377f07","signature":"54198656fece9670c3f97e3e6b19d4835c8a8e1aac1c5d654dd7d08167d223ce","impliedFormat":99},{"version":"ebdfbfedbd3b85bb714d114c948f30e6ff0991a6162d3b01cd18a2d9c8aa0bb7","impliedFormat":99},{"version":"9d6ee454201e564f5719ef4c93ee2c0848e29e9d43b3b8fe3612b6f5e97b31b5","signature":"eec30d355fadbcd5517512b0eb4d6f254a0740c68f00cf5e8d92cf2c7395b2a3","impliedFormat":99},{"version":"1fe29a6585ba8e801b8039bc1b38a2906ae6c0992d228d10052ee2dce0734572","signature":"01d66077fab5a605168eda3d63521b9c18273ac6f24c338bcb8cadb5bea0429a","impliedFormat":99},{"version":"6112bc1341c6e1a3f072a934b0de0e26982a18cac9b97944f4cb86158ee58f00","impliedFormat":99},{"version":"c7fc1faa87da67e586529a23efa3619028f3410844031d37602d30e7ec455390","signature":"a32c781b7e8666951242aa77a3594db0bcc809435a3aa4fc753043c1d3d05359","impliedFormat":99},{"version":"eb398eee10130c7ae74100afb8e6767cc67511c5060bfdff9ba82d57717493a7","signature":"937e6463557ae49ed5ff5bcde2741a9a88e3bc4a60e00a3671277aa9200e8607","impliedFormat":99},{"version":"c43e6d54a9a425a1256e5756611c5f4c7c0180dda198712de6df78c8fb80764f","signature":"7b2fe70181cc14d801e496ebe57931d9a162e928d36d5e92d171ac9b0b1d5102","impliedFormat":99},{"version":"6f099c7a3ac41d6f7b048dc12fa8b0ca987d471cb18b5fabcce10304e11e42ed","signature":"98f165bc8a33ea7a96bcc6521bef9fa1e0f6cc6ad17eb22065817338cdd0384e","impliedFormat":99},{"version":"99ff6f4f0316abce4aba84f8ad1fa8fcda70bb634611167fd137e20f09be687a","impliedFormat":99},{"version":"639d09070bc5a1a6712e0dc0c9ca0c85713474b95142b6f04f20af07d1cb5e41","signature":"eb9159adc2c9f22f2ede632b4bdd2625b76b28a8907700c7701c4f28b5834530","impliedFormat":99},{"version":"e11c3816af66cef18033102beb8116f978648b99abbbd5a5af46cae507ed642d","signature":"0e1b5dda8ed10831fc1a25a7b6cee85cc6a3810d2afafda84712d485c4d60594","impliedFormat":99}],"root":[20,[29,37],39,41,42,[44,50]],"options":{"declaration":true,"esModuleInterop":true,"module":199,"noImplicitAny":true,"noUncheckedIndexedAccess":true,"outDir":"./","strict":true,"target":2},"referencedMap":[[28,1],[23,2],[24,3],[25,3],[26,4],[27,4],[22,5],[20,6],[30,7],[34,8],[42,9],[44,10],[46,11],[48,12],[41,13],[39,14],[47,15],[37,16],[33,17],[45,18],[29,19]],"version":"5.8.3"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// _mvfbkehd1:/Users/alex/projects/qnc_data_tables/front-end/intermediate/qnc_data_tables.min.css
|
|
2
|
+
var qnc_data_tables_min_default = '.qnc-data-table{display:block;max-width:100%;overflow-x:auto;overflow-y:auto;isolation:isolate}.qnc-data-table-head{display:block;position:sticky;top:0;z-index:3}.qnc-data-table-header-button{border:none;border-radius:0;padding:0;font:inherit;color:inherit;text-decoration:none;background-color:transparent}.qnc-data-table-header-button-text{text-decoration:underline}.qnc-data-table-header-button{line-height:1.2;cursor:pointer}.qnc-data-table-sort-indicator{text-decoration:none;font-size:.8em}.qnc-data-table-body{display:block;z-index:2}.qnc-data-table-row{min-width:100%;display:flex;align-items:stretch;justify-content:flex-start}.qnc-data-table-header-row div[role=columnheader]:nth-last-child(1 of div.qdt-resizable-header){overflow:hidden}.qnc-data-table-row *{overflow:hidden;text-overflow:ellipsis}.qdt-cell{flex-grow:0;flex-shrink:0;background-color:#fff;display:flex;align-items:stretch}.qdt-cell>*{padding:8px 16px;box-sizing:border-box;width:100%}.qdt-column-details{margin-top:.5em;margin-bottom:.5em}.qdt-row-checkbox-label{padding-left:8px;padding-right:8px}.qdt-row-checkbox-label:hover>input{transform:scale(1.2)}.qnc-data-table-body-row{white-space:nowrap}.qnc-data-tables-wrapping-content{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;hyphens:auto;white-space:normal}.qnc-data-table-row-checkbox-label{flex-grow:0;flex-shrink:0}.qnc-data-table-row-checkbox-label:hover>input{transform:scale(1.2)}.qnc-data-tables-overflow-indicator{font-size:.8em;padding:.1em .5em;border-radius:.5em;color:#fff;background-color:#888}.qnc-data-table-body>.qnc-data-table-row:hover>*{background-color:#ccc}.qnc-data-table-help-text:before{display:inline;content:"?"}.qnc-data-table-help-text{font-size:.7em;font-family:helvetica,arial,sans-serif;font-weight:700;text-decoration:none;cursor:pointer;display:inline-block;vertical-align:text-top;height:1.2em;width:1.2em;line-height:1.3;text-align:center;background-color:#aaa;border-radius:1000px;color:#fff;border:none;padding:0}.qdt-overflow-indicator-cell{width:0;padding:0;border:none;pointer-events:none;overflow:visible;position:sticky;opacity:0;transition:opacity .2s linear;z-index:1}.qdt-overflow-indicator-cell-right{right:0}.qdt-overflows-left>*>*>.qdt-overflow-indicator-cell-left,.qdt-overflows-right>*>*>.qdt-overflow-indicator-cell-right{opacity:1}.qdt-overflow-top-indicator{opacity:0;height:0px;background-color:#aaa;pointer-events:none;box-shadow:0 0 15px 5px #8888}.qdt-overflows-top .qdt-overflow-top-indicator{opacity:1}.qdt-overflow-bottom-indicator{position:sticky;bottom:0;left:0;z-index:3;opacity:0;height:0px;background-color:#aaa;pointer-events:none;box-shadow:0 0 15px 5px #8888}.qdt-overflows-bottom .qdt-overflow-bottom-indicator{opacity:1}.qdt-overflow-top-detector,.qdt-overflow-bottom-detector{width:100%;pointer-events:none;height:0px}.qdt-overflow-indicator-cell-left:after{content:" ";height:100%;position:absolute;top:0;width:15px;box-shadow:15px 0 15px -15px #8888 inset;right:-15px}.qdt-overflow-indicator-cell-right:after{content:" ";height:100%;position:absolute;top:0;width:15px;box-shadow:-15px 0 15px -15px #8888 inset;right:0}.qdt-resizable-header{position:relative;overflow:visible}.qdt-column-resizer{overflow:visible;border-right:1px solid #ccc;cursor:col-resize;position:absolute;z-index:1;top:0;right:0;height:100%;width:0}.qdt-column-resizer:after{content:"";display:block;position:absolute;width:1em;height:100%;top:0;left:0;transform:translate(-50%)}@keyframes qdt-loader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.qdt-selection-controls{margin-top:.5em;display:flex;align-items:flex-start;flex-wrap:wrap;column-gap:.5em;row-gap:.25em}\n';
|
|
3
|
+
|
|
4
|
+
// src/qnc_data_tables_css.js
|
|
5
|
+
var qnc_data_tables_css_default = qnc_data_tables_min_default;
|
|
6
|
+
export {
|
|
7
|
+
qnc_data_tables_css_default as default
|
|
8
|
+
};
|
package/package.json
CHANGED