@3t-transform/threeteeui 0.1.59 → 0.1.60
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tttx-button.cjs.entry.js +5 -3
- package/dist/cjs/tttx-form.cjs.entry.js +1 -1
- package/dist/cjs/tttx-tree-view.cjs.entry.js +92 -0
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +20 -0
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +22 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +20 -0
- package/dist/collection/components/molecules/tttx-tree-view/helper/helper.js +1 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +72 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +140 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +698 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/tttx-button2.js +6 -3
- package/dist/components/tttx-form.js +1 -1
- package/dist/components/tttx-tree-view.d.ts +11 -0
- package/dist/components/tttx-tree-view.js +120 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tttx-button.entry.js +5 -3
- package/dist/esm/tttx-form.entry.js +1 -1
- package/dist/esm/tttx-tree-view.entry.js +88 -0
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-2f066b53.entry.js +1 -0
- package/dist/tttx/p-3c7e11d9.entry.js +1 -0
- package/dist/tttx/{p-5a4eacd9.entry.js → p-57621fdb.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +1 -0
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +14 -0
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +14 -0
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +20 -0
- package/dist/types/components.d.ts +23 -0
- package/package.json +1 -1
- package/dist/tttx/p-28d80500.entry.js +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
actions: {
|
|
6
|
+
handles: string[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: any;
|
|
13
|
+
export declare const Simple: any;
|
|
14
|
+
export declare const RightButtons: any;
|
|
15
|
+
export declare const MenuButton: any;
|
|
16
|
+
export declare const Chevron: any;
|
|
17
|
+
export declare const HTML: any;
|
|
18
|
+
export declare const Checkbox: any;
|
|
19
|
+
export declare const Icons: any;
|
|
20
|
+
export declare const CheckBoxAndIcons: any;
|
|
@@ -10,10 +10,12 @@ import { FilterChangeEvent, FilterSettings } from "./components/molecules/tttx-f
|
|
|
10
10
|
import { ListItem } from "./components/molecules/tttx-list/interfaces";
|
|
11
11
|
import { SorterChangeEvent, SorterData } from "./components/molecules/tttx-sorter/interfaces";
|
|
12
12
|
import { MinMaxDates } from "./components/molecules/tttx-standalone-input/tttx-standalone-input";
|
|
13
|
+
import { TreeViewItem } from "./components/molecules/tttx-tree-view/helper/helper";
|
|
13
14
|
export namespace Components {
|
|
14
15
|
interface TttxButton {
|
|
15
16
|
"design": string;
|
|
16
17
|
"icon": string;
|
|
18
|
+
"iconcolor": string;
|
|
17
19
|
"iconposition": 'left' | 'right';
|
|
18
20
|
"notext": boolean;
|
|
19
21
|
}
|
|
@@ -111,6 +113,9 @@ export namespace Components {
|
|
|
111
113
|
interface TttxToolbar {
|
|
112
114
|
"border": boolean;
|
|
113
115
|
}
|
|
116
|
+
interface TttxTreeView {
|
|
117
|
+
"data": TreeViewItem[];
|
|
118
|
+
}
|
|
114
119
|
}
|
|
115
120
|
export interface TttxDialogBoxCustomEvent<T> extends CustomEvent<T> {
|
|
116
121
|
detail: T;
|
|
@@ -136,6 +141,10 @@ export interface TttxStandaloneInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
136
141
|
detail: T;
|
|
137
142
|
target: HTMLTttxStandaloneInputElement;
|
|
138
143
|
}
|
|
144
|
+
export interface TttxTreeViewCustomEvent<T> extends CustomEvent<T> {
|
|
145
|
+
detail: T;
|
|
146
|
+
target: HTMLTttxTreeViewElement;
|
|
147
|
+
}
|
|
139
148
|
declare global {
|
|
140
149
|
interface HTMLTttxButtonElement extends Components.TttxButton, HTMLStencilElement {
|
|
141
150
|
}
|
|
@@ -209,6 +218,12 @@ declare global {
|
|
|
209
218
|
prototype: HTMLTttxToolbarElement;
|
|
210
219
|
new (): HTMLTttxToolbarElement;
|
|
211
220
|
};
|
|
221
|
+
interface HTMLTttxTreeViewElement extends Components.TttxTreeView, HTMLStencilElement {
|
|
222
|
+
}
|
|
223
|
+
var HTMLTttxTreeViewElement: {
|
|
224
|
+
prototype: HTMLTttxTreeViewElement;
|
|
225
|
+
new (): HTMLTttxTreeViewElement;
|
|
226
|
+
};
|
|
212
227
|
interface HTMLElementTagNameMap {
|
|
213
228
|
"tttx-button": HTMLTttxButtonElement;
|
|
214
229
|
"tttx-dialog-box": HTMLTttxDialogBoxElement;
|
|
@@ -222,12 +237,14 @@ declare global {
|
|
|
222
237
|
"tttx-sorter": HTMLTttxSorterElement;
|
|
223
238
|
"tttx-standalone-input": HTMLTttxStandaloneInputElement;
|
|
224
239
|
"tttx-toolbar": HTMLTttxToolbarElement;
|
|
240
|
+
"tttx-tree-view": HTMLTttxTreeViewElement;
|
|
225
241
|
}
|
|
226
242
|
}
|
|
227
243
|
declare namespace LocalJSX {
|
|
228
244
|
interface TttxButton {
|
|
229
245
|
"design"?: string;
|
|
230
246
|
"icon"?: string;
|
|
247
|
+
"iconcolor"?: string;
|
|
231
248
|
"iconposition"?: 'left' | 'right';
|
|
232
249
|
"notext"?: boolean;
|
|
233
250
|
}
|
|
@@ -340,6 +357,10 @@ declare namespace LocalJSX {
|
|
|
340
357
|
interface TttxToolbar {
|
|
341
358
|
"border"?: boolean;
|
|
342
359
|
}
|
|
360
|
+
interface TttxTreeView {
|
|
361
|
+
"data"?: TreeViewItem[];
|
|
362
|
+
"onClickEvent"?: (event: TttxTreeViewCustomEvent<any>) => void;
|
|
363
|
+
}
|
|
343
364
|
interface IntrinsicElements {
|
|
344
365
|
"tttx-button": TttxButton;
|
|
345
366
|
"tttx-dialog-box": TttxDialogBox;
|
|
@@ -353,6 +374,7 @@ declare namespace LocalJSX {
|
|
|
353
374
|
"tttx-sorter": TttxSorter;
|
|
354
375
|
"tttx-standalone-input": TttxStandaloneInput;
|
|
355
376
|
"tttx-toolbar": TttxToolbar;
|
|
377
|
+
"tttx-tree-view": TttxTreeView;
|
|
356
378
|
}
|
|
357
379
|
}
|
|
358
380
|
export { LocalJSX as JSX };
|
|
@@ -371,6 +393,7 @@ declare module "@stencil/core" {
|
|
|
371
393
|
"tttx-sorter": LocalJSX.TttxSorter & JSXBase.HTMLAttributes<HTMLTttxSorterElement>;
|
|
372
394
|
"tttx-standalone-input": LocalJSX.TttxStandaloneInput & JSXBase.HTMLAttributes<HTMLTttxStandaloneInputElement>;
|
|
373
395
|
"tttx-toolbar": LocalJSX.TttxToolbar & JSXBase.HTMLAttributes<HTMLTttxToolbarElement>;
|
|
396
|
+
"tttx-tree-view": LocalJSX.TttxTreeView & JSXBase.HTMLAttributes<HTMLTttxTreeViewElement>;
|
|
374
397
|
}
|
|
375
398
|
}
|
|
376
399
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as t,H as r}from"./p-c544551b.js";const i=class{constructor(t){o(this,t),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design||(this._iconcolor="white")}render(){return t(r,null,t("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&t("div",{class:"icon-left"},t("tttx-icon",{icon:this.icon,color:this._iconcolor})),!this.notext&&t("div",{class:"button-content"},t("slot",null)),this.icon&&"right"===this.iconposition&&t("div",{class:"icon-right"},t("tttx-icon",{icon:this.icon,color:this._iconcolor}))))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}';export{i as tttx_button}
|