@liquid-js/lyr-core 22.0.0-alpha.0 → 22.0.0-alpha.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.
@@ -1510,6 +1510,18 @@ function convertToBoolProperty(val) {
1510
1510
  function convertToOptionalBoolProperty(val) {
1511
1511
  return val === void 0 ? void 0 : convertToBoolProperty(val);
1512
1512
  }
1513
+ function sameControlValue(a, b) {
1514
+ if (Object.is(a, b)) return true;
1515
+ if (Array.isArray(a) && Array.isArray(b)) return a.length === b.length && a.every((item, index) => Object.is(item, b[index]));
1516
+ if (isPlainObject(a) && isPlainObject(b)) {
1517
+ const keys = Object.keys(a);
1518
+ return keys.length === Object.keys(b).length && keys.every((key) => Object.is(a[key], b[key]));
1519
+ }
1520
+ return false;
1521
+ }
1522
+ function isPlainObject(value) {
1523
+ return typeof value === "object" && value !== null && Object.getPrototypeOf(value) === Object.prototype;
1524
+ }
1513
1525
  const running = /* @__PURE__ */ new WeakMap();
1514
1526
  function expandDuration(distance) {
1515
1527
  return distance > 0 ? Math.min(600, Math.round(120 + 12 * Math.sqrt(distance))) : 0;
@@ -1568,6 +1580,6 @@ function enableTransitionsAfterRender(element) {
1568
1580
  const zone = inject(NgZone);
1569
1581
  afterNextRender(() => zone.runOutsideAngular(() => setTimeout(() => element.classList.add("nb-transition"))));
1570
1582
  }
1571
- export { BUILT_IN_THEMES, CORPORATE_THEME, COSMIC_THEME, DARK_THEME, DEFAULT_MEDIA_BREAKPOINTS, DEFAULT_THEME, MATERIAL_DARK_THEME, MATERIAL_LIGHT_THEME, NB_BUILT_IN_JS_THEMES, NB_COMPONENT_DEFAULTS, NB_DOCUMENT, NB_JS_THEMES, NB_LAYOUT_DIRECTION, NB_MEDIA_BREAKPOINTS, NB_PREFERENCE_STORAGE, NB_SYSTEM_THEME, NB_THEME_OPTIONS, NB_WINDOW, NbBidiModule, NbColorHelper, NbDirectionality, NbIndexedDbStore, NbJSThemesRegistry, NbLayoutDirection, NbLayoutDirectionService, NbLayoutRulerService, NbLayoutScrollService, NbMediaBreakpointsService, NbMemoryStore, NbNoStore, NbPlatform, NbSpinnerService, NbStatusService, NbStorage, NbTextsService, NbThemeService, NbThemeStyleChanges, declareStorage, injectNbDefaults, injectNbIconStyle, injectNbTexts, nbFormatList, nbLocalPreferenceStorage, nbLocalizeFallback, nbStoreDatabaseName, provideNbComponentDefaults, provideNbTexts, animateExpand as ɵanimateExpand, animatePane as ɵanimatePane, convertToBoolProperty as ɵconvertToBoolProperty, convertToOptionalBoolProperty as ɵconvertToOptionalBoolProperty, enableTransitionsAfterRender as ɵenableTransitionsAfterRender, expandDuration as ɵexpandDuration, focusOnClick as ɵfocusOnClick, isComposing as ɵisComposing };
1583
+ export { BUILT_IN_THEMES, CORPORATE_THEME, COSMIC_THEME, DARK_THEME, DEFAULT_MEDIA_BREAKPOINTS, DEFAULT_THEME, MATERIAL_DARK_THEME, MATERIAL_LIGHT_THEME, NB_BUILT_IN_JS_THEMES, NB_COMPONENT_DEFAULTS, NB_DOCUMENT, NB_JS_THEMES, NB_LAYOUT_DIRECTION, NB_MEDIA_BREAKPOINTS, NB_PREFERENCE_STORAGE, NB_SYSTEM_THEME, NB_THEME_OPTIONS, NB_WINDOW, NbBidiModule, NbColorHelper, NbDirectionality, NbIndexedDbStore, NbJSThemesRegistry, NbLayoutDirection, NbLayoutDirectionService, NbLayoutRulerService, NbLayoutScrollService, NbMediaBreakpointsService, NbMemoryStore, NbNoStore, NbPlatform, NbSpinnerService, NbStatusService, NbStorage, NbTextsService, NbThemeService, NbThemeStyleChanges, declareStorage, injectNbDefaults, injectNbIconStyle, injectNbTexts, nbFormatList, nbLocalPreferenceStorage, nbLocalizeFallback, nbStoreDatabaseName, provideNbComponentDefaults, provideNbTexts, animateExpand as ɵanimateExpand, animatePane as ɵanimatePane, convertToBoolProperty as ɵconvertToBoolProperty, convertToOptionalBoolProperty as ɵconvertToOptionalBoolProperty, enableTransitionsAfterRender as ɵenableTransitionsAfterRender, expandDuration as ɵexpandDuration, focusOnClick as ɵfocusOnClick, isComposing as ɵisComposing, sameControlValue as ɵsameControlValue };
1572
1584
 
1573
1585
  //# sourceMappingURL=liquid-js-lyr-core-base.mjs.map