lkt-vue-kernel 1.0.7 → 1.0.9
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 +36 -3
- package/dist/index.js +38 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueElement } from 'vue';
|
|
1
|
+
import { VueElement, Component } from 'vue';
|
|
2
2
|
import { RouteLocationRaw } from 'vue-router';
|
|
3
3
|
|
|
4
4
|
interface LktObject {
|
|
@@ -335,6 +335,25 @@ 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
|
+
loading?: boolean;
|
|
354
|
+
filters?: LktObject;
|
|
355
|
+
}
|
|
356
|
+
|
|
338
357
|
declare enum TooltipLocationY {
|
|
339
358
|
Top = "top",
|
|
340
359
|
Bottom = "bottom",
|
|
@@ -681,7 +700,6 @@ interface TableConfig {
|
|
|
681
700
|
slotItemVar?: string;
|
|
682
701
|
modal?: string;
|
|
683
702
|
modalData?: LktObject;
|
|
684
|
-
itemMode?: boolean;
|
|
685
703
|
}
|
|
686
704
|
|
|
687
705
|
declare class LktStrictItem extends LktItem {
|
|
@@ -729,6 +747,19 @@ declare class Modal extends LktItem implements ModalConfig {
|
|
|
729
747
|
constructor(data?: Partial<ModalConfig>);
|
|
730
748
|
}
|
|
731
749
|
|
|
750
|
+
declare class Paginator extends LktItem implements PaginatorConfig {
|
|
751
|
+
static lktAllowUndefinedProps: string[];
|
|
752
|
+
static lktDefaultValues: (keyof PaginatorConfig)[];
|
|
753
|
+
type?: PaginatorType;
|
|
754
|
+
modelValue?: number;
|
|
755
|
+
class?: string;
|
|
756
|
+
resource?: string;
|
|
757
|
+
readOnly?: boolean;
|
|
758
|
+
loading?: boolean;
|
|
759
|
+
filters?: LktObject;
|
|
760
|
+
constructor(data?: Partial<PaginatorConfig>);
|
|
761
|
+
}
|
|
762
|
+
|
|
732
763
|
declare class Table extends LktItem implements TableConfig {
|
|
733
764
|
static lktDefaultValues: (keyof TableConfig)[];
|
|
734
765
|
modelValue: LktObject[];
|
|
@@ -805,6 +836,8 @@ declare enum SortDirection {
|
|
|
805
836
|
|
|
806
837
|
type ScanPropTarget = string | number | undefined | Function;
|
|
807
838
|
|
|
839
|
+
type ValidCustomSlot = string | Component | undefined;
|
|
840
|
+
|
|
808
841
|
type ValidScanPropTarget = ScanPropTarget | ((...args: any[]) => ScanPropTarget);
|
|
809
842
|
|
|
810
843
|
declare const extractPropValue: (needle: ValidScanPropTarget, haystack: LktObject) => ValidScanPropTarget;
|
|
@@ -818,4 +851,4 @@ declare function getDefaultValues<T>(cls: {
|
|
|
818
851
|
lktDefaultValues: (keyof T)[];
|
|
819
852
|
}): Partial<T>;
|
|
820
853
|
|
|
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 };
|
|
854
|
+
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 ValidCustomSlot, 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,42 @@ 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
|
+
"loading",
|
|
614
|
+
"filters"
|
|
615
|
+
];
|
|
616
|
+
type = "pages-prev-next" /* PagesPrevNext */;
|
|
617
|
+
modelValue = 1;
|
|
618
|
+
class = "";
|
|
619
|
+
resource = "";
|
|
620
|
+
readOnly = false;
|
|
621
|
+
loading = false;
|
|
622
|
+
filters = {};
|
|
623
|
+
constructor(data = {}) {
|
|
624
|
+
super();
|
|
625
|
+
this.feed(data);
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
|
|
593
629
|
// src/enums/TableType.ts
|
|
594
630
|
var TableType = /* @__PURE__ */ ((TableType2) => {
|
|
595
631
|
TableType2["Table"] = "table";
|
|
@@ -837,6 +873,8 @@ export {
|
|
|
837
873
|
ModalType,
|
|
838
874
|
MultipleOptionsDisplay,
|
|
839
875
|
Option,
|
|
876
|
+
Paginator,
|
|
877
|
+
PaginatorType,
|
|
840
878
|
SafeString,
|
|
841
879
|
SortDirection,
|
|
842
880
|
Table,
|