22
33var obsidian = require('obsidian');
44
5- /*! *****************************************************************************
6- Copyright (c) Microsoft Corporation.
7-
8- Permission to use, copy, modify, and/or distribute this software for any
9- purpose with or without fee is hereby granted.
10-
11- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17- PERFORMANCE OF THIS SOFTWARE.
18- ***************************************************************************** */
19-
20- function __awaiter(thisArg, _arguments, P, generator) {
21- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22- return new (P || (P = Promise))(function (resolve, reject) {
23- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26- step((generator = generator.apply(thisArg, _arguments || [])).next());
27- });
5+ /*! *****************************************************************************
6+ Copyright (c) Microsoft Corporation.
7+
8+ Permission to use, copy, modify, and/or distribute this software for any
9+ purpose with or without fee is hereby granted.
10+
11+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17+ PERFORMANCE OF THIS SOFTWARE.
18+ ***************************************************************************** */
19+
20+ function __awaiter(thisArg, _arguments, P, generator) {
21+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22+ return new (P || (P = Promise))(function (resolve, reject) {
23+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26+ step((generator = generator.apply(thisArg, _arguments || [])).next());
27+ });
2828}
2929
3030/** Table Actions */
@@ -163,13 +163,12 @@ function obtainMetadataColumns() {
163163 isMetadata: true
164164 };
165165 metadataColumns[MetadataColumns.ADD_COLUMN] = {
166- key: `${ MetadataColumns.ADD_COLUMN}` ,
167- Header: `${ MetadataColumns.ADD_COLUMN}` ,
166+ key: MetadataColumns.ADD_COLUMN,
167+ Header: MetadataColumns.ADD_COLUMN,
168168 input: DataTypes.NEW_COLUMN,
169- width: 20,
170169 disableResizing: true,
171170 label: '+',
172- accessor: `${ MetadataColumns.ADD_COLUMN}` ,
171+ accessor: MetadataColumns.ADD_COLUMN,
173172 isMetadata: true
174173 };
175174 yield Promise.all(Object.keys(metadataColumns).map((columnKey, index) => __awaiter(this, void 0, void 0, function* () {
@@ -9847,19 +9846,19 @@ var initStateUpdates = function initStateUpdates() {
98479846};
98489847
98499848function connectAdvanced(
9850- /*
9851- selectorFactory is a func that is responsible for returning the selector function used to
9852- compute new props from state, props, and dispatch. For example:
9853- export default connectAdvanced((dispatch, options) => (state, props) => ({
9854- thing: state.things[props.thingId],
9855- saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
9856- }))(YourComponent)
9857- Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
9858- outside of their selector as an optimization. Options passed to connectAdvanced are passed to
9859- the selectorFactory, along with displayName and WrappedComponent, as the second argument.
9860- Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
9861- props. Do not use connectAdvanced directly without memoizing results between calls to your
9862- selector, otherwise the Connect component will re-render on every state or props change.
9849+ /*
9850+ selectorFactory is a func that is responsible for returning the selector function used to
9851+ compute new props from state, props, and dispatch. For example:
9852+ export default connectAdvanced((dispatch, options) => (state, props) => ({
9853+ thing: state.things[props.thingId],
9854+ saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
9855+ }))(YourComponent)
9856+ Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
9857+ outside of their selector as an optimization. Options passed to connectAdvanced are passed to
9858+ the selectorFactory, along with displayName and WrappedComponent, as the second argument.
9859+ Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
9860+ props. Do not use connectAdvanced directly without memoizing results between calls to your
9861+ selector, otherwise the Connect component will re-render on every state or props change.
98639862*/
98649863selectorFactory, // options object:
98659864_ref) {
@@ -10145,9 +10144,9 @@ function bindActionCreators(actionCreators, dispatch) {
1014510144 return boundActionCreators;
1014610145}
1014710146
10148- /**
10149- * @param {any} obj The object to inspect.
10150- * @returns {boolean} True if the argument appears to be a plain object.
10147+ /**
10148+ * @param {any} obj The object to inspect.
10149+ * @returns {boolean} True if the argument appears to be a plain object.
1015110150 */
1015210151function isPlainObject(obj) {
1015310152 if (typeof obj !== 'object' || obj === null) return false;
@@ -10162,11 +10161,11 @@ function isPlainObject(obj) {
1016210161 return proto === baseProto;
1016310162}
1016410163
10165- /**
10166- * Prints a warning in the console if it exists.
10167- *
10168- * @param {String} message The warning message.
10169- * @returns {void}
10164+ /**
10165+ * Prints a warning in the console if it exists.
10166+ *
10167+ * @param {String} message The warning message.
10168+ * @returns {void}
1017010169 */
1017110170function warning$1(message) {
1017210171 /* eslint-disable no-console */
@@ -10423,21 +10422,21 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
1042310422}
1042410423
1042510424var _excluded = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
10426- /*
10427- connect is a facade over connectAdvanced. It turns its args into a compatible
10428- selectorFactory, which has the signature:
10429-
10430- (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
10431-
10432- connect passes its args to connectAdvanced as options, which will in turn pass them to
10433- selectorFactory each time a Connect component instance is instantiated or hot reloaded.
10434-
10435- selectorFactory returns a final props selector from its mapStateToProps,
10436- mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
10437- mergePropsFactories, and pure args.
10438-
10439- The resulting final props selector is called by the Connect component instance whenever
10440- it receives new props or store state.
10425+ /*
10426+ connect is a facade over connectAdvanced. It turns its args into a compatible
10427+ selectorFactory, which has the signature:
10428+
10429+ (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
10430+
10431+ connect passes its args to connectAdvanced as options, which will in turn pass them to
10432+ selectorFactory each time a Connect component instance is instantiated or hot reloaded.
10433+
10434+ selectorFactory returns a final props selector from its mapStateToProps,
10435+ mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
10436+ mergePropsFactories, and pure args.
10437+
10438+ The resulting final props selector is called by the Connect component instance whenever
10439+ it receives new props or store state.
1044110440 */
1044210441
1044310442function match(arg, factories, name) {
@@ -46965,14 +46964,14 @@ Object.defineProperty(lib, '__esModule', { value: true });
4696546964
4696646965
4696746966
46968- // UTIL FUNCTIONS
46969- const getAPI = (app) => {
46970- var _a;
46971- if (app)
46972- return (_a = app.plugins.plugins.dataview) === null || _a === void 0 ? void 0 : _a.api;
46973- else
46974- return window["DataviewAPI"];
46975- };
46967+ // UTIL FUNCTIONS
46968+ const getAPI = (app) => {
46969+ var _a;
46970+ if (app)
46971+ return (_a = app.plugins.plugins.dataview) === null || _a === void 0 ? void 0 : _a.api;
46972+ else
46973+ return window["DataviewAPI"];
46974+ };
4697646975const isPluginEnabled = (app) => app.plugins.enabledPlugins.has("dataview");
4697746976
4697846977var getAPI_1 = lib.getAPI = getAPI;
0 commit comments