@rozie-ui/sortable-list-lit 0.1.5

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.
@@ -0,0 +1,97 @@
1
+ import * as _$lit from "lit";
2
+ import { LitElement } from "lit";
3
+
4
+ //#region src/SortableList.d.ts
5
+ declare const SortableList_base: typeof LitElement;
6
+ declare class SortableList extends SortableList_base {
7
+ static styles: _$lit.CSSResult;
8
+ _items_attr: any[];
9
+ private _itemsControllable;
10
+ itemKey: string | (((...args: unknown[]) => unknown) | null);
11
+ handle: string;
12
+ group: string;
13
+ animation: number;
14
+ disabled: boolean;
15
+ disableKeyboard: boolean;
16
+ options: any;
17
+ labelFor: ((...args: unknown[]) => unknown) | null;
18
+ ghostClass: string;
19
+ chosenClass: string;
20
+ dragClass: string;
21
+ filter: string;
22
+ easing: string;
23
+ forceFallback: boolean;
24
+ swapThreshold: number;
25
+ cloneable: boolean;
26
+ listClass: string | any[] | any;
27
+ itemClass: string | any[] | any | (((...args: unknown[]) => unknown) | null);
28
+ itemStyle: string | any | (((...args: unknown[]) => unknown) | null);
29
+ private _liftedIndex;
30
+ private _ariaLiveText;
31
+ private _refListEl;
32
+ private _ref__rozieRoot;
33
+ private __rozieFirstUpdateDone;
34
+ private _hasSlotHeader;
35
+ private _slotHeaderElements;
36
+ private _hasSlotDefault;
37
+ private _slotDefaultElements;
38
+ __rozieDefaultSlot__?: (scope: {
39
+ item: unknown;
40
+ index: unknown;
41
+ }) => unknown;
42
+ private _hasSlotFooter;
43
+ private _slotFooterElements;
44
+ private _disconnectCleanups;
45
+ private _rozieTornDown;
46
+ _rozieReconcileSeq: number;
47
+ private _armListeners;
48
+ connectedCallback(): void;
49
+ firstUpdated(): void;
50
+ updated(changedProperties: Map<string, unknown>): void;
51
+ disconnectedCallback(): void;
52
+ attributeChangedCallback(name: string, old: string | null, value: string | null): void;
53
+ render(): _$lit.TemplateResult<1>;
54
+ instance: any;
55
+ __rowKey: {
56
+ map: WeakMap<object, any>;
57
+ seq: number;
58
+ };
59
+ keyFor: (item: any, index: any) => any;
60
+ itemClassFor: (item: any, index: any) => any;
61
+ itemStyleFor: (item: any, index: any) => any;
62
+ getLabel: (idx: any) => any;
63
+ keyboardEnabled: () => boolean;
64
+ onRowKeyDown: ($event: any, index: any) => void;
65
+ getInstance(): any;
66
+ toArray(): any;
67
+ sort(order: any, useAnimation?: boolean): void;
68
+ option(name: any, value: any): any;
69
+ get items(): any[];
70
+ set items(v: any[]);
71
+ /**
72
+ * Plan 14-05 — cross-framework attribute fallthrough source. Reads the
73
+ * host custom element's attributes on each call so a consumer-side bound
74
+ * attribute flows through on every render. The `rozieSpread` directive
75
+ * (D-02) does the cross-render diff downstream.
76
+ *
77
+ * Phase 15 follow-up Bug A — declared-prop attribute names are filtered
78
+ * out so `$attrs` returns "rest after declared props" (semantic parity
79
+ * with React/Vue/Svelte/Solid/Angular). Both Lit attribute-naming
80
+ * forms are folded into the skip set: kebab-case for model props
81
+ * (explicit `attribute:`) AND lowercased property name (Lit's default).
82
+ */
83
+ private get $attrs();
84
+ /**
85
+ * Phase 15 D-19 — consumer-passed listener cluster placeholder.
86
+ * Lit attaches event listeners directly on the host element via
87
+ * `addEventListener` (no per-instance prop rest binding), so the
88
+ * runtime value is undefined; the `rozieListeners` directive's
89
+ * nullish coercion (`obj ?? {}`) handles the no-op cleanly.
90
+ * The declaration exists to satisfy `tsc --noEmit` on consumer
91
+ * projects with strict mode — bare `$listeners` in `render()`
92
+ * would otherwise raise TS2304 (Cannot find name).
93
+ */
94
+ private get $listeners();
95
+ }
96
+ //#endregion
97
+ export { SortableList, SortableList as default };
@@ -0,0 +1,97 @@
1
+ import * as _$lit from "lit";
2
+ import { LitElement } from "lit";
3
+
4
+ //#region src/SortableList.d.ts
5
+ declare const SortableList_base: typeof LitElement;
6
+ declare class SortableList extends SortableList_base {
7
+ static styles: _$lit.CSSResult;
8
+ _items_attr: any[];
9
+ private _itemsControllable;
10
+ itemKey: string | (((...args: unknown[]) => unknown) | null);
11
+ handle: string;
12
+ group: string;
13
+ animation: number;
14
+ disabled: boolean;
15
+ disableKeyboard: boolean;
16
+ options: any;
17
+ labelFor: ((...args: unknown[]) => unknown) | null;
18
+ ghostClass: string;
19
+ chosenClass: string;
20
+ dragClass: string;
21
+ filter: string;
22
+ easing: string;
23
+ forceFallback: boolean;
24
+ swapThreshold: number;
25
+ cloneable: boolean;
26
+ listClass: string | any[] | any;
27
+ itemClass: string | any[] | any | (((...args: unknown[]) => unknown) | null);
28
+ itemStyle: string | any | (((...args: unknown[]) => unknown) | null);
29
+ private _liftedIndex;
30
+ private _ariaLiveText;
31
+ private _refListEl;
32
+ private _ref__rozieRoot;
33
+ private __rozieFirstUpdateDone;
34
+ private _hasSlotHeader;
35
+ private _slotHeaderElements;
36
+ private _hasSlotDefault;
37
+ private _slotDefaultElements;
38
+ __rozieDefaultSlot__?: (scope: {
39
+ item: unknown;
40
+ index: unknown;
41
+ }) => unknown;
42
+ private _hasSlotFooter;
43
+ private _slotFooterElements;
44
+ private _disconnectCleanups;
45
+ private _rozieTornDown;
46
+ _rozieReconcileSeq: number;
47
+ private _armListeners;
48
+ connectedCallback(): void;
49
+ firstUpdated(): void;
50
+ updated(changedProperties: Map<string, unknown>): void;
51
+ disconnectedCallback(): void;
52
+ attributeChangedCallback(name: string, old: string | null, value: string | null): void;
53
+ render(): _$lit.TemplateResult<1>;
54
+ instance: any;
55
+ __rowKey: {
56
+ map: WeakMap<object, any>;
57
+ seq: number;
58
+ };
59
+ keyFor: (item: any, index: any) => any;
60
+ itemClassFor: (item: any, index: any) => any;
61
+ itemStyleFor: (item: any, index: any) => any;
62
+ getLabel: (idx: any) => any;
63
+ keyboardEnabled: () => boolean;
64
+ onRowKeyDown: ($event: any, index: any) => void;
65
+ getInstance(): any;
66
+ toArray(): any;
67
+ sort(order: any, useAnimation?: boolean): void;
68
+ option(name: any, value: any): any;
69
+ get items(): any[];
70
+ set items(v: any[]);
71
+ /**
72
+ * Plan 14-05 — cross-framework attribute fallthrough source. Reads the
73
+ * host custom element's attributes on each call so a consumer-side bound
74
+ * attribute flows through on every render. The `rozieSpread` directive
75
+ * (D-02) does the cross-render diff downstream.
76
+ *
77
+ * Phase 15 follow-up Bug A — declared-prop attribute names are filtered
78
+ * out so `$attrs` returns "rest after declared props" (semantic parity
79
+ * with React/Vue/Svelte/Solid/Angular). Both Lit attribute-naming
80
+ * forms are folded into the skip set: kebab-case for model props
81
+ * (explicit `attribute:`) AND lowercased property name (Lit's default).
82
+ */
83
+ private get $attrs();
84
+ /**
85
+ * Phase 15 D-19 — consumer-passed listener cluster placeholder.
86
+ * Lit attaches event listeners directly on the host element via
87
+ * `addEventListener` (no per-instance prop rest binding), so the
88
+ * runtime value is undefined; the `rozieListeners` directive's
89
+ * nullish coercion (`obj ?? {}`) handles the no-op cleanly.
90
+ * The declaration exists to satisfy `tsc --noEmit` on consumer
91
+ * projects with strict mode — bare `$listeners` in `render()`
92
+ * would otherwise raise TS2304 (Cannot find name).
93
+ */
94
+ private get $listeners();
95
+ }
96
+ //#endregion
97
+ export { SortableList, SortableList as default };