@papernote/ui 1.9.1 → 1.9.2

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/index.js CHANGED
@@ -10123,19 +10123,23 @@ const defaultTypeLabels = {
10123
10123
  };
10124
10124
  /**
10125
10125
  * Map dropdown position to Popover placement
10126
+ * - bottom-right: Below bell, dropdown's right edge aligns with bell
10127
+ * - bottom-left: Below bell, dropdown's left edge aligns with bell
10128
+ * - top-right: Above bell, dropdown's right edge aligns with bell
10129
+ * - top-left: Above bell, dropdown's left edge aligns with bell
10126
10130
  */
10127
10131
  function getPopoverPlacement(position) {
10128
10132
  switch (position) {
10129
10133
  case 'bottom-right':
10130
10134
  case 'right':
10131
- return 'bottom-start';
10135
+ return 'bottom-start'; // Below, extends to the right
10132
10136
  case 'bottom-left':
10133
10137
  case 'left':
10134
- return 'bottom-end';
10138
+ return 'bottom-end'; // Below, extends to the left
10135
10139
  case 'top-right':
10136
- return 'top-start';
10140
+ return 'top-start'; // Above, extends to the right
10137
10141
  case 'top-left':
10138
- return 'top-end';
10142
+ return 'top-end'; // Above, extends to the left
10139
10143
  default:
10140
10144
  return 'bottom-start';
10141
10145
  }
@@ -11289,44 +11293,52 @@ function getAugmentedNamespace(n) {
11289
11293
  * (A1, A1:C5, ...)
11290
11294
  */
11291
11295
 
11292
- let Collection$3 = class Collection {
11296
+ var collection;
11297
+ var hasRequiredCollection;
11298
+
11299
+ function requireCollection () {
11300
+ if (hasRequiredCollection) return collection;
11301
+ hasRequiredCollection = 1;
11302
+ class Collection {
11293
11303
 
11294
- constructor(data, refs) {
11295
- if (data == null && refs == null) {
11296
- this._data = [];
11297
- this._refs = [];
11298
- } else {
11299
- if (data.length !== refs.length)
11300
- throw Error('Collection: data length should match references length.');
11301
- this._data = data;
11302
- this._refs = refs;
11303
- }
11304
- }
11304
+ constructor(data, refs) {
11305
+ if (data == null && refs == null) {
11306
+ this._data = [];
11307
+ this._refs = [];
11308
+ } else {
11309
+ if (data.length !== refs.length)
11310
+ throw Error('Collection: data length should match references length.');
11311
+ this._data = data;
11312
+ this._refs = refs;
11313
+ }
11314
+ }
11305
11315
 
11306
- get data() {
11307
- return this._data;
11308
- }
11316
+ get data() {
11317
+ return this._data;
11318
+ }
11309
11319
 
11310
- get refs() {
11311
- return this._refs;
11312
- }
11320
+ get refs() {
11321
+ return this._refs;
11322
+ }
11313
11323
 
11314
- get length() {
11315
- return this._data.length;
11316
- }
11324
+ get length() {
11325
+ return this._data.length;
11326
+ }
11317
11327
 
11318
- /**
11319
- * Add data and references to this collection.
11320
- * @param {{}} obj - data
11321
- * @param {{}} ref - reference
11322
- */
11323
- add(obj, ref) {
11324
- this._data.push(obj);
11325
- this._refs.push(ref);
11326
- }
11327
- };
11328
+ /**
11329
+ * Add data and references to this collection.
11330
+ * @param {{}} obj - data
11331
+ * @param {{}} ref - reference
11332
+ */
11333
+ add(obj, ref) {
11334
+ this._data.push(obj);
11335
+ this._refs.push(ref);
11336
+ }
11337
+ }
11328
11338
 
11329
- var collection = Collection$3;
11339
+ collection = Collection;
11340
+ return collection;
11341
+ }
11330
11342
 
11331
11343
  var helpers;
11332
11344
  var hasRequiredHelpers;
@@ -11335,7 +11347,7 @@ function requireHelpers () {
11335
11347
  if (hasRequiredHelpers) return helpers;
11336
11348
  hasRequiredHelpers = 1;
11337
11349
  const FormulaError = requireError();
11338
- const Collection = collection;
11350
+ const Collection = requireCollection();
11339
11351
 
11340
11352
  const Types = {
11341
11353
  NUMBER: 0,
@@ -20989,7 +21001,7 @@ var engineering = EngineeringFunctions;
20989
21001
 
20990
21002
  const FormulaError$b = requireError();
20991
21003
  const {FormulaHelpers: FormulaHelpers$8, Types: Types$6, WildCard, Address: Address$3} = requireHelpers();
20992
- const Collection$2 = collection;
21004
+ const Collection$2 = requireCollection();
20993
21005
  const H$5 = FormulaHelpers$8;
20994
21006
 
20995
21007
  const ReferenceFunctions$1 = {
@@ -32617,7 +32629,7 @@ var parsing = {
32617
32629
  const FormulaError$4 = requireError();
32618
32630
  const {Address: Address$1} = requireHelpers();
32619
32631
  const {Prefix: Prefix$1, Postfix: Postfix$1, Infix: Infix$1, Operators: Operators$1} = operators;
32620
- const Collection$1 = collection;
32632
+ const Collection$1 = requireCollection();
32621
32633
  const MAX_ROW$1 = 1048576, MAX_COLUMN$1 = 16384;
32622
32634
  const {NotAllInputParsedException} = require$$4;
32623
32635
 
@@ -33379,7 +33391,7 @@ var hooks$1 = {
33379
33391
  const FormulaError$2 = requireError();
33380
33392
  const {FormulaHelpers: FormulaHelpers$1, Types, Address} = requireHelpers();
33381
33393
  const {Prefix, Postfix, Infix, Operators} = operators;
33382
- const Collection = collection;
33394
+ const Collection = requireCollection();
33383
33395
  const MAX_ROW = 1048576, MAX_COLUMN = 16384;
33384
33396
 
33385
33397
  let Utils$1 = class Utils {