lkt-vue-kernel 1.0.7 → 1.0.8

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.d.ts CHANGED
@@ -335,6 +335,24 @@ interface ModalConfig extends LktObject {
335
335
  cancelButton?: Partial<ButtonConfig>;
336
336
  }
337
337
 
338
+ declare enum PaginatorType {
339
+ Pages = "pages",
340
+ PrevNext = "prev-next",
341
+ PagesPrevNext = "pages-prev-next",
342
+ PagesPrevNextFirstLast = "pages-prev-next-first-last",
343
+ LoadMore = "load-more",
344
+ Infinite = "infinite"
345
+ }
346
+
347
+ interface PaginatorConfig {
348
+ type: PaginatorType;
349
+ modelValue: number;
350
+ class: string;
351
+ resource: string;
352
+ readOnly: boolean;
353
+ filters: LktObject;
354
+ }
355
+
338
356
  declare enum TooltipLocationY {
339
357
  Top = "top",
340
358
  Bottom = "bottom",
@@ -681,7 +699,6 @@ interface TableConfig {
681
699
  slotItemVar?: string;
682
700
  modal?: string;
683
701
  modalData?: LktObject;
684
- itemMode?: boolean;
685
702
  }
686
703
 
687
704
  declare class LktStrictItem extends LktItem {
@@ -729,6 +746,18 @@ declare class Modal extends LktItem implements ModalConfig {
729
746
  constructor(data?: Partial<ModalConfig>);
730
747
  }
731
748
 
749
+ declare class Paginator extends LktItem implements PaginatorConfig {
750
+ static lktAllowUndefinedProps: string[];
751
+ static lktDefaultValues: (keyof PaginatorConfig)[];
752
+ type: PaginatorType;
753
+ modelValue: number;
754
+ class: string;
755
+ resource: string;
756
+ readOnly: boolean;
757
+ filters: LktObject;
758
+ constructor(data?: Partial<PaginatorConfig>);
759
+ }
760
+
732
761
  declare class Table extends LktItem implements TableConfig {
733
762
  static lktDefaultValues: (keyof TableConfig)[];
734
763
  modelValue: LktObject[];
@@ -818,4 +847,4 @@ declare function getDefaultValues<T>(cls: {
818
847
  lktDefaultValues: (keyof T)[];
819
848
  }): Partial<T>;
820
849
 
821
- export { Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, Field, FieldAutoValidationTrigger, type FieldConfig, FieldType, LktItem, type LktObject, LktStrictItem, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalType, MultipleOptionsDisplay, Option, type OptionConfig, SafeString, type ScanPropTarget, SortDirection, Table, type TableConfig, TablePermission, TableRowType, TableType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type ValidBeforeCloseModal, type ValidColSpan, type ValidFieldMinMax, type ValidFieldValue, type ValidModalKey, type ValidModalName, type ValidOptionValue, type ValidSafeStringValue, type ValidScanPropTarget, type ValidTabIndex, type ValidTablePermission, type ValidTableRowTypeValue, extractPropValue, getDefaultValues };
850
+ export { Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, Field, FieldAutoValidationTrigger, type FieldConfig, FieldType, LktItem, type LktObject, LktStrictItem, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalType, MultipleOptionsDisplay, Option, type OptionConfig, Paginator, type PaginatorConfig, PaginatorType, SafeString, type ScanPropTarget, SortDirection, Table, type TableConfig, TablePermission, TableRowType, TableType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type ValidBeforeCloseModal, type ValidColSpan, type ValidFieldMinMax, type ValidFieldValue, type ValidModalKey, type ValidModalName, type ValidOptionValue, type ValidSafeStringValue, type ValidScanPropTarget, type ValidTabIndex, type ValidTablePermission, type ValidTableRowTypeValue, extractPropValue, getDefaultValues };
package/dist/index.js CHANGED
@@ -590,6 +590,40 @@ var Modal = class extends LktItem {
590
590
  }
591
591
  };
592
592
 
593
+ // src/enums/PaginatorType.ts
594
+ var PaginatorType = /* @__PURE__ */ ((PaginatorType2) => {
595
+ PaginatorType2["Pages"] = "pages";
596
+ PaginatorType2["PrevNext"] = "prev-next";
597
+ PaginatorType2["PagesPrevNext"] = "pages-prev-next";
598
+ PaginatorType2["PagesPrevNextFirstLast"] = "pages-prev-next-first-last";
599
+ PaginatorType2["LoadMore"] = "load-more";
600
+ PaginatorType2["Infinite"] = "infinite";
601
+ return PaginatorType2;
602
+ })(PaginatorType || {});
603
+
604
+ // src/instances/Paginator.ts
605
+ var Paginator = class extends LktItem {
606
+ static lktAllowUndefinedProps = [];
607
+ static lktDefaultValues = [
608
+ "type",
609
+ "modelValue",
610
+ "class",
611
+ "resource",
612
+ "readOnly",
613
+ "filters"
614
+ ];
615
+ type = "pages-prev-next" /* PagesPrevNext */;
616
+ modelValue = 1;
617
+ class = "";
618
+ resource = "";
619
+ readOnly = false;
620
+ filters = {};
621
+ constructor(data = {}) {
622
+ super();
623
+ this.feed(data);
624
+ }
625
+ };
626
+
593
627
  // src/enums/TableType.ts
594
628
  var TableType = /* @__PURE__ */ ((TableType2) => {
595
629
  TableType2["Table"] = "table";
@@ -837,6 +871,8 @@ export {
837
871
  ModalType,
838
872
  MultipleOptionsDisplay,
839
873
  Option,
874
+ Paginator,
875
+ PaginatorType,
840
876
  SafeString,
841
877
  SortDirection,
842
878
  Table,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-vue-kernel",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "LKT Vue Kernel",
5
5
  "keywords": [
6
6
  "lkt",