native-document 1.0.77 → 1.0.79

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.
Files changed (126) hide show
  1. package/dist/native-document.components.min.js +146 -120
  2. package/dist/native-document.dev.js +171 -125
  3. package/dist/native-document.dev.js.map +1 -1
  4. package/dist/native-document.devtools.min.js +1 -1
  5. package/dist/native-document.min.js +1 -1
  6. package/package.json +1 -1
  7. package/rollup.config.js +0 -16
  8. package/src/components/$traits/HasItems.js +1 -1
  9. package/src/components/accordion/Accordion.js +2 -2
  10. package/src/components/accordion/AccordionItem.js +2 -2
  11. package/src/components/alert/Alert.js +2 -2
  12. package/src/components/avatar/Avatar.js +2 -2
  13. package/src/components/badge/Badge.js +2 -2
  14. package/src/components/breadcrumb/BreadCrumb.js +2 -2
  15. package/src/components/button/Button.js +2 -2
  16. package/src/components/card/Card.js +1 -1
  17. package/src/components/context-menu/ContextMenu.js +2 -2
  18. package/src/components/context-menu/ContextMenuGroup.js +1 -1
  19. package/src/components/context-menu/ContextMenuItem.js +1 -1
  20. package/src/components/divider/Divider.js +1 -1
  21. package/src/components/dropdown/Dropdown.js +2 -2
  22. package/src/components/dropdown/DropdownDivider.js +1 -1
  23. package/src/components/dropdown/DropdownGroup.js +1 -1
  24. package/src/components/dropdown/DropdownItem.js +1 -1
  25. package/src/components/dropdown/DropdownTrigger.js +1 -1
  26. package/src/components/form/FormControl.js +5 -5
  27. package/src/components/form/field/DefaultRender.js +2 -2
  28. package/src/components/form/field/Field.js +4 -4
  29. package/src/components/form/field/FieldCollection.js +5 -5
  30. package/src/components/form/field/types/CheckboxField.js +1 -1
  31. package/src/components/form/field/types/ColorField.js +1 -1
  32. package/src/components/form/field/types/DateField.js +1 -1
  33. package/src/components/form/field/types/EmailField.js +1 -1
  34. package/src/components/form/field/types/FileField.js +1 -1
  35. package/src/components/form/field/types/ImageField.js +1 -1
  36. package/src/components/form/field/types/NumberField.js +1 -1
  37. package/src/components/form/field/types/PasswordField.js +1 -1
  38. package/src/components/form/field/types/RadioField.js +1 -1
  39. package/src/components/form/field/types/StringField.js +1 -1
  40. package/src/components/form/field/types/TelField.js +1 -1
  41. package/src/components/form/field/types/TimeField.js +1 -1
  42. package/src/components/form/field/types/UrlField.js +1 -1
  43. package/src/components/form/validation/Validation.js +1 -1
  44. package/src/components/list/List.js +4 -4
  45. package/src/components/list/ListGroup.js +2 -2
  46. package/src/components/list/ListItem.js +2 -2
  47. package/src/components/menu/Menu.js +3 -3
  48. package/src/components/menu/MenuDivider.js +1 -1
  49. package/src/components/menu/MenuGroup.js +2 -2
  50. package/src/components/menu/MenuItem.js +2 -2
  51. package/src/components/modal/Modal.js +2 -2
  52. package/src/components/pagination/Pagination.js +2 -2
  53. package/src/components/popover/Popover.js +2 -2
  54. package/src/components/popover/PopoverFooter.js +1 -1
  55. package/src/components/popover/PopoverHeader.js +1 -1
  56. package/src/components/progress/Progress.js +3 -3
  57. package/src/components/slider/Slider.js +2 -2
  58. package/src/components/splitter/Splitter.js +3 -4
  59. package/src/components/splitter/SplitterPanel.js +1 -1
  60. package/src/components/stepper/Stepper.js +3 -3
  61. package/src/components/stepper/StepperStep.js +2 -2
  62. package/src/components/switch/Switch.js +2 -2
  63. package/src/components/table/ColumnGroup.js +1 -1
  64. package/src/components/table/DataTable.js +1 -1
  65. package/src/components/table/SimpleTable.js +1 -1
  66. package/src/components/tabs/Tabs.js +2 -2
  67. package/src/components/toast/Toast.js +2 -2
  68. package/src/components/tooltip/prototypes.js +1 -1
  69. package/src/core/data/MemoryManager.js +1 -2
  70. package/src/core/data/Observable.js +1 -1
  71. package/src/core/data/ObservableArray.js +4 -4
  72. package/src/core/data/ObservableItem.js +5 -5
  73. package/src/core/data/observable-helpers/array.js +2 -2
  74. package/src/core/data/observable-helpers/batch.js +2 -2
  75. package/src/core/data/observable-helpers/computed.js +6 -6
  76. package/src/core/data/observable-helpers/object.js +2 -2
  77. package/src/core/elements/anchor.js +3 -3
  78. package/src/core/elements/content-formatter.js +1 -1
  79. package/src/core/elements/control/for-each-array.js +5 -6
  80. package/src/core/elements/control/for-each.js +7 -7
  81. package/src/core/elements/control/show-if.js +5 -5
  82. package/src/core/elements/control/show-when.js +2 -2
  83. package/src/core/elements/control/switch.js +4 -4
  84. package/src/core/elements/description-list.js +1 -1
  85. package/src/core/elements/form.js +1 -1
  86. package/src/core/elements/html5-semantics.js +1 -1
  87. package/src/core/elements/img.js +3 -3
  88. package/src/core/elements/index.js +1 -1
  89. package/src/core/elements/interactive.js +1 -1
  90. package/src/core/elements/list.js +1 -1
  91. package/src/core/elements/medias.js +1 -1
  92. package/src/core/elements/meta-data.js +1 -1
  93. package/src/core/elements/table.js +1 -1
  94. package/src/core/utils/EventEmitter.js +1 -1
  95. package/src/core/utils/args-types.js +2 -2
  96. package/src/core/utils/filters/standard.js +1 -1
  97. package/src/core/utils/filters/utils.js +1 -1
  98. package/src/core/utils/prototypes.js +2 -2
  99. package/src/core/utils/validator.js +5 -5
  100. package/src/core/wrappers/AttributesWrapper.js +3 -3
  101. package/src/core/wrappers/DocumentObserver.js +0 -1
  102. package/src/core/wrappers/ElementCreator.js +3 -3
  103. package/src/core/wrappers/HtmlElementWrapper.js +2 -2
  104. package/src/core/wrappers/NDElement.js +3 -3
  105. package/src/core/wrappers/NdPrototype.js +1 -1
  106. package/src/core/wrappers/SingletonView.js +1 -1
  107. package/src/core/wrappers/TemplateCloner.js +1 -2
  108. package/src/core/wrappers/prototypes/attributes-extensions.js +4 -4
  109. package/src/core/wrappers/prototypes/bind-class-extensions.js +4 -4
  110. package/src/core/wrappers/prototypes/nd-element-extensions.js +6 -6
  111. package/src/devtools/app/App.js +2 -2
  112. package/src/devtools/hrm/ComponentRegistry.js +2 -2
  113. package/src/devtools/plugin.js +1 -1
  114. package/src/devtools/widget/DevToolsWidget.js +2 -2
  115. package/src/router/Route.js +1 -1
  116. package/src/router/RouteGroupHelper.js +1 -1
  117. package/src/router/Router.js +4 -4
  118. package/src/router/RouterComponent.js +1 -1
  119. package/src/router/link.js +4 -4
  120. package/src/router/modes/HistoryRouter.js +1 -1
  121. package/types/control-flow.d.ts +0 -1
  122. package/types/filters/dates.d.ts +1 -1
  123. package/types/filters/types.d.ts +1 -1
  124. package/utils.js +3 -3
  125. package/jsconfig.json +0 -15
  126. /package/src/{core → router}/errors/RouterError.js +0 -0
@@ -1,9 +1,8 @@
1
- import Anchor from "@src/core/elements/anchor";
2
- import {Observable} from "@src/core/data/Observable";
3
- import Validator from "@src/core/utils/validator";
4
- import {getKey} from "@src/core/utils/helpers";
5
- import { ElementCreator } from "@src/core/wrappers/ElementCreator";
6
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
1
+ import Anchor from "../../elements/anchor";
2
+ import {Observable} from "../../data/Observable";
3
+ import Validator from "../../utils/validator";
4
+ import { ElementCreator } from "../../wrappers/ElementCreator";
5
+ import NativeDocumentError from "../../errors/NativeDocumentError";
7
6
 
8
7
  export function ForEachArray(data, callback, configs = {}) {
9
8
  const element = Anchor('ForEach Array');
@@ -1,10 +1,10 @@
1
- import {Observable} from "@src/core/data/Observable";
2
- import Validator from "@src/core/utils/validator";
3
- import Anchor from "@src/core/elements/anchor";
4
- import DebugManager from "@src/core/utils/debug-manager";
5
- import {getKey} from "@src/core/utils/helpers";
6
- import { ElementCreator } from "@src/core/wrappers/ElementCreator";
7
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
1
+ import {Observable} from "../../data/Observable";
2
+ import Validator from "../../utils/validator";
3
+ import Anchor from "../../elements/anchor";
4
+ import DebugManager from "../../utils/debug-manager";
5
+ import {getKey} from "../../utils/helpers";
6
+ import { ElementCreator } from "../../wrappers/ElementCreator";
7
+ import NativeDocumentError from "../../errors/NativeDocumentError";
8
8
 
9
9
  /**
10
10
  *
@@ -1,8 +1,8 @@
1
- import { Observable } from "@src/core/data/Observable";
2
- import Validator from "@src/core/utils/validator";
3
- import DebugManager from "@src/core/utils/debug-manager.js";
4
- import Anchor from "@src/core/elements/anchor";
5
- import {ElementCreator} from "@src/core/wrappers/ElementCreator";
1
+ import { Observable } from "../../data/Observable";
2
+ import Validator from "../../utils/validator";
3
+ import DebugManager from "../../utils/debug-manager.js";
4
+ import Anchor from "../../elements/anchor";
5
+ import {ElementCreator} from "../../wrappers/ElementCreator";
6
6
 
7
7
  /**
8
8
  * Show the element if the condition is true
@@ -1,5 +1,5 @@
1
- import Validator from "@src/core/utils/validator.js";
2
- import NativeDocumentError from "@src/core/errors/NativeDocumentError.js";
1
+ import Validator from "../../utils/validator.js";
2
+ import NativeDocumentError from "../../errors/NativeDocumentError.js";
3
3
  import {ShowIf} from "./show-if.js";
4
4
 
5
5
  export const ShowWhen = function() {
@@ -1,7 +1,7 @@
1
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
2
- import Validator from "@src/core/utils/validator";
3
- import Anchor from "@src/core/elements/anchor";
4
- import {ElementCreator} from "@src/core/wrappers/ElementCreator";
1
+ import NativeDocumentError from "../../errors/NativeDocumentError";
2
+ import Validator from "../../utils/validator";
3
+ import Anchor from "../../elements/anchor";
4
+ import {ElementCreator} from "../../wrappers/ElementCreator";
5
5
 
6
6
 
7
7
 
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export const Dl = HtmlElementWrapper('dl');
4
4
  export const Dt = HtmlElementWrapper('dt');
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
 
4
4
  export const Form = HtmlElementWrapper('form', function(el) {
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export const Main = HtmlElementWrapper('main');
4
4
  export const Section = HtmlElementWrapper('section');
@@ -1,6 +1,6 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper"
2
- import Validator from "@src/core/utils/validator";
3
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper"
2
+ import Validator from "../utils/validator";
3
+ import NativeDocumentError from "../errors/NativeDocumentError";
4
4
 
5
5
  export const BaseImage = HtmlElementWrapper('img');
6
6
  export const Img = function(src, attributes) {
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export * from './control/for-each';
4
4
  export * from './control/for-each-array';
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
 
4
4
  export const Details = HtmlElementWrapper('details');
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export const OrderedList = HtmlElementWrapper('ol');
4
4
  export const UnorderedList = HtmlElementWrapper('ul');
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export const Audio = HtmlElementWrapper('audio');
4
4
  export const Video = HtmlElementWrapper('video');
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export const Time = HtmlElementWrapper('time');
4
4
  export const Data = HtmlElementWrapper('data');
@@ -1,4 +1,4 @@
1
- import HtmlElementWrapper from "@src/core/wrappers/HtmlElementWrapper";
1
+ import HtmlElementWrapper from "../wrappers/HtmlElementWrapper";
2
2
 
3
3
  export const Caption = HtmlElementWrapper('caption');
4
4
  export const Table = HtmlElementWrapper('table');
@@ -1,4 +1,4 @@
1
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
1
+ import NativeDocumentError from "../errors/NativeDocumentError";
2
2
 
3
3
  export default function EventEmitter() {
4
4
 
@@ -1,6 +1,6 @@
1
1
  import Validator from "./validator";
2
- import ArgTypesError from "@src/core/errors/ArgTypesError";
3
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
2
+ import ArgTypesError from "../errors/ArgTypesError";
3
+ import NativeDocumentError from "../errors/NativeDocumentError";
4
4
 
5
5
  let withValidation = (fn) => fn;
6
6
  let ArgTypes = {};
@@ -1,4 +1,4 @@
1
- import Validator from "@src/core/utils/validator";
1
+ import Validator from "../../utils/validator";
2
2
  import { createFilter, createMultiSourceFilter } from "./utils";
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- import Validator from "@src/core/utils/validator";
1
+ import Validator from "../../utils/validator";
2
2
 
3
3
  export function toDate(value) {
4
4
  if (value instanceof Date) return value;
@@ -1,7 +1,7 @@
1
1
  import {withValidation} from "./args-types.js";
2
- import {Observable} from "@src/core/data/Observable";
2
+ import {Observable} from "../data/Observable";
3
3
  import Validator from "./validator";
4
- import {NDElement} from "@src/core/wrappers/NDElement";
4
+ import {NDElement} from "../wrappers/NDElement";
5
5
 
6
6
 
7
7
  Function.prototype.args = function(...args) {
@@ -1,9 +1,9 @@
1
- import ObservableItem from "@src/core/data/ObservableItem";
1
+ import ObservableItem from "../data/ObservableItem";
2
2
  import DebugManager from "./debug-manager";
3
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
4
- import ObservableChecker from "@src/core/data/ObservableChecker";
5
- import {NDElement} from "@src/core/wrappers/NDElement";
6
- import TemplateBinding from "@src/core/wrappers/TemplateBinding";
3
+ import NativeDocumentError from "../errors/NativeDocumentError";
4
+ import ObservableChecker from "../data/ObservableChecker";
5
+ import {NDElement} from "../wrappers/NDElement";
6
+ import TemplateBinding from "../wrappers/TemplateBinding";
7
7
 
8
8
  const COMMON_NODE_TYPES = {
9
9
  ELEMENT: 1,
@@ -1,7 +1,7 @@
1
- import Validator from "@src/core/utils/validator";
2
- import NativeDocumentError from "@src/core/errors/NativeDocumentError";
1
+ import Validator from "../utils/validator";
2
+ import NativeDocumentError from "../errors/NativeDocumentError";
3
3
  import {BOOLEAN_ATTRIBUTES} from "./constants.js";
4
- import {Observable} from "@src/core/data/Observable";
4
+ import {Observable} from "../data/Observable";
5
5
  import './prototypes/bind-class-extensions';
6
6
 
7
7
 
@@ -1,4 +1,3 @@
1
- import {debounce} from "@src/core/utils/helpers";
2
1
 
3
2
  const DocumentObserver = {
4
3
  mounted: new WeakMap(),
@@ -1,7 +1,7 @@
1
- import Anchor from "@src/core/elements/anchor";
2
- import Validator from "@src/core/utils/validator";
1
+ import Anchor from "../elements/anchor";
2
+ import Validator from "../utils/validator";
3
3
  import AttributesWrapper from "./AttributesWrapper";
4
- import PluginsManager from "@src/core/utils/plugins-manager";
4
+ import PluginsManager from "../utils/plugins-manager";
5
5
  import './prototypes/nd-element-extensions';
6
6
  import './prototypes/attributes-extensions';
7
7
 
@@ -1,7 +1,7 @@
1
- import Validator from "@src/core/utils/validator";
1
+ import Validator from "../utils/validator";
2
2
  import {ElementCreator} from "./ElementCreator";
3
3
  import './NdPrototype';
4
- import {normalizeComponentArgs} from "@src/core/utils/args-types";
4
+ import {normalizeComponentArgs} from "../utils/args-types";
5
5
 
6
6
  /**
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import DocumentObserver from "./DocumentObserver";
2
- import PluginsManager from "@src/core/utils/plugins-manager";
3
- import NativeDocumentError from "@src/core/errors/NativeDocumentError.js";
4
- import DebugManager from "@src/core/utils/debug-manager.js";
2
+ import PluginsManager from "../utils/plugins-manager";
3
+ import NativeDocumentError from "../errors/NativeDocumentError.js";
4
+ import DebugManager from "../utils/debug-manager.js";
5
5
 
6
6
  export function NDElement(element) {
7
7
  this.$element = element;
@@ -1,5 +1,5 @@
1
1
  import { NDElement } from "./NDElement";
2
- import {EVENTS, EVENTS_WITH_PREVENT, EVENTS_WITH_STOP} from "@src/core/utils/events";
2
+ import {EVENTS, EVENTS_WITH_PREVENT, EVENTS_WITH_STOP} from "../utils/events";
3
3
 
4
4
  const property = {
5
5
  configurable: true,
@@ -1,4 +1,4 @@
1
- import Anchor from "@src/core/elements/anchor";
1
+ import Anchor from "../elements/anchor";
2
2
 
3
3
 
4
4
  export function SingletonView($viewCreator) {
@@ -204,5 +204,4 @@ export function useCache(fn) {
204
204
  return function(_, __, ...args) {
205
205
  return wrapper([_, __, ...args]);
206
206
  };
207
- }
208
- w
207
+ }
@@ -1,7 +1,7 @@
1
- import {bindAttributeWithObservable, bindBooleanAttribute} from "@src/core/wrappers/AttributesWrapper";
2
- import ObservableItem from "@src/core/data/ObservableItem";
3
- import TemplateBinding from "@src/core/wrappers/TemplateBinding";
4
- import {BOOLEAN_ATTRIBUTES} from "@src/core/wrappers/constants";
1
+ import {bindAttributeWithObservable, bindBooleanAttribute} from "../AttributesWrapper";
2
+ import ObservableItem from "../../data/ObservableItem";
3
+ import TemplateBinding from "../TemplateBinding";
4
+ import {BOOLEAN_ATTRIBUTES} from "../constants";
5
5
 
6
6
 
7
7
  String.prototype.handleNdAttribute = function(element, attributeName) {
@@ -1,7 +1,7 @@
1
- import ObservableItem from "@/core/data/ObservableItem";
2
- import {toggleElementClass} from "@/core/wrappers/AttributesWrapper";
3
- import {ObservableWhen} from "@/core/data/ObservableWhen";
4
- import TemplateBinding from "@/core/wrappers/TemplateBinding";
1
+ import ObservableItem from "../../../core/data/ObservableItem";
2
+ import {toggleElementClass} from "../AttributesWrapper";
3
+ import {ObservableWhen} from "../../data/ObservableWhen";
4
+ import TemplateBinding from "../../../core/wrappers/TemplateBinding";
5
5
 
6
6
  ObservableItem.prototype.bindNdClass = function(element, className) {
7
7
  element.classes.toggle(className, this.val());
@@ -1,9 +1,9 @@
1
- import ObservableItem from "@src/core/data/ObservableItem";
2
- import {NDElement} from "@src/core/wrappers/NDElement";
3
- import TemplateBinding from "@src/core/wrappers/TemplateBinding";
4
- import {ElementCreator} from "@src/core/wrappers/ElementCreator";
5
- import PluginsManager from "@src/core/utils/plugins-manager";
6
- import Validator from "@src/core/utils/validator";
1
+ import ObservableItem from "../../data/ObservableItem";
2
+ import {NDElement} from "../NDElement";
3
+ import TemplateBinding from "../TemplateBinding";
4
+ import {ElementCreator} from "../ElementCreator";
5
+ import PluginsManager from "../../utils/plugins-manager";
6
+ import Validator from "../../utils/validator";
7
7
 
8
8
  String.prototype.toNdElement = function () {
9
9
  const formattedChild = this.resolveObservableTemplate ? this.resolveObservableTemplate() : this;
@@ -1,5 +1,5 @@
1
- import {Div} from "@elements";
2
- import DevToolsWidget from "@devtools/widget/DevToolsWidget";
1
+ import {Div} from "../../../elements";
2
+ import DevToolsWidget from "../../devtools/widget/DevToolsWidget";
3
3
 
4
4
  export default function App() {
5
5
 
@@ -1,5 +1,5 @@
1
- import {Anchor} from "@elements";
2
- import Validator from "@src/core/utils/validator";
1
+ import {Anchor} from "../../../elements";
2
+ import Validator from "../../core/utils/validator";
3
3
 
4
4
  const ComponentRegistry = (function() {
5
5
  const registry = new Map();
@@ -1,4 +1,4 @@
1
- import {Observable} from "@core";
1
+ import {Observable} from "../../index";
2
2
 
3
3
  export const DevToolService = {
4
4
  createdObservable: Observable(0),
@@ -1,5 +1,5 @@
1
- import {Div, Button} from "@elements";
2
- import {DevToolService} from "@devtools/plugin";
1
+ import {Div, Button} from "../../../elements";
2
+ import {DevToolService} from "../plugin";
3
3
 
4
4
  export default function DevToolsWidget() {
5
5
  let shouldFollowPointer = false;
@@ -1,4 +1,4 @@
1
- import {trim} from "@src/core/utils/helpers.js";
1
+ import {trim} from "../core/utils/helpers.js";
2
2
 
3
3
  export const RouteParamPatterns = {
4
4
 
@@ -1,4 +1,4 @@
1
- import {trim} from "@src/core/utils/helpers.js";
1
+ import {trim} from "../core/utils/helpers.js";
2
2
 
3
3
  export const RouteGroupHelper = {
4
4
  /**
@@ -1,12 +1,12 @@
1
1
  import {Route} from "./Route.js";
2
- import Validator from "@src/core/utils/validator.js";
3
- import RouterError from "@src/core/errors/RouterError.js";
2
+ import Validator from "../core/utils/validator.js";
3
+ import RouterError from "./errors/RouterError.js";
4
4
  import {RouteGroupHelper} from "./RouteGroupHelper.js";
5
- import {trim} from "@src/core/utils/helpers.js";
5
+ import {trim} from "../core/utils/helpers.js";
6
6
  import HashRouter from "./modes/HashRouter.js";
7
7
  import HistoryRouter from "./modes/HistoryRouter.js";
8
8
  import MemoryRouter from "./modes/MemoryRouter.js";
9
- import DebugManager from "@src/core/utils/debug-manager.js";
9
+ import DebugManager from "../core/utils/debug-manager.js";
10
10
  import {RouterComponent} from "./RouterComponent.js";
11
11
 
12
12
  export const DEFAULT_ROUTER_NAME = 'default';
@@ -1,4 +1,4 @@
1
- import Validator from "@src/core/utils/validator";
1
+ import Validator from "../core/utils/validator";
2
2
 
3
3
  /**
4
4
  *
@@ -1,7 +1,7 @@
1
- import Validator from "@src/core/utils/validator.js";
2
- import {Link as NativeLink} from "@elements";
3
- import Router, {DEFAULT_ROUTER_NAME} from "./Router.js";
4
- import RouterError from "@src/core/errors/RouterError.js";
1
+ import Validator from "../core/utils/validator";
2
+ import {Link as NativeLink} from "../../elements";
3
+ import Router, {DEFAULT_ROUTER_NAME} from "./Router";
4
+ import RouterError from "./errors/RouterError";
5
5
 
6
6
 
7
7
  export function Link(options, children){
@@ -1,4 +1,4 @@
1
- import DebugManager from "@src/core/utils/debug-manager.js";
1
+ import DebugManager from "../../core/utils/debug-manager.js";
2
2
 
3
3
  export default function HistoryRouter() {
4
4
 
@@ -37,7 +37,6 @@ export interface ForEachFunction {
37
37
  export interface ForEachArrayFunction {
38
38
  <T>(data: ObservableArray<T>,
39
39
  callback: (item: T, index?: ObservableItem<number>) => ValidChild,
40
- key?: string | ((item: T, defaultKey: number) => string),
41
40
  configs?: { pushDelay?: (items: T[]) => number, isParentUniqueChild: boolean, shouldKeepItemsInCache?: boolean }): DocumentFragment;
42
41
  }
43
42
 
@@ -1,4 +1,4 @@
1
- import { ObservableItem } from '@src/core/data/observable';
1
+ import { ObservableItem } from '../observable';
2
2
  import { FilterResult } from './types';
3
3
 
4
4
  export type DateValue = Date | string | number | ObservableItem<Date | string | number>;
@@ -1,4 +1,4 @@
1
- import { ObservableItem } from '@src/core/data/observable';
1
+ import { ObservableItem } from '../observable';
2
2
 
3
3
  export interface FilterResult<T = any> {
4
4
  dependencies: ObservableItem | ObservableItem[] | null;
package/utils.js CHANGED
@@ -1,6 +1,6 @@
1
- import NativeFetch from "@src/fetch/NativeFetch";
2
- import { Service } from "@src/core/utils/service";
3
- import * as Filters from "@src/core/utils/filters/index";
1
+ import NativeFetch from "./src/fetch/NativeFetch";
2
+ import { Service } from "./src/core/utils/service";
3
+ import * as Filters from "./src/core/utils/filters/index";
4
4
 
5
5
 
6
6
  export {
package/jsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "@/*": ["src/*"],
6
- "@src/*": ["src/*"],
7
- "@root/*": ["src/*"],
8
- "@components/*": ["src/components/*"],
9
- "@devtools/*": ["src/devtools/*"],
10
- "@core": ["index"],
11
- "@elements": ["elements"]
12
- }
13
- },
14
- "exclude": ["node_modules", "dist"]
15
- }
File without changes