@3t-transform/threeteeui 0.2.83 → 0.2.85

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 (84) hide show
  1. package/dist/cjs/{index-4cfa8e25.js → index-44c9fa62.js} +4 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-dialog-box.cjs.entry.js +12 -1
  5. package/dist/cjs/tttx-expander.cjs.entry.js +27 -0
  6. package/dist/cjs/tttx-filter.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  8. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-list.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  12. package/dist/cjs/tttx-multiselect-box.cjs.entry.js +1 -1
  13. package/dist/cjs/tttx-percentage-bar.cjs.entry.js +1 -1
  14. package/dist/cjs/tttx-qrcode.cjs.entry.js +1 -1
  15. package/dist/cjs/tttx-select-box.cjs.entry.js +1 -1
  16. package/dist/cjs/tttx-sorter.cjs.entry.js +1 -1
  17. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  18. package/dist/cjs/tttx-tabs.cjs.entry.js +1 -1
  19. package/dist/cjs/tttx-tag.cjs.entry.js +1 -1
  20. package/dist/cjs/tttx-textarea.cjs.entry.js +1 -1
  21. package/dist/cjs/tttx-toolbar.cjs.entry.js +1 -1
  22. package/dist/cjs/tttx-tree-view.cjs.entry.js +1 -1
  23. package/dist/cjs/tttx.cjs.js +2 -2
  24. package/dist/collection/collection-manifest.json +1 -0
  25. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +11 -0
  26. package/dist/collection/components/molecules/tttx-expander/tttx-expander.css +47 -0
  27. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +118 -0
  28. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +62 -0
  29. package/dist/components/index.d.ts +1 -0
  30. package/dist/components/index.js +1 -0
  31. package/dist/components/tttx-dialog-box.js +11 -0
  32. package/dist/components/tttx-expander.d.ts +11 -0
  33. package/dist/components/tttx-expander.js +52 -0
  34. package/dist/esm/{index-6a372ea6.js → index-65b1e0d1.js} +4 -0
  35. package/dist/esm/loader.js +3 -3
  36. package/dist/esm/tttx-button.entry.js +1 -1
  37. package/dist/esm/tttx-dialog-box.entry.js +12 -1
  38. package/dist/esm/tttx-expander.entry.js +23 -0
  39. package/dist/esm/tttx-filter.entry.js +1 -1
  40. package/dist/esm/tttx-form.entry.js +1 -1
  41. package/dist/esm/tttx-icon.entry.js +1 -1
  42. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  43. package/dist/esm/tttx-list.entry.js +1 -1
  44. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  45. package/dist/esm/tttx-multiselect-box.entry.js +1 -1
  46. package/dist/esm/tttx-percentage-bar.entry.js +1 -1
  47. package/dist/esm/tttx-qrcode.entry.js +1 -1
  48. package/dist/esm/tttx-select-box.entry.js +1 -1
  49. package/dist/esm/tttx-sorter.entry.js +1 -1
  50. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  51. package/dist/esm/tttx-tabs.entry.js +1 -1
  52. package/dist/esm/tttx-tag.entry.js +1 -1
  53. package/dist/esm/tttx-textarea.entry.js +1 -1
  54. package/dist/esm/tttx-toolbar.entry.js +1 -1
  55. package/dist/esm/tttx-tree-view.entry.js +1 -1
  56. package/dist/esm/tttx.js +3 -3
  57. package/dist/tttx/p-0343ca04.entry.js +1 -0
  58. package/dist/tttx/{p-1c3ab606.entry.js → p-0b2026f7.entry.js} +1 -1
  59. package/dist/tttx/{p-09b92178.entry.js → p-14d89f70.entry.js} +1 -1
  60. package/dist/tttx/{p-d1ff1456.entry.js → p-15a42062.entry.js} +1 -1
  61. package/dist/tttx/{p-55831705.entry.js → p-1c2f0e77.entry.js} +1 -1
  62. package/dist/tttx/{p-e55a967b.entry.js → p-291d5ae0.entry.js} +1 -1
  63. package/dist/tttx/p-46a6a5db.entry.js +1 -0
  64. package/dist/tttx/{p-25acdd4c.entry.js → p-4d349193.entry.js} +1 -1
  65. package/dist/tttx/{p-c714f7c0.entry.js → p-5ca83a07.entry.js} +1 -1
  66. package/dist/tttx/{p-a3b446f8.entry.js → p-6bd70736.entry.js} +1 -1
  67. package/dist/tttx/{p-5290db99.entry.js → p-7346c185.entry.js} +1 -1
  68. package/dist/tttx/{p-c5bb34b7.entry.js → p-8503e35b.entry.js} +1 -1
  69. package/dist/tttx/{p-50cdce65.entry.js → p-8526fe6d.entry.js} +1 -1
  70. package/dist/tttx/{p-9556a164.entry.js → p-96d6a1ed.entry.js} +1 -1
  71. package/dist/tttx/{p-3f1b6013.js → p-99a41e8e.js} +1 -1
  72. package/dist/tttx/{p-f4594fe2.entry.js → p-aab2c93c.entry.js} +1 -1
  73. package/dist/tttx/{p-359fd780.entry.js → p-b7a2de3b.entry.js} +1 -1
  74. package/dist/tttx/{p-c0c022cd.entry.js → p-df198186.entry.js} +1 -1
  75. package/dist/tttx/{p-e89b053f.entry.js → p-f12eb43b.entry.js} +1 -1
  76. package/dist/tttx/{p-149f806e.entry.js → p-f2d08143.entry.js} +1 -1
  77. package/dist/tttx/{p-4ade2866.entry.js → p-fa12ed9d.entry.js} +1 -1
  78. package/dist/tttx/tttx.esm.js +1 -1
  79. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +4 -1
  80. package/dist/types/components/molecules/tttx-expander/tttx-expander.d.ts +10 -0
  81. package/dist/types/components/molecules/tttx-expander/tttx-expander.stories.d.ts +27 -0
  82. package/dist/types/components.d.ts +26 -0
  83. package/package.json +1 -1
  84. package/dist/tttx/p-02da8327.entry.js +0 -1
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ lefticon: {
6
+ control: {
7
+ type: string;
8
+ };
9
+ options: string[];
10
+ };
11
+ lefticoncolor: {
12
+ control: {
13
+ type: string;
14
+ };
15
+ options: string[];
16
+ };
17
+ };
18
+ parameters: {
19
+ actions: {
20
+ handles: string[];
21
+ };
22
+ };
23
+ decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
24
+ };
25
+ export default _default;
26
+ export declare const ExpanderBookings: any;
27
+ export declare const ExpanderTags: any;
@@ -30,6 +30,12 @@ export namespace Components {
30
30
  "open": boolean;
31
31
  "size": 'regular' | 'mobile' | 'large' | 'small';
32
32
  }
33
+ interface TttxExpander {
34
+ "expanded": boolean;
35
+ "lefticon"?: string;
36
+ "lefticoncolor"?: string;
37
+ "name": string;
38
+ }
33
39
  interface TttxFilter {
34
40
  "defaultFilterOptions": string[] | string;
35
41
  "filterButtonStyle": 'list filter' | 'list icon' | 'table icon';
@@ -193,6 +199,10 @@ export interface TttxDialogBoxCustomEvent<T> extends CustomEvent<T> {
193
199
  detail: T;
194
200
  target: HTMLTttxDialogBoxElement;
195
201
  }
202
+ export interface TttxExpanderCustomEvent<T> extends CustomEvent<T> {
203
+ detail: T;
204
+ target: HTMLTttxExpanderElement;
205
+ }
196
206
  export interface TttxFilterCustomEvent<T> extends CustomEvent<T> {
197
207
  detail: T;
198
208
  target: HTMLTttxFilterElement;
@@ -246,6 +256,12 @@ declare global {
246
256
  prototype: HTMLTttxDialogBoxElement;
247
257
  new (): HTMLTttxDialogBoxElement;
248
258
  };
259
+ interface HTMLTttxExpanderElement extends Components.TttxExpander, HTMLStencilElement {
260
+ }
261
+ var HTMLTttxExpanderElement: {
262
+ prototype: HTMLTttxExpanderElement;
263
+ new (): HTMLTttxExpanderElement;
264
+ };
249
265
  interface HTMLTttxFilterElement extends Components.TttxFilter, HTMLStencilElement {
250
266
  }
251
267
  var HTMLTttxFilterElement: {
@@ -351,6 +367,7 @@ declare global {
351
367
  interface HTMLElementTagNameMap {
352
368
  "tttx-button": HTMLTttxButtonElement;
353
369
  "tttx-dialog-box": HTMLTttxDialogBoxElement;
370
+ "tttx-expander": HTMLTttxExpanderElement;
354
371
  "tttx-filter": HTMLTttxFilterElement;
355
372
  "tttx-form": HTMLTttxFormElement;
356
373
  "tttx-icon": HTMLTttxIconElement;
@@ -386,6 +403,13 @@ declare namespace LocalJSX {
386
403
  "open"?: boolean;
387
404
  "size"?: 'regular' | 'mobile' | 'large' | 'small';
388
405
  }
406
+ interface TttxExpander {
407
+ "expanded"?: boolean;
408
+ "lefticon"?: string;
409
+ "lefticoncolor"?: string;
410
+ "name"?: string;
411
+ "onContentExpanded"?: (event: TttxExpanderCustomEvent<boolean>) => void;
412
+ }
389
413
  interface TttxFilter {
390
414
  "defaultFilterOptions"?: string[] | string;
391
415
  "filterButtonStyle"?: 'list filter' | 'list icon' | 'table icon';
@@ -574,6 +598,7 @@ declare namespace LocalJSX {
574
598
  interface IntrinsicElements {
575
599
  "tttx-button": TttxButton;
576
600
  "tttx-dialog-box": TttxDialogBox;
601
+ "tttx-expander": TttxExpander;
577
602
  "tttx-filter": TttxFilter;
578
603
  "tttx-form": TttxForm;
579
604
  "tttx-icon": TttxIcon;
@@ -599,6 +624,7 @@ declare module "@stencil/core" {
599
624
  interface IntrinsicElements {
600
625
  "tttx-button": LocalJSX.TttxButton & JSXBase.HTMLAttributes<HTMLTttxButtonElement>;
601
626
  "tttx-dialog-box": LocalJSX.TttxDialogBox & JSXBase.HTMLAttributes<HTMLTttxDialogBoxElement>;
627
+ "tttx-expander": LocalJSX.TttxExpander & JSXBase.HTMLAttributes<HTMLTttxExpanderElement>;
602
628
  "tttx-filter": LocalJSX.TttxFilter & JSXBase.HTMLAttributes<HTMLTttxFilterElement>;
603
629
  "tttx-form": LocalJSX.TttxForm & JSXBase.HTMLAttributes<HTMLTttxFormElement>;
604
630
  "tttx-icon": LocalJSX.TttxIcon & JSXBase.HTMLAttributes<HTMLTttxIconElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as o,c as i,h as t,g as d}from"./p-3f1b6013.js";import{p as e,d as l}from"./p-88ee2406.js";import"./p-112455b1.js";const s=class{constructor(t){o(this,t),this.closeButtonClick=i(this,"closeButtonClick",6),this.buttonClick=i(this,"buttonClick",7),this.data=void 0,this.size="regular",this.open=!1,this.allowOverflow=!1,this.elementSize=void 0}handleResize(){this.elementSize=window.innerWidth<698?"mobile":this.size}componentDidRender(){this.dialog()&&(this.open?this.dialog().open||this.dialog().showModal():this.dialog().close())}onCloseClickHandler(){this.open=!1,this.closeButtonClick.emit({close:!0})}onButtonClickHandler(o){this.buttonClick.emit({buttonNumber:o,buttonClicked:!0})}dialog(){return this.el.shadowRoot.querySelector("dialog")}renderHeader(o){const i=o.title,d=!!o.hasClose;return t("div",{class:"dialog-box-header"},!!o.hasIcon&&t("tttx-icon",{class:"dialog-box-icon",icon:o.iconName,color:o.iconColor}),t("h3",{class:"dialog-box-title"},i),d&&t("div",{class:"dialog-box-align-right close-button",onClick:()=>this.onCloseClickHandler()},t("tttx-icon",{class:"dialog-box-icon-close dialog-box-clickable",icon:"close",color:"black"})))}renderContent(o){if(o.isCustomHtml){const i=e.sanitize(o.customHtml,l);return t("div",{class:"dialog-box-body "+(this.allowOverflow?"":"overflow-hidden")},t("div",{innerHTML:i}))}return t("div",{class:"dialog-box-body "+(this.allowOverflow?"":"overflow-hidden")},t("span",{class:"dialog-box-content"},o.contentText))}renderFooter(o){const i=o.buttons,d=i.length>0,e=i.length>1,l="mobile"===this.elementSize;return t("div",{class:"dialog-box-footer"},t("div",{class:"dialog-box-align-right"},3==i.length&&t("tttx-button",{class:"dialog-box-spacing-button",onClick:()=>this.onButtonClickHandler(3),design:i[2].type,notext:l,icon:i[2].icon},!l&&i[2].name),e&&t("tttx-button",{class:"dialog-box-spacing-button",onClick:()=>this.onButtonClickHandler(2),design:i[1].type,icon:i[1].icon},i[1].name),d&&t("tttx-button",{onClick:()=>this.onButtonClickHandler(1),design:i[0].type,icon:i[0].icon},i[0].name)))}componentWillLoad(){this.elementSize=window.innerWidth<698?"mobile":this.size}render(){if(this.data)return this._data="string"==typeof this.data?JSON.parse(this.data):this.data,t("dialog",{class:`dialog-box ${this.allowOverflow?"overflow-visible":""} ${this.elementSize}`},t("div",{class:"contents"},t("div",{class:`dialog-box-padding dialog-box-header-box ${this._data.type||""}`},this.renderHeader(this._data.header)),t("div",{class:"dialog-box-padding dialog-box-body-box"},this.renderContent(this._data.body)),t("div",{class:"dialog-box-padding dialog-box-footer-box"},this.renderFooter(this._data.footer))))}get el(){return d(this)}};s.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d;padding:0}.overflow-visible{overflow:visible}.overflow-hidden{overflow:hidden}dialog::backdrop{background-color:#75757580}.dialog-box.small{width:400px;min-height:200px}.dialog-box.regular{width:600px;min-height:200px}.dialog-box.large{width:900px;min-height:200px}.dialog-box.mobile{max-width:424px;width:calc(100vw - 20px)}.dialog-box-clickable{cursor:pointer}.contents{display:flex;flex-direction:column;min-height:inherit}.dialog-box-padding{padding:8px 16px}.dialog-box-align-right{margin-left:auto;display:flex}.dialog-box-header-box{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;height:36px}.dialog-box-header{display:flex;align-items:center;width:100%}.dialog-box-title{font-size:18;font-weight:500;font-family:"Roboto", serif}.dialog-box-icon{padding-right:8px;width:24px;height:24px}.dialog-box-icon-close{margin-left:auto;padding-top:3px;width:24px;height:24px}.dialog-box-content{font-size:16;font-weight:400;font-family:"Roboto", serif}.dialog-box-body{text-overflow:ellipsis}.dialog-box-body-box{padding:16px}.dialog-box-footer-box{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px}.dialog-box-footer{display:flex;align-items:center;width:100%}.dialog-box-spacing-button{margin-right:8px}.dialog-box-header-box.info{border-bottom:1px solid #1479c6}.dialog-box-header-box.success{border-bottom:1px solid #a2bb31}.dialog-box-header-box.warning{border-bottom:1px solid #f59500}.dialog-box-header-box.critical{border-bottom:1px solid #dc0000}';export{s as tttx_dialog_box}