@ncino/web-components 9.2.0-preview.4 → 9.2.0
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/components/accordion/gator/base/accordion.gator.js +1 -1
- package/dist/components/accordion/gator/group/accordion-group.gator.js +1 -1
- package/dist/components/alert/gator/base/alert.gator.js +1 -1
- package/dist/components/banner/gator/banner.gator.js +1 -1
- package/dist/components/button/gator/button.gator.js +1 -1
- package/dist/components/display-card/gator/display-card.gator.js +1 -1
- package/dist/components/headline-card/gator/headline-card.gator.js +1 -1
- package/dist/components/icon/gator/icon.gator.js +2 -2
- package/dist/components/icon/gator/index.js +1 -1
- package/dist/components/icon/gator/templates/arrows-down-up.js +8 -0
- package/dist/components/icon/gator/templates/index.js +1 -1
- package/dist/components/image-card/gator/image-card.gator.js +1 -1
- package/dist/components/input/base/input-base.gator.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
- package/dist/components/input/gator/help-text/help-text.gator.js +1 -1
- package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +1 -1
- package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
- package/dist/components/input/gator/input-textarea/input-textarea.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- package/dist/components/input-rich-text/ckeditor-config.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
- package/dist/components/list/gator/list-item/list-item.gator.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/selection-box/selection-box.gator.js +1 -1
- package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
- package/dist/components/table/gator/table.gator.js +135 -45
- package/dist/design-tokens.source.json +1 -0
- package/dist/generated/locale-codes.js +1 -0
- package/dist/generated/locales/es-419.js +10 -0
- package/dist/generated/locales/fr-CA.js +10 -0
- package/dist/generated/locales/zh-Hans.js +11 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@47.5.0 → @ckeditor_ckeditor5-alignment@47.6.0}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@47.5.0 → @ckeditor_ckeditor5-autoformat@47.6.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@47.5.0 → @ckeditor_ckeditor5-autosave@47.6.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@47.5.0 → @ckeditor_ckeditor5-basic-styles@47.6.0}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@47.5.0 → @ckeditor_ckeditor5-block-quote@47.6.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@47.5.0 → @ckeditor_ckeditor5-clipboard@47.6.0}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@47.5.0 → @ckeditor_ckeditor5-cloud-services@47.6.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@47.5.0 → @ckeditor_ckeditor5-code-block@47.6.0}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@47.5.0 → @ckeditor_ckeditor5-core@47.6.0}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@47.5.0 → @ckeditor_ckeditor5-editor-classic@47.6.0}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@47.5.0 → @ckeditor_ckeditor5-engine@47.6.0}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@47.5.0 → @ckeditor_ckeditor5-enter@47.6.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@47.5.0 → @ckeditor_ckeditor5-essentials@47.6.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@47.5.0 → @ckeditor_ckeditor5-find-and-replace@47.6.0}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@47.5.0 → @ckeditor_ckeditor5-font@47.6.0}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@47.5.0 → @ckeditor_ckeditor5-heading@47.6.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@47.5.0 → @ckeditor_ckeditor5-highlight@47.6.0}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@47.5.0 → @ckeditor_ckeditor5-horizontal-line@47.6.0}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@47.5.0 → @ckeditor_ckeditor5-html-embed@47.6.0}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.6.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +3 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@47.5.0 → @ckeditor_ckeditor5-icons@47.6.0}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@47.5.0 → @ckeditor_ckeditor5-image@47.6.0}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@47.6.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@47.5.0 → @ckeditor_ckeditor5-language@47.6.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.6.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.6.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@47.5.0 → @ckeditor_ckeditor5-markdown-gfm@47.6.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@47.5.0 → @ckeditor_ckeditor5-media-embed@47.6.0}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@47.5.0 → @ckeditor_ckeditor5-mention@47.6.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@47.5.0 → @ckeditor_ckeditor5-page-break@47.6.0}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@47.5.0 → @ckeditor_ckeditor5-paragraph@47.6.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.6.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@47.5.0 → @ckeditor_ckeditor5-remove-format@47.6.0}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@47.5.0 → @ckeditor_ckeditor5-select-all@47.6.0}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@47.5.0 → @ckeditor_ckeditor5-show-blocks@47.6.0}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@47.5.0 → @ckeditor_ckeditor5-source-editing@47.6.0}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@47.5.0 → @ckeditor_ckeditor5-special-characters@47.6.0}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@47.5.0 → @ckeditor_ckeditor5-style@47.6.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.6.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@47.5.0 → @ckeditor_ckeditor5-typing@47.6.0}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@47.5.0 → @ckeditor_ckeditor5-ui@47.6.0}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@47.5.0 → @ckeditor_ckeditor5-undo@47.6.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@47.5.0 → @ckeditor_ckeditor5-upload@47.6.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@47.5.0 → @ckeditor_ckeditor5-widget@47.6.0}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/pick.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isNil.js +1 -0
- package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
- package/dist/types/components/icon/gator/templates/arrows-down-up.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/index.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +2 -0
- package/dist/types/components/table/gator/table.gator.d.ts +27 -0
- package/dist/types/components/table/table-column-definition.d.ts +8 -0
- package/dist/types/generated/locale-codes.d.ts +13 -0
- package/dist/types/generated/locales/es-419.d.ts +65 -0
- package/dist/types/generated/locales/fr-CA.d.ts +65 -0
- package/dist/types/generated/locales/zh-Hans.d.ts +65 -0
- package/package.json +5 -5
- package/web-types.json +4 -413
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.5.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +0 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@47.5.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.5.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.5.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.5.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.5.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.5.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +0 -8
- /package/dist/assets/node_modules/.pnpm/{ckeditor5@47.5.0 → ckeditor5@47.6.0}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
- /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@47.5.0 → @ckeditor_ckeditor5-watchdog@47.6.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as f,html as o}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as b}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as k}from"../../../utils/decorators/custom-element-decorator.js";import{msg as $}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{NjcTable as C}from"../table.js";import{formatTableTextValue as w}from"../table-format-utils.js";import T from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import x from"../../../packages/styles/dist/gator/tokens/primitive.tokens.css.js";import y from"../../../packages/styles/dist/gator/tokens/semantic.tokens.css.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import"./table-cells/table-cell-chip.gator.js";import"./table-cells/table-cell-avatar.gator.js";import"./table-cells/table-cell-checkbox.gator.js";import"./table-cells/table-cell-text-link.gator.js";import"./table-cells/table-cell-button.gator.js";import"./table-cells/table-cell-icon-button.gator.js";import"./table-cells/table-cell-input-dropdown.gator.js";import"./table-cells/table-cell-input-text.gator.js";import"./table-cells/table-cell-text.gator.js";import"../../checkbox/checkbox.gator.js";import"../../skip-link/gator/base/skip-link.gator.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var R=Object.defineProperty,P=Object.getOwnPropertyDescriptor,h=(e,t,l,s)=>{for(var a=s>1?void 0:s?P(t,l):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,l,a):r(a))||a);return s&&a&&R(t,l,a),a};let d=class extends C{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.skeleton=!1,this.selectedRows=[],this._currentPage=1}updated(e){super.updated(e),e.has("data")&&queueMicrotask(()=>{this.selectedRows=this.data.filter(t=>t.selected&&!t.isTableHeader)})}render(){if(!this.skeleton&&!this.columns)return null;const e=this.skeleton?this._skeletonLoaderColumns:this.columns;return this.renderWrapper(this.getTableHeader(e),this.getTableBody(e,this.displayedRowData))}get _skeletonLoaderColumns(){const e=this.columns?.length||6;let t=[];for(let l=0;l<e;l++)t=t.concat({field:`skeleton-loader-${l}`,name:`skeleton-loader-${l}`});return t}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(e,t){return o`
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as f,html as p}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as b}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as y}from"../../../utils/decorators/custom-element-decorator.js";import{msg as u}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{NjcTable as F}from"../table.js";import{formatTableTextValue as S}from"../table-format-utils.js";import x from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import P from"../../../packages/styles/dist/gator/tokens/primitive.tokens.css.js";import T from"../../../packages/styles/dist/gator/tokens/semantic.tokens.css.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import"./table-cells/table-cell-chip.gator.js";import"./table-cells/table-cell-avatar.gator.js";import"./table-cells/table-cell-checkbox.gator.js";import"./table-cells/table-cell-text-link.gator.js";import"./table-cells/table-cell-button.gator.js";import"./table-cells/table-cell-icon-button.gator.js";import"./table-cells/table-cell-input-dropdown.gator.js";import"./table-cells/table-cell-input-text.gator.js";import"./table-cells/table-cell-text.gator.js";import"../../checkbox/checkbox.gator.js";import"../../icon/gator/icon.gator.js";import"../../icon/gator/templates/add-link.js";import"../../icon/gator/templates/airplane.js";import"../../icon/gator/templates/alarm.js";import"../../icon/gator/templates/apartment.js";import"../../icon/gator/templates/arrow-around.js";import"../../icon/gator/templates/arrow-down.js";import"../../icon/gator/templates/arrow-left.js";import"../../icon/gator/templates/arrow-line-left.js";import"../../icon/gator/templates/arrow-line-right.js";import"../../icon/gator/templates/arrow-right.js";import"../../icon/gator/templates/arrow-up.js";import"../../icon/gator/templates/arrows-down-up.js";import"../../icon/gator/templates/bank.js";import"../../icon/gator/templates/bell-disabled.js";import"../../icon/gator/templates/bell.js";import"../../icon/gator/templates/binoculars.js";import"../../icon/gator/templates/book.js";import"../../icon/gator/templates/box.js";import"../../icon/gator/templates/brain.js";import"../../icon/gator/templates/cake.js";import"../../icon/gator/templates/calculator.js";import"../../icon/gator/templates/calendar.js";import"../../icon/gator/templates/camera.js";import"../../icon/gator/templates/caret-up-down.js";import"../../icon/gator/templates/case.js";import"../../icon/gator/templates/chart-bar-horizontal.js";import"../../icon/gator/templates/chart-bar.js";import"../../icon/gator/templates/chart-donut.js";import"../../icon/gator/templates/chart-line.js";import"../../icon/gator/templates/chart-pie.js";import"../../icon/gator/templates/chart-rise.js";import"../../icon/gator/templates/chart-scatter.js";import"../../icon/gator/templates/chat-circle-ai.js";import"../../icon/gator/templates/chat-circle-dots.js";import"../../icon/gator/templates/chat-circle-slash.js";import"../../icon/gator/templates/chat-circle-text.js";import"../../icon/gator/templates/chat-circle.js";import"../../icon/gator/templates/chat.js";import"../../icon/gator/templates/check-circle-filled.js";import"../../icon/gator/templates/check-circle.js";import"../../icon/gator/templates/check.js";import"../../icon/gator/templates/checkbox-indeterminate.js";import"../../icon/gator/templates/checkbox-selected.js";import"../../icon/gator/templates/checkbox.js";import"../../icon/gator/templates/checkerboard.js";import"../../icon/gator/templates/chevron-down.js";import"../../icon/gator/templates/chevron-left.js";import"../../icon/gator/templates/chevron-right.js";import"../../icon/gator/templates/chevron-up.js";import"../../icon/gator/templates/circle-arrow-down.js";import"../../icon/gator/templates/circle-arrow-left.js";import"../../icon/gator/templates/circle-arrow-right.js";import"../../icon/gator/templates/circle-arrow-up.js";import"../../icon/gator/templates/circle-dashed.js";import"../../icon/gator/templates/circle-filled.js";import"../../icon/gator/templates/circle.js";import"../../icon/gator/templates/city.js";import"../../icon/gator/templates/clipboard.js";import"../../icon/gator/templates/clock-clockwise.js";import"../../icon/gator/templates/clock-counter-clockwise.js";import"../../icon/gator/templates/clock.js";import"../../icon/gator/templates/collapse.js";import"../../icon/gator/templates/cone.js";import"../../icon/gator/templates/contact-info.js";import"../../icon/gator/templates/copy.js";import"../../icon/gator/templates/credit-card.js";import"../../icon/gator/templates/crop.js";import"../../icon/gator/templates/crosshairs.js";import"../../icon/gator/templates/currency-dollar-simple.js";import"../../icon/gator/templates/currency-eur.js";import"../../icon/gator/templates/currency-gbp.js";import"../../icon/gator/templates/currency-inr.js";import"../../icon/gator/templates/currency-jpy.js";import"../../icon/gator/templates/currency-krw.js";import"../../icon/gator/templates/currency-kzt.js";import"../../icon/gator/templates/currency-ngn.js";import"../../icon/gator/templates/currency-rub.js";import"../../icon/gator/templates/cursor-arrow.js";import"../../icon/gator/templates/cursor-hand.js";import"../../icon/gator/templates/cursor.js";import"../../icon/gator/templates/dashboard.js";import"../../icon/gator/templates/delete.js";import"../../icon/gator/templates/dna.js";import"../../icon/gator/templates/document-add.js";import"../../icon/gator/templates/document-ai.js";import"../../icon/gator/templates/document-check.js";import"../../icon/gator/templates/document-e-sign.js";import"../../icon/gator/templates/document-image.js";import"../../icon/gator/templates/document-pdf.js";import"../../icon/gator/templates/document-sign.js";import"../../icon/gator/templates/document-zip.js";import"../../icon/gator/templates/document.js";import"../../icon/gator/templates/dollar-bills.js";import"../../icon/gator/templates/dollar-house.js";import"../../icon/gator/templates/down-payment.js";import"../../icon/gator/templates/download.js";import"../../icon/gator/templates/drag-drop.js";import"../../icon/gator/templates/earth.js";import"../../icon/gator/templates/exclude-square.js";import"../../icon/gator/templates/exit-circle.js";import"../../icon/gator/templates/exit-left.js";import"../../icon/gator/templates/exit.js";import"../../icon/gator/templates/expand-arrows.js";import"../../icon/gator/templates/expand.js";import"../../icon/gator/templates/export.js";import"../../icon/gator/templates/eye-closed.js";import"../../icon/gator/templates/eye-crossed.js";import"../../icon/gator/templates/eye.js";import"../../icon/gator/templates/facebook-logo.js";import"../../icon/gator/templates/file-code.js";import"../../icon/gator/templates/files.js";import"../../icon/gator/templates/filter-funnel.js";import"../../icon/gator/templates/filters-2.js";import"../../icon/gator/templates/filters.js";import"../../icon/gator/templates/flags/flag-ad-andorra.js";import"../../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../../icon/gator/templates/flags/flag-af-afghanistan.js";import"../../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../../icon/gator/templates/flags/flag-ai-anguilla.js";import"../../icon/gator/templates/flags/flag-al-albania.js";import"../../icon/gator/templates/flags/flag-am-armenia.js";import"../../icon/gator/templates/flags/flag-ao-angola.js";import"../../icon/gator/templates/flags/flag-aq-antarctica.js";import"../../icon/gator/templates/flags/flag-ar-argentina.js";import"../../icon/gator/templates/flags/flag-as-american-smoa.js";import"../../icon/gator/templates/flags/flag-at-austria.js";import"../../icon/gator/templates/flags/flag-au-australia.js";import"../../icon/gator/templates/flags/flag-aw-aruba.js";import"../../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../../icon/gator/templates/flags/flag-bb-barbados.js";import"../../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../../icon/gator/templates/flags/flag-be-belgium.js";import"../../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../../icon/gator/templates/flags/flag-bh-bahrain.js";import"../../icon/gator/templates/flags/flag-bi-burundi.js";import"../../icon/gator/templates/flags/flag-bj-benin.js";import"../../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../../icon/gator/templates/flags/flag-bm-bermuda.js";import"../../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../../icon/gator/templates/flags/flag-bo-bolivia.js";import"../../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../../icon/gator/templates/flags/flag-br-brazil.js";import"../../icon/gator/templates/flags/flag-bs-bahamas.js";import"../../icon/gator/templates/flags/flag-bt-bhutan.js";import"../../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../../icon/gator/templates/flags/flag-bw-botswana.js";import"../../icon/gator/templates/flags/flag-by-belarus.js";import"../../icon/gator/templates/flags/flag-bz-belize.js";import"../../icon/gator/templates/flags/flag-ca-canada.js";import"../../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../../icon/gator/templates/flags/flag-ch-switzerland.js";import"../../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../../icon/gator/templates/flags/flag-cl-chile.js";import"../../icon/gator/templates/flags/flag-cm-cameroon.js";import"../../icon/gator/templates/flags/flag-cn-china.js";import"../../icon/gator/templates/flags/flag-co-colombia.js";import"../../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../../icon/gator/templates/flags/flag-cu-cuba.js";import"../../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../../icon/gator/templates/flags/flag-cw-curaçao.js";import"../../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../../icon/gator/templates/flags/flag-cy-cyprus.js";import"../../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../../icon/gator/templates/flags/flag-de-germany.js";import"../../icon/gator/templates/flags/flag-dj-djibouti.js";import"../../icon/gator/templates/flags/flag-dk-denmark.js";import"../../icon/gator/templates/flags/flag-dm-dominica.js";import"../../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../../icon/gator/templates/flags/flag-dz-algeria.js";import"../../icon/gator/templates/flags/flag-ec-ecuador.js";import"../../icon/gator/templates/flags/flag-ee-estonia.js";import"../../icon/gator/templates/flags/flag-eg-egypt.js";import"../../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../../icon/gator/templates/flags/flag-er-eritrea.js";import"../../icon/gator/templates/flags/flag-es-sain.js";import"../../icon/gator/templates/flags/flag-et-ethiopia.js";import"../../icon/gator/templates/flags/flag-fi-finland.js";import"../../icon/gator/templates/flags/flag-fj-fiji.js";import"../../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../../icon/gator/templates/flags/flag-fr-france.js";import"../../icon/gator/templates/flags/flag-ga-gabon.js";import"../../icon/gator/templates/flags/flag-gb-eng-england.js";import"../../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../../icon/gator/templates/flags/flag-gd-grenada.js";import"../../icon/gator/templates/flags/flag-ge-georgia.js";import"../../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../../icon/gator/templates/flags/flag-gg-guernsey.js";import"../../icon/gator/templates/flags/flag-gh-ghana.js";import"../../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../../icon/gator/templates/flags/flag-gl-greenland.js";import"../../icon/gator/templates/flags/flag-gm-gambia.js";import"../../icon/gator/templates/flags/flag-gn-guinea.js";import"../../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../../icon/gator/templates/flags/flag-gr-greece.js";import"../../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../../icon/gator/templates/flags/flag-gt-guatemala.js";import"../../icon/gator/templates/flags/flag-gu-guam.js";import"../../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../../icon/gator/templates/flags/flag-gy-guyana.js";import"../../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../../icon/gator/templates/flags/flag-hn-honduras.js";import"../../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../../icon/gator/templates/flags/flag-ht-haiti.js";import"../../icon/gator/templates/flags/flag-hu-hungary.js";import"../../icon/gator/templates/flags/flag-id-indonesia.js";import"../../icon/gator/templates/flags/flag-ie-ireland.js";import"../../icon/gator/templates/flags/flag-il-isreal.js";import"../../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../../icon/gator/templates/flags/flag-in-india.js";import"../../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../../icon/gator/templates/flags/flag-iq-iraq.js";import"../../icon/gator/templates/flags/flag-ir-iran.js";import"../../icon/gator/templates/flags/flag-is-iceland.js";import"../../icon/gator/templates/flags/flag-it-italy.js";import"../../icon/gator/templates/flags/flag-je-jersey.js";import"../../icon/gator/templates/flags/flag-jm-jamaica.js";import"../../icon/gator/templates/flags/flag-jo-jordan.js";import"../../icon/gator/templates/flags/flag-jp-japan.js";import"../../icon/gator/templates/flags/flag-ke-kenia.js";import"../../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../../icon/gator/templates/flags/flag-kh-cambodia.js";import"../../icon/gator/templates/flags/flag-ki--kiribati.js";import"../../icon/gator/templates/flags/flag-km-comoros.js";import"../../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../../icon/gator/templates/flags/flag-kp-korea-north.js";import"../../icon/gator/templates/flags/flag-kr-korea-south.js";import"../../icon/gator/templates/flags/flag-kw-kuwait.js";import"../../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../../icon/gator/templates/flags/flag-la-laos.js";import"../../icon/gator/templates/flags/flag-lb-lebanon.js";import"../../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../../icon/gator/templates/flags/flag-lr-liberia.js";import"../../icon/gator/templates/flags/flag-ls-lesotho.js";import"../../icon/gator/templates/flags/flag-lt-lithuania.js";import"../../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../../icon/gator/templates/flags/flag-lv-latvia.js";import"../../icon/gator/templates/flags/flag-ly-libya.js";import"../../icon/gator/templates/flags/flag-ma-morocco.js";import"../../icon/gator/templates/flags/flag-mc-monaco.js";import"../../icon/gator/templates/flags/flag-md-moldova.js";import"../../icon/gator/templates/flags/flag-me-montenegro.js";import"../../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../../icon/gator/templates/flags/flag-mg-madagascar.js";import"../../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../../icon/gator/templates/flags/flag-ml-mali.js";import"../../icon/gator/templates/flags/flag-mm-myanmar.js";import"../../icon/gator/templates/flags/flag-mn-mongolia.js";import"../../icon/gator/templates/flags/flag-mo-macao.js";import"../../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../../icon/gator/templates/flags/flag-mq-martinique.js";import"../../icon/gator/templates/flags/flag-mr-mauritania.js";import"../../icon/gator/templates/flags/flag-ms-montserrat.js";import"../../icon/gator/templates/flags/flag-mt-malta.js";import"../../icon/gator/templates/flags/flag-mu-mauritius.js";import"../../icon/gator/templates/flags/flag-mv-maldives.js";import"../../icon/gator/templates/flags/flag-mw-malawi.js";import"../../icon/gator/templates/flags/flag-mx-mexico.js";import"../../icon/gator/templates/flags/flag-my-malaysia.js";import"../../icon/gator/templates/flags/flag-mz-mozambique.js";import"../../icon/gator/templates/flags/flag-na-namibia.js";import"../../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../../icon/gator/templates/flags/flag-ne-niger.js";import"../../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../../icon/gator/templates/flags/flag-ng-nigeria.js";import"../../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../../icon/gator/templates/flags/flag-nl-netherlands.js";import"../../icon/gator/templates/flags/flag-no-norway.js";import"../../icon/gator/templates/flags/flag-np-nepal.js";import"../../icon/gator/templates/flags/flag-nr-nauru.js";import"../../icon/gator/templates/flags/flag-nu-niue.js";import"../../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../../icon/gator/templates/flags/flag-om-oman.js";import"../../icon/gator/templates/flags/flag-pa-panama.js";import"../../icon/gator/templates/flags/flag-pe-peru.js";import"../../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../../icon/gator/templates/flags/flag-ph-philippines.js";import"../../icon/gator/templates/flags/flag-pk-pakistan.js";import"../../icon/gator/templates/flags/flag-pl-poland.js";import"../../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../../icon/gator/templates/flags/flag-pt-portugal.js";import"../../icon/gator/templates/flags/flag-pw-palau.js";import"../../icon/gator/templates/flags/flag-py-paraguay.js";import"../../icon/gator/templates/flags/flag-qa-qatar.js";import"../../icon/gator/templates/flags/flag-re-reunion.js";import"../../icon/gator/templates/flags/flag-ro-romania.js";import"../../icon/gator/templates/flags/flag-rs-srbia.js";import"../../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../../icon/gator/templates/flags/flag-rw-rwanda.js";import"../../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../../icon/gator/templates/flags/flag-sc-sychelles.js";import"../../icon/gator/templates/flags/flag-sd-sdan.js";import"../../icon/gator/templates/flags/flag-se-seden.js";import"../../icon/gator/templates/flags/flag-sg-sngapore.js";import"../../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../../icon/gator/templates/flags/flag-si-sovenia.js";import"../../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../../icon/gator/templates/flags/flag-sk-sovakia.js";import"../../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../../icon/gator/templates/flags/flag-sn-snegal.js";import"../../icon/gator/templates/flags/flag-so-smalia.js";import"../../icon/gator/templates/flags/flag-sr-sriname.js";import"../../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../../icon/gator/templates/flags/flag-sy-sria.js";import"../../icon/gator/templates/flags/flag-sz-saziland.js";import"../../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../../icon/gator/templates/flags/flag-td-chad.js";import"../../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../../icon/gator/templates/flags/flag-tg-togo.js";import"../../icon/gator/templates/flags/flag-th-thailand.js";import"../../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../../icon/gator/templates/flags/flag-tk-tokelau.js";import"../../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../../icon/gator/templates/flags/flag-tn-tunisia.js";import"../../icon/gator/templates/flags/flag-to-tonga.js";import"../../icon/gator/templates/flags/flag-tr-turkey.js";import"../../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../../icon/gator/templates/flags/flag-tw-taiwan.js";import"../../icon/gator/templates/flags/flag-tz-tanzania.js";import"../../icon/gator/templates/flags/flag-ua-ukraine.js";import"../../icon/gator/templates/flags/flag-ug-uganda.js";import"../../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../../icon/gator/templates/flags/flag-us-united-states.js";import"../../icon/gator/templates/flags/flag-uy-uruguay.js";import"../../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../../icon/gator/templates/flags/flag-ve-venezuela.js";import"../../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../../icon/gator/templates/flags/flag-vn-vietnam.js";import"../../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../../icon/gator/templates/flags/flag-ws-smoa.js";import"../../icon/gator/templates/flags/flag-ye-yemen.js";import"../../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../../icon/gator/templates/flags/flag-za-south-africa.js";import"../../icon/gator/templates/flags/flag-zm-zambia.js";import"../../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../../icon/gator/templates/flame.js";import"../../icon/gator/templates/flash-off.js";import"../../icon/gator/templates/flash-on.js";import"../../icon/gator/templates/folder.js";import"../../icon/gator/templates/gauge.js";import"../../icon/gator/templates/grid-four.js";import"../../icon/gator/templates/grid-nine.js";import"../../icon/gator/templates/hammer.js";import"../../icon/gator/templates/hand-pointing.js";import"../../icon/gator/templates/heart.js";import"../../icon/gator/templates/home-door.js";import"../../icon/gator/templates/home-finance-arrow.js";import"../../icon/gator/templates/home-finance.js";import"../../icon/gator/templates/home-search.js";import"../../icon/gator/templates/house-simple.js";import"../../icon/gator/templates/house.js";import"../../icon/gator/templates/inbox.js";import"../../icon/gator/templates/info.js";import"../../icon/gator/templates/instagram-logo.js";import"../../icon/gator/templates/interest-rate.js";import"../../icon/gator/templates/invoice.js";import"../../icon/gator/templates/kanban.js";import"../../icon/gator/templates/label.js";import"../../icon/gator/templates/laptop.js";import"../../icon/gator/templates/layout.js";import"../../icon/gator/templates/lightbulb-filament.js";import"../../icon/gator/templates/lightbulb.js";import"../../icon/gator/templates/link.js";import"../../icon/gator/templates/linkedin-logo.js";import"../../icon/gator/templates/list-star.js";import"../../icon/gator/templates/list.js";import"../../icon/gator/templates/loading-spinner-gif.js";import"../../icon/gator/templates/loading.js";import"../../icon/gator/templates/lock.js";import"../../icon/gator/templates/magic-wand.js";import"../../icon/gator/templates/mail-open.js";import"../../icon/gator/templates/mail.js";import"../../icon/gator/templates/mailbox.js";import"../../icon/gator/templates/map.js";import"../../icon/gator/templates/menu-hamburger.js";import"../../icon/gator/templates/microsoft-excel-logo.js";import"../../icon/gator/templates/microsoft-outlook-logo.js";import"../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../icon/gator/templates/microsoft-teams-logo.js";import"../../icon/gator/templates/microsoft-word-logo.js";import"../../icon/gator/templates/minus-circle.js";import"../../icon/gator/templates/minus-square.js";import"../../icon/gator/templates/minus.js";import"../../icon/gator/templates/mobile-phone-2.js";import"../../icon/gator/templates/monitor.js";import"../../icon/gator/templates/move-doc.js";import"../../icon/gator/templates/move.js";import"../../icon/gator/templates/music.js";import"../../icon/gator/templates/number-0.js";import"../../icon/gator/templates/number-1.js";import"../../icon/gator/templates/number-10.js";import"../../icon/gator/templates/number-2.js";import"../../icon/gator/templates/number-3.js";import"../../icon/gator/templates/number-4.js";import"../../icon/gator/templates/number-5.js";import"../../icon/gator/templates/number-6.js";import"../../icon/gator/templates/number-7.js";import"../../icon/gator/templates/number-8.js";import"../../icon/gator/templates/number-9.js";import"../../icon/gator/templates/overflow-menu.js";import"../../icon/gator/templates/paper-airplane.js";import"../../icon/gator/templates/paperclip.js";import"../../icon/gator/templates/pause-circle.js";import"../../icon/gator/templates/pause.js";import"../../icon/gator/templates/payments/payment-amazon-pay.js";import"../../icon/gator/templates/payments/payment-amex.js";import"../../icon/gator/templates/payments/payment-apple-pay.js";import"../../icon/gator/templates/payments/payment-discover.js";import"../../icon/gator/templates/payments/payment-google-pay.js";import"../../icon/gator/templates/payments/payment-mastercard.js";import"../../icon/gator/templates/payments/payment-visa.js";import"../../icon/gator/templates/pen.js";import"../../icon/gator/templates/pencil-paper.js";import"../../icon/gator/templates/pencil.js";import"../../icon/gator/templates/people-multiple.js";import"../../icon/gator/templates/people-share.js";import"../../icon/gator/templates/percent.js";import"../../icon/gator/templates/person-add.js";import"../../icon/gator/templates/person-check.js";import"../../icon/gator/templates/person-lock.js";import"../../icon/gator/templates/person.js";import"../../icon/gator/templates/phone-alert.js";import"../../icon/gator/templates/phone-mobile.js";import"../../icon/gator/templates/phone.js";import"../../icon/gator/templates/picture.js";import"../../icon/gator/templates/pin.js";import"../../icon/gator/templates/pinterest-logo.js";import"../../icon/gator/templates/play-circle.js";import"../../icon/gator/templates/play.js";import"../../icon/gator/templates/plugs.js";import"../../icon/gator/templates/plugs-connected.js";import"../../icon/gator/templates/plus-circle.js";import"../../icon/gator/templates/plus.js";import"../../icon/gator/templates/printer.js";import"../../icon/gator/templates/question-chat-bubble.js";import"../../icon/gator/templates/question-circle.js";import"../../icon/gator/templates/question-mark.js";import"../../icon/gator/templates/radio-selected.js";import"../../icon/gator/templates/radio.js";import"../../icon/gator/templates/receipt.js";import"../../icon/gator/templates/restricted-filled.js";import"../../icon/gator/templates/restricted.js";import"../../icon/gator/templates/robot.js";import"../../icon/gator/templates/sandals.js";import"../../icon/gator/templates/save.js";import"../../icon/gator/templates/screen.js";import"../../icon/gator/templates/search.js";import"../../icon/gator/templates/selection.js";import"../../icon/gator/templates/send-filled.js";import"../../icon/gator/templates/send.js";import"../../icon/gator/templates/settings.js";import"../../icon/gator/templates/share-1.js";import"../../icon/gator/templates/share-2.js";import"../../icon/gator/templates/shield-lock.js";import"../../icon/gator/templates/shield-warning.js";import"../../icon/gator/templates/sidebar-simple.js";import"../../icon/gator/templates/sidebar.js";import"../../icon/gator/templates/smart-home.js";import"../../icon/gator/templates/sort-arrow-solid-down.js";import"../../icon/gator/templates/sort-arrow-solid-left.js";import"../../icon/gator/templates/sort-arrow-solid-right.js";import"../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../icon/gator/templates/sort-arrow-solid-up.js";import"../../icon/gator/templates/sort-reverse-variant.js";import"../../icon/gator/templates/sort-variant.js";import"../../icon/gator/templates/sparkle-filled.js";import"../../icon/gator/templates/sparkle.js";import"../../icon/gator/templates/speech-bubble.js";import"../../icon/gator/templates/square-split-horizontal.js";import"../../icon/gator/templates/square-split-vertical.js";import"../../icon/gator/templates/square.js";import"../../icon/gator/templates/stack.js";import"../../icon/gator/templates/stamp.js";import"../../icon/gator/templates/star-four-filled.js";import"../../icon/gator/templates/star-four.js";import"../../icon/gator/templates/star.js";import"../../icon/gator/templates/stopwatch.js";import"../../icon/gator/templates/sun.js";import"../../icon/gator/templates/sync.js";import"../../icon/gator/templates/tab-arrows.js";import"../../icon/gator/templates/table.js";import"../../icon/gator/templates/target.js";import"../../icon/gator/templates/text-aa.js";import"../../icon/gator/templates/thumbs-down.js";import"../../icon/gator/templates/thumbs-up.js";import"../../icon/gator/templates/tools.js";import"../../icon/gator/templates/touch-id.js";import"../../icon/gator/templates/trash.js";import"../../icon/gator/templates/trend-up.js";import"../../icon/gator/templates/twitter-logo.js";import"../../icon/gator/templates/unlink.js";import"../../icon/gator/templates/unlock.js";import"../../icon/gator/templates/upload.js";import"../../icon/gator/templates/video.js";import"../../icon/gator/templates/waffle.js";import"../../icon/gator/templates/warning-circle.js";import"../../icon/gator/templates/warning-diamond.js";import"../../icon/gator/templates/warning-filled.js";import"../../icon/gator/templates/warning-octagon.js";import"../../icon/gator/templates/warning.js";import"../../icon/gator/templates/wet-sign.js";import"../../icon/gator/templates/wifi-off.js";import"../../icon/gator/templates/wifi.js";import"../../icon/gator/templates/x-logo.js";import"../../icon/gator/templates/yelp-logo.js";import"../../icon/gator/templates/youtube-logo.js";import"../../icon/gator/templates/zillow-logo.js";import"../../icon-button/gator/icon-button.gator.js";import"../../popover/gator/popover.gator.js";import"../../checkbox-group/checkbox-group.gator.js";import"../../radio-group/radio-group.gator.js";import"../../button/gator/button.gator.js";import"../../chip/gator/chip.gator.js";import"../../input/gator/input-search/input-search.gator.js";import"../../skip-link/gator/base/skip-link.gator.js";import{unsafeCSS as C}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var _=Object.defineProperty,R=Object.getOwnPropertyDescriptor,d=(t,e,i,r)=>{for(var o=r>1?void 0:r?R(e,i):e,l=t.length-1,s;l>=0;l--)(s=t[l])&&(o=(r?s(e,i,o):s(o))||o);return r&&o&&_(e,i,o),o};let m=class extends F{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.skeleton=!1,this.sortField=null,this.sortDirection=null,this.filterValues={},this.selectedRows=[],this._currentPage=1,this._sortField=null,this._sortDirection=null,this._hoveredHeaderColumnField=null,this._pendingFilterValues={},this._filterSearchQuery={},this.renderHeaderFilterPopover=(t,e)=>{const i=t.filterOptions??[],r=(this._filterSearchQuery[t.field]??"").toLowerCase(),o=r?i.filter(h=>h.label.toLowerCase().includes(r)):i,l=this.hasActiveFilter(t),s=t.filterMultiselect===!0,n=this.getEffectivePending(t),a=o.map(h=>({title:h.label,value:String(h.value)})),c=s?n.join(";"):"",g=s?"":n||"";return p`
|
|
2
|
+
<span class="gator-table-header-filter-trigger-wrap ${e?"gator-table-header-filter-trigger-visible":""}">
|
|
3
|
+
<ngc-icon-button
|
|
4
|
+
id="filter-trigger-${t.field}"
|
|
5
|
+
icon-name="filters-2"
|
|
6
|
+
size="xsmall"
|
|
7
|
+
icon-aria-label="${u("Filter by")} ${t.name}"
|
|
8
|
+
class="${l?"gator-table-header-filter-icon-active":""}"
|
|
9
|
+
></ngc-icon-button>
|
|
10
|
+
<ngc-popover
|
|
11
|
+
reference-id="filter-trigger-${t.field}"
|
|
12
|
+
title="${u("Filter")}"
|
|
13
|
+
size="small"
|
|
14
|
+
@closed="${()=>this.handleFilterPopoverClosed(t)}"
|
|
15
|
+
>
|
|
16
|
+
<div slot="content" class="gator-table-filter-popover-content">
|
|
17
|
+
${i.length>10?p`
|
|
18
|
+
<ngc-input-search
|
|
19
|
+
placeholder="${u("Search")}"
|
|
20
|
+
.value="${this._filterSearchQuery[t.field]??""}"
|
|
21
|
+
@input="${h=>this.handleFilterSearchInput(h,t)}"
|
|
22
|
+
class="gator-table-filter-popover-search"
|
|
23
|
+
></ngc-input-search>
|
|
24
|
+
`:f}
|
|
25
|
+
${s?p`
|
|
26
|
+
<ngc-checkbox-group
|
|
27
|
+
.options="${a}"
|
|
28
|
+
.value="${c}"
|
|
29
|
+
aria-label="${u("Filter by")} ${t.name}"
|
|
30
|
+
@change="${h=>this.handleFilterCheckboxGroupChange(h,t)}"
|
|
31
|
+
></ngc-checkbox-group>
|
|
32
|
+
`:p`
|
|
33
|
+
<ngc-radio-group
|
|
34
|
+
.options="${a}"
|
|
35
|
+
.value="${g}"
|
|
36
|
+
aria-label="${u("Filter by")} ${t.name}"
|
|
37
|
+
@change="${h=>this.handleFilterRadioGroupChange(h,t)}"
|
|
38
|
+
></ngc-radio-group>
|
|
39
|
+
`}
|
|
40
|
+
</div>
|
|
41
|
+
<div slot="footer" class="gator-table-filter-popover-footer">
|
|
42
|
+
<ngc-button variant="primary" @click="${()=>this.handleFilterPopoverApply(t)}">${u("Apply")}</ngc-button>
|
|
43
|
+
<ngc-button variant="base" @click="${()=>this.handleFilterPopoverClear(t)}">${u("Clear")}</ngc-button>
|
|
44
|
+
</div>
|
|
45
|
+
</ngc-popover>
|
|
46
|
+
</span>
|
|
47
|
+
`},this.handleClearAllFilters=()=>{if(!this.columns?.length||!this.filterValues)return;const t=e=>e.filterOptions??[];for(const e of this.columns){if(!e.filterable||t(e).length===0)continue;const i=this.filterValues[e.field];if(i==null)continue;if(e.filterMultiselect===!0?i.length>0:i!==""){const o=e.filterMultiselect===!0?[]:"";this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:e.field,value:o}}))}}this.requestUpdate()}}updated(t){super.updated(t),t.has("data")&&queueMicrotask(()=>{this.selectedRows=this.data.filter(e=>e.selected&&!e.isTableHeader)})}render(){if(!this.skeleton&&!this.columns)return null;const t=this.skeleton?this._skeletonLoaderColumns:this.columns;return this.renderWrapper(this.getTableHeader(t),this.getTableBody(t,this.displayedRowData))}get _skeletonLoaderColumns(){const t=this.columns?.length||6;let e=[];for(let i=0;i<t;i++)e=e.concat({field:`skeleton-loader-${i}`,name:`skeleton-loader-${i}`});return e}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(t,e){const i=this.getActiveFilterChips();return p`
|
|
2
48
|
<ngc-table-bulk-controls
|
|
3
49
|
?visible="${this.showBulkControls}"
|
|
4
50
|
.selectedRows="${this.selectedRows.length}"
|
|
@@ -8,14 +54,32 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
|
|
|
8
54
|
>
|
|
9
55
|
<slot name="bulk-controls"></slot>
|
|
10
56
|
</ngc-table-bulk-controls>
|
|
57
|
+
${!this.skeleton&&i.length>0?p`
|
|
58
|
+
<div class="gator-table-filter-chips" role="region" aria-label="${u("Active filters")}">
|
|
59
|
+
${i.map(({column:r,value:o,label:l})=>p`
|
|
60
|
+
<ngc-chip
|
|
61
|
+
dismissible
|
|
62
|
+
size="small"
|
|
63
|
+
@dismiss="${()=>this.handleFilterChipDismiss(r,o)}"
|
|
64
|
+
>${r.name}: ${l}</ngc-chip>
|
|
65
|
+
`)}
|
|
66
|
+
${i.length>1?p`
|
|
67
|
+
<button
|
|
68
|
+
type="button"
|
|
69
|
+
class="gator-table-filter-chips-clear-all"
|
|
70
|
+
@click="${this.handleClearAllFilters}"
|
|
71
|
+
>${u("Clear all")}</button>
|
|
72
|
+
`:f}
|
|
73
|
+
</div>
|
|
74
|
+
`:f}
|
|
11
75
|
<table
|
|
12
76
|
class="gator-table ${this.tableElevatedClass}"
|
|
13
77
|
role="grid"
|
|
14
78
|
aria-labelledby="${this.tableAriaLabelledBy}"
|
|
15
79
|
>
|
|
16
|
-
${
|
|
80
|
+
${t} ${e}
|
|
17
81
|
</table>
|
|
18
|
-
${this.includePagination&&!this.skeleton?
|
|
82
|
+
${this.includePagination&&!this.skeleton?p`
|
|
19
83
|
<ngc-table-pagination
|
|
20
84
|
items-per-page="${this.itemsPerPage}"
|
|
21
85
|
total-items="${this.data.length}"
|
|
@@ -24,92 +88,118 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
|
|
|
24
88
|
@itemsperpagechanged="${this.handleItemsPerPageChanged}"
|
|
25
89
|
></ngc-table-pagination>
|
|
26
90
|
`:f}
|
|
27
|
-
`}handlePageChanged(
|
|
91
|
+
`}handlePageChanged(t){this._currentPage=t.detail.page}handleItemsPerPageChanged(t){this.itemsPerPage=t.detail.itemsPerPage}getTableHeader(t){const e=t.map(i=>this.getTableHeaderColumn(i));return!this.skeleton&&this.selectable&&e.unshift(p`
|
|
28
92
|
<th id="col-select" scope="col">
|
|
29
93
|
<ngc-checkbox
|
|
30
|
-
title-text="${
|
|
94
|
+
title-text="${u("Select All")}"
|
|
31
95
|
hide-label
|
|
32
96
|
?selected="${this.selectedRows.length===this.data.length}"
|
|
33
|
-
@change="${
|
|
97
|
+
@change="${i=>this.handleSelectAll(i)}"
|
|
34
98
|
></ngc-checkbox>
|
|
35
|
-
</th>`),
|
|
99
|
+
</th>`),p`
|
|
36
100
|
<thead role="rowgroup">
|
|
37
101
|
<tr role="row">
|
|
38
|
-
${
|
|
102
|
+
${e}
|
|
39
103
|
</tr>
|
|
40
104
|
</thead>
|
|
41
|
-
`}handleSelectAll(
|
|
105
|
+
`}handleSelectAll(t){const e=t.detail.selected;e?(this.data.forEach(i=>{i.isTableHeader||(i.selected=!0)}),this.selectedRows=this.data.filter(i=>!i.isTableHeader)):(this.data.forEach(i=>{i.selected=!1}),this.selectedRows=[]),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,composed:!0,detail:{selectedRows:this.selectedRows,selected:e}})),this.requestUpdate()}get effectiveSortField(){return this.sortField??this._sortField}get effectiveSortDirection(){return this.sortField!=null?this.sortDirection??"asc":this._sortDirection}getSortIcon(t){return this.effectiveSortField===t.field?this.effectiveSortDirection==="asc"?"arrow-up":"arrow-down":"arrows-down-up"}getSortAriaSort(t){return this.effectiveSortField!==t.field?"none":this.effectiveSortDirection==="asc"?"ascending":"descending"}handleSortColumn(t){const e=this.effectiveSortField===t.field&&this.effectiveSortDirection==="asc"?"desc":"asc";this.sortField==null&&(this._sortField=t.field,this._sortDirection=e),this.dispatchEvent(new CustomEvent("sort",{bubbles:!0,composed:!0,detail:{field:t.field,direction:e}})),this.requestUpdate()}getTableHeaderColumn(t){const e=t.field.startsWith("skeleton-loader"),i=p`
|
|
42
106
|
<ngc-skeleton-loader
|
|
43
107
|
full-width
|
|
44
108
|
height="24"
|
|
45
109
|
rounded
|
|
46
110
|
></ngc-skeleton-loader>
|
|
47
|
-
`,
|
|
48
|
-
|
|
49
|
-
|
|
111
|
+
`,r=`col-${t.field}`,o=!this.skeleton&&t.sortable===!0,l=!this.skeleton&&t.filterable===!0&&t.filterOptions?.length,s=o?this.getSortAriaSort(t):void 0,n=o&&this.effectiveSortField===t.field,a=l&&this.hasActiveFilter(t),c=o||l,g=o?p`
|
|
112
|
+
<div
|
|
113
|
+
class="gator-table-header-sort-trigger"
|
|
114
|
+
role="button"
|
|
115
|
+
tabindex="0"
|
|
116
|
+
aria-label="${u("Sort by")} ${t.name}"
|
|
117
|
+
@click="${()=>this.handleSortColumn(t)}"
|
|
118
|
+
@keydown="${v=>v.key==="Enter"||v.key===" "?(v.preventDefault(),this.handleSortColumn(t)):null}"
|
|
119
|
+
>
|
|
120
|
+
<span class="gator-table-header-label">${t.name}</span>
|
|
121
|
+
<span class="gator-table-sort-icon-wrap" aria-hidden="true">
|
|
122
|
+
<ngc-icon name="${this.getSortIcon(t)}" class="gator-table-sort-icon" size="x-small"></ngc-icon>
|
|
123
|
+
</span>
|
|
124
|
+
</div>
|
|
125
|
+
`:p`<span class="gator-table-header-label">${t.name}</span>`,h=!!(l&&(this._hoveredHeaderColumnField===t.field||a||this.isFilterPopoverOpen(t))),k=e?i:p`
|
|
126
|
+
<div class="gator-table-header-cell-inner">
|
|
127
|
+
${g}
|
|
128
|
+
${l?this.renderHeaderFilterPopover(t,h):f}
|
|
129
|
+
</div>
|
|
130
|
+
`,w=[n?"gator-table-header-cell-sort-active":"",a?"gator-table-header-cell-filter-active":"",c?"gator-table-header-cell-interactive":""].filter(Boolean).join(" ");return p`
|
|
131
|
+
<th
|
|
132
|
+
id="${r}"
|
|
133
|
+
scope="col"
|
|
134
|
+
aria-sort="${s??f}"
|
|
135
|
+
class="${w}"
|
|
136
|
+
@mouseenter="${l||o?()=>this._hoveredHeaderColumnField=t.field:f}"
|
|
137
|
+
@mouseleave="${l||o?()=>this._hoveredHeaderColumnField=null:f}"
|
|
138
|
+
>
|
|
139
|
+
${k}
|
|
50
140
|
</th>
|
|
51
|
-
`}
|
|
52
|
-
${
|
|
53
|
-
`}getCategoryBody(e
|
|
54
|
-
<tbody role="rowgroup" ${
|
|
55
|
-
${
|
|
56
|
-
${
|
|
57
|
-
${
|
|
141
|
+
`}getEffectivePending(t){const e=this._pendingFilterValues[t.field];return e!==void 0?e:this.filterValues[t.field]??(t.filterMultiselect===!0?[]:"")}getFilterPopoverForColumn(t){return this.shadowRoot?.querySelector(`ngc-popover[reference-id="filter-trigger-${t.field}"]`)??null}isFilterPopoverOpen(t){return this.getFilterPopoverForColumn(t)?.isOpen===!0}handleFilterPopoverClosed(t){this._filterSearchQuery={...this._filterSearchQuery,[t.field]:""}}handleFilterSearchInput(t,e){const i=t.detail?.value??"";this._filterSearchQuery={...this._filterSearchQuery,[e.field]:i},this.requestUpdate()}handleFilterCheckboxGroupChange(t,e){const i=t.detail??"",r=i?i.split(";").filter(Boolean):[];this._pendingFilterValues={...this._pendingFilterValues,[e.field]:r},this.requestUpdate()}handleFilterRadioGroupChange(t,e){const i=t.detail??"";this._pendingFilterValues={...this._pendingFilterValues,[e.field]:i},this.requestUpdate()}handleFilterPopoverApply(t){const e=this.getEffectivePending(t);this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:t.field,value:e}}));const i={...this._pendingFilterValues};delete i[t.field],this._pendingFilterValues=i,this.getFilterPopoverForColumn(t)?.hidePopover?.(),this.requestUpdate()}handleFilterPopoverClear(t){const i=t.filterMultiselect===!0?[]:"";this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:t.field,value:i}}));const r={...this._pendingFilterValues};delete r[t.field],this._pendingFilterValues=r,this.getFilterPopoverForColumn(t)?.hidePopover?.(),this.requestUpdate()}hasActiveFilter(t){const e=this.filterValues[t.field];return e==null?!1:t.filterMultiselect===!0?e.length>0:e!==""}getActiveFilterChips(){if(!this.columns?.length||!this.filterValues)return[];const t=[],e=i=>i.filterOptions??[];for(const i of this.columns){if(!i.filterable||e(i).length===0)continue;const r=this.filterValues[i.field];if(r==null)continue;if(i.filterMultiselect===!0){const l=r;for(const s of l){const n=e(i).find(a=>String(a.value)===s);t.push({column:i,value:s,label:n?.label??s})}}else{const l=r;if(l==="")continue;const s=e(i).find(n=>String(n.value)===l);t.push({column:i,value:l,label:s?.label??l})}}return t}handleFilterChipDismiss(t,e){const i=t.filterMultiselect===!0,r=this.filterValues[t.field],o=i?(r||[]).filter(l=>l!==e):"";this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:t.field,value:o}})),this.requestUpdate()}getTableBody(t,e){const i=[];let r={rows:[]};return e.forEach(o=>{o.isTableHeader?((r.rows.length>0||r.header)&&i.push(r),r={header:o,rows:[]}):r.rows.push(o)}),(r.rows.length>0||r.header)&&i.push(r),i.length===0&&e.length>0&&i.push({rows:e}),p`
|
|
142
|
+
${i.map(o=>this.getCategoryBody(o,t))}
|
|
143
|
+
`}getCategoryBody(t,e){let i="",r="",o="";t.header&&(i=t.header.headerText||t.header.categoryText||t.header.name||"Category",o=`category-${i.toLowerCase().replace(/\s+/g,"-")}`,r=o);const l=t.header?this.getTableHeaderRow(e,t.header):"",s=t.rows.map(c=>this.getTableBodyRow(c,e,o,this.data.indexOf(c))),n=e.some(c=>c.includedInTotals===!0),a=t.rows.length>0&&n?this.getTotalRow(t.rows,e,o):"";return p`
|
|
144
|
+
<tbody role="rowgroup" ${r?p`aria-labelledby="${r}"`:""}>
|
|
145
|
+
${l}
|
|
146
|
+
${s}
|
|
147
|
+
${a}
|
|
58
148
|
</tbody>
|
|
59
|
-
`}getTotalRow(e,
|
|
149
|
+
`}getTotalRow(t,e,i){const r={};e.forEach(a=>{r[a.field]=0,a.includedInTotals&&t.forEach(c=>{const g=this.parseNumericValue(c[a.field]);g!==null&&(r[a.field]+=g)})});const o=i?`${i}-total`:"total-row",l=p`
|
|
60
150
|
<th
|
|
61
|
-
id="${
|
|
151
|
+
id="${o}"
|
|
62
152
|
scope="row"
|
|
63
153
|
class="gator-table-total-label"
|
|
64
154
|
>
|
|
65
155
|
Total
|
|
66
156
|
</th>
|
|
67
|
-
`,
|
|
157
|
+
`,s=e.map(a=>{const c=`col-${a.field}`,g=[o,i,c].filter(Boolean).join(" ");return a.includedInTotals?p`
|
|
68
158
|
<td
|
|
69
159
|
role="gridcell"
|
|
70
|
-
headers="${
|
|
71
|
-
class="gator-table-total-cell ${this.getCellAlignClass(
|
|
160
|
+
headers="${g}"
|
|
161
|
+
class="gator-table-total-cell ${this.getCellAlignClass(a)}"
|
|
72
162
|
>
|
|
73
|
-
${this.formatTotal(
|
|
163
|
+
${this.formatTotal(r[a.field],a)}
|
|
74
164
|
</td>
|
|
75
|
-
`:
|
|
165
|
+
`:p`
|
|
76
166
|
<td
|
|
77
167
|
role="gridcell"
|
|
78
|
-
class="gator-table-total-cell ${this.getCellAlignClass(
|
|
168
|
+
class="gator-table-total-cell ${this.getCellAlignClass(a)}"
|
|
79
169
|
>
|
|
80
170
|
|
|
81
171
|
</td>
|
|
82
|
-
`}),
|
|
172
|
+
`}),n=this.selectable?[l,...s]:[l,...s.slice(1)];return p`
|
|
83
173
|
<tr role="row" class="gator-table-total-row">
|
|
84
|
-
${
|
|
174
|
+
${n}
|
|
85
175
|
</tr>
|
|
86
|
-
`}parseNumericValue(
|
|
87
|
-
<td role="gridcell" class="gator-table-checkbox-column" headers="${
|
|
176
|
+
`}parseNumericValue(t){if(typeof t=="number")return t;if(typeof t=="string"){const e=t.replace(/[^0-9.-]/g,""),i=parseFloat(e);if(!isNaN(i))return i}return null}formatTotal(t,e){if(typeof e.cellRenderer=="function"){const r=e.cellConfig?.decimalPlaces??e.decimalPlaces??2;return e.cellRenderer({[e.field]:t.toFixed(r)})}return S(t,e.cellConfig,e.decimalPlaces)}getTableBodyRow(t,e,i,r){const o=e.map(l=>this.getTableBodyCell(t,l,i,r??0));if(!this.skeleton&&this.selectable){const l=i?`col-select ${i}`:"col-select";o.unshift(p`
|
|
177
|
+
<td role="gridcell" class="gator-table-checkbox-column" headers="${l}">
|
|
88
178
|
<ngc-checkbox
|
|
89
179
|
label="test"
|
|
90
|
-
?selected="${
|
|
91
|
-
@change="${
|
|
92
|
-
id="checkbox-${
|
|
180
|
+
?selected="${t.selected}"
|
|
181
|
+
@change="${s=>this.handleTableBodyRowSelected(s,t)}"
|
|
182
|
+
id="checkbox-${t.id||Math.random().toString(36).substring(2,11)}"
|
|
93
183
|
></ngc-checkbox>
|
|
94
|
-
</td>`)}return
|
|
95
|
-
<tr role="row" class="${this.selectable&&
|
|
96
|
-
${
|
|
184
|
+
</td>`)}return p`
|
|
185
|
+
<tr role="row" class="${this.selectable&&t.selected?"gator-table-row-selected":""}">
|
|
186
|
+
${o}
|
|
97
187
|
</tr>
|
|
98
|
-
`}getTableHeaderRow(e
|
|
188
|
+
`}getTableHeaderRow(t,e){const i=this.selectable?t.length+1:t.length,r=e.headerText||e.categoryText||e.name||"Category";return p`
|
|
99
189
|
<tr role="row" class="gator-table-category-header">
|
|
100
|
-
<th role="rowheader" colspan="${
|
|
101
|
-
id="${`category-${
|
|
102
|
-
${
|
|
190
|
+
<th role="rowheader" colspan="${i}" scope="rowgroup" class="gator-table-header-cell"
|
|
191
|
+
id="${`category-${r.toLowerCase().replace(/\s+/g,"-")}`}">
|
|
192
|
+
${r}
|
|
103
193
|
</th>
|
|
104
194
|
</tr>
|
|
105
|
-
`}handleTableBodyRowSelected(e
|
|
195
|
+
`}handleTableBodyRowSelected(t,e){t.detail.selected?(e.selected=!0,this.selectedRows.push(e),this.addSkipLinkToBulkActions(t.target)):(e.selected=!1,this.selectedRows=this.selectedRows.filter(i=>i!==e),this.removeSkipLinkToBulkActions(t.target)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,composed:!0,detail:{data:e,selectedRows:this.selectedRows}})),this.requestUpdate()}addSkipLinkToBulkActions(t){t.parentNode?.querySelector("ngc-skip-link")||t.parentNode?.insertBefore(this.getSkipToBulkActionsMarkup(t),t)}getSkipToBulkActionsMarkup(t){const e=document.createElement("ngc-skip-link");return e.target=this.shadowRoot?.querySelector("ngc-table-bulk-controls")||"",e.text=u("Jump to table actions"),e.referenceElement=t,e.placement="top-start",e.xOffset=4,e.yOffset=-12,e.onblur=this.removeSkipLinkToBulkActions.bind(this,t),e}removeSkipLinkToBulkActions(t){t.parentNode?.querySelector("ngc-skip-link")?.remove()}get displayedRowData(){if(this.skeleton){let r=[];for(let o=0;o<5;o++)r=r.concat({skeleton:!0});return r}if(!this.includePagination)return this.data;const t=(this._currentPage-1)*this.itemsPerPage,e=t+this.itemsPerPage;return this.data.slice(t,e)}getTableBodyCell(t,e,i,r=0){const o=!!t.skeleton,l=p`
|
|
106
196
|
<ngc-skeleton-loader
|
|
107
197
|
full-width
|
|
108
198
|
height="24"
|
|
109
199
|
rounded
|
|
110
200
|
></ngc-skeleton-loader>
|
|
111
|
-
`,
|
|
112
|
-
<td role="gridcell" headers="${
|
|
201
|
+
`,s=`col-${e.field}`,n=i?`${s} ${i}`:s,a=o?this.getCellAlignClass(e):"",c=o?l:this.renderCellByType(t,e,r,i??"");return p`
|
|
202
|
+
<td role="gridcell" headers="${n}" class="${a}">
|
|
113
203
|
${c}
|
|
114
204
|
</td>
|
|
115
|
-
`}getCellAlignClass(
|
|
205
|
+
`}getCellAlignClass(t){return`gator-table-cell-${t.cellConfig?.align??"left"}`}renderCellByType(t,e,i,r){const o=s=>this.handleCellChange(s),l=s=>this.handleCellClick(s);switch(e.cellType){case"chip":return p`<ngc-table-cell-chip .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-chip>`;case"avatar":return p`<ngc-table-cell-avatar .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-avatar>`;case"checkbox":return p`<ngc-table-cell-checkbox .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-checkbox>`;case"text-link":return p`<ngc-table-cell-text-link .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-text-link>`;case"button":return p`<ngc-table-cell-button .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-button>`;case"icon-button":return p`<ngc-table-cell-icon-button .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-icon-button>`;case"input-dropdown":return p`<ngc-table-cell-input-dropdown .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-input-dropdown>`;case"input-text":return p`<ngc-table-cell-input-text .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-input-text>`;default:return p`<ngc-table-cell-text .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-text>`}}handleCellChange(t){t.stopPropagation();const{rowIndex:e,field:i,value:r}=t.detail??{};this.dispatchEvent(new CustomEvent("cellchange",{bubbles:!0,composed:!0,detail:{rowIndex:e,field:i,value:r}}))}handleCellClick(t){t.stopPropagation();const{rowIndex:e,field:i,value:r}=t.detail??{};this.dispatchEvent(new CustomEvent("cellclick",{bubbles:!0,composed:!0,detail:{rowIndex:e,field:i,...r!==void 0&&{value:r}}}))}};m.styles=[C(T),C(P),C(x)];d([$({type:Boolean})],m.prototype,"elevated",2);d([$({type:Boolean,attribute:"include-pagination"})],m.prototype,"includePagination",2);d([$({type:Boolean})],m.prototype,"skeleton",2);d([$({type:String,attribute:"sort-field"})],m.prototype,"sortField",2);d([$({type:String,attribute:"sort-direction"})],m.prototype,"sortDirection",2);d([$({type:Object,attribute:!1})],m.prototype,"filterValues",2);d([b()],m.prototype,"selectedRows",2);d([b()],m.prototype,"_currentPage",2);d([b()],m.prototype,"_sortField",2);d([b()],m.prototype,"_sortDirection",2);d([b()],m.prototype,"_hoveredHeaderColumnField",2);d([b()],m.prototype,"_pendingFilterValues",2);d([b()],m.prototype,"_filterSearchQuery",2);m=d([y("ngc-table")],m);export{m as NgcTable};
|