avo 3.19.2 → 3.19.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/builds/avo.base.js +70 -50
- data/app/assets/builds/avo.base.js.map +3 -3
- data/lib/avo/engine.rb +1 -1
- data/lib/avo/fields/base_field.rb +28 -30
- data/lib/avo/fields/heading_field.rb +1 -1
- data/lib/avo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeff49df2b8b1de936a7a67a2e6973646b5916af3ae065f9d0cda0ee98d19148
|
4
|
+
data.tar.gz: 9d7dec13f912dd0f15bde9298853ecf9f6cceeea825cbfcd3a1b79b14242b07a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dacaf8407ab484c78ed092771bdb89d4b1283009316d04b81e0390824f82272a39daeaa9032b148c0fbe9fc8c624ee345eb3778eb6bb43bc733950af2623961a
|
7
|
+
data.tar.gz: 62f341ab6aae71c1650c74cdf106fb3235f7f78fadd1a31b4b84eb72f67c50494b446d4d623feeb367012f7f7cc9ac57bc44e8758ba12852d8b1e9531c5f7919
|
data/Gemfile.lock
CHANGED
@@ -116771,12 +116771,13 @@
|
|
116771
116771
|
};
|
116772
116772
|
|
116773
116773
|
// node_modules/luxon/src/zones/IANAZone.js
|
116774
|
-
var dtfCache =
|
116775
|
-
function makeDTF(
|
116776
|
-
|
116777
|
-
|
116774
|
+
var dtfCache = /* @__PURE__ */ new Map();
|
116775
|
+
function makeDTF(zoneName) {
|
116776
|
+
let dtf = dtfCache.get(zoneName);
|
116777
|
+
if (dtf === void 0) {
|
116778
|
+
dtf = new Intl.DateTimeFormat("en-US", {
|
116778
116779
|
hour12: false,
|
116779
|
-
timeZone:
|
116780
|
+
timeZone: zoneName,
|
116780
116781
|
year: "numeric",
|
116781
116782
|
month: "2-digit",
|
116782
116783
|
day: "2-digit",
|
@@ -116785,8 +116786,9 @@
|
|
116785
116786
|
second: "2-digit",
|
116786
116787
|
era: "short"
|
116787
116788
|
});
|
116789
|
+
dtfCache.set(zoneName, dtf);
|
116788
116790
|
}
|
116789
|
-
return
|
116791
|
+
return dtf;
|
116790
116792
|
}
|
116791
116793
|
var typeToPos = {
|
116792
116794
|
year: 0,
|
@@ -116815,25 +116817,26 @@
|
|
116815
116817
|
}
|
116816
116818
|
return filled;
|
116817
116819
|
}
|
116818
|
-
var ianaZoneCache =
|
116820
|
+
var ianaZoneCache = /* @__PURE__ */ new Map();
|
116819
116821
|
var IANAZone = class _IANAZone extends Zone {
|
116820
116822
|
/**
|
116821
116823
|
* @param {string} name - Zone name
|
116822
116824
|
* @return {IANAZone}
|
116823
116825
|
*/
|
116824
116826
|
static create(name) {
|
116825
|
-
|
116826
|
-
|
116827
|
+
let zone = ianaZoneCache.get(name);
|
116828
|
+
if (zone === void 0) {
|
116829
|
+
ianaZoneCache.set(name, zone = new _IANAZone(name));
|
116827
116830
|
}
|
116828
|
-
return
|
116831
|
+
return zone;
|
116829
116832
|
}
|
116830
116833
|
/**
|
116831
116834
|
* Reset local caches. Should only be necessary in testing scenarios.
|
116832
116835
|
* @return {void}
|
116833
116836
|
*/
|
116834
116837
|
static resetCache() {
|
116835
|
-
ianaZoneCache
|
116836
|
-
dtfCache
|
116838
|
+
ianaZoneCache.clear();
|
116839
|
+
dtfCache.clear();
|
116837
116840
|
}
|
116838
116841
|
/**
|
116839
116842
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
@@ -116925,6 +116928,7 @@
|
|
116925
116928
|
* @return {number}
|
116926
116929
|
*/
|
116927
116930
|
offset(ts2) {
|
116931
|
+
if (!this.valid) return NaN;
|
116928
116932
|
const date = new Date(ts2);
|
116929
116933
|
if (isNaN(date)) return NaN;
|
116930
116934
|
const dtf = makeDTF(this.name);
|
@@ -116977,34 +116981,34 @@
|
|
116977
116981
|
}
|
116978
116982
|
return dtf;
|
116979
116983
|
}
|
116980
|
-
var intlDTCache =
|
116984
|
+
var intlDTCache = /* @__PURE__ */ new Map();
|
116981
116985
|
function getCachedDTF(locString, opts = {}) {
|
116982
116986
|
const key = JSON.stringify([locString, opts]);
|
116983
|
-
let dtf = intlDTCache
|
116984
|
-
if (
|
116987
|
+
let dtf = intlDTCache.get(key);
|
116988
|
+
if (dtf === void 0) {
|
116985
116989
|
dtf = new Intl.DateTimeFormat(locString, opts);
|
116986
|
-
intlDTCache
|
116990
|
+
intlDTCache.set(key, dtf);
|
116987
116991
|
}
|
116988
116992
|
return dtf;
|
116989
116993
|
}
|
116990
|
-
var intlNumCache =
|
116994
|
+
var intlNumCache = /* @__PURE__ */ new Map();
|
116991
116995
|
function getCachedINF(locString, opts = {}) {
|
116992
116996
|
const key = JSON.stringify([locString, opts]);
|
116993
|
-
let inf = intlNumCache
|
116994
|
-
if (
|
116997
|
+
let inf = intlNumCache.get(key);
|
116998
|
+
if (inf === void 0) {
|
116995
116999
|
inf = new Intl.NumberFormat(locString, opts);
|
116996
|
-
intlNumCache
|
117000
|
+
intlNumCache.set(key, inf);
|
116997
117001
|
}
|
116998
117002
|
return inf;
|
116999
117003
|
}
|
117000
|
-
var intlRelCache =
|
117004
|
+
var intlRelCache = /* @__PURE__ */ new Map();
|
117001
117005
|
function getCachedRTF(locString, opts = {}) {
|
117002
117006
|
const { base: base2, ...cacheKeyOpts } = opts;
|
117003
117007
|
const key = JSON.stringify([locString, cacheKeyOpts]);
|
117004
|
-
let inf = intlRelCache
|
117005
|
-
if (
|
117008
|
+
let inf = intlRelCache.get(key);
|
117009
|
+
if (inf === void 0) {
|
117006
117010
|
inf = new Intl.RelativeTimeFormat(locString, opts);
|
117007
|
-
intlRelCache
|
117011
|
+
intlRelCache.set(key, inf);
|
117008
117012
|
}
|
117009
117013
|
return inf;
|
117010
117014
|
}
|
@@ -117017,20 +117021,25 @@
|
|
117017
117021
|
return sysLocaleCache;
|
117018
117022
|
}
|
117019
117023
|
}
|
117020
|
-
var intlResolvedOptionsCache =
|
117024
|
+
var intlResolvedOptionsCache = /* @__PURE__ */ new Map();
|
117021
117025
|
function getCachedIntResolvedOptions(locString) {
|
117022
|
-
|
117023
|
-
|
117026
|
+
let opts = intlResolvedOptionsCache.get(locString);
|
117027
|
+
if (opts === void 0) {
|
117028
|
+
opts = new Intl.DateTimeFormat(locString).resolvedOptions();
|
117029
|
+
intlResolvedOptionsCache.set(locString, opts);
|
117024
117030
|
}
|
117025
|
-
return
|
117031
|
+
return opts;
|
117026
117032
|
}
|
117027
|
-
var weekInfoCache =
|
117033
|
+
var weekInfoCache = /* @__PURE__ */ new Map();
|
117028
117034
|
function getCachedWeekInfo(locString) {
|
117029
|
-
let data = weekInfoCache
|
117035
|
+
let data = weekInfoCache.get(locString);
|
117030
117036
|
if (!data) {
|
117031
117037
|
const locale2 = new Intl.Locale(locString);
|
117032
117038
|
data = "getWeekInfo" in locale2 ? locale2.getWeekInfo() : locale2.weekInfo;
|
117033
|
-
|
117039
|
+
if (!("minimalDays" in data)) {
|
117040
|
+
data = { ...fallbackWeekSettings, ...data };
|
117041
|
+
}
|
117042
|
+
weekInfoCache.set(locString, data);
|
117034
117043
|
}
|
117035
117044
|
return data;
|
117036
117045
|
}
|
@@ -117236,10 +117245,11 @@
|
|
117236
117245
|
}
|
117237
117246
|
static resetCache() {
|
117238
117247
|
sysLocaleCache = null;
|
117239
|
-
intlDTCache
|
117240
|
-
intlNumCache
|
117241
|
-
intlRelCache
|
117242
|
-
intlResolvedOptionsCache
|
117248
|
+
intlDTCache.clear();
|
117249
|
+
intlNumCache.clear();
|
117250
|
+
intlRelCache.clear();
|
117251
|
+
intlResolvedOptionsCache.clear();
|
117252
|
+
weekInfoCache.clear();
|
117243
117253
|
}
|
117244
117254
|
static fromObject({ locale: locale2, numberingSystem, outputCalendar, weekSettings } = {}) {
|
117245
117255
|
return _Locale.create(locale2, numberingSystem, outputCalendar, weekSettings);
|
@@ -117641,19 +117651,23 @@
|
|
117641
117651
|
return value;
|
117642
117652
|
}
|
117643
117653
|
}
|
117644
|
-
var digitRegexCache =
|
117654
|
+
var digitRegexCache = /* @__PURE__ */ new Map();
|
117645
117655
|
function resetDigitRegexCache() {
|
117646
|
-
digitRegexCache
|
117656
|
+
digitRegexCache.clear();
|
117647
117657
|
}
|
117648
117658
|
function digitRegex({ numberingSystem }, append = "") {
|
117649
117659
|
const ns = numberingSystem || "latn";
|
117650
|
-
|
117651
|
-
|
117660
|
+
let appendCache = digitRegexCache.get(ns);
|
117661
|
+
if (appendCache === void 0) {
|
117662
|
+
appendCache = /* @__PURE__ */ new Map();
|
117663
|
+
digitRegexCache.set(ns, appendCache);
|
117652
117664
|
}
|
117653
|
-
|
117654
|
-
|
117665
|
+
let regex2 = appendCache.get(append);
|
117666
|
+
if (regex2 === void 0) {
|
117667
|
+
regex2 = new RegExp(`${numberingSystems[ns]}${append}`);
|
117668
|
+
appendCache.set(append, regex2);
|
117655
117669
|
}
|
117656
|
-
return
|
117670
|
+
return regex2;
|
117657
117671
|
}
|
117658
117672
|
|
117659
117673
|
// node_modules/luxon/src/settings.js
|
@@ -120024,8 +120038,11 @@
|
|
120024
120038
|
return _Interval.fromDateTimes(s6, e5);
|
120025
120039
|
}
|
120026
120040
|
/**
|
120027
|
-
* Merge an array of Intervals into
|
120041
|
+
* Merge an array of Intervals into an equivalent minimal set of Intervals.
|
120028
120042
|
* Combines overlapping and adjacent Intervals.
|
120043
|
+
* The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval
|
120044
|
+
* and ending with the latest.
|
120045
|
+
*
|
120029
120046
|
* @param {Array} intervals
|
120030
120047
|
* @return {Array}
|
120031
120048
|
*/
|
@@ -121095,10 +121112,12 @@
|
|
121095
121112
|
return zone.offset(zoneOffsetTs);
|
121096
121113
|
}
|
121097
121114
|
const zoneName = zone.name;
|
121098
|
-
|
121099
|
-
|
121115
|
+
let offsetGuess = zoneOffsetGuessCache.get(zoneName);
|
121116
|
+
if (offsetGuess === void 0) {
|
121117
|
+
offsetGuess = zone.offset(zoneOffsetTs);
|
121118
|
+
zoneOffsetGuessCache.set(zoneName, offsetGuess);
|
121100
121119
|
}
|
121101
|
-
return
|
121120
|
+
return offsetGuess;
|
121102
121121
|
}
|
121103
121122
|
function quickDT(obj, opts) {
|
121104
121123
|
const zone = normalizeZone(opts.zone, Settings.defaultZone);
|
@@ -121160,7 +121179,7 @@
|
|
121160
121179
|
return [opts, args];
|
121161
121180
|
}
|
121162
121181
|
var zoneOffsetTs;
|
121163
|
-
var zoneOffsetGuessCache =
|
121182
|
+
var zoneOffsetGuessCache = /* @__PURE__ */ new Map();
|
121164
121183
|
var DateTime = class _DateTime {
|
121165
121184
|
/**
|
121166
121185
|
* @access private
|
@@ -121592,7 +121611,7 @@
|
|
121592
121611
|
}
|
121593
121612
|
static resetCache() {
|
121594
121613
|
zoneOffsetTs = void 0;
|
121595
|
-
zoneOffsetGuessCache
|
121614
|
+
zoneOffsetGuessCache.clear();
|
121596
121615
|
}
|
121597
121616
|
// INFO
|
121598
121617
|
/**
|
@@ -155560,13 +155579,14 @@
|
|
155560
155579
|
];
|
155561
155580
|
}
|
155562
155581
|
});
|
155582
|
+
var focusEventsPluginKey = new PluginKey("focusEvents");
|
155563
155583
|
var FocusEvents = Extension.create({
|
155564
155584
|
name: "focusEvents",
|
155565
155585
|
addProseMirrorPlugins() {
|
155566
155586
|
const { editor } = this;
|
155567
155587
|
return [
|
155568
155588
|
new Plugin({
|
155569
|
-
key:
|
155589
|
+
key: focusEventsPluginKey,
|
155570
155590
|
props: {
|
155571
155591
|
handleDOMEvents: {
|
155572
155592
|
focus: (view, event) => {
|
@@ -158440,7 +158460,7 @@ img.ProseMirror-separator {
|
|
158440
158460
|
}
|
158441
158461
|
},
|
158442
158462
|
type: {
|
158443
|
-
default:
|
158463
|
+
default: null,
|
158444
158464
|
parseHTML: (element) => element.getAttribute("type")
|
158445
158465
|
}
|
158446
158466
|
};
|